/* ==========================================================================
   Metallis — folha de estilos
   Todos os valores vêm de specs/design.md. Mobile-first.
   Índice: 0 Fontes · 1 Tokens · 2 Base · 3 Layout · 4 Componentes · 5 Cabeçalho
           6 Topo · 7 Seções · 8 Rodapé · 9 Movimento · 10 Preferências do usuário
   ========================================================================== */

/* 0. FONTES ---------------------------------------------------------------- */
/* Arquivos locais em assets/fonts/ (subconjunto latino, cobre o português). */
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fira-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-condensed-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fira-sans-condensed-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Paleta: preto, aço e branco (design.md §2) */
  --black-950: #0B0C0D;
  --black-900: #17191B;
  --black-800: #2E3135;
  --steel-700: #4A4F55;
  --steel-500: #686D75;
  --steel-400: #8E959D;
  --steel-300: #B4B9C0;
  --steel-200: #D9DDE1;
  --steel-100: #E4E6E9;
  --steel-50: #F2F3F4;
  --white: #FFFFFF;
  --ink: #2A2D31;
  --zinc-gradient: linear-gradient(135deg, #E6E9EC, #8E959D);

  /* Verde do WhatsApp: única cor saturada da interface, só nos botões de WhatsApp
     (decisão de 2026-11-19). Tom escurecido para o texto branco passar no contraste (4,8:1). */
  --wa-green: #0C8540;
  --wa-green-hover: #0A6E35;

  /* Tipografia (design.md §3) */
  --font-head: "Fira Sans Condensed", "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.5rem, 1.671rem + 3.536vw, 4.5rem);    /* 40 → 72 */
  --fs-h2: clamp(1.875rem, 1.409rem + 1.989vw, 3rem);         /* 30 → 48 */
  --fs-h3: clamp(1.3125rem, 1.183rem + 0.552vw, 1.625rem);    /* 21 → 26 */
  --fs-lead: clamp(1.125rem, 1.073rem + 0.221vw, 1.25rem);    /* 18 → 20 */
  --fs-body: clamp(1rem, 0.974rem + 0.11vw, 1.0625rem);       /* 16 → 17 */
  --fs-small: 0.875rem;
  --fs-eyebrow: clamp(0.8125rem, 0.787rem + 0.11vw, 0.875rem);/* 13 → 14 */
  --fs-stat: clamp(2.75rem, 2.232rem + 2.21vw, 4rem);         /* 44 → 64 */

  /* Espaçamentos (design.md §4) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container: 1200px;
  --gutter: 20px;
  --section-y: var(--space-8);
  --head-gap: var(--space-6);
  --grid-gap: var(--space-4);
  --header-h: 60px;

  /* Bordas e raios (design.md §5) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

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

  /* Tema claro (padrão) */
  --bg: var(--white);
  --fg: var(--ink);
  --title: var(--black-950);
  --muted: var(--steel-500);
  --border: var(--steel-100);
  --border-strong: var(--steel-200);
  --surface: var(--white);
  --icon-bg: var(--steel-100);
  --icon-fg: var(--black-950);
  --focus: var(--black-950);
  --btn-bg: var(--black-950);
  --btn-fg: var(--white);
  --btn-hover: var(--steel-700);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-y: var(--space-9);
    --head-gap: var(--space-7);
    --grid-gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
    --section-y: var(--space-10);
    --header-h: 72px;
  }
}

/* Tema escuro: aplicado a blocos pretos */
.theme-dark {
  --bg: var(--black-950);
  --fg: var(--steel-300);
  --title: var(--white);
  --muted: var(--steel-400);
  --border: var(--black-800);
  --border-strong: var(--steel-700);
  --surface: var(--black-900);
  --icon-bg: var(--black-900);
  --icon-fg: var(--steel-400);
  --focus: var(--white);
  --btn-bg: var(--white);
  --btn-fg: var(--black-950);
  --btn-hover: var(--steel-200);
  color: var(--fg);
}

/* 2. BASE ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  /* Barra de rolagem da página nas cores da paleta (aço sobre preto) */
  scrollbar-color: var(--steel-400) var(--black-950);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title);
  font-family: var(--font-head);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
  max-width: 65ch;
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--black-950);
  color: var(--white);
}

