/* Zodiak (Fontshare, licença ITF Free Font) e Albert Sans (Google, OFL), em subset latino, servidas pelo próprio site. */
@font-face { font-family: "Zodiak"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/zodiak-300.woff2) format("woff2"); }
@font-face { font-family: "Zodiak"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/zodiak-400.woff2) format("woff2"); }
@font-face { font-family: "Zodiak"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/zodiak-400i.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/albert-sans-normal.woff2) format("woff2"); }

/* Bonna & Rosa Advocacia · tokens gerados por kit2tokens.py — direção 2, hero split, movimento calm
 * acento #aa854a = oklch(63.9% 0.089 78); neutros quentes (matiz 75). Escuros trocados à mão para o marinho do logo (#223f72). Um acento, os neutros derivam dele. */
:root {
  /* color */
  --brand:      oklch(63.9% 0.089 78);
  --brand-deep: oklch(51.9% 0.089 81);   /* hover, links sobre claro */
  --dark:       oklch(27% 0.075 262);   /* bandas escuras, rodapé */
  --dark-2:     oklch(32% 0.08 262);   /* superfície elevada no escuro */
  --dark-3:     oklch(39% 0.085 262);   /* filetes/hover no escuro */
  --tint:       oklch(80% 0.06 71);   /* detalhe claro sobre escuro */
  --paper:      oklch(97.5% 0.007 75);
  --wash:       oklch(93.5% 0.018 71);   /* seção alternada */
  --ink:        oklch(24% 0.05 262);
  --ink-2:      oklch(37.3% 0.094 261);   /* marinho do logo #223f72 */
  --muted:      oklch(48% 0.025 78);
  --rule:       oklch(86% 0.015 75);
  --on-dark:    oklch(96% 0.008 71);
  --on-dark-2:  oklch(78% 0.02 71);
  --focus:      oklch(60% 0.19 78);
  --error:      oklch(52% 0.18 27);
  --ok:         oklch(50% 0.12 152);
  /* degradês: todo escuro do site sai daqui (nunca dois pretos diferentes) */
  --grad-dark: linear-gradient(148deg, oklch(20% 0.06 262) 0%, oklch(27% 0.075 262) 55%, oklch(37.3% 0.094 261) 100%);
  --grad-bar:  linear-gradient(96deg, oklch(37.3% 0.094 261), oklch(63.9% 0.089 78));
  --grad-veil: linear-gradient(180deg, transparent 0%, color-mix(in oklch, var(--dark) 82%, transparent) 100%);
  /* type */
  --font-display: "Zodiak", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", -apple-system, system-ui, sans-serif;
  --text-sm: 0.85rem; --text-base: 1.0625rem; --text-md: 1.3rem; --text-lg: 1.65rem; --text-xl: 2.1rem; --text-2xl: 2.7rem;
  --text-display: clamp(2.6rem, 4.6vw + 1rem, 4.9rem); --text-display-s: clamp(2rem, 3.2vw + 0.9rem, 3.4rem);
  /* space */
  --space-2xs: .25rem; --space-xs: .5rem; --space-sm: .75rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2.5rem; --space-2xl: 4rem; --space-3xl: 6.5rem; --space-4xl: 10rem;
  /* motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); --ease-spring: cubic-bezier(0.25, 0.8, 0.25, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-micro: 160ms; --dur-short: 320ms; --dur-long: 800ms;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-modal: 400;
  --radius: 6px; --radius-s: 3px; --radius-pill: 999px;
}
@media (prefers-reduced-motion: reduce) { :root { --dur-micro: 1ms; --dur-short: 1ms; --dur-long: 1ms; } }

/* Bonna & Rosa Advocacia — site.css. Cores, tipos e tempos vêm de tokens.css (kit2tokens.py). */
:root {
  --nude: oklch(94.5% 0.022 62);        /* o bege da blusa nas fotos */
  --nude-2: oklch(90% 0.032 60);
  --vinho: oklch(34% 0.09 350);         /* a saia vinho das fotos: só em detalhe */
  --gold-text: oklch(50% 0.085 78);     /* dourado legível sobre claro (AA) */
  --wrap: 1180px;
  --topo-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink-2); margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: var(--text-display-s); }
