/* ===================================================================
   Centermaq — Landing Page "Soluções em Logística"
   =================================================================== */

:root {
  --red: #E4132E;
  --red-dark: #C00E26;
  --dark: #16171B;
  --dark-soft: #202126;
  --text: #26272B;
  --text-light: #5B5D66;
  --gray-bg: #F5F5F7;
  --white: #FFFFFF;
  --border: #E7E7EA;
  --radius: 10px;
  --max-width: 1120px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.eyebrow {
  color: var(--red);
  font-weight: 700;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-align: center;
}

.section-subtitle {
  max-width: 680px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

.mini-cta {
  margin-top: 44px;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.problem-grid .card:nth-child(2),
.segment-grid .segment-card:nth-child(2) { transition-delay: .08s; }

.problem-grid .card:nth-child(3),
.segment-grid .segment-card:nth-child(3) { transition-delay: .16s; }

.problem-grid .card:nth-child(4),
.segment-grid .segment-card:nth-child(4) { transition-delay: .24s; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-cta-bar .btn {
  display: block;
  width: 100%;
}

@media (max-width: 899px) {
  body {
    padding-bottom: 72px;
  }
}

@media (min-width: 900px) {
  .mobile-cta-bar {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px 0;
  background: transparent;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: rgba(22, 23, 27, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.site-footer .logo-img {
  height: 30px;
}

/* ---------- Full-bleed photo sections (hero + CTA final) ---------- */
.photo-section {
  position: relative;
  color: var(--white);
  min-height: 58vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 60px;
}

.photo-section .bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.photo-section .bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-section .bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.74) 38%, rgba(8, 9, 12, 0.35) 68%, rgba(8, 9, 12, 0.55) 100%);
}

.photo-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.photo-section h1,
.photo-section h2,
.photo-section p {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero {
  background: var(--dark);
}

.hero-content {
  max-width: 620px;
}

.hero-content .tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.hero-content .highlight {
  color: var(--red);
}

.hero-content p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Problem cards ---------- */
.problem-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(228, 19, 46, 0.08);
  color: var(--red);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.bg-gray {
  background: var(--gray-bg);
}

/* ---------- Comparativo ---------- */
.compare-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.compare-box {
  border-radius: var(--radius);
  padding: 32px 28px;
}

.compare-box.traditional {
  background: var(--gray-bg);
  border: 1px dashed #C9CACF;
}

.compare-box.centermaq {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow);
}

.compare-box h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.compare-box.traditional h3 {
  color: #9A9CA6;
}

.compare-box ul li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.compare-box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.compare-box.traditional ul li {
  color: #B4B6BF;
  text-decoration: line-through;
}

.compare-box.traditional ul li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9CA6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.compare-box.centermaq ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.compare-box.centermaq ul li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.compare-box ul li:last-child {
  border-bottom: none;
}

/* ---------- Bloco vermelho de entrega ---------- */
.delivery {
  background: var(--red);
  color: var(--white);
}

.delivery .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.delivery h2 {
  text-align: left;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
}

.delivery p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  max-width: 480px;
}

.delivery-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-weight: 600;
  font-size: 1rem;
}

.delivery-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.equipment-grid {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.equipment-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.equipment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.equipment-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.equipment-item figcaption {
  color: var(--dark);
  font-weight: 700;
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .equipment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Fluxo de continuidade ---------- */
.flow-grid {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.flow-step .flow-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.flow-step p {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex: 0 0 auto;
}

.flow-arrow svg {
  width: 22px;
  height: 22px;
  transform: rotate(90deg);
}

.flow-step.flow-2 { transition-delay: .08s; }
.flow-step.flow-3 { transition-delay: .16s; }
.flow-step.flow-4 { transition-delay: .24s; }

/* ---------- Segmentos (dark) ---------- */
.segments {
  background: var(--dark);
  color: var(--white);
}

.segments h2 {
  color: var(--white);
}

.segments h2 .highlight {
  color: var(--red);
}

.segment-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.segment-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s ease, border-color .25s ease;
}

.segment-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 19, 46, 0.5);
}

.segment-card h3 {
  color: var(--red);
  font-size: 1.02rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.segment-card h3 .seg-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(228, 19, 46, 0.15);
}

.segment-card h3 .seg-icon svg {
  width: 16px;
  height: 16px;
}

.segment-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
}

/* ---------- Diferenciais ---------- */
.differentiators .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.differentiators h2 {
  text-align: left;
  max-width: 420px;
}

.differentiators h2 .highlight {
  color: var(--red);
}

.diff-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.diff-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(228, 19, 46, 0.08);
  color: var(--red);
}

.diff-icon svg {
  width: 20px;
  height: 20px;
}

.diff-list li:first-child {
  padding-top: 0;
}

.diff-list li:last-child {
  border-bottom: none;
}

.diff-list h3 {
  color: var(--red);
  font-size: 1rem;
  margin-bottom: 6px;
}

.diff-list p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.94rem;
}

/* ---------- CTA final (full-bleed) ---------- */
.cta-final-content {
  max-width: 560px;
}

.cta-final-content .tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.cta-final-content h2 {
  text-align: left;
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
}

.cta-final-content h2 .highlight {
  color: var(--red);
}

.cta-final-content p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 460px;
}

.cta-final-content .btn {
  margin-top: 28px;
}

/* ---------- FAQ (acordeão) ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(228, 19, 46, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--text-light);
}

/* ---------- Form section (RD Station) ---------- */
.form-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-wrap {
  max-width: 560px;
  margin: 40px auto 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 520px;
}

/* ===================================================================
   Responsive — tablet & desktop
   =================================================================== */
@media (min-width: 640px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .segment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .flow-grid .flow-step {
    flex: 1 1 0;
  }

  .flow-arrow svg {
    transform: rotate(0deg);
  }
}

@media (min-width: 900px) {
  .delivery .container,
  .differentiators .container {
    grid-template-columns: 1fr 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .segment-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  h2 {
    text-align: left;
  }

  .section-subtitle {
    margin: 16px 0 0;
    text-align: left;
  }

  .center-head h2,
  .center-head .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