.theme-dark ::selection {
  background: var(--white);
  color: var(--black-950);
}

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

.sprite {
  position: absolute;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  color: var(--black-950);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.section {
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}

.section--steel {
  --bg: var(--steel-50);
}

.section--band {
  padding-block: calc(var(--section-y) / 2);
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--head-gap);
}

.section__head h2 + p,
.section__head p + p {
  margin-top: var(--space-4);
}

/* Chamada de orçamento no meio da página (fim de Processo e da Galeria).
   Separada do conteúdo por um filete e um respiro maior que o da grade. */
.inline-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.inline-cta__text {
  max-width: 34rem;
  color: var(--title);
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

.inline-cta .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .inline-cta .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .inline-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .inline-cta .btn {
    flex: none;
  }
}

/* Ajuda curta abaixo do texto de apoio de uma seção */
.section__note {
  color: var(--muted);
  font-size: var(--fs-small);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--zinc-gradient);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

@media (min-width: 768px) {
  .grid--services,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

/* Título à esquerda, imagem à direita (Como trabalhamos, Diferenciais) */
.split {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--head-gap);
}

.split .section__head {
  margin-bottom: 0;
}

.split__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.split__media picture,
.split__media img {
  width: 100%;
  height: 100%;
}

.split__media img {
  object-fit: cover;
}

/* Versão com vídeo em loop (Diferenciais). O vídeo é vertical e as peças
   sendo pintadas ficam à esquerda e abaixo do centro dele. A posição desce
   o recorte até as peças, e uma ampliação leve (ancorada na borda
   esquerda, para não abrir faixa vazia) puxa as peças e o jato de tinta para o centro da moldura. */
.split__media--video {
  position: relative;
}

.split__media--video img,
.loop-video {
  object-position: 50% 50%;
  transform: scale(1.35);
  transform-origin: 0% 50%;
}

.loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}

.split__media--video.is-playing .loop-video {
  opacity: 1;
}

/* Vídeo do controle de qualidade: já sai recortado em 4:3 no medidor de
   camada, então ocupa a moldura inteira, sem ampliação. */
.split__media--qualidade img,
.split__media--qualidade .loop-video {
  object-position: 50% 50%;
  transform: none;
}

/* Bloco espelhado (Diferenciais: qualidade). Texto antes do vídeo no
   celular; no computador o vídeo vai para a esquerda. */
.split--reverse {
  margin-top: var(--head-gap);
  margin-bottom: 0;
}

.feature-card--solo h3 {
  font-size: var(--fs-h3);
}

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

  .split__media {
    aspect-ratio: 16 / 9;
  }

  .split__media--video {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-7);
    align-items: end;
    margin-bottom: var(--space-8);
  }

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

  .split--reverse {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    margin-top: var(--space-8);
    margin-bottom: 0;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

/* 4. COMPONENTES ----------------------------------------------------------- */
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

/* Marcador de dado pendente (CLAUDE.md) */
.todo {
  display: inline-block;
  padding: 2px var(--space-2);
  border: 1px dashed currentColor;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Botões (design.md §6) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px var(--space-5);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

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

/* Botões de WhatsApp: verde em qualquer fundo */
.btn--primary[data-wa] {
  background: var(--wa-green);
  color: var(--white);
}

.btn--primary[data-wa]:hover {
  background: var(--wa-green-hover);
}

.btn--sm {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 56px;
  padding: var(--space-4);
}

@media (min-width: 480px) {
  .btn--lg {
    padding-inline: 28px;
    font-size: 1.0625rem;
  }
}

.btn__arrow {
  transition: transform .2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.link {
  color: var(--title);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-thickness .2s ease;
}

.link:hover {
  text-decoration-thickness: 2px;
}

/* Botão de contorno (ações que não são orçamento, como "Avaliar no Google") */
.btn--outline {
  border-color: var(--title);
  background: transparent;
  color: var(--title);
}

.btn--outline:hover {
  background: var(--title);
  color: var(--bg);
}

/* Faixa do Instagram no fim da Galeria (desde 2026-11-26): ícone de linha,
   texto e botão de contorno. Só leva ao perfil; não há feed embutido. */
.insta-strip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3) var(--space-3);
  margin-top: var(--space-6);
}

.insta-strip__icon {
  width: 28px;
  height: 28px;
  color: var(--icon-fg);
}

.insta-strip__text {
  color: var(--title);
  font-weight: 600;
}

.insta-strip__handle {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.insta-strip .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 768px) {
  .insta-strip {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: var(--space-4);
  }

  .insta-strip .btn {
    grid-column: auto;
  }

  .insta-strip__handle {
    display: inline;
    margin-left: var(--space-2);
  }
}

/* Avaliações do Google (desde 2026-11-26). Estrelas em preto/aço, sem
   amarelo: a única cor saturada da interface continua sendo o verde do WhatsApp. */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--title);
}