h3 { font-size: var(--text-md); font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.estreito { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-modal); background: var(--ink-2); color: var(--on-dark); padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.eyebrow { display: flex; align-items: center; gap: .5rem; font: italic 400 1.2rem/1.2 var(--font-display); color: var(--gold-text); margin: 0 0 .5rem; }
.eyebrow svg { width: 18px; height: 18px; }
.lede { font-size: var(--text-md); line-height: 1.55; color: var(--muted); max-width: 62ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.4rem;
  border-radius: var(--radius); font: 600 1rem/1.1 var(--font-body); text-decoration: none; border: 1px solid transparent;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short), color var(--dur-short), box-shadow var(--dur-short);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ouro { background: var(--ink-2); color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--brand); }
.btn--ouro:hover { color: var(--on-dark); background: var(--dark); transform: translateY(-2px); box-shadow: inset 0 -3px 0 var(--brand), 0 10px 24px -14px var(--dark); }
.btn--linha { border-color: color-mix(in oklch, var(--ink-2) 35%, transparent); color: var(--ink-2); background: transparent; }
.btn--linha:hover { border-color: var(--ink-2); color: var(--ink-2); transform: translateY(-2px); }

/* ---------- o fio pontilhado (assinatura) ---------- */
.fio { width: min(100%, 520px); height: 14px; margin: .2rem 0 1.4rem; overflow: visible; }
.fio path { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .006 .018; vector-effect: non-scaling-stroke; }
.js .fio path { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out); }
.js .fio.on path { clip-path: inset(0 0 0 0); }

