/* ============================================================
   GRUPO DISTRITAL — styles.css
   Fonte de verdade visual: specs/design.md
   Stack: CSS puro, mobile-first. Breakpoints: 640px / 1024px
   ============================================================ */

/* ---------- 1. Fontes (General Sans — Fontshare, licença FFL) ---------- */
@font-face {
  font-family: "General Sans";
  src: url("../assets/fonts/GeneralSans-Variable.woff2") format("woff2-variations");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Marca (imutável) */
  --amber-500: #FDB813;
  --brown-900: #35190C;
  --white: #FFFFFF;
  /* Apoio derivado */
  --amber-600: #E9A200;
  /* Âmbar profundo: única variante permitida como TEXTO/ícone sobre fundo claro.
     #8A5A00 = 5.93:1 sobre branco (AA). O âmbar de marca é preenchimento, não texto. */
  --amber-ink: #8A5A00;
  --amber-100: #FEF1CE;
  --brown-800: #452414;
  --brown-700: #5A3A28;
  --ink: #35190C;
  --muted: #6E5F54;
  --surface: #F7F4F0;
  --border: #E9E3DC;
  --success: #2E7D32;
  --error: #C0392B;
  /* Sobre escuro */
  --on-dark-muted: #D8CCC2;
  /* Raios */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(53, 25, 12, .06);
  --shadow-md: 0 12px 32px rgba(53, 25, 12, .10);
  /* Tipografia */
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.4rem, 6vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.55rem);
  --fs-body-l: 1.125rem;
  --fs-small: .875rem;
  --fs-overline: .8125rem;
  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.75rem, 9vw, 7.5rem);
  --header-h: 76px;
}

/* ---------- 3. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
/* O reset cobre ol também: as listas ordenadas do site (passos, migalhas) já
   trazem a numeração pelo desenho — o marcador padrão duplicava o número e o
   recuo de 40px do navegador desalinhava a lista do resto da seção. */
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--amber-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: var(--amber-500); }
::selection { background: var(--amber-100); color: var(--ink); }

/* Link de pular conteúdo */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brown-900); color: var(--white);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200; text-decoration: none; font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Utilitários ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.overline {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-overline); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--brown-700); margin-bottom: 1rem;
}
.overline::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: var(--amber-500);
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.soft { color: var(--muted); font-weight: 600; }
.lead { font-size: var(--fs-body-l); color: var(--muted); max-width: 62ch; }
.on-dark .lead, .band .lead { color: var(--on-dark-muted); }
.hero .lead, .page-hero .lead { color: #EFE6DE; }

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--amber-500); color: var(--brown-900); }
.btn--primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--brown-900); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--brown-900); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--brown-900); border-color: var(--white); }
.btn--lg { min-height: 54px; padding: 1rem 2.1rem; font-size: 1.05rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
.link-arrow .u { background-image: linear-gradient(var(--amber-500), var(--amber-500));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  transition: background-size .25s ease; padding-bottom: 2px; }
.link-arrow:hover .u { background-size: 100% 2px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 40px; }
.nav-list { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white); cursor: pointer;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex; gap: clamp(1rem, 2.5vw, 2.25rem);
    margin-left: auto; align-items: center;
  }
  .nav-list a {
    text-decoration: none; font-weight: 500; font-size: .975rem;
    color: var(--ink); padding: .5rem 0; position: relative;
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 2px; border-radius: 2px;
    background: var(--amber-500); transform: scaleX(0);
    transform-origin: left; transition: transform .22s ease;
  }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { display: inline-flex; }
}

/* ---------- 6b. Submenu "Serviços" (desktop) ---------- */
.has-sub { position: relative; display: none; }
@media (min-width: 1024px) { .has-sub { display: block; } }