.stars .icon {
  width: 18px;
  height: 18px;
}

.stars--rating {
  position: relative;
}

.stars--rating .stars__base,
.stars--rating .stars__fill {
  display: inline-flex;
  gap: 4px;
}

.stars--rating .icon {
  width: 22px;
  height: 22px;
}

.stars--rating .stars__base {
  color: var(--steel-200);
}

.stars--rating .stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}

.reviews-top {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--head-gap);
}

.reviews-top .section__head {
  margin-bottom: 0;
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.reviews-score__num {
  color: var(--title);
  font-family: var(--font-head);
  font-size: clamp(3rem, 2.4rem + 2.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.reviews-score__count {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--fs-small);
}

.review figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  margin: 0;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.review blockquote {
  margin: 0;
  color: var(--title);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.review figcaption {
  margin-top: auto;
  color: var(--title);
  font-weight: 600;
}

.review figcaption span {
  color: var(--muted);
  font-weight: 400;
}

.reviews-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--steel-200);
}

.reviews-actions__text {
  max-width: 34rem;
}

.reviews-actions__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

@media (min-width: 768px) {
  .reviews-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .reviews-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-7);
  }
}

/* Legenda sobre foto */
.service-card__photo figcaption,
.gallery figcaption,
.split__media figcaption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: var(--space-1) 10px;
  border-radius: var(--radius-sm);
  background: rgb(11 12 13 / .8);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Card de serviço (design.md §7) */
.service {
  transition: filter .2s ease;
}

.service:hover {
  filter: drop-shadow(0 8px 24px rgb(0 0 0 / .08));
}

.service-card {
  --chamfer: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface);
  /* Canto superior direito chanfrado: eco do chevron do logo */
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transition: border-color .2s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 2;
  width: calc(var(--chamfer) * 1.4142 + 2px);
  height: 1px;
  background: var(--border);
  transform-origin: 100% 0;
  transform: translateY(calc(var(--chamfer) + 1px)) rotate(45deg);
}

.service:hover .service-card {
  border-color: var(--border-strong);
}

.service-card__media {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--space-1);
  aspect-ratio: 4 / 3;
}

.service-card__photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--steel-100);
}

/* A foto preenche a moldura sem esticar a altura do card */
.service-card__photo picture {
  position: absolute;
  inset: 0;
}

.service-card__photo img {
  width: 100%;
  height: 100%;
}

.service-card__photo img {
  object-fit: cover;
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
}

.service-card__body .btn {
  margin-top: auto;
}

.service-card__body p:last-of-type {
  margin-bottom: var(--space-3);
}

@media (min-width: 1024px) {
  .service-card__body {
    padding: var(--space-6);
  }
}

/* Mercados: lista tipográfica (nome grande à esquerda, exemplo à direita),
   para quebrar o ritmo de grades de cards da página. Sem fotos por mercado
   ainda (design.md §7). */
.market-list {
  border-top: 1px solid var(--steel-200);
}

.market-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--steel-200);
}

.market-row .icon {
  color: var(--steel-500);
}

.market-row h3 {
  font-size: clamp(1.75rem, 1.38rem + 1.58vw, 2.75rem); /* 28 → 44 */
  font-weight: 700;
  line-height: 1.05;
}

.market-row p {
  grid-column: 2;
  color: var(--muted);
}

@media (min-width: 768px) {
  .market-row {
    grid-template-columns: 40px minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--space-6);
    padding-block: var(--space-6);
  }

  .market-row .icon {
    width: 40px;
    height: 40px;
  }

  .market-row p {
    grid-column: 3;
    max-width: 34rem;
  }
}

