/* ==========================================================
   Thor Box — Estruturas Modulares (protótipo)
   IDV oficial: laranja #FE430A · pretos #161616/#1D1D1D
   Raio: pílula p/ interativos · 16px p/ containers
   ========================================================== */

:root {
  --orange: #FE430A;
  --orange-hot: #FF5A1F;
  --amber: #FF9A0A;
  --bg: #0C0C0C;
  --surface: #161616;
  --surface-2: #1D1D1D;
  --ink: #F4F4F2;
  --muted: #A8A8A3;
  --line: rgba(255, 255, 255, 0.09);
  --radius-card: 16px;
  --font: 'Archivo', system-ui, sans-serif;
  /* z-scale: conteúdo 1 · marquee 2 · menu mobile 39 · navbar 40 · cortina 50 */
  --z-navbar: 40;
  --z-menu: 39;
  --z-curtain: 50;
  --nav-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--orange); color: #161616; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  overflow: hidden; /* recorta o specular no formato do botão */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: #161616;
  background: var(--orange);
  border: none;
  border-radius: 12px; /* cantos suaves, mesmo estilo da navbar (não pill) */
  padding: 0.72rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { background: var(--orange-hot); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* Specular: reflexo de luz atravessando o botão no hover.
   Sai instantâneo pro ponto de partida ao tirar o mouse, pra poder repetir. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(130%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn--lg { font-size: 1rem; padding: 1rem 2.6rem; }

.btn--dark {
  background: #161616;
  color: var(--ink);
}
.btn--dark:hover { background: #000; }
.btn--dark:focus-visible { outline-color: #161616; }

/* ---------- Cortina de abertura ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-curtain);
  display: flex;
}

.curtain__half {
  width: 50%;
  height: 100%;
  background: var(--orange);
  position: relative;
}

.curtain__x {
  position: absolute;
  top: 50%;
  width: clamp(64px, 11vw, 150px);
  height: auto;
  transform: translateY(-50%);
}
.curtain__x--left  { right: 4px; }
.curtain__x--right { left: 4px; }

/* Estado inicial do reveal: contorno por desenhar (dash maior que o perímetro do traço)
   e fill vazio, então a tela abre só laranja. O JS mede o path e assume daqui. */
.curtain__x path {
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

/* Sem JS/GSAP: cortina some, conteúdo aparece (fallback) */
.no-anim .curtain { display: none; }
.no-anim .navbar,
.no-anim .hero__headline,
.no-anim .hero__cta-row,
.no-anim .hero__container-wrap,
.no-anim .marquee { opacity: 1 !important; transform: none !important; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-navbar);
  width: min(1060px, calc(100% - 24px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 0.75rem 0 1.4rem;
  border-radius: 12px;
  background: rgba(22, 22, 22, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0; /* GSAP revela após a cortina */
}

.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { height: 15px; width: auto; }

.navbar__links {
  display: none;
  margin-left: auto;
  gap: 1.75rem;
}
.navbar__links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.navbar__links a:hover { color: var(--orange); }

.navbar__cta { display: none; }

.navbar__burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.navbar__burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: calc(var(--nav-h) + 22px);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-menu);
  width: min(360px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border-radius: var(--radius-card);
  background: rgba(22, 22, 22, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 0.85rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 10px;
}
.mobile-menu a:hover { background: var(--surface-2); color: var(--orange); }

@media (min-width: 900px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__burger, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Só luminosidade, em cinzas neutros: clareia de leve no topo-esquerdo e
     chega no preto da página no canto inferior direito. */
  background: linear-gradient(135deg, #191919 0%, var(--bg) 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* Marca d'água: X da marca em duas metades, só o traço (miolo vazado), com o
   gradiente laranja→preto no stroke.
   Proporção do X completo (viewBox oficial) para o vão central sair correto.
   Sangra pra fora da hero de propósito; o overflow: hidden da seção recorta. */
.hero__x {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(200vmin, 1760px);
  aspect-ratio: 218.98 / 128.88;
  opacity: 0.22;
}

.hero__x-half {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
.hero__x-half--left  { left: 0; }
.hero__x-half--right { right: 0; }

.hero__stage {
  position: relative;
  /* Sem z-index aqui de propósito: o stage não pode criar contexto de empilhamento,
     senão o container (z-index alto) ficaria preso abaixo da navbar. Sem contexto,
     os filhos posicionados competem direto com a navbar no contexto raiz. */
  flex: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 20px 16px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hl"
    "container"
    "hr"
    "cta";
  align-content: center;
  justify-items: center;
  gap: 1rem;
}

.hero__headline {
  font-size: clamp(1.4rem, 2.7vw, 2.6rem);
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
  opacity: 0; /* GSAP */
}
.hero__headline--left  { grid-area: hl; justify-self: start; text-align: left; }
.hero__headline--right { grid-area: hr; justify-self: end; text-align: right; }

/* Caixa = só o corpo do container (1100x448 no PNG). É o que ocupa o grid e
   recebe o hover; o cabo e o gancho sangram pra cima sem empurrar o layout. */
.hero__container-wrap {
  grid-area: container;
  position: relative;
  /* z acima da navbar (40): container e cabo passam POR CIMA dela na descida.
     Funciona porque o stage não cria mais contexto de empilhamento. */
  z-index: 45;
  width: min(600px, 88vw);
  aspect-ratio: 1100 / 448;
  opacity: 0; /* GSAP anima o conjunto descendo */
  --mx: 50%;
  --my: 50%;
  --reveal-r: clamp(150px, 20vw, 260px); /* spotlight grande já de cara (item 1) */
}

.hero__container-media {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1100 / 1161; /* PNG inteiro: cabo + gancho + corpo */
  pointer-events: none; /* o hover é da caixa do corpo, não da faixa do cabo */
}

/* Continua as duas tiras do cabo do PNG até fora da tela (telas altas) */
.hero__cable {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 120vh;
  background: linear-gradient(to right,
    transparent 48.55%, #302E2D 48.55%, #302E2D 49%,
    transparent 49%, transparent 51.64%,
    #302E2D 51.64%, #302E2D 52.09%,
    transparent 52.09%);
}

.hero__container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__container--cinza {
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.55));
}

/* Reveal: o laranja está por cima, visível só no recorte circular sob o cursor.
   Só entra depois que a descida termina (classe posta pelo GSAP). */
.hero__container--laranja {
  opacity: 0;
  transition: opacity 0.28s ease-out;
  -webkit-mask-image: radial-gradient(circle var(--reveal-r) at var(--mx) var(--my), #000 0%, #000 52%, transparent 100%);
  mask-image: radial-gradient(circle var(--reveal-r) at var(--mx) var(--my), #000 0%, #000 52%, transparent 100%);
}
.hero__container-wrap.is-revealing .hero__container--laranja { opacity: 1; }

.hero__cta-row { grid-area: cta; margin-top: 0.5rem; opacity: 0; /* GSAP */ }

@media (min-width: 900px) {
  .hero__stage {
    /* Mesma largura/centro da navbar, sem padding lateral: assim as bordas do
       stage coincidem com as da navbar e as headlines ancoram nas bordas internas
       dela (logo à esquerda, CTA à direita). */
    --cw: min(680px, 50vw);
    --drop: 6vh;  /* descida do container + headlines (CTA desce menos) */
    --nav-pad-l: 1.4rem;   /* padding-left da navbar (onde começa o logo) */
    --nav-pad-r: 0.75rem;  /* padding-right da navbar (onde termina o CTA) */
    width: min(1060px, calc(100% - 24px));
    grid-template-columns: 1fr;
    grid-template-areas:
      "container"
      "cta";
    align-items: center;
    column-gap: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: calc(var(--nav-h) + 30px);
  }

  /* Headlines alinhadas às bordas internas da navbar: esquerda começa no logo,
     direita termina no CTA. Ficam no topo-esq / base-dir do container. */
  .hero__headline {
    position: absolute;
    z-index: 1; /* abaixo do container (45): a parte sobreposta fica atrás dele */
    max-width: 42%;
    margin: 0;
  }
  /* Fallback antes do JS medir e posicionar (ver positionHeroHeadlines em main.js).
     Esquerda: alinhamento horizontal com a navbar (logo), acima do container.
     Direita: agora colada perto da quina direita do container e abaixo dele —
     texto alinhado à esquerda para "Para" e "sua obra" ficarem com a mesma
     margem esquerda, o mais perto possível do container. */
  .hero__headline--left {
    left: var(--nav-pad-l);
    right: auto;
    top: calc(7% + var(--drop));
    text-align: left;
  }
  .hero__headline--right {
    left: auto;
    right: var(--nav-pad-r);
    bottom: calc(17% - var(--drop));
    /* Alinhado à direita: "Para" e "sua obra" terminam no mesmo x (o fim do
       "Para"), então "sua obra" sobra pra esquerda — o JS ancora esse fim na
       quina direita do container. */
    text-align: right;
    /* Ao lado do container o bloco é estreito (encostado na quina direita), então
       "sua obra" quebraria em "sua"/"obra". nowrap mantém cada linha inteira — o
       <br> vira a única quebra: "Para" / "sua obra". */
    white-space: nowrap;
  }

  /* top relativo desce o container junto com as headlines (mesmo --drop),
     preservando o overlap; não mexe no layout do CTA (fluxo intacto). */
  .hero__container-wrap  { width: var(--cw); margin: 0 auto 6vh; top: var(--drop); }
  /* CTA um pouco mais abaixo, mais respiro entre ele e a base do container */
  .hero__cta-row { margin-top: 4vh; position: relative; top: 2vh; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--orange);
  overflow: hidden;
  padding: 0.55rem 0;
  transform: translateY(101%); /* GSAP sobe */
}

.marquee__track {
  display: flex;
  width: max-content;
  /* lento e contínuo: cada cópia (~3401px) atravessa em 63s ≈ 54 px/s.
     A mesma cadência do marquee de depoimentos (ver .testimonials__track). */
  animation: marquee-scroll 63s linear infinite;
}
.marquee__track span {
  white-space: nowrap;
  font-weight: 700;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #161616;
}
.marquee__track i {
  font-style: normal;
  margin: 0 0.9rem;
  opacity: 0.55;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Seções (base) ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 20px; }

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section__head p { margin-top: 0.9rem; color: var(--muted); font-size: 1rem; }

/* ---------- Text reveal (character scale) ---------- */
/* Palavra = inline-block (não quebra no meio); cada caractere escala via GSAP.
   Sem JS/GSAP o texto fica normal (spans não são criados). */
.tr-word { display: inline-block; }
.tr-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- Produtos (Swiper creative) — 2ª seção preta: gradiente R→L (225deg) ---------- */
.products { background: linear-gradient(225deg, #191919 0%, var(--bg) 100%); overflow: hidden; }

.products__carousel { max-width: 1100px; margin: 0 auto; }

#productSwiper { overflow: visible; }

.swiper-slide {
  width: min(720px, 92%);
  display: flex;
  justify-content: center;
}

.product-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: linear-gradient(145deg, #232323 0%, #161616 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__ghost {
  width: 34%;
  opacity: 0.07;
}
.product-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__media-label {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.7;
}

.product-card__info {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.product-card__info h3 { font-size: 1.35rem; color: var(--orange); }
.product-card__info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.product-card__info li { padding-left: 1.1rem; position: relative; }
.product-card__info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  /* em (não rem): line-height real do li é 1.6× a fonte, e a fonte do card
     Escritório é reduzida pelo JS de auto-ajuste — um valor fixo em rem
     descolava o ícone do centro da 1ª linha nesse card. */
  height: 1.6em;
  background: url("../assets/img/product-bullet-icon.png") no-repeat center / 8px auto;
}
.product-card__dimensions {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.85;
}

.products__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0; /* sem isso o .products__nav (flex) espremia o botão, virando oval */
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--orange); color: #161616; transform: translateY(-2px); }
.carousel-btn:active { transform: scale(0.96); }

.swiper-pagination {
  position: static;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--muted);
  opacity: 0.5;
  transition: all 0.3s;
}
.swiper-pagination-bullet-active {
  background: var(--orange);
  opacity: 1;
  width: 26px;
  border-radius: 999px;
}

@media (min-width: 900px) {
  .product-card { flex-direction: row; }
  .product-card__media { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
  .product-card__info { flex: 1; padding: 2.2rem 2rem; justify-content: center; }
}

/* ---------- Sobre (fundo laranja) ---------- */
.about { background: linear-gradient(160deg, var(--orange) 0%, #E03400 100%); }

/* Compactar verticalmente (item 3): menos respiro no topo/base da seção e entre
   título → texto → cards, pra caber tudo numa tela só. Sem espremer os textos. */
.about { padding-top: clamp(2.25rem, 4vw, 3.25rem); padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.about .section__head { margin-bottom: clamp(1.3rem, 2.6vw, 2rem); max-width: 780px; }
.about .section__head p { margin-top: 0.55rem; }

/* Sobre o laranja: título e texto em preto; glow dos cards em branco-quente
   (o laranja da borda sumiria contra o fundo laranja). */
.about .section__head h2 { color: #fff; }
.about .section__head p { color: rgba(22, 22, 22, 0.82); }
.about .feature-card {
  --glow: rgba(255, 240, 230, 0.95);
  --glow-fade: rgba(255, 240, 230, 0);
}

.about__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* ---------- Border glow (Diferenciais + Depoimentos) ----------
   Anel de 1px sobre a borda, aceso por um radial na posição do cursor.
   O par de máscaras (border-box menos content-box) deixa só o anel visível.
   Regra única pras duas seções: o visual não pode divergir. */
.feature-card,
.quote-card {
  --gx: 50%;
  --gy: 50%;
  --glow: rgba(254, 67, 10, 0.85);
  --glow-fade: rgba(254, 67, 10, 0);
}

.feature-card::before,
.quote-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-card) + 1px);
  padding: 1px;
  background: radial-gradient(circle 220px at var(--gx) var(--gy),
    var(--glow), var(--glow-fade) 68%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}
.feature-card:hover::before,
.quote-card:hover::before { opacity: 1; }

/* Cards da Sobre: só emoji + número + apoio. Centralizados verticalmente, sem o
   vazio que o margin-top:auto do stat deixava ao remover título/subtítulo. */
.about .feature-card {
  padding: 1.6rem 1.4rem;
  gap: 0.85rem;
  justify-content: center;
}
.about .feature-card__stat { margin-top: 0; padding-top: 0; }

.feature-card__icon { width: 34px; height: 34px; color: var(--orange); }
.feature-card__emoji { font-size: 1.85rem; line-height: 1; }
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.feature-card__stat {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 2.4rem;
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
/* tabular-nums: os dígitos não mudam de largura durante a contagem */
.feature-card__stat .counter {
  font-variant-numeric: tabular-nums;
}
.feature-card__stat small {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Com o fundo da seção agora laranja, o card do meio deixa de ser o destaque
   laranja: os três ficam escuros e iguais, destacando-se do fundo pela cor. */

/* Layout da Sobre: mobile empilha (texto em cima, cards embaixo);
   desktop em 2 colunas (texto à esquerda, cards à direita, empilhados). */
.about__layout { max-width: 1100px; margin: 0 auto; }
.about .section__head { text-align: left; }

@media (min-width: 900px) {
  /* Mesma caixa da navbar: min(1060px, 100%-24px). Usar % (não vw) e zerar o
     padding do .about aqui é o que garante o match — 100vw INCLUI a largura da
     scrollbar nesse Chromium, enquanto o % da navbar (position:fixed, resolve
     contra o viewport "visual") NÃO inclui; abaixo de ~1084px (fora do teto de
     1060px) essa diferença aparecia como ~7-8px de desalinhamento à esquerda. */
  .about { padding-left: 0; padding-right: 0; }
  .about__layout { width: min(1060px, calc(100% - 24px)); max-width: none; }
  /* + o inset onde o logo começa dentro da navbar (mesmo valor usado na Hero) */
  .about .section__head { padding-left: 1.4rem; }
}

@media (min-width: 900px) {
  .about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    /* topo alinhado: título encosta no topo dos cards (item 2). Fontes maiores
       fazem o bloco de texto ocupar a mesma altura da coluna de cards (item 3). */
    align-items: start;
  }
  .about .section__head {
    margin-bottom: 0;   /* é coluna, não precisa de espaço abaixo */
    max-width: none;    /* preenche a coluna esquerda */
  }
}

/* Título calibrado pra quebrar em exatamente 3 linhas — "Uma empresa / que
   entende / de obra" — na largura da coluna esquerda (testado de 900 a 1920px). */
.about .section__head h2 { font-size: clamp(2.1rem, 4.2vw, 2.8rem); }
.about .section__head p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin-top: 0.7rem;
}

/* ---------- Depoimentos (4ª seção: fundo laranja) ---------- */
.testimonials { background: linear-gradient(160deg, var(--orange) 0%, #E03400 100%); overflow: hidden; }

/* Título dos depoimentos em branco (item 6); glow dos cards em branco-quente
   (o laranja da borda sumiria contra o fundo laranja). */
.testimonials .section__head h2 { color: #fff; }
.testimonials .quote-card {
  --glow: rgba(255, 240, 230, 0.95);
  --glow-fade: rgba(255, 240, 230, 0);
}

/* Marquee contínuo: track com 2 grupos idênticos, desloca -50% (uma cópia).
   Rola infinitamente sem parar, inclusive com o mouse sobre os cards. */
.testimonials__marquee { overflow: hidden; }
.testimonials__track {
  display: flex;
  width: max-content;
  /* mesma velocidade de antes (~54 px/s): agora são 8 cards por grupo (eram 6),
     duração escalada na mesma proporção pra manter o ritmo (40s × 8/6 ≈ 53s). */
  animation: testi-scroll 53s linear infinite;
}

@keyframes testi-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonials__marquee .quote-card {
  width: min(290px, 78vw);
  flex-shrink: 0;
  margin-right: 16px; /* espaçamento por margem (não flex-gap): -50% casa exato */
}

/* Duas fileiras só aparecem no mobile (≤768px, ver media query); esconder por
   padrão aqui garante que o desktop nunca seja afetado por essa marcação nova. */
.testimonials__mobile-rows { display: none; }

/* Card só com estrelas + citação (nome/empresa removidos): padding e gap
   reduzidos proporcionalmente, sem o "empurra pra baixo" que a figcaption usava. */
.quote-card {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.quote-card__stars { color: var(--amber); letter-spacing: 3px; font-size: 0.95rem; }
.quote-card blockquote {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.65;
}

/* ---------- FAQ (3ª seção preta: gradiente L→R, 135deg) ---------- */
.faq { background: linear-gradient(135deg, #191919 0%, var(--bg) 100%); }

.faq__list { max-width: 760px; margin: 0 auto; }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, border-color 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--orange);
  border-color: var(--orange);
}
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #161616; }

.faq__answer { overflow: hidden; }
.faq__answer p {
  padding: 0 0.25rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- CTA final ---------- */
.final-cta {
  position: relative;
  background: linear-gradient(150deg, var(--orange) 0%, #E03400 100%);
  padding: clamp(4.5rem, 10vw, 7.5rem) 20px;
  overflow: hidden;
}
/* X marca d'água: preenche a altura da seção, agora CENTRALIZADO (antes ficava
   à direita). Sangra pros lados; overflow:hidden recorta. Opacidade baixa. */
.final-cta__ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0.12;
  pointer-events: none;
}
.final-cta__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.final-cta__inner h2 {
  /* teto reduzido de 3.2rem pra 3rem: com as quebras manuais (<br>) abaixo,
     "tamanho da sua obra, nós" precisa caber numa linha só dentro dos 900px
     do .final-cta__inner — 3.2rem estourava e "nós" caía numa 4ª linha. */
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: #fff;
  max-width: 30ch;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5rem) 20px 0;
}

.footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer__brand { display: flex; flex-direction: column; gap: 1.2rem; }
.footer__brand img { width: 150px; height: auto; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }

.footer__col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.footer__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
  width: fit-content;
}
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem; /* linha um pouco maior (item 7) */
}
.footer__bottom a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}
.footer__bottom a:hover { text-decoration: underline; }

@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Ajustes exclusivos do mobile (não afetam o desktop) ---------- */
@media (max-width: 768px) {
  /* 1. Seções com fundo laranja (exceto Sobre Nós, que já é compacta de propósito)
     ficavam comprimidas no mobile — mais respiro vertical aqui. Mesma regra pras
     duas seções: CTA final sempre fica com a mesma altura que Depoimentos.
     min-height: 100dvh (mesma técnica da .hero) garante a mesma altura da Hero.
     display:flex + justify-content:center: as duas seções são display:block por
     padrão (conteúdo flui do topo) — sem isso, o min-height cria um vão vazio
     grande embaixo do conteúdo em vez de dar presença/respiro real. */
  .testimonials,
  .final-cta {
    min-height: 100dvh;
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* 2. Depoimentos em duas fileiras independentes no mobile: fileira 1 rola pra
     esquerda (mesma animação do desktop), fileira 2 pra direita (keyframe
     invertido). Esconde a versão de fileira única do desktop e mostra as duas. */
  @keyframes testi-scroll-reverse {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
  }
  .testimonials__marquee--desktop { display: none; }
  .testimonials__mobile-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .testimonials__mobile-rows .testimonials__track {
    /* metade dos cards por fileira (4, eram 8 no desktop) = metade da duração,
       pra manter a mesma velocidade em px/s do desktop (53s ÷ 2 ≈ 26.5s). */
    animation-duration: 26.5s;
  }
  .testimonials__mobile-rows .testimonials__track--reverse {
    animation-name: testi-scroll-reverse;
  }
}