/* ---------- topo: a régua dourada do logo vira uma costura que mede a leitura ---------- */
.topo { position: sticky; top: 0; z-index: var(--z-sticky); height: var(--topo-h); background: color-mix(in oklch, var(--paper) 0%, transparent); transition: background-color var(--dur-short), box-shadow var(--dur-short); }
.topo.solido { background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.topo .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.marca { flex: none; display: block; width: 190px; }
.marca svg { width: 100%; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav a { position: relative; text-decoration: none; color: var(--ink); font-size: .95rem; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 2px dotted var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.falar { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: .55rem .2rem .55rem 1rem; border-left: 1px solid var(--rule); min-height: 44px; }
.falar svg { width: 22px; height: 22px; color: var(--brand-deep); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .2rem; background: none; border: 0; font: 600 .95rem var(--font-body); color: var(--ink-2); cursor: pointer; }
.menu-btn i { position: relative; width: 22px; height: 2px; background: currentColor; transition: transform var(--dur-short) var(--ease-out); }
.menu-btn i::after { content: ""; position: absolute; left: 6px; right: 0; top: 7px; height: 2px; background: var(--brand); transition: transform var(--dur-short) var(--ease-out); }
.menu-btn[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { left: 0; top: 0; transform: rotate(-90deg); background: currentColor; }
.costura { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 3px; overflow: visible; }
.costura path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.js .costura { transform: scaleX(var(--lido, 0)); transform-origin: left; }

.gaveta { position: fixed; inset: var(--topo-h) 0 0; z-index: var(--z-modal); background: var(--paper); padding: 1.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.gaveta[hidden] { display: none; }
.gaveta ul { list-style: none; margin: 0; padding: 0; }
.g-nav a { display: block; font: 400 1.9rem/1.25 var(--font-display); color: var(--ink-2); text-decoration: none; padding: .35rem 0; }
.g-t { margin: .5rem 0 0; font: italic 400 1.1rem var(--font-display); color: var(--gold-text); }
.g-areas a { display: block; padding: .5rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--rule); }
.js .gaveta:not([hidden]) li { animation: subir var(--dur-long) var(--ease-out) both; }
.js .gaveta li:nth-child(2) { animation-delay: 40ms; } .js .gaveta li:nth-child(3) { animation-delay: 80ms; }
.js .gaveta li:nth-child(4) { animation-delay: 120ms; } .js .gaveta li:nth-child(5) { animation-delay: 160ms; }
body.travado { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--topo-h)); padding-top: var(--topo-h); overflow: hidden;
  background: radial-gradient(60% 75% at 72% 30%, oklch(99% 0.006 75) 0%, transparent 70%),
              radial-gradient(45% 60% at 20% 15%, oklch(98% 0.01 70) 0%, transparent 70%),
              linear-gradient(170deg, var(--nude) 0%, var(--nude-2) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 2rem; min-height: min(86vh, 780px); }
.hero-txt { align-self: center; padding: 2rem 0 5rem; }
.hero h1 { font-size: clamp(2.3rem, 2.9vw + 1rem, 4rem); font-weight: 300; margin: 0 0 .25em; }
.hero .sub { font-size: 1.15rem; max-width: 52ch; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.onde { display: flex; gap: .5rem; align-items: center; font-size: .92rem; color: var(--muted); margin: 0; }
.onde svg { width: 18px; height: 18px; flex: none; color: var(--brand-deep); }
.hero-foto { position: relative; margin: 0; align-self: end; justify-self: center; width: min(100%, 580px); }
.hero-foto::before { content: ""; position: absolute; inset: 12% 4% 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0; background: linear-gradient(180deg, oklch(99% 0.006 75), color-mix(in oklch, var(--nude-2) 70%, transparent)); border: 1px dotted color-mix(in oklch, var(--brand) 60%, transparent); }
.hero-foto img { position: relative; width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.hero-foto figcaption { position: absolute; right: -.5rem; bottom: 22%; background: var(--paper); padding: .7rem 1rem; border-left: 3px solid var(--brand); font-size: .85rem; line-height: 1.35; box-shadow: 0 12px 30px -20px var(--dark); }
.hero-foto figcaption strong { display: block; font: 500 1rem var(--font-display); color: var(--ink-2); }
.hero-foto figcaption span { color: var(--muted); }
.onda { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.onda path { fill: var(--paper); }
/* entrada: título por linha, foto sobe; nada fica escondido sem JS */
.js .hero h1, .js .hero .sub, .js .hero .ctas, .js .hero .onde, .js .hero .eyebrow { animation: subir var(--dur-long) var(--ease-out) both; }
.js .hero .eyebrow { animation-delay: 60ms; } .js .hero h1 { animation-delay: 140ms; }
.js .hero .sub { animation-delay: 360ms; } .js .hero .ctas { animation-delay: 460ms; } .js .hero .onde { animation-delay: 540ms; }
.js .hero-foto img { animation: foto 1.2s var(--ease-out) both; }
.js .hero-foto::before { animation: arco 1.4s var(--ease-out) both; transform-origin: bottom; }
.js .hero-foto figcaption { animation: subir var(--dur-long) var(--ease-out) .7s both; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes foto { from { transform: translateY(40px) scale(.98); } }  /* sem opacity: é o LCP */
@keyframes arco { from { transform: scaleY(.6); opacity: 0; } }

/* ---------- seções ---------- */
.secao { padding: var(--space-3xl) 0; position: relative; }
.secao--nude { background: linear-gradient(180deg, var(--nude) 0%, var(--wash) 100%); }
.secao--marinho { background: var(--grad-dark); color: var(--on-dark); }
.secao--marinho h2 { color: var(--on-dark); }
.secao--marinho .eyebrow { color: var(--tint); }
.titulo { max-width: 760px; margin-bottom: var(--space-xl); }
.titulo h2 { font-size: var(--text-display-s); }
.titulo .eyebrow + h2 { margin-top: -.2rem; }

/* atuação */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.area { grid-column: span 2; }
.area:nth-child(4), .area:nth-child(5) { grid-column: span 3; }
.area a { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.5rem 1.4rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short), border-color var(--dur-short); }
.area a::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; border-top: 3px dotted var(--brand); transform: scaleX(.18); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.area a:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--brand) 45%, var(--rule)); box-shadow: 0 22px 40px -30px var(--dark); color: var(--ink); }
.area a:hover::before { transform: scaleX(1); }
.area h3 { font-size: 1.45rem; color: var(--ink-2); margin-bottom: .8rem; }
.area ul { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: .95rem; color: var(--ink-2); }
.area li { padding: .32rem 0 .32rem 1.1rem; position: relative; }
.area li::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--brand-deep); }
.more svg { width: 18px; height: 18px; transition: transform var(--dur-short) var(--ease-out); }
.area a:hover .more svg { transform: translateX(4px); }
.faixa-campanha { margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 1.5rem; border-radius: var(--radius); background: var(--nude); color: var(--ink); text-decoration: none; border-left: 4px solid var(--vinho); }
.faixa-campanha strong { color: var(--vinho); font-weight: 600; }
.faixa-campanha svg { width: 24px; height: 24px; flex: none; color: var(--vinho); transition: transform var(--dur-short) var(--ease-out); }
.faixa-campanha:hover { color: var(--ink); }
.faixa-campanha:hover svg { transform: translateX(5px); }

/* sobre */
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sobre-foto { margin: 0; position: relative; }
.sobre-foto::before { content: ""; position: absolute; inset: 18% -6% 4% 10%; border: 1px dotted var(--brand); border-radius: 46% 46% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); }
.sobre-foto img { position: relative; width: min(100%, 420px); height: auto; margin-inline: auto; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.sobre-txt p { max-width: 60ch; }
.selos { list-style: none; margin: 2rem 0 0; padding: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--rule); }
.selos strong { display: block; font: 500 1.15rem/1.2 var(--font-display); color: var(--ink-2); }
.selos span { font-size: .85rem; color: var(--muted); }