/* Card de diferencial: ícone de linha ao lado do título, sem quadradinho */
.feature-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-3);
  row-gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.feature-card__icon {
  display: block;
  color: var(--icon-fg);
}

.feature-card__icon .icon {
  width: 24px;
  height: 24px;
}

.feature-card p {
  grid-column: 1 / -1;
}

/* Etapas do processo */
.steps {
  display: grid;
}

.step {
  position: relative;
  padding: 0 0 var(--space-6) var(--space-6);
  border-left: 1px solid var(--border);
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel-400);
}

.step__num {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--steel-300);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-bottom: var(--space-1);
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(6, 1fr);
  }

  .step,
  .step:last-child {
    padding: var(--space-6) var(--space-5) 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .step::before {
    top: -4px;
    left: 0;
  }

  .step__num {
    font-size: 2.5rem;
  }
}

/* Faixa de números (oculta até haver dados reais) */
.stats {
  display: grid;
  gap: var(--space-6);
}

.stat__num {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgb(255 255 255 / .35);
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 6px 20px rgb(0 0 0 / .28);
  transition: opacity .2s ease, transform .2s var(--ease), visibility .2s, background-color .2s ease;
}

.wa-float:hover {
  background: var(--wa-green-hover);
}

.wa-float:focus-visible {
  outline-color: var(--black-950);
  box-shadow: 0 0 0 2px var(--white), 0 6px 20px rgb(0 0 0 / .28);
}

.wa-float .icon {
  width: 26px;
  height: 26px;
}

.js .wa-float {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.js .wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 5. CABEÇALHO ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}

.site-header.is-solid,
html:not(.js) .site-header {
  border-bottom-color: var(--black-800);
  background: var(--black-950);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

/* Logo oficial. O filtro #logo-branco (no index.html) deixa a imagem branca com fundo transparente. */
.brand__logo {
  width: auto;
  height: 32px;
  filter: url(#logo-branco);
}

.site-footer .brand__logo {
  height: 44px;
}

@media (min-width: 1024px) {
  .brand__logo {
    height: 40px;
  }
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 26px;
  height: 26px;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

html:not(.js) .menu-toggle {
  display: none;
}

/* Menu: tela cheia preta no celular e no tablet */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-6);
  overflow-y: auto;
  background: var(--black-950);
  opacity: 0;
  visibility: hidden;
  /* Ao fechar, some depois do esmaecer; ao abrir, aparece na hora (o foco depende disso) */
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility 0s;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__list a {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--black-800);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
}

.site-nav__cta {
  margin-top: auto;
  min-height: 52px;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 28px;
  }

  .site-nav__list a {
    padding: var(--space-3) 0;
    border-bottom: 0;
    color: var(--steel-300);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: underline 2px transparent;
    text-underline-offset: 8px;
    transition: color .2s ease, text-decoration-color .2s ease;
  }

  .site-nav__list a:hover,
  .site-nav__list a[aria-current="true"] {
    color: var(--white);
  }

  .site-nav__list a[aria-current="true"] {
    text-decoration-color: var(--white);
  }

  .site-nav__cta {
    margin-top: 0;
    min-height: 44px;
  }
}

/* 6. TOPO ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  min-height: 85vh;
  min-height: max(85svh, 560px);
  overflow: hidden;
  background: var(--black-950);
  isolation: isolate;
}

.hero__inner {
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + var(--space-7));
  padding-bottom: 76px; /* reserva a faixa do botão de pausa */
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero .eyebrow {
  color: var(--steel-200);
}

.hero .lead {
  max-width: 34rem;
  color: var(--steel-200);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-6);
}

.hero__actions .btn {
  width: 100%;
}

/* Provas curtas do topo: texto corrido com separador em losango, sem borda,
   para não parecer botão. */
.hero__proofs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
}

.hero__proofs li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--steel-200);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.hero__proofs li + li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--steel-400);
  transform: rotate(45deg);
}