.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; cursor: pointer;
  font-weight: 500; font-size: .975rem; color: var(--ink);
  padding: .5rem 0; position: relative;
}
.nav-sub-toggle::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--amber-500); transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.has-sub:hover .nav-sub-toggle::after,
.nav-sub-toggle[aria-expanded="true"]::after,
.nav-sub-toggle[aria-current="true"]::after { transform: scaleX(1); }
.nav-caret { transition: transform .2s ease; flex: none; }
.nav-sub-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: calc(100% + .5rem); left: -1rem;
  min-width: 17rem; z-index: 120;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  display: none;
}
.has-sub:hover .nav-sub,
.nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: block; }
/* ponte invisível: o mouse atravessa o vão sem fechar o menu */
.has-sub::after {
  content: ""; position: absolute; top: 100%; left: 0;
  width: 100%; height: .75rem;
}
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block; padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500;
  text-decoration: none; color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.nav-sub a::after { display: none; } /* anula o sublinhado do .nav-list a */
.nav-sub a:hover { background: var(--amber-100); }
.nav-sub a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.nav-sub-all {
  border-top: 1px solid var(--border);
  margin-top: .4rem; padding-top: .4rem;
}
.nav-sub-all a { color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) {
  .nav-caret, .nav-sub-toggle::after { transition: none; }
}

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 150; display: none;
}
.drawer.is-open { display: block; }
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(53, 25, 12, .5);
  border: 0; padding: 0; cursor: pointer; width: 100%; height: 100%;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(20rem, 86vw); background: var(--white);
  padding: 1.25rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  animation: drawer-in .28s ease forwards;
}
@keyframes drawer-in { to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-head img { height: 34px; width: auto; }
.drawer-close {
  width: 48px; height: 48px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-panel nav { display: flex; flex-direction: column; }
.drawer-panel nav a {
  text-decoration: none; font-weight: 500; font-size: 1.1rem;
  padding: .85rem .25rem; border-bottom: 1px solid var(--border);
}
/* Lista de serviços aninhada no drawer — sempre visível, sem interação */
.drawer-sub-label {
  font-size: var(--fs-overline); font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 1rem .25rem .35rem;
}
.drawer-panel nav .drawer-sub { display: flex; flex-direction: column; }
.drawer-panel nav .drawer-sub a {
  font-size: 1rem; font-weight: 400; color: var(--muted);
  padding: .65rem .25rem .65rem 1rem;
  border-bottom: 0;
  border-left: 2px solid var(--border);
}
.drawer-panel nav .drawer-sub a[aria-current="page"] {
  color: var(--ink); font-weight: 500; border-left-color: var(--amber-500);
}
.drawer-panel nav .drawer-sub + a { border-top: 1px solid var(--border); }
.drawer-panel .btn { margin-top: 1.25rem; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; background: var(--brown-900); color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(76deg, rgba(53, 25, 12, .95) 25%, rgba(53, 25, 12, .74) 60%, rgba(53, 25, 12, .48) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(3rem, 7vw, 5.5rem);
  max-width: 46rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white); border-radius: var(--radius-pill);
  padding: .45rem 1.05rem; font-size: var(--fs-small); font-weight: 500;
  margin-bottom: 1.5rem; backdrop-filter: blur(4px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); }
.hero h1 { font-size: var(--fs-display); margin-bottom: .5em; }
.hero h1 .hl { color: var(--amber-500); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-stats {
  position: relative; z-index: 1; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255, 255, 255, .16);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.stat {
  background: rgba(53, 25, 12, .82); backdrop-filter: blur(6px);
  padding: 1.35rem 1.25rem; text-align: center;
}
.stat b {
  display: block; font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700; color: var(--amber-500); line-height: 1.05;
  letter-spacing: -.02em; white-space: nowrap;
}
/* "+" de ligação em GO+DF: menor e discreto, sem quebrar o alinhamento óptico */
.stat b i { font-style: normal; font-size: .62em; margin: 0 .12em; opacity: .8; vertical-align: .1em; }
.stat > span {
  display: block; color: var(--on-dark-muted); font-size: var(--fs-small);
  margin-top: .35rem; line-height: 1.3;
}
.stat b span { font-size: inherit; color: inherit; letter-spacing: inherit; }
/* Telas estreitas: menos respiro lateral para os rótulos caberem em 1 linha */
@media (max-width: 400px) { .stat { padding-inline: .7rem; } }
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding-inline: 1rem; }
}
@media (min-width: 1024px) { .stat { padding: 1.6rem 1.25rem; } }

/* ---------- 8. Faixa de logos (prova social) ---------- */
.logos { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.logos-title {
  text-align: center; font-size: var(--fs-small); font-weight: 500;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1.75rem;
}
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}
.logos-row img {
  height: 44px; width: auto;
  filter: grayscale(1); opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
.logos-row img:hover { filter: grayscale(0); opacity: 1; }
@media (min-width: 1024px) { .logos-row img { height: 52px; } }

/* ---------- 9. Cards de benefício ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .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); }
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .975rem; }
.icon-disc {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber-100); color: var(--brown-900);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.icon-disc svg { width: 26px; height: 26px; }

/* ---------- 10. Serviços (grade numerada) ---------- */
.services-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .services-layout { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .services-side { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.services-side img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.services-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  position: relative; display: block; text-decoration: none;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.4rem 1.5rem 1.3rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber-500); }
.service-card .num {
  font-size: var(--fs-small); font-weight: 600; color: var(--amber-ink);
  letter-spacing: .06em;
}
.service-card h3 { font-size: 1.08rem; margin: .3em 0 .25em; }
.service-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- 11. Segmentos ---------- */
.segment {
  display: flex; align-items: center; gap: .9rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}
.segment:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.segment .icon-disc { width: 44px; height: 44px; margin: 0; flex: none; }
.segment .icon-disc svg { width: 22px; height: 22px; }

/* ---------- 12. Como trabalhamos ---------- */
.steps-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .steps-layout { grid-template-columns: 6fr 6fr; gap: 4.5rem; } }
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative; padding: 1.4rem 0 1.4rem 4.1rem;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.35rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber-100); color: var(--brown-900);
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.15rem; margin-bottom: .25em; }
.step p { color: var(--muted); margin: 0; font-size: .975rem; }
.steps-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.steps-photos img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.steps-photos img:nth-child(2) { margin-top: 2.25rem; }