/* avaliações */
.carrossel { position: relative; }
.reviews { align-items: start; list-style: none; margin: 0; padding: .3rem .1rem 1.2rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.review { scroll-snap-align: start; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.3rem; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 1.2rem; position: relative; padding-top: 1.6rem; }
.review blockquote::before { content: "“"; position: absolute; top: -.6rem; left: -.1rem; font: 400 3.4rem/1 var(--font-display); color: var(--brand); }
.review blockquote p { font: 400 1.12rem/1.5 var(--font-display); color: var(--ink-2); margin: 0; }
.who { margin: 0; font-size: .9rem; display: flex; flex-direction: column; border-top: 1px dotted var(--rule); padding-top: .8rem; }
.who span { color: var(--muted); }
.car-ctl { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .4rem; }
.car-ctl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur-short), transform var(--dur-short); }
.car-ctl button:hover { background: var(--nude); }
.car-ctl svg { width: 20px; height: 20px; }
.car-prev svg { transform: rotate(180deg); }

/* exterior */
.exterior { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.exterior p { color: var(--on-dark-2); max-width: 56ch; font-size: 1.08rem; }
.exterior .btn--ouro { background: var(--tint); color: var(--dark); box-shadow: none; }  /* var(--brand) dava 4,43:1 */
.exterior .btn--ouro:hover { background: var(--on-dark); color: var(--dark); }
.rota { width: 100%; max-width: 440px; justify-self: center; overflow: visible; }
.rota path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .008 .02; }
.js .rota path { clip-path: inset(0 100% 0 0); transition: clip-path 2s var(--ease-out); }
.js .rota.on path { clip-path: inset(0 0 0 0); }
.rota circle { fill: var(--tint); }
.rota text { fill: var(--on-dark-2); font: 500 13px var(--font-body); letter-spacing: .06em; }

