/* ==========================================================================
   Continental Auto Estufa — estilos
   Identidade: a logo Continental, em preto e branco. O globo oval dá as
   formas (botões ovais), as letras estreitas da logo dão a tipografia
   (Archivo condensada nos títulos) e a ausência de cor dá a paleta.
   Conceito de movimento: a oficina. Portão que sobe, estufa que acende,
   hodômetro de painel e a planta da sede.
   Organização: tokens → base → componentes → seções → responsivo → movimento
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta da marca: o preto e o branco da logo, e os cinzas entre eles */
  --black: #000000;
  --ink-900: #141414;
  --ink-800: #1F1F1F;
  --gray-600: #6B6B6B;
  --gray-400: #8F8F8F;
  --gray-300: #C8C8C8;
  --gray-200: #E3E3E3;
  --gray-100: #F2F2F2;
  --white: #FFFFFF;

  /* Contexto padrão: seções claras */
  --bg: var(--white);
  --bg-alt: var(--gray-100);
  --surface: var(--white);
  --surface-2: var(--gray-100);
  --line: var(--gray-200);
  --line-strong: #CCCCCC;
  --text: var(--black);
  --muted: var(--gray-600);
  --subtle: var(--gray-400);

  /* Destaque = a cor oposta ao fundo (preto no claro, branco no escuro) */
  --accent: var(--black);
  --accent-hover: #333333;
  --accent-ink: var(--white);
  --accent-text: var(--black);

  --ghost-fg: var(--black);
  --ghost-border: var(--black);
  --ghost-bg-hover: rgba(0, 0, 0, .05);

  /* Tipografia: uma família; condensada nos títulos, como as letras da logo */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --condensed: 72%;

  /* Raios com hierarquia: controles < cards < imagens */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

}

/* Contexto escuro: o negativo da logo */
.header,
.hero,
.dash-band,
.strip,
.section--dark,
.footer {
  --bg: var(--black);
  --bg-alt: var(--ink-900);
  --surface: var(--ink-900);
  --surface-2: var(--ink-800);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .26);
  --text: var(--white);
  --muted: var(--gray-300);
  --subtle: var(--gray-400);
  --accent: var(--white);
  --accent-hover: #D9D9D9;
  --accent-ink: var(--black);
  --accent-text: var(--white);
  --ghost-fg: var(--white);
  --ghost-border: rgba(255, 255, 255, .75);
  --ghost-bg-hover: rgba(255, 255, 255, .08);
  color: var(--text);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--text); color: var(--bg); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--primary:hover { --btn-bg: var(--accent-hover); }