/* Vídeo da placa como fundo de tela cheia, escurecido, em todas as telas.
   Na tela em pé aparece só a faixa central do vídeo horizontal. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--black-900);
}

.hero__media picture,
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__poster,
.hero__video {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__video {
  opacity: 0;
  transition: opacity .6s ease;
}

.hero__media.is-playing .hero__video {
  opacity: 1;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* A placa é clara: o escurecimento é forte para o texto manter o contraste */
  background: linear-gradient(180deg,
    rgb(11 12 13 / .8) 0%,
    rgb(11 12 13 / .7) 24%,
    rgb(11 12 13 / .86) 56%,
    rgb(11 12 13 / .97) 100%);
  pointer-events: none;
}

.video-toggle {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--steel-400);
  border-radius: 50%;
  background: rgb(11 12 13 / .6);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s ease;
}

.video-toggle:hover {
  background: var(--black-950);
}

.video-toggle .icon {
  width: 20px;
  height: 20px;
}

.video-toggle__play,
.video-toggle.is-paused .video-toggle__pause {
  display: none;
}

.video-toggle.is-paused .video-toggle__play {
  display: block;
}

@media (min-width: 480px) {
  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero__media::after {
    background:
      linear-gradient(90deg, rgb(11 12 13 / .86) 0%, rgb(11 12 13 / .8) 55%, rgb(11 12 13 / .45) 100%),
      linear-gradient(180deg, rgb(11 12 13 / .5) 0%, transparent 30%, rgb(11 12 13 / .8) 100%);
  }
}

/* Computador: mesmo fundo de tela cheia; texto à esquerda, centralizado na altura.
   O lado esquerdo é mais escuro (texto) e a placa aparece mais à direita. */
@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
    min-height: min(90svh, 940px);
  }

  .hero__inner {
    align-items: center;
    padding-top: calc(var(--header-h) + var(--space-6));
    padding-bottom: var(--space-8);
  }

  .hero__media::after {
    background:
      linear-gradient(90deg, rgb(11 12 13 / .9) 0%, rgb(11 12 13 / .82) 50%, rgb(11 12 13 / .3) 82%, rgb(11 12 13 / .18) 100%),
      linear-gradient(180deg, rgb(11 12 13 / .5) 0%, transparent 28%, transparent 70%, rgb(11 12 13 / .6) 100%);
  }
}

/* 7. SEÇÕES ---------------------------------------------------------------- */
/* A fábrica */
.about {
  display: grid;
  gap: var(--space-6);
}

.about__main,
.about__detail {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--steel-100);
}

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

.about__detail {
  margin-top: var(--space-6);
  aspect-ratio: 16 / 9;
}

.about__main picture,
.about__main img,
.about__detail picture,
.about__detail img {
  width: 100%;
  height: 100%;
}

.about__main img,
.about__detail img {
  object-fit: cover;
}

.about__text .section__head {
  margin-bottom: var(--space-5);
}

.about__text > p + p {
  margin-top: var(--space-4);
}

@media (min-width: 1024px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* Galeria: faixa deslizante no celular, grade a partir do tablet */
.container--bleed {
  padding-right: 0;
}

.gallery {
  display: flex;
  gap: var(--space-3);
  padding: 0 var(--gutter) var(--space-3) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-300) transparent;
}

.gallery__item {
  flex: 0 0 70%;
  max-width: 320px;
  scroll-snap-align: start;
}

.gallery figure {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--steel-100);
}

.gallery picture,
.gallery img {
  width: 100%;
  height: 100%;
}

.gallery img {
  object-fit: cover;
}

@media (min-width: 768px) {
  .container--bleed {
    padding-right: var(--gutter);
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    padding: 0;
    overflow: visible;
  }

  .gallery__item {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-4);
  }
}

/* Chamada final */
.section--cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Linhas diagonais finas: eco do chevron do logo (design.md §1) */
.section--cta::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(46%, 560px);
  background: repeating-linear-gradient(135deg, transparent 0 23px, rgb(142 149 157 / .16) 23px 24px);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
  pointer-events: none;
}

.cta {
  display: grid;
  grid-template-areas: "head" "ficha" "foot";
  gap: var(--space-6);
}

.cta__head { grid-area: head; max-width: 40rem; }
.cta__ficha { grid-area: ficha; }
.cta__foot { grid-area: foot; }