/* perguntas */
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 1.2rem 2.4rem 1.2rem 0; position: relative; font: 400 1.25rem/1.35 var(--font-display); color: var(--ink-2); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.qa[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.qa > div { padding: 0 0 1.2rem; color: var(--ink); }
.js .qa[open] > div { animation: subir var(--dur-short) var(--ease-out); }

/* contato */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contato-txt h2 { margin-top: -.2rem; }
.canais { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .3rem; }
.canais a { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; text-decoration: none; color: var(--ink); border-bottom: 1px dotted var(--nude-2); min-height: 44px; }
.canais svg { width: 24px; height: 24px; flex: none; color: var(--brand-deep); transition: transform var(--dur-short) var(--ease-out); }
.canais a:hover svg { transform: scale(1.12); }
.canais strong { display: block; font: italic 400 1rem/1.3 var(--font-display); color: var(--gold-text); }
.form { background: #fff; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: 0 30px 60px -45px var(--dark); }
.form h3 { font-size: 1.5rem; }
.form-nota { font-size: .9rem; color: var(--muted); }
.form label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 1rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .35rem; padding: .8rem .9rem; font: 400 1rem var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-s); min-height: 48px; transition: border-color var(--dur-short), box-shadow var(--dur-short); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 25%, transparent); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form-erro { color: var(--error); font-size: .9rem; font-weight: 600; }
.form .btn { width: 100%; }