/* ---------- 13. Estrutura (strip rolável) ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 340px);
  gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img {
  border-radius: var(--radius-md); aspect-ratio: 3 / 2;
  object-fit: cover; width: 100%; box-shadow: var(--shadow-sm);
}
.strip figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: .6rem; }

/* ---------- 13b. Carrossel "stories" (seção Estrutura própria) ----------
   Cards verticais 3:4 com legenda sobre a foto. Rolagem livre (sem snap),
   arrastar com o mouse via js/main.js. Nomes próprios (.story*) para não
   colidir com nada existente. */
.stories { position: relative; }
.stories-track {
  display: flex; gap: 1rem;
  margin: 0; padding: .5rem .5rem 1.5rem;
  /* compensa o padding para o 1º card alinhar com o texto da seção */
  margin-inline: -.5rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.stories-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.stories-track.is-dragging .story { transform: none; box-shadow: none; }
.stories-track::-webkit-scrollbar { height: 8px; }
.stories-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.stories-track::-webkit-scrollbar-thumb:hover { background: var(--brown-700); }

.story {
  position: relative; flex: 0 0 auto;
  width: clamp(200px, 58vw, 260px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.story:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }

.story-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* impede o arrastar-imagem nativo de atrapalhar o arrastar-para-rolar */
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}

/* Overlay marrom (design.md §8) — forte o bastante para o texto passar em AA */
.story-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(53, 25, 12, .95) 0%,
    rgba(53, 25, 12, .88) 32%,
    rgba(53, 25, 12, .30) 62%,
    rgba(53, 25, 12, 0) 100%
  );
}

.story-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  z-index: 1;
}
.story-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--amber-500);
  margin-bottom: .4rem;
}
.story-tag::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px;
  background: var(--amber-500);
}
/* ".story-info p" venceria ".story-cap" por especificidade — por isso o escopo. */
.story-info .story-cap {
  margin: 0; color: var(--white);
  font-size: .975rem; font-weight: 500; line-height: 1.35;
}