/* Botões que abrem o WhatsApp mantêm a cor do WhatsApp, em qualquer fundo */
.btn--whatsapp { --btn-bg: #25D366; --btn-fg: #FFFFFF; font-weight: 700; }
.btn--whatsapp:hover { --btn-bg: #1EBE5A; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ghost-fg); border-color: var(--ghost-border); }
.btn--ghost:hover { --btn-bg: var(--ghost-bg-hover); border-color: var(--btn-fg); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__logo { width: 92px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-size: 1.02rem;
  font-weight: 800;
  font-stretch: var(--condensed);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand__text small { color: var(--muted); font-size: .8rem; font-weight: 500; font-stretch: var(--condensed); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  position: relative;
  display: block;
  padding: 11px 0;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover,
.nav__list a.is-active { color: var(--text); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero: o portão da oficina ---------- */
.hero {
  --open: 0;
  position: relative;
  background: var(--bg);
}
.js .hero { height: 220svh; }

.hero__stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.js .hero__stage { position: sticky; top: 0; }

/* Dentro da oficina */
.hero__scene {
  position: absolute;
  inset: 0;
  transform: scale(calc(1.06 - .06 * var(--open)));
  transform-origin: 50% 70%;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fachada da oficina: enquadra o prédio, cortando mais céu do que rua */
  object-position: center 58%;
}
/* Escurece só onde há texto (embaixo e à esquerda) e um pouco no topo, sob o menu;
   o resto da fachada fica com a luz natural da foto */
.hero__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 18%),
    linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 32%, rgba(0,0,0,0) 62%);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: clamp(40px, 9vh, 96px);
}
.hero__title {
  font-size: clamp(3rem, 15vw, 12rem);
  font-weight: 600;
  font-stretch: var(--condensed);
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.paint { display: block; }
.paint > span { position: relative; display: inline-block; }
.hero__lead {
  max-width: 50ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* O portão: lâminas de aço com o letreiro pintado */
.door { display: none; }
.js .door {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 90px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(255,255,255,.03) 22%, rgba(255,255,255,.03) 78%, rgba(0,0,0,.45) 100%),
    repeating-linear-gradient(180deg, #2c2c2c 0, #242424 5px, #1c1c1c 33px, #131313 37px, #0b0b0b 40px);
  transform: translateY(calc(var(--open) * -100%));
  translate: 0 0;
  will-change: transform;
}
/* Os sulcos das lâminas passam por cima da pintura, como num portão de verdade */
.js .door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 36px, rgba(0,0,0,.5) 37px, rgba(0,0,0,.5) 39px, rgba(255,255,255,.05) 40px);
  pointer-events: none;
}
/* Luz da oficina escapando por baixo do portão */
.js .door::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.door__sign {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.door__logo {
  display: block;
  width: clamp(220px, 50vw, 560px);
  height: auto;
  margin: 0 auto;
  opacity: .95;
}
.door__name {
  font-size: clamp(1.9rem, 8.4vw, 7rem);
  font-weight: 900;
  font-stretch: var(--condensed);
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.door__sub {
  margin-top: .5em;
  font-size: clamp(1rem, 2.8vw, 2rem);
  font-weight: 600;
  font-stretch: var(--condensed);
  letter-spacing: .38em;
  text-transform: uppercase;
}
.door__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(16px, 3vw, 36px);
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(.85rem, 1.6vw, 1.15rem);
  font-weight: 700;
  font-stretch: var(--condensed);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.door__services li { display: inline-flex; align-items: center; gap: 10px; }
.door__services li::before { content: ""; width: 9px; height: 5px; border-radius: 50%; background: var(--white); }
.door__phone {
  margin-top: clamp(14px, 2vw, 22px);
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 800;
  font-stretch: var(--condensed);
  letter-spacing: .02em;
}
.door__since { margin-top: 6px; color: var(--gray-300); font-size: clamp(.85rem, 1.4vw, 1rem); letter-spacing: .08em; }

.door__hint {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray-300);
  font-size: .85rem;
  transform: translateX(-50%);
  opacity: calc(1 - var(--open) * 8);
}
.door__hint::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.6s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

/* Barra inferior do portão, com puxador e filete vermelho */
.door__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 26px;
  border-top: 2px solid rgba(255, 255, 255, .85);
  background: linear-gradient(180deg, #3a3a3a 0%, #1d1d1d 100%);
}
.door__rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 96px;
  height: 7px;
  margin-left: -48px;
  border-radius: 2px;
  background: #555;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

/* Faixa com os hodômetros */
.dash-band { background: var(--bg); }

/* Painel com hodômetros */
.dash {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.dash__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px 24px 44px 0;
}
.dash__item + .dash__item { padding-left: 24px; border-left: 1px solid var(--line); }
.dash dt { color: var(--muted); font-size: .9rem; }
.dash dd { margin: 0; }
.dash__item--text dd {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  font-stretch: var(--condensed);
  line-height: 1.25;
}

.odo {
  display: inline-flex;
  gap: 3px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.odo__cell {
  display: block;
  width: .9em;
  height: 1.3em;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-900);
  box-shadow: inset 0 7px 7px -5px rgba(0,0,0,.85), inset 0 -7px 7px -5px rgba(0,0,0,.85);
  text-align: center;
}
.odo__cell:last-child { background: var(--white); color: var(--black); box-shadow: inset 0 7px 7px -5px rgba(0,0,0,.35), inset 0 -7px 7px -5px rgba(0,0,0,.35); }
.odo__strip { display: block; transition: transform 2s var(--ease-out); }
.odo__strip span { display: block; height: 1.3em; line-height: 1.3em; }

/* ---------- Seções ---------- */
.section { padding: var(--section-y) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * .75); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__title {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  font-weight: 600;
  font-stretch: var(--condensed);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section__title--sm { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section__lead { margin-top: 18px; max-width: 56ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- Serviços: vitrine ---------- */
.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.show__list { border-top: 1px solid var(--line-strong); }
.show__item { border-bottom: 1px solid var(--line-strong); }
.show__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--subtle);
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  font-weight: 600;
  text-transform: uppercase;
  font-stretch: var(--condensed);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease), padding-left .45s var(--ease-out);
}
.show__btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 3px;
  margin-top: -1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.show__btn::after {
  content: "+";
  flex: none;
  color: var(--subtle);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .3s var(--ease);
}
.show__btn:hover { color: var(--text); }
.show__item.is-active .show__btn { color: var(--text); padding-left: 34px; }
.show__item.is-active .show__btn::before { transform: scaleX(1); }
.show__item.is-active .show__btn::after { transform: rotate(45deg); color: var(--accent); }

.show__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.show__panel > div { overflow: hidden; }
.show__panel p { max-width: 46ch; padding: 0 0 24px 34px; color: var(--muted); font-size: 1.02rem; }
.show__item.is-active .show__panel { grid-template-rows: 1fr; }

/* Desktop: a rolagem escolhe o serviço. Todas as descrições ficam abertas e
   o recuo é fixo, para a lista nunca mudar de altura enquanto se rola */
@media (min-width: 901px) {
  .show__btn,
  .show__item.is-active .show__btn { padding-left: 34px; }
  .show__btn::after { display: none; }
  .show__panel { grid-template-rows: 1fr; }
  .show__panel p { color: var(--subtle); transition: color .3s var(--ease); }
  .show__item.is-active .show__panel p { color: var(--muted); }

  /* Vitrine travada: a seção fica fixa na tela enquanto a rolagem avança os serviços.
     O JS dá ao .show-pin a altura do trecho de rolagem e move a lista dentro do trilho. */
  .show-pin.is-pinned .show {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    height: calc(100vh - var(--header-h) - 48px);
    align-items: stretch;
  }
  .show-pin.is-pinned .show__rail {
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
  }
  .show-pin.is-pinned .show__list { padding-bottom: 8vh; will-change: transform; }
  /* A foto mantém a proporção 4:5 e fica centralizada na área travada;
     em telas baixas ela só limita a altura, para continuar inteira */
  .show-pin.is-pinned .show__frame {
    position: relative;
    top: auto;
    align-self: center;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 100%;
  }
}

.show__frame {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  order: 2;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--header-h) - 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black);
}
/* Fotos empilhadas: a ativa entra por cima com fade e um leve zoom de aproximação.
   O JS controla a ordem (z-index) e esconde as de baixo quando a de cima já cobriu tudo.
   Só opacidade e transform: animações que a placa de vídeo faz sem travar. */
.show__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .55s var(--ease), transform 1.1s var(--ease-out);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.show__frame img.is-shown { opacity: 1; transform: scale(1); }
.show__frame img.no-anim { transition: none; }
html:not(.js) .show__frame img:first-child { opacity: 1; transform: none; }

/* Botão para a galeria, no fim da vitrine de serviços */
.show__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 600px) {
  .show__more .btn { width: 100%; }
}

/* ---------- Faixa Sem Parar ---------- */
.strip { background: var(--bg); border-top: 3px solid var(--accent); }
.strip__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 28px;
}
/* O oval branco fica no invólucro: com border-radius na própria imagem,
   o navegador recortava os cantos da logo */