@media (min-width: 1024px) {
  .cta {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "head ficha" "foot ficha";
    grid-template-rows: auto 1fr;
    column-gap: var(--space-8);
    row-gap: 0;
    align-items: start;
  }
}

.cta h2 {
  font-size: clamp(2.25rem, 1.525rem + 3.094vw, 4rem); /* 36 → 64 */
  font-weight: 700;
  line-height: 1.04;
}

.cta .lead {
  margin-top: var(--space-5);
}

.cta__actions {
  margin: 0 0 var(--space-5);
}

@media (min-width: 1024px) {
  .cta__actions {
    margin-top: var(--space-6);
  }
}

.cta__note {
  color: var(--muted);
  font-size: var(--fs-small);
}

.cta__note a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.cta__note a:hover {
  text-decoration-thickness: 2px;
}

/* Ficha do orçamento: o roteiro do WhatsApp em forma de placa, com o canto
   chanfrado dos cards de serviço e a numeração das etapas do processo. */
.cta__ficha {
  --chamfer: 18px;
  position: relative;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--black-800);
  background: var(--black-900);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}

.cta__ficha::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: calc(var(--chamfer) * 1.4142 + 2px);
  height: 1px;
  background: var(--black-800);
  transform-origin: 100% 0;
  transform: translateY(calc(var(--chamfer) + 1px)) rotate(45deg);
}

.cta__ficha-title {
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

.cta__ficha-sub {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
}

.cta__ficha-list {
  margin-top: var(--space-5);
  counter-reset: ficha;
}

.cta__ficha-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--black-800);
  counter-increment: ficha;
}

.cta__ficha-list li::before {
  content: counter(ficha, decimal-leading-zero);
  grid-row: span 2;
  color: var(--steel-400);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.cta__ficha-list li > span:first-child {
  color: var(--white);
  font-weight: 600;
}

.cta__ficha-hint {
  color: var(--muted);
  font-size: var(--fs-small);
}

.cta__ficha-foot {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
}

@media (min-width: 768px) {
  .cta__ficha { padding: var(--space-7) var(--space-6); }

  .cta__ficha-list li {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .cta__ficha-list li::before { grid-row: auto; }
  .cta__ficha-hint { text-align: right; }
}

.cta__actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .cta__actions .btn {
    width: auto;
  }
}

/* 8. RODAPÉ ---------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--black-800);
  background: var(--black-950);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-7) var(--space-6);
}

.site-footer__brand p {
  max-width: 22rem;
  margin-top: var(--space-4);
}

.site-footer__title {
  margin-bottom: var(--space-4);
  color: var(--steel-400);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__list {
  display: grid;
  gap: 10px;
}

.site-footer__list p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
}

.site-footer__label {
  min-width: 6.25em;
  color: var(--steel-400);
}

.site-footer__list a {
  display: inline-block;
  padding-block: 2px;
  overflow-wrap: anywhere;
  color: var(--white);
  text-decoration: underline 1px transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}

.site-footer__list a:hover {
  text-decoration-color: var(--white);
}

.site-footer__bottom {
  margin-top: var(--space-7);
  color: var(--steel-400);
  font-size: var(--fs-small);
}

.site-footer__bottom p {
  max-width: none;
  padding-top: var(--space-5);
  /* espaço para o botão flutuante não cobrir o texto */
  padding-right: 72px;
  border-top: 1px solid var(--black-800);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  }
}

/* 9. MOVIMENTO (design.md §10) --------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Entrada do topo: só CSS, não depende de JavaScript */
  .hero__content > * {
    animation: rise .5s var(--ease) both;
  }

  .hero__content > :nth-child(2) { animation-delay: 60ms; }
  .hero__content > :nth-child(3) { animation-delay: 120ms; }
  .hero__content > :nth-child(4) { animation-delay: 180ms; }
  .hero__content > :nth-child(5) { animation-delay: 240ms; }

  /* Entrada ao rolar: a classe "reveal-on" é posta pelo JavaScript */
  .reveal-on .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  .reveal-on .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* 10. PREFERÊNCIAS DO USUÁRIO ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .wa-float,
  .video-toggle {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .wa-float,
  .video-toggle,
  .hero__video {
    display: none !important;
  }
}