@media (min-width: 1024px) {
  .story { width: 260px; }
  .stories-track { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .story:hover { transform: none; }
}

/* ---------- 14. Faixa escura +40 anos + CTA ---------- */
.band {
  position: relative; background: var(--brown-900); color: var(--white);
  overflow: hidden;
}
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(53, 25, 12, .95) 15%, rgba(53, 25, 12, .82) 100%);
}
.band-inner {
  position: relative; z-index: 1;
  padding-block: var(--section-y);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 1024px) { .band-inner { grid-template-columns: auto 1fr auto; gap: 3.5rem; } }
.band .band-number {
  font-size: clamp(4.5rem, 10vw, 7.5rem); font-weight: 700;
  color: var(--amber-500); line-height: .95; letter-spacing: -.02em;
  max-width: none;
}
.band-number small { display: block; font-size: 1rem; font-weight: 500; color: var(--on-dark-muted); letter-spacing: 0; margin-top: .5rem; }
.band h2 { margin-bottom: .4em; }
.band p { color: var(--on-dark-muted); margin: 0; max-width: 46ch; }

/* ---------- 15. Contato / formulário ---------- */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 7fr 5fr; gap: 4.5rem; } }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); padding: .8rem .95rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brown-700); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-600);
  box-shadow: 0 0 0 3px var(--amber-100);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field-error { display: none; color: var(--error); font-size: var(--fs-small); margin-top: .35rem; }
.field.is-invalid .field-error { display: block; }
/* ".field label" tem especificidade maior, então o seletor precisa ser mais forte
   que ele — senão o checkbox e o texto não ficam lado a lado. */
.field label.consent {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: var(--fs-small); font-weight: 400; color: var(--muted);
  margin-bottom: 0; cursor: pointer;
}
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: .1rem; flex: none; accent-color: var(--amber-600); }
/* Campo isca anti-robô: fora da tela, sem display:none (robôs ignoram o que está oculto) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none; border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  font-size: .95rem; font-weight: 500; margin-top: 1rem;
}
.form-status.is-error { display: block; background: #FDECEA; color: var(--error); }
.form-status.is-success { display: block; background: #EAF4EB; color: var(--success); }
.contact-aside { display: grid; gap: 1.25rem; align-content: start; }
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.info-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .5em; }
.info-card h3 svg { color: var(--amber-ink); flex: none; }
.info-card p { color: var(--muted); font-size: .95rem; margin: 0 0 .35em; }
.info-card a { color: var(--ink); font-weight: 500; text-decoration-color: var(--amber-500); }
.contact-aside > img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--brown-900); color: var(--on-dark-muted); }
.footer-main {
  display: grid; gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (min-width: 640px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 30ch; }
.site-footer h4 {
  color: var(--white); font-size: .95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.site-footer li { margin-bottom: .55rem; font-size: .95rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--amber-500); }

/* Botões de rede social — escopados em .site-footer de propósito.
   `.site-footer a:hover` (0-2-1) empata com `.footer-social a:hover` e, vindo
   depois, venceria: o glifo virava âmbar sobre fundo âmbar (invisível). */
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.site-footer .footer-social li { margin-bottom: 0; }
.site-footer .footer-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--brown-700); border-radius: var(--radius-pill);
  color: var(--on-dark-muted);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  background: var(--amber-500); border-color: var(--amber-500); color: var(--brown-900);
}
/* o anel de foco é âmbar e o botão focado também fica âmbar: afasta o anel
   para o marrom do rodapé aparecer entre os dois e o foco continuar visível */
.site-footer .footer-social a:focus-visible { outline-offset: 4px; }

.footer-bottom {
  border-top: 1px solid var(--brown-700);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: var(--fs-small);
}

