/* KPC Flooring — site novo. Dono: DC (rodada revisão Evandro 05/10/2026; antes D3). Mobile-first, sem framework,
   sem requisição externa.
   Paleta = cores do site atual kpcflooring.com, aprovadas antes pelo cliente (decisão 2.1, 05/10/2026), medidas por
   print headless (evidencias/site-build/revisao-evandro-2026-10-05/paleta/): carvão #141A1C (header/rodapé),
   branco, cinza #DDDDDD/#F0F0F0, bronze #AE8F73/#BFA37C (#188bf6 é padrão do construtor: ignorado).
   Bronze claro NÃO é texto sobre branco (3,01:1 / 2,40:1): texto e links em fundo claro usam o bronze escuro #765C44
   (6,20:1); o bronze #AE8F73 é fundo de botão em contexto escuro com texto carvão (5,84:1) e detalhe decorativo.
   Contrastes calculados (WCAG 2.x) na tabela do README. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-variable.woff2') format('woff2');
}

:root {
  --c-char: #141A1C;       /* carvão do site atual: header, títulos, texto, botão em fundo claro */
  --c-char-900: #0C1315;   /* carvão profundo do site atual (--color-llzhl8lp): rodapé, barra fixa */
  --c-char-800: #1E2528;   /* painel do menu, hover */
  --c-char-700: #2A3033;   /* subtítulo, hover do botão claro */
  --c-bronze: #AE8F73;     /* bronze do site atual: fundo de botão em contexto escuro, detalhes (nunca texto em claro) */
  --c-bronze-300: #BFA37C; /* bronze claro do site atual: texto/detalhe sobre carvão (7,32:1) */
  --c-bronze-700: #765C44; /* bronze escurecido (mesmo matiz): links e destaques em fundo claro (6,20:1 / 5,44:1) */
  --c-gray: #DDDDDD;       /* cinza do site atual: linhas, faixas */
  --c-gray-100: #F0F0F0;   /* cinza claro do site atual (--color-llzhlxa5): seções alternadas, herói interno */
  --c-silver: #C9C9C9;     /* texto secundário sobre carvão profundo (11,33:1) */
  --c-text: #141A1C;
  --c-muted: #4A4F52;      /* texto secundário em claro (8,30:1 / 7,28:1) */
  --c-line: #DDDDDD;
  --c-white: #FFFFFF;

  --grad-brand: linear-gradient(135deg, #0C1315 0%, #141A1C 55%, #2A3033 100%);
  --grad-deep: linear-gradient(160deg, #0C1315 0%, #141A1C 60%, #1E2528 100%);

  /* contexto claro (padrão) */
  --btn-bg: var(--c-char);
  --btn-fg: var(--c-white);
  --btn-bg-h: var(--c-char-700);
  --focus: var(--c-char);
  --link: var(--c-bronze-700);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 26, 28, .06), 0 8px 24px rgba(20, 26, 28, .08);
  --shadow-h: 0 2px 4px rgba(20, 26, 28, .08), 0 16px 36px rgba(20, 26, 28, .14);
  --header-h: 68px;
  --sticky-h: 0px;
  --gutter: 20px;
  --hb-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.10' stroke-width='1.4'%3E%3Cpath d='M0 0 24 12v12L0 12zM24 12 48 0v12L24 24z'/%3E%3C/g%3E%3C/svg%3E");
  --hb-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23AE8F73' stroke-opacity='.30' stroke-width='1.4'%3E%3Cpath d='M0 0 24 12v12L0 12zM24 12 48 0v12L24 24z'/%3E%3C/g%3E%3C/svg%3E");
}

/* contextos escuros (carvão): header, primeira dobra da home, faixa de prova, CTA final, rodapé, barra fixa —
   botão bronze com texto carvão (5,84:1; hover bronze claro 7,32:1) */