/* páginas internas */
.cabeca { background: linear-gradient(170deg, var(--nude) 0%, var(--paper) 100%); margin-top: calc(-1 * var(--topo-h)); padding: calc(var(--topo-h) + 3.5rem) 0 2.5rem; }
.cabeca h1 { font-size: var(--text-display-s); max-width: 20ch; }
.trilha { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; padding: 0; font-size: .85rem; color: var(--muted); }
.trilha li + li::before { content: "·"; margin-right: .4rem; color: var(--brand); }
.trilha a { color: var(--muted); }
.texto > * { max-width: 820px; }
.texto > .trilhos { max-width: none; }
.texto h2 { font-size: var(--text-xl); margin-top: 2.6rem; }
.texto h2:first-child { margin-top: 0; }
.trilhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0 1rem; }
.trilho { background: #fff; border: 1px solid var(--rule); border-top: 3px dotted var(--brand); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.trilho h3 { font-size: 1.2rem; }
.trilho p { font-size: .95rem; margin: 0; }
.cta-final { text-align: center; background: var(--grad-dark); color: var(--on-dark); padding: var(--space-2xl) 0; }
.cta-final h2 { color: var(--on-dark); font-size: var(--text-xl); }
.cta-final .btn--ouro { background: var(--tint); color: var(--dark); box-shadow: none; }  /* var(--brand) dava 4,43:1 */
.cta-final .btn--ouro:hover { background: var(--on-dark); color: var(--dark); }

.campanha { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.campanha-foto { margin: 0; position: sticky; top: calc(var(--topo-h) + 2rem); }
.campanha-foto img { border-radius: var(--radius); width: 100%; height: auto; }
.destaque { font: 400 1.35rem/1.5 var(--font-display); color: var(--vinho); border-left: 3px solid var(--vinho); padding-left: 1.2rem; }
.lista-ouro { padding-left: 1.2rem; } .lista-ouro li { margin-bottom: .4rem; } .lista-ouro li::marker { color: var(--brand); }
.passos { list-style: none; counter-reset: p; padding: 0; margin: 1rem 0 1.6rem; }
.passos li { counter-increment: p; position: relative; padding: 0 0 1.1rem 3rem; }
.passos li::before { content: counter(p); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border: 1px dotted var(--brand-deep); border-radius: 50%; display: grid; place-items: center; font: 500 1rem var(--font-display); color: var(--brand-deep); }

.links { min-height: 80vh; display: grid; place-items: center; padding: 2rem 1rem 4rem; background: linear-gradient(170deg, var(--nude), var(--paper)); margin-top: calc(-1 * var(--topo-h)); padding-top: calc(var(--topo-h) + 2rem); }
.links-card { width: min(100%, 420px); text-align: center; }
.links-card img { width: 180px; height: 225px; object-fit: cover; object-position: top; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); margin: 0 auto 1rem; background: #fff; }
.links-card h1 { font-size: 2.2rem; }
.links-card h1 span { display: block; font: italic 400 1.05rem var(--font-display); color: var(--gold-text); margin-top: .4rem; }
.links-card ul { list-style: none; padding: 0; display: grid; gap: .7rem; margin: 1.5rem 0 0; }
.links-card .btn { width: 100%; }

/* rodapé */
.rodape { background: var(--dark); color: var(--on-dark-2); padding: var(--space-2xl) 0 calc(var(--space-lg) + 72px); font-size: .95rem; }
.rodape .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.rodape h2 { font: italic 400 1.15rem var(--font-display); color: var(--tint); margin-bottom: 1rem; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: .5rem; }
.rodape a { color: var(--on-dark); text-decoration: none; }
.rodape a:hover { color: var(--tint); text-decoration: underline; }
.rodape address { font-style: normal; margin-bottom: 1rem; }
.logo-claro { display: block; width: 210px; margin-bottom: 1.2rem; }
.logo-claro svg { width: 100%; height: auto; }
.logo-claro .cls-2 { fill: var(--on-dark); }
.logo-claro .cls-1 { fill: var(--tint); }
.legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px dotted var(--dark-3); font-size: .85rem; }
.legal a { text-decoration: underline; }
.wa-bar { display: none; }

/* reveal no scroll (IntersectionObserver em site.js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js .reveal.on { opacity: 1; transform: none; }
.js .areas .reveal:nth-child(2) { transition-delay: 70ms; } .js .areas .reveal:nth-child(3) { transition-delay: 140ms; }
.js .areas .reveal:nth-child(5) { transition-delay: 70ms; }

/* colunas de grid não crescem até o conteúdo (o carrossel de selos alargava o "sobre" no celular) */
.hero .wrap > *, .sobre > *, .contato > *, .campanha > *, .exterior > *, .rodape .cols > * { min-width: 0; }
.wa-bar .btn { white-space: nowrap; }
.canais span, .rodape li, .rodape address { min-width: 0; overflow-wrap: anywhere; }  /* o e-mail não cabe em 320 px */

/* ---------- responsivo: 1600 · 1280 · 1080 · 960 · 860 · 720 · 560 · 420 · 360 ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
  .hero-foto { width: min(100%, 640px); }
  .areas { gap: 1.5rem; }
}
@media (max-width: 1280px) {
  .nav ul { gap: 1.15rem; }
  .falar { padding-left: .8rem; }
  .marca { width: 170px; }
}
@media (max-width: 1080px) {
  .nav, .falar { display: none; }
  .menu-btn { display: inline-flex; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .area, .area:nth-child(4) { grid-column: auto; }
  .area:nth-child(5) { grid-column: 1 / -1; }
  .rodape .cols { grid-template-columns: 1fr 1fr; }
  .rodape .r-marca { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1.2fr .8fr; min-height: min(80vh, 680px); }
  .hero-foto figcaption { right: 0; }
  .sobre { grid-template-columns: .9fr 1.1fr; gap: 2rem; }
  .selos { grid-template-columns: 1fr 1fr; }
  .exterior { grid-template-columns: 1fr; }
  .rota { max-width: 360px; justify-self: start; }
  .trilhos { grid-template-columns: 1fr 1fr; }
  .trilho:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --topo-h: 64px; }
  .marca { width: 160px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-txt { padding: 2rem 0 1rem; }
  .hero-foto { width: min(82%, 400px); }
  .hero-foto figcaption { right: -1rem; bottom: 18%; }
  .sobre, .contato, .campanha { grid-template-columns: 1fr; }
  .sobre-foto { width: min(64%, 300px); margin-inline: auto; }
  .sobre-foto img { width: 100%; }
  .sobre-foto::before { inset: 18% -4% 4% 6%; }
  .rodape .cols { grid-template-columns: 1fr; gap: 2rem; }
  .campanha-foto { position: static; max-width: 360px; }
  .secao { padding: var(--space-2xl) 0; }
  .wa-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform var(--dur-short) var(--ease-out); }
  .wa-bar.on { transform: none; }
  .wa-bar .btn { width: 100%; }

  /* cards que empilhariam viram carrossel com deslize, espiando o próximo card e com indicador embaixo */
  [data-carrossel] {
    display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: min(84%, 420px);
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -1.25rem; padding: .4rem 1.25rem 1rem; scroll-padding-inline: 1.25rem;
  }
  [data-carrossel]::-webkit-scrollbar { display: none; }
  [data-carrossel] > * { scroll-snap-align: start; grid-column: auto !important; }
  .selos[data-carrossel] { grid-auto-columns: min(62%, 260px); border-top: 0; margin-top: 1.4rem; }
  .selos[data-carrossel] li { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; }
  .js [data-carrossel] .reveal { opacity: 1; transform: none; }
  .pontos { display: flex; justify-content: center; gap: .1rem; margin-top: .2rem; }
  .pontos button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .pontos button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: width var(--dur-short) var(--ease-out), background-color var(--dur-short); }
  .pontos button[aria-current="true"]::before { width: 20px; border-radius: 4px; background: var(--brand-deep); }
  .car-ctl { display: none; }
}
@media (min-width: 861px) { .rodape { padding-bottom: var(--space-lg); } .pontos { display: none; } }
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2.1rem, 6.4vw + .6rem, 3rem); }
  .titulo h2, .cabeca h1 { font-size: clamp(1.9rem, 5.6vw + .6rem, 2.6rem); }
  .lede { font-size: 1.12rem; }
  .faixa-campanha { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .ctas { flex-direction: column; align-items: stretch; }
  .ctas .btn { width: 100%; }
  .hero-foto { width: min(92%, 360px); }
  .hero-foto figcaption { right: -.4rem; padding: .55rem .8rem; }
  .qa summary { font-size: 1.1rem; }
  .form { padding: 1.2rem; }
  .canais a { align-items: flex-start; }
  .texto h2 { font-size: 1.7rem; }
  .destaque { font-size: 1.15rem; }
  .cta-final h2 { font-size: 1.6rem; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 2rem); }
  [data-carrossel] { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; grid-auto-columns: 88%; }
  .selos[data-carrossel] { grid-auto-columns: 78%; }
  .selos strong { overflow-wrap: anywhere; }
  .marca { width: 140px; }
  .menu-btn span { display: none; }
  body { font-size: 1rem; }
  .eyebrow { font-size: 1.05rem; }
  .hero .sub { font-size: 1.05rem; }
  .area a { padding: 1.3rem 1.1rem 1.1rem; }
  .area h3 { font-size: 1.3rem; }
  .g-nav a { font-size: 1.6rem; }
  .links-card h1 { font-size: 1.9rem; }
}
@media (max-width: 360px) {
  .marca { width: 124px; }
  .hero h1 { font-size: 1.95rem; }
  .btn { padding-inline: 1rem; font-size: .95rem; }
  .hero-foto figcaption { position: static; margin-top: -2rem; border-left-width: 2px; }
  .wa-bar .btn { font-size: .9rem; gap: .45rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero .wrap { min-height: 0; }
  .hero-foto { width: min(40%, 300px); }
  .gaveta { padding-top: .8rem; }
  .g-nav a { font-size: 1.3rem; padding: .2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .fio path, .js .rota path { clip-path: none; transition: none; }
  .js .hero *, .js .hero-foto::before, .js .gaveta li { animation: none !important; }
  .js .costura { transform: none; }
  .area a, .btn { transition: none; }
}

.nowrap { white-space: nowrap; }