/* ---------- 17. Páginas internas ---------- */
.page-hero {
  background: var(--brown-900); color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative; overflow: hidden;
}
.page-hero .overline { color: var(--on-dark-muted); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { margin: 0; }

/* ---------- 17b. Migalhas de pão ---------- */
.crumbs { position: relative; z-index: 1; margin-bottom: 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.crumbs li { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-small); }
.crumbs li + li::before { content: "›"; color: var(--brown-700); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber-500); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--white); font-weight: 500; }

/* ---------- 17c. FAQ (usa <details> nativo — sem JS) ---------- */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--amber-500); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1.15rem 1.35rem; cursor: pointer;
  font-weight: 500; font-size: 1.05rem; line-height: 1.4;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: .35rem;
  width: 11px; height: 11px;
  border-right: 2px solid var(--amber-ink);
  border-bottom: 2px solid var(--amber-ink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:focus-visible { outline: 3px solid var(--amber-600); outline-offset: -3px; }
.faq .faq-a { padding: 0 1.35rem 1.35rem; color: var(--muted); margin: 0; }
.faq .faq-a p { margin: 0 0 .75rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- 17d. Serviços relacionados ---------- */
.rel-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber-500); }
.rel-card strong { font-size: 1.05rem; color: var(--ink); }
.rel-card span { font-size: .92rem; color: var(--muted); }

/* Blocos alternados (Serviços) */
.service-block {
  display: grid; gap: 2rem; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: 0; }
@media (min-width: 1024px) {
  .service-block { grid-template-columns: 6fr 6fr; gap: 4.5rem; }
  .service-block--flip .service-block-media { order: 2; }
}
.service-block-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.service-block-media--icon {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: var(--amber-100);
  display: flex; align-items: center; justify-content: center;
}
.service-block-media--icon svg { width: 96px; height: 96px; color: var(--brown-900); }
.service-block .num {
  font-weight: 600; color: var(--amber-ink); letter-spacing: .06em;
  font-size: var(--fs-small);
}
.service-block h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: .3em; }
.service-block p { color: var(--muted); }
.check-list { display: grid; gap: .6rem; margin-top: 1.25rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .975rem; }
.check-list svg { flex: none; color: var(--amber-ink); margin-top: .2rem; }

/* Galeria */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img {
  border-radius: var(--radius-md); aspect-ratio: 4 / 3;
  object-fit: cover; width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery figure:hover img { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: .5rem; }

/* Trabalhe conosco */
.tc-hero-layout { display: grid; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .tc-hero-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.tc-hero-layout img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.btn--whatsapp svg { width: 22px; height: 22px; }

/* ---------- 17b. Banner de consentimento (LGPD) ---------- */
/* Atenção: NÃO usar a classe ".consent" aqui — ela já pertence ao label
   de LGPD do formulário (seção 15). Este banner usa ".cookie-consent". */
.cookie-consent {
  position: fixed; z-index: 180;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: var(--brown-900); color: var(--white);
  border: 1px solid var(--brown-700);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(53, 25, 12, .35);
  padding: 1.25rem;
  display: grid; gap: 1rem;
  animation: cookie-in .3s ease both;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
.cookie-consent p { margin: 0; font-size: .95rem; color: var(--on-dark-muted); line-height: 1.55; }
.cookie-acoes { display: flex; gap: .65rem; flex-wrap: wrap; }
.cookie-acoes .btn { flex: 1 1 auto; min-height: 46px; padding-inline: 1.25rem; }
/* "Recusar" precisa de contorno claro sobre o fundo escuro */
.cookie-consent .btn--outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.cookie-consent .btn--outline:hover { background: var(--white); color: var(--brown-900); border-color: var(--white); }
.cookie-consent :focus-visible { outline-color: var(--amber-500); }
@media (min-width: 768px) {
  .cookie-consent {
    left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 27rem;
    padding: 1.5rem;
  }
  .cookie-acoes .btn { flex: 0 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .cookie-consent { animation: none; } }

/* ---------- 18. Animações (reveal) ----------
   Escopadas em .js: sem JavaScript o conteúdo aparece normalmente (nunca fica invisível). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .42s; }
.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .49s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* Âncoras não escondem sob o header sticky */
section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