.site-header, .hero-home, .section-dark, .section-cta, .site-footer, .sticky-call {
  --btn-bg: var(--c-bronze);
  --btn-fg: var(--c-char);
  --btn-bg-h: var(--c-bronze-300);
  --focus: var(--c-bronze-300);
  --link: var(--c-bronze-300);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  font-feature-settings: 'cv11', 'ss01';
  padding-bottom: var(--sticky-h);
}
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--c-char); margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.05rem, 1.35rem + 3.2vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 780; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--c-white); color: var(--c-char); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-h);
}
.skip-link:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-call { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.btn-call:hover { background: var(--btn-bg-h); color: var(--btn-fg); transform: translateY(-1px); }
.btn-call .icon { flex: none; width: 20px; height: 20px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-char); color: var(--c-white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; border-radius: 6px; }
.brand .logo { display: block; height: 46px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-call { min-height: 44px; padding: 10px 14px; font-size: .95rem; }
.header-call .hc-num { display: none; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: transparent; color: var(--c-white); border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.js .menu-toggle { display: inline-flex; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 14px;
  color: var(--c-white); text-decoration: none; font-weight: 600; font-size: 1rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; border-radius: 10px;
}
.nav-link:hover { background: rgba(255, 255, 255, .08); color: var(--c-white); }
.nav-link[aria-current="page"], .sub-toggle.is-current { box-shadow: inset 3px 0 0 var(--c-bronze); }
.caret {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 4px; transition: transform .2s ease;
}
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }
.subnav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px 8px 28px;
  color: var(--c-gray-100); text-decoration: none; border-radius: 8px;
}
.subnav a:hover { background: rgba(255, 255, 255, .08); color: var(--c-white); }
.subnav a[aria-current="page"] { color: var(--c-white); font-weight: 700; box-shadow: inset 3px 0 0 var(--c-bronze); }
.subnav-all a { font-weight: 700; }

/* menu do celular (com JS): painel abaixo do header */
@media (max-width: 1023.98px) {
  .js .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-char-800); border-top: 1px solid rgba(255, 255, 255, .1);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 20px; box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
  }
  .js .primary-nav.is-open { display: block; }
  .js .subnav { display: none; padding: 2px 0 8px; }
  .js .sub-toggle[aria-expanded="true"] + .subnav { display: block; }
  .nav-item + .nav-item { border-top: 1px solid rgba(255, 255, 255, .08); }
  /* sem JS: navegação visível, em linha, abaixo do logo */
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .primary-nav { order: 3; width: 100%; padding-bottom: 8px; }
  .no-js .nav-list { display: flex; flex-wrap: wrap; }
  .no-js .nav-item + .nav-item { border-top: 0; }
  .no-js .nav-link { width: auto; }
  .no-js .subnav { display: none; }
  .no-js .has-sub:focus-within .subnav, .no-js .has-sub:hover .subnav { display: block; width: 100%; }
}
@media (min-width: 480px) {
  .header-call .hc-num { display: inline; }
}
@media (min-width: 1024px) {
  :root { --header-h: 78px; --gutter: 32px; }
  .brand .logo { height: 56px; }
  .menu-toggle, .js .menu-toggle { display: none; }
  .primary-nav { margin-left: auto; }
  .header-actions { margin-left: 8px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-item { position: relative; }
  .nav-link { width: auto; min-height: 44px; padding: 8px 12px; font-size: .95rem; white-space: nowrap; }
  .nav-link[aria-current="page"], .sub-toggle.is-current { box-shadow: inset 0 -3px 0 var(--c-bronze); border-radius: 10px 10px 4px 4px; }
  .subnav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; z-index: 60;
    background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-h); padding: 8px;
    border: 1px solid var(--c-line);
  }
  .sub-toggle[aria-expanded="true"] + .subnav,
  .no-js .has-sub:hover .subnav, .no-js .has-sub:focus-within .subnav { display: block; }
  .subnav a { color: var(--c-char); padding: 8px 14px; font-weight: 550; }
  .subnav a:hover { background: var(--c-gray-100); color: var(--c-char); }
  .subnav a[aria-current="page"] { color: var(--c-char); box-shadow: inset 3px 0 0 var(--c-char); background: var(--c-gray-100); }
  .subnav a:focus-visible { outline-color: var(--c-char); }
  .subnav-all { border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 6px; }
  .header-call { padding: 10px 18px; }
}
@media (min-width: 1024px) and (max-width: 1160px) {
  .nav-link { padding: 8px 9px; font-size: .9rem; }
  .header-call .hc-word { display: none; }
}