.strip__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 112px;
  height: 84px;
  border-radius: 50%;
  background: var(--white);
}
.strip__logo { width: 62px; height: auto; }
.strip__text { flex: 1; }
.strip h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; font-stretch: var(--condensed); text-transform: uppercase; }
.strip p { margin-top: 4px; color: var(--muted); }

/* ---------- Estrutura: planta ---------- */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.plan__lead { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: 1.05rem; }
.plan__lead strong { color: var(--text); }

.plan__facts { margin-top: 36px; border-bottom: 1px solid var(--line-strong); }
.plan__facts li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  cursor: default;
  outline-offset: -2px;
}
.plan__facts strong {
  font-size: 1.55rem;
  font-weight: 800;
  font-stretch: var(--condensed);
  letter-spacing: -.02em;
  transition: color .25s;
}
.plan__facts span { color: var(--muted); }
.plan__facts li.is-hot strong { color: var(--accent); }

.plan__drawing {
  margin: 0;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.plan__drawing svg { display: block; width: 100%; height: auto; color: var(--black); overflow: visible; }
.plan__drawing text {
  fill: var(--black);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  font-stretch: var(--condensed);
  text-anchor: middle;
  transition: fill .25s, opacity .6s var(--ease);
}
.plan__drawing text.small { font-size: 14px; font-weight: 500; font-stretch: var(--condensed); fill: var(--gray-600); }
.plan__drawing .street { fill: var(--gray-600); }
.draw {
  fill: none;
  stroke: var(--black);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.draw--street { stroke: var(--gray-600); stroke-width: 1.5; }
.zone__fill { fill: var(--accent); opacity: 0; transition: opacity .3s; }
.zone.is-hot .zone__fill { opacity: .13; }
.zone.is-hot text { fill: var(--accent); }
.booth-mark { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.plan__drawing .booth-mark + text.small { fill: var(--accent); }
.plan__drawing figcaption { margin-top: 12px; color: var(--gray-600); font-size: .82rem; }

/* ---------- Como funciona: trilho ---------- */
.track {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.track::before,
.track::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
}
.track::before { background: var(--line-strong); }
.track::after {
  background: var(--accent-text);
  transform: scaleX(var(--progress));
  transform-origin: left;
}
.track__step { position: relative; z-index: 1; }
.track__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--subtle);
  font-size: 1.1rem;
  font-weight: 800;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.track__step.is-reached .track__dot { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.track__step h3 { font-size: 1.3rem; font-weight: 700; font-stretch: var(--condensed); }
.track__step p { margin-top: 10px; max-width: 30ch; color: var(--muted); font-size: .97rem; }

/* ---------- Clientes ---------- */
/* Um tópico por linha: o nome da categoria à esquerda, as logos à direita */
.clients { border-bottom: 1px solid var(--line-strong); }
.clients__group {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.clients__label {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  font-stretch: var(--condensed);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.clients__logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.clients__logos li {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
/* As logos têm proporções muito diferentes: limita largura e altura para equilibrar */
.clients__logos img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.channels { margin-top: 36px; border-bottom: 1px solid var(--line-strong); }
.channels a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
}
.channels .icon { width: 24px; height: 24px; color: var(--accent); }
.channels span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 600; transition: color .2s; }
.channels small { color: var(--muted); font-size: .85rem; font-weight: 400; }
.channels a:hover span { color: var(--accent); }

.form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form__title { margin-bottom: 24px; font-size: 1.9rem; font-weight: 600; font-stretch: var(--condensed); text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.optional { color: var(--subtle); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field select option { background: var(--white); color: var(--black); }
.field ::placeholder { color: var(--subtle); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .1);
}
.field.has-error input { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.field__error { color: var(--black); font-size: .82rem; font-weight: 600; }
.field__error:empty { display: none; }
.form__note { margin-top: 14px; color: var(--muted); font-size: .82rem; text-align: center; }

.map {
  margin-top: clamp(48px, 6vw, 72px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 8;
  background: var(--surface-2);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(56px, 8vw, 88px); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 18px; max-width: 300px; color: var(--muted); font-size: .93rem; }
.footer h4 { margin-bottom: 16px; font-size: 1rem; font-weight: 700; font-stretch: var(--condensed); letter-spacing: 0; }
.footer li { margin-bottom: 10px; color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.footer li a { transition: color .2s; }
.footer li a:hover { color: var(--accent-text); }
.footer li strong { color: var(--text); }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .2s, color .2s, background-color .2s;
}
.social a:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.social .icon { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .85rem;
}
.to-top { display: inline-block; margin-block: -11px; padding-block: 11px; transition: color .2s; }
.to-top:hover { color: var(--accent-text); }

/* Crédito de desenvolvimento */
.footer__end { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 32px; }
.credit { display: inline-flex; align-items: center; gap: 12px; }
.credit__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-size: .82rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .2s, transform .2s var(--ease);
}
.credit__badge:hover { background: var(--gray-300); transform: translateY(-1px); }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease), background-color .3s;
}
.fab .icon { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.08); background: #1EBE5A; }

/* ==========================================================================
   Movimento (só com JS ativo; desligado em prefers-reduced-motion)
   ========================================================================== */

/* 1. O portão dá uma frestinha ao carregar, deixando a luz escapar */
.is-loaded .door { animation: peek 1.1s var(--ease-out) .3s both; }
@keyframes peek { from { translate: 0 0; } to { translate: 0 -5%; } }

/* 2. Com o portão subindo, a fachada ganha luz: do escuro para a luz do dia */
.js .hero__photo { filter: brightness(.15) saturate(.2); }
.hero.is-lit .hero__photo { animation: dia 1.6s var(--ease) .2s forwards; }
@keyframes dia {
  0% { filter: brightness(.15) saturate(.2); }
  100% { filter: brightness(1) saturate(1); }
}

/* 3. "Bem-vindo." é pintado por uma passada de tinta */
.js .paint > span { color: transparent; }
.js .paint > span::after {
  content: "";
  position: absolute;
  inset: .06em -.04em;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}
.hero.is-open .paint > span { animation: ink .01s linear forwards; animation-delay: .42s; }
.hero.is-open .paint > span::after { animation: spray .84s var(--ease) forwards; }
.js .hero__lead,
.js .hero__actions { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero.is-open .hero__lead { opacity: 1; transform: none; transition-delay: .7s; }
.hero.is-open .hero__actions { opacity: 1; transform: none; transition-delay: .85s; }

@keyframes ink { to { color: var(--text); } }
@keyframes spray {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.01% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* 4. A planta se desenha */
.js .plan__drawing .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.js .plan__drawing text,
.js .plan__drawing .booth-mark,
.js .plan__drawing .hatch { opacity: 0; transition: opacity .6s var(--ease); }
.plan__drawing.is-drawn .draw { stroke-dashoffset: 0; }
.plan__drawing.is-drawn text,
.plan__drawing.is-drawn .booth-mark,
.plan__drawing.is-drawn .hatch { opacity: 1; transition-delay: 1.1s; }
.plan__drawing .zone:nth-of-type(2) .draw { transition-delay: .2s; }
.plan__drawing .zone:nth-of-type(3) .draw { transition-delay: .4s; }
.plan__drawing .zone:nth-of-type(4) .draw { transition-delay: .6s; }
.plan__drawing .draw--street { transition-delay: .8s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .dash { grid-template-columns: repeat(2, 1fr); }
  .dash__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .dash__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .clients__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Desktop estreito: menu mais compacto para caber numa linha */
@media (min-width: 901px) and (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav__list { gap: 18px; }
  .brand__text small { display: none; }
}

/* Entre 901 e 1180px a planta divide a tela e encolhe: rótulos maiores */
@media (min-width: 901px) and (max-width: 1180px) {
  .plan__drawing text { font-size: 26px; }
  .plan__drawing text.small { font-size: 20px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1.9rem;
    font-weight: 800;
    font-stretch: var(--condensed);
    line-height: 1.1;
  }
  .nav__list a:hover,
  .nav__list a.is-active { color: var(--accent-text); }
  .nav__list a::after { display: none; }
  .brand { position: relative; z-index: 2; }
  body.menu-open { overflow: hidden; }

  /* minmax(0, 1fr): sem isso o e-mail longo impõe largura mínima e estoura a tela em 320px */
  .show,
  .plan,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .clients__group { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }

  .js .hero { height: 190svh; }
  /* Tela vertical: puxa o enquadramento para a esquerda, onde está a placa da Continental */
  .hero__photo { object-position: 24% center; }
  .hero__scene::before {
    background:
      linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 16%),
      linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,0) 66%);
  }

  /* No celular a foto abre dentro do serviço tocado (o JS move o quadro para lá) */
  .show__frame { position: relative; top: auto; order: 0; aspect-ratio: 4 / 5; max-height: 70vh; }
  .show__panel .show__frame { width: 100%; margin-bottom: 16px; }
  .show__panel p { padding-left: 0; }

  .track { grid-template-columns: 1fr; gap: 36px; }
  .track::before,
  .track::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .track::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .track__step { padding-left: 76px; min-height: 48px; }
  .track__dot { position: absolute; left: 0; top: 0; margin: 0; }

  .map { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .brand__text small { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .dash__item { padding-right: 12px; }
  .dash__item + .dash__item { padding-left: 12px; }
  .dash__item:nth-child(3) { padding-left: 0; }
  .odo { font-size: 1.45rem; }
  .strip__inner { flex-wrap: wrap; }
  .strip__inner .btn { flex: 1 1 100%; }
  .plan__facts li { grid-template-columns: 1fr; gap: 2px; }
  /* O SVG encolhe com a tela: rótulos maiores em unidades do desenho para continuarem legíveis */
  .plan__drawing { padding: 12px; }
  .plan__drawing text { font-size: 34px; }
  .plan__drawing text.small { font-size: 26px; }
  .plan__drawing .booth-mark + text.small { display: none; }
  .clients__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .clients__logos li { height: 88px; padding: 14px 16px; }
  .clients__logos img { max-height: 52px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  /* Sem animação: sem portão, a oficina aparece aberta e iluminada */
  .js .hero { height: auto; }
  .js .hero__stage { position: relative; }
  .js .door { display: none; }
  .js .hero__photo { filter: none; }
  .js .hero__lead,
  .js .hero__actions { opacity: 1; transform: none; }
  .js .paint > span { color: inherit; }
  .js .paint > span::after { display: none; }
  .js .plan__drawing .draw { stroke-dashoffset: 0; }
  .js .plan__drawing text,
  .js .plan__drawing .booth-mark,
  .js .plan__drawing .hatch { opacity: 1; }
}