/* ---------- herói (comum) ----------
   Ordem no DOM (render.mjs): .hero-top (eyebrow, H1, subtítulo) → .hero-media (foto/grade) → .hero-bottom (botão de
   ligação, nota, intro, checks). Celular/tablet: uma coluna nessa ordem (padrão Gatto 01/10: foto entre subtítulo e
   botões). Desktop: grid areas (foto na coluna direita nas internas; fundo inteiro na home). */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "media" "bottom" "art"; }
.hero-top { grid-area: top; }
.hero-media { grid-area: media; }
.hero-bottom { grid-area: bottom; }
.hero-art { grid-area: art; }
.hero-top > :last-child, .hero-bottom > :last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-bronze-700);
}
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--c-bronze); }
.hero h1 { margin-bottom: .3em; }
.hero-sub { font-size: clamp(1.1rem, 1.02rem + .45vw, 1.35rem); line-height: 1.45; font-weight: 550; color: var(--c-char-700); margin: 0 0 .9em; max-width: 44ch; }
.hero-intro { max-width: 62ch; margin: 0 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 22px 0 16px; }
.hero-meta { margin: 0; font-size: .9rem; color: var(--c-muted); }
.rating-line { margin: 0 0 14px; font-weight: 650; font-size: .98rem; }
.rating-line .stars { color: var(--c-bronze-700); font-size: 1.1em; }
.rating-line a { color: inherit; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-points li { position: relative; padding-left: 26px; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.hero-points li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; border-radius: 50%;
  background: var(--c-gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z' fill='%23765C44'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero-media .media { border-radius: var(--radius-lg); }
.hero-media { margin: 18px 0 4px; }

/* ---------- primeira dobra da home (carvão) ---------- */
.hero-home { background: var(--grad-deep); color: var(--c-white); padding: 40px 0 48px; }
.hero-home::before {
  content: ''; position: absolute; inset: 0; background-image: var(--hb-light); background-size: 48px 24px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.hero-home .wrap { position: relative; }
.hero-home h1 { color: var(--c-white); }
.hero-home .eyebrow { color: var(--c-bronze-300); }
.hero-home .eyebrow::before { background: var(--c-bronze-300); }
.hero-home .hero-sub { color: var(--c-gray); }
.hero-home .hero-intro { color: var(--c-gray); }
.hero-home .hero-meta { color: var(--c-gray); }
.hero-home .rating-line { color: var(--c-white); }
.hero-home .rating-line .stars { color: var(--c-bronze-300); }
.hero-home .hero-points li { color: var(--c-white); }
.hero-home .hero-points li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z' fill='%23BFA37C'/%3E%3C/svg%3E"); }
.hero-art { display: none; }
.hero-home .hero-art {
  display: block; position: relative; margin-top: 30px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #2A3033 0%, #6E5640 70%, #AE8F73 100%); aspect-ratio: 16 / 7;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.hero-home .hero-art::after {
  content: ''; position: absolute; inset: 12% 10% 22%;
  background: url('/assets/img/logo/logo-hero.png') center / contain no-repeat;
  background-image: image-set(url('/assets/img/logo/logo-hero.webp') type('image/webp'), url('/assets/img/logo/logo-hero.png') type('image/png'));
}
.hero-home .hero-art::before {
  content: 'Built \2018 Floor\2019  you!'; position: absolute; left: 0; right: 0; bottom: 7%; z-index: 1;
  text-align: center; color: var(--c-white); font-weight: 750; font-size: clamp(.95rem, .8rem + .6vw, 1.25rem); letter-spacing: .01em;
}
.hb-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-art rect { fill: rgba(255, 255, 255, .10); }
/* com foto — decisão de Evandro de 06/10 (substitui o "layout dividido" da segunda rodada): foto de FUNDO inteiro
   (patamar de escada do site atual), crop da posição (desktop ~16/9, celular retrato), leve desfoque (1,5 px) +
   sobreposição carvão; texto por cima, em todas as larguras. Contraste no PIOR caso (pixel branco do rodapé da escada
   sob a camada): α ≥ 0,80 sob o texto → branco 9,28:1 · #DDDDDD 6,84:1 · borda do botão bronze 3,08:1.
   Eyebrow em #E8E8E8 (o bronze claro daria só 3,87:1 sobre a foto). */
.hero-home.has-bg { background: var(--c-char); isolation: isolate; }
.hero-home.has-bg .wrap { position: static; }
.hero-home.has-bg .hero-top, .hero-home.has-bg .hero-bottom { position: relative; z-index: 2; }
.hero-home.has-bg .hero-media { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; }
.hero-home.has-bg .hero-media .media { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: var(--c-char); }
.hero-home.has-bg .hero-media .media img { object-fit: cover; object-position: var(--fp-m); filter: blur(var(--hero-blur, 1.5px)); transform: scale(1.04); }
.hero-home.has-bg::before {
  display: block; z-index: 1; -webkit-mask-image: none; mask-image: none; background-image: none;
  background: rgba(20, 26, 28, .80);
}
.hero-home.has-bg .eyebrow { color: #E8E8E8; }
.hero-home.has-bg h1, .hero-home.has-bg .hero-sub, .hero-home.has-bg .hero-intro { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
@media (min-width: 600px) { .hero-home.has-bg .hero-media .media img { object-position: var(--fp-t); } }
@media (min-width: 1024px) {
  .hero-home { padding: 84px 0 96px; background: var(--grad-brand); }
  .hero-home .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "top art" "bottom art"; column-gap: 56px; align-items: center; }
  .hero-home .hero-top { align-self: end; }
  .hero-home .hero-bottom { align-self: start; }
  .hero-home .hero-art { margin-top: 0; aspect-ratio: 1 / 1; background: linear-gradient(150deg, rgba(174, 143, 115, .22), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
  .hero-home .hero-art::after { inset: 18% 12% 26%; }
  .hero-home .hero-art::before { bottom: 12%; }
  /* fundo inteiro no desktop: texto à esquerda sobre camada mais densa (α ≥ 0,80 até 60 % da largura) */
  .hero-home.has-bg { display: flex; align-items: center; min-height: clamp(560px, 76vh, 760px); padding: 72px 0; }
  .hero-home.has-bg .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "bottom"; }
  .hero-home.has-bg .hero-top, .hero-home.has-bg .hero-bottom { max-width: 660px; }
  .hero-home.has-bg .hero-media .media img { object-position: var(--fp-d); }
  .hero-home.has-bg::before { background: linear-gradient(90deg, rgba(20, 26, 28, .88) 0%, rgba(20, 26, 28, .80) 60%, rgba(20, 26, 28, .55) 100%); }
}

/* ---------- herói das páginas internas ---------- */
.hero-inner { background: linear-gradient(180deg, var(--c-gray-100) 0%, var(--c-gray-100) 70%, var(--c-white) 100%); padding: 18px 0 44px; border-bottom: 1px solid var(--c-line); }
.hero-inner::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 560px);
  background-image: var(--hb-dark); background-size: 48px 24px; pointer-events: none;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 85%); mask-image: linear-gradient(270deg, #000 0%, transparent 85%);
}
.hero-inner .wrap { position: relative; z-index: 1; }
.hero-inner .hero-grid { max-width: 820px; }
.hero-inner.has-media .hero-grid { max-width: none; }
.hero-inner .hero-media .media { box-shadow: var(--shadow-h); }
.page-notfound .hero-inner { padding-top: 48px; }
/* grade de fotos do hub (V-P02-GRID): 2 colunas no celular, 3 no desktop */
.hero-photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hero-photo-grid .media { border-radius: 12px; box-shadow: none; }
.hero-inner .hero-photo-grid .media { box-shadow: none; }
@media (min-width: 1024px) {
  .hero-inner { padding: 26px 0 72px; }
  .hero-inner.has-media .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "top media" "bottom media"; column-gap: 56px; }
  .hero-inner.has-media .hero-top { align-self: end; }
  .hero-inner.has-media .hero-bottom { align-self: start; }
  .hero-inner.has-media .hero-media { align-self: center; margin: 0; }
  .hero-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-photo-grid.hg-n4, .hero-photo-grid.hg-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- primeira tela do celular (< 768 px; decisão 2.1, padrão Gatto 01/10/2026) ----------
   Título 38 px, subtítulo 16 px, foto entre subtítulo e botão (16:9; 4:3 se a foto é vertical), botão de ligação
   visível sem rolar em 390×844 acima da barra fixa (tools/check-fold.mjs), checks compactos numa linha/duas. */
@media (max-width: 767.98px) {
  .hero-inner { padding: 6px 0 26px; }
  .hero-home { padding: 18px 0 28px; }
  .hero .breadcrumb { margin-bottom: 2px; font-size: .84rem; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .1em; margin-bottom: 6px; }
  .hero h1 { font-size: 2.375rem; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 8px; }
  .hero-sub { font-size: 1rem; line-height: 1.45; margin-bottom: 0; }
  .hero-media { margin: 12px 0 18px; }
  .hero-inner .hero-media .media { aspect-ratio: 16 / 9; border-radius: 14px; }
  .hero-inner .hero-media .media.is-portrait { aspect-ratio: 4 / 3; }
  .hero-inner .hero-media .media img { object-position: var(--fp-m); }
  .hero-home.has-bg { padding: 22px 0 30px; }
  .hero-photo-grid .media, .hero-photo-grid .media.is-portrait { aspect-ratio: 4 / 3; border-radius: 10px; }
  .hero-photo-grid .hg-item:nth-child(n+5) { display: none; } /* 2×2 compacta: o botão fica dentro de 844 px */
  .hero-actions { margin: 18px 0 10px; gap: 6px 14px; }
  .hero-media + .hero-bottom .hero-actions { margin-top: 0; }
  .hero-home.has-bg .hero-media + .hero-bottom .hero-actions { margin-top: 20px; } /* QA 06d: fundo é absoluto — respiro entre subtítulo e botão */
  .hero-actions .btn-lg { min-height: 54px; }
  .hero-meta { font-size: .8125rem; }
  .rating-line { font-size: .9rem; margin-bottom: 8px; }
  .hero-intro { font-size: .97rem; line-height: 1.55; margin-bottom: 10px; }
  .hero-points { gap: 4px 14px; }
  .hero-points li { font-size: .8125rem; padding-left: 20px; }
  .hero-points li::before { width: 15px; height: 15px; background-size: 11px; }
}

.breadcrumb { margin: 0 0 22px; font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--c-muted); }
.breadcrumb li + li::before { content: '/'; margin: 0 8px; color: var(--c-silver); }
.breadcrumb a { color: var(--c-bronze-700); display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb [aria-current="page"] { color: var(--c-muted); }

/* ---------- imagens (picture de media.mjs; crop por breakpoint via variáveis) ---------- */
.media { display: block; position: relative; overflow: hidden; aspect-ratio: var(--ar-m); background: var(--c-gray-100); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp-m); }
@media (min-width: 600px) { .media { aspect-ratio: var(--ar-t); } .media img { object-position: var(--fp-t); } }
@media (min-width: 1025px) { .media { aspect-ratio: var(--ar-d); } .media img { object-position: var(--fp-d); } }
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  border: 2px dashed var(--c-bronze); border-radius: var(--radius); background: var(--c-gray-100); color: var(--c-char); font-weight: 650;
}
.hero-art .ph { position: absolute; inset: 0; border-radius: 0; z-index: 2; }

/* ---------- seções ---------- */
.section { padding: 56px 0; }
.section.tone-alt { background: var(--c-gray-100); }
.section h2 { max-width: 30ch; }
.section-intro { color: var(--c-muted); font-size: 1.08rem; max-width: 66ch; margin: -4px 0 28px; }
.prose { max-width: 72ch; }
.prose > :last-child { margin-bottom: 0; }
.list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; }
.list li::before {
  content: ''; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 2px;
  background: var(--c-bronze); transform: rotate(45deg);
}
.note {
  margin: 20px 0 0; padding: 14px 18px; border-left: 4px solid var(--c-char); border-radius: 0 10px 10px 0;
  background: var(--c-gray-100); color: var(--c-char); font-size: .98rem;
}
.tone-alt .note { background: var(--c-white); }
.more { margin: 26px 0 0; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-arrow::after { content: '\2192'; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
@media (min-width: 1024px) {
  .section { padding: 88px 0; }
}

/* texto em duas colunas no desktop quando a seção é só texto: título à esquerda */
@media (min-width: 1024px) {
  .section-text > .wrap, .section-split > .wrap:not(:has(.has-media)) { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 0 64px; align-items: start; }
  .section-text > .wrap > h2, .section-split > .wrap:not(:has(.has-media)) > h2 { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--c-gray-100); border-radius: var(--radius); border: 1px solid var(--c-line); }
.tone-alt .step { background: var(--c-white); }
.step h3 { margin-bottom: .35em; font-size: 1.12rem; }
.step p { margin: 0; color: var(--c-text); }
.step-n {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--c-char); color: var(--c-white); font-weight: 800; font-size: 1.05rem;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .step { flex-direction: column; padding: 26px; }
}

/* split */
.split.has-media { display: grid; gap: 28px; }
.split-media .media { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 1024px) {
  .split.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}

/* tabela comparativa */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-white); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.compare thead th { background: var(--c-char); color: var(--c-white); font-weight: 700; font-size: .95rem; }
.compare tbody th { font-weight: 700; color: var(--c-char); background: var(--c-gray-100); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* cards (bloco inteiro clicável: link esticado no título; sem outros controles dentro) */
.cards { display: grid; gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: var(--c-silver); }
.card:focus-within { outline: 3px solid var(--c-char); outline-offset: 3px; }
.card-link { color: var(--c-char); text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card-title { margin: 0 0 8px; font-size: 1.18rem; }
.card-body p { color: var(--c-muted); margin: 0 0 16px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--c-bronze-700); display: inline-flex; gap: 6px; align-items: center; }
.card-more .arrow { transition: transform .15s ease; }
.card:hover .card-more .arrow { transform: translateX(4px); }
.card-media .media { border-radius: 0; }
.card-featured:not(.has-media) .card-body { padding-top: 0; }
.card-featured:not(.has-media)::before {
  content: ''; display: block; height: 92px; margin-bottom: 20px;
  background: var(--hb-light) 0 0 / 48px 24px, var(--grad-brand);
}
.cards-featured .card:nth-child(4n+2):not(.has-media)::before { background: var(--hb-light) 0 0 / 48px 24px, linear-gradient(135deg, #141A1C, #2A3033); }
.cards-featured .card:nth-child(4n+3):not(.has-media)::before { background: var(--hb-light) 0 0 / 48px 24px, linear-gradient(135deg, #2A3033, #765C44); }
.cards-featured .card:nth-child(4n+4):not(.has-media)::before { background: var(--hb-light) 0 0 / 48px 24px, linear-gradient(135deg, #765C44, #AE8F73); }
.card-compact .card-body { padding: 18px 20px; }
.card-compact .card-title { font-size: 1.08rem; }
.card-compact .card-body p { font-size: .97rem; margin-bottom: 12px; }
.tone-alt .card { border-color: transparent; box-shadow: var(--shadow); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .cards-featured { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
  .cards-compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* faixa de prova (escura) */
.section.section-dark { background: var(--grad-deep); color: #E8E8E8; position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; inset: 0; background-image: var(--hb-light); background-size: 48px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.section-dark .wrap { position: relative; }
.section-dark h2 { color: var(--c-white); }
.proof p { max-width: 62ch; }
.proof-line {
  margin: 26px 0 14px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); color: var(--c-white); font-size: 1.2rem; font-weight: 700; line-height: 1.4;
}
.section-dark .rating-line { color: var(--c-gray-100); margin: 0; }
.section-dark .rating-line .stars { color: var(--c-bronze-300); }
@media (min-width: 1024px) {
  .proof { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 64px; align-content: start; }
  .proof > p { grid-column: 1; }
  .proof-aside { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
  .proof .proof-line { margin: 0 0 14px; font-size: 1.35rem; }
  .proof .rating-line { padding-left: 4px; }
}

/* áreas */
.area-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.area-list li {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  background: var(--c-white); border: 1px solid var(--c-line); font-weight: 600; color: var(--c-char);
}
.area-list li::before {
  content: ''; flex: none; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23765C44' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.area-base { font-weight: 500; color: var(--c-muted); font-size: .9em; }
.area-secondary { color: var(--c-muted); margin: 0; }
.tone-alt .area-list li { border-color: transparent; box-shadow: 0 1px 2px rgba(20, 26, 28, .06); }
@media (min-width: 760px) { .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .area-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* CTA no meio da página */
.section-cta-inline { padding: 8px 0; }
.section-cta-inline + .section-cta-inline { padding-top: 0; }
.cta-box {
  display: grid; gap: 14px; padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--c-gray-100); border: 1px solid var(--c-line); position: relative; overflow: hidden;
}
.cta-box::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40%; background-image: var(--hb-dark); background-size: 48px 24px;
  -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; margin: 0; }
.cta-box h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.cta-box .btn { justify-self: start; }
@media (min-width: 900px) {
  .cta-box { grid-template-columns: minmax(0, 1fr) auto; padding: 34px 40px; column-gap: 40px; align-items: center; }
  .cta-box > h2, .cta-box > p { grid-column: 1; }
  .cta-box > .btn { grid-column: 2; grid-row: 1 / span 2; }
}
.section + .section-cta-inline, .section-cta-inline + .section { margin-top: 0; }
.section-cta-inline { padding: 24px 0; }
@media (min-width: 1024px) { .section-cta-inline { padding: 40px 0; } }

/* FAQ */
.section-faq h2 { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 4px;
  cursor: pointer; list-style: none; font-weight: 650; font-size: 1.06rem; color: var(--c-char);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { text-decoration: underline; text-underline-offset: 3px; }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-gray-100); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--c-char); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-icon { background: var(--c-char); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--c-white); }
.faq-a { padding: 0 4px 20px; max-width: 70ch; }
.faq-a > :last-child { margin-bottom: 0; }
.tone-alt .faq-icon { background: var(--c-white); }
.faq-cta {
  margin-top: 30px; padding: 22px 24px; border-radius: var(--radius); background: var(--c-white);
  border: 1px solid var(--c-line); display: grid; gap: 14px;
}
.faq-cta p { margin: 0; }
.faq-cta .btn { justify-self: start; }
@media (min-width: 760px) { .faq-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* relacionados */
.section-related { padding: 48px 0; background: var(--c-white); border-top: 1px solid var(--c-line); }
.section-related h2 { font-size: 1.5rem; }
@media (min-width: 1024px) { .section-related { padding: 64px 0; } }

/* links da 404 */
.section-links { padding: 40px 0; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-list li { border-bottom: 1px solid var(--c-line); }
@media (min-width: 760px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }

/* CTA final */
.section-cta { background: var(--grad-brand); color: var(--c-white); padding: 56px 0; position: relative; overflow: hidden; }
.section-cta::before {
  content: ''; position: absolute; inset: 0; background-image: var(--hb-light); background-size: 48px 24px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%); mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
.cta-final { position: relative; display: grid; gap: 24px; }
.cta-final h2 { color: var(--c-white); margin-bottom: .35em; }
.cta-final p { color: #E8E8E8; max-width: 56ch; margin: 0; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.section-cta .hero-meta { color: var(--c-gray-100); }
@media (min-width: 900px) {
  .section-cta { padding: 76px 0; }
  .cta-final { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .cta-actions { justify-items: end; text-align: right; }
}

/* ---------- rodapé ---------- */
.site-footer { background: var(--c-char-900); color: var(--c-silver); font-size: .97rem; }
.footer-top { display: grid; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
.f-logo { display: inline-block; margin-bottom: 18px; border-radius: 6px; }
.f-logo .logo { display: block; height: 56px; width: auto; }
.f-cta { margin: 0 0 16px; }
.f-line { margin: 0 0 6px; }
.f-head { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-bronze-300); }
.f-col ul { list-style: none; margin: 0 0 24px; padding: 0; }
.f-col li a { display: inline-flex; align-items: center; min-height: 40px; color: #E8E8E8; text-decoration: none; }
.f-col li a:hover { text-decoration: underline; color: var(--c-white); }
.f-areas a { color: var(--c-bronze-300); }
.f-social { list-style: none; display: flex; gap: 8px; margin: 16px 0 0; padding: 0; }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--c-white); background: rgba(255, 255, 255, .08); }
.social:hover { background: rgba(255, 255, 255, .16); color: var(--c-white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; font-size: .9rem; color: var(--c-silver); }
.footer-bottom p { margin: 0; }
@media (min-width: 760px) { .footer-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }

/* ---------- barra fixa de ligação: só no celular, sem cobrir conteúdo ---------- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 19, 21, .97); border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}
.sticky-call .btn { min-height: 52px; font-size: 1.06rem; }
@media (max-width: 767.98px) {
  :root { --sticky-h: calc(72px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .sticky-call { display: none; }
}
body.menu-open .sticky-call { display: none; }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover, .btn-call:hover { transform: none; }
}

@media print {
  .site-header, .sticky-call, .hero-art, .faq-icon { display: none !important; }
  .faq-item .faq-a { display: block; }
}
