/* ==========================================================================
   Dra. Marina Horne | Hoom Interativa
   Design system v2: "A linha continua" (direcao-v2-marinahorne.md)
   Capitulos cinematograficos, Inter variavel, flat premium.
   Mobile-first. border-radius: 0. box-shadow: nenhum. Gradiente: nenhum.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paleta (papelaria real da cliente) */
  --creme-papel: #F6F1EA;
  --areia: #EAE2D3;
  --branco-quente: #FCFAF6;
  --bordo: #4A1421;
  --bordo-escuro: #320D17;
  --cafe: #3A2E2B;
  --dourado: #AD903D;
  --dourado-claro: #C9B57E;

  /* Tipografia: Inter variavel, familia unica */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.85rem, 1.2rem + 6vw, 6rem);          /* H1 hero */
  --fs-h2: clamp(2rem, 1.3rem + 3.4vw, 3.9rem);             /* H2 capitulo */
  --fs-h3: clamp(1.45rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-quote: clamp(1.45rem, 1rem + 2.4vw, 2.6rem);          /* manifesto */
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-body: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --fs-micro: 0.75rem;
  --fs-num-giant: clamp(4.5rem, 3rem + 8vw, 10rem);

  --track-display: -0.035em;
  --track-micro: 0.22em;

  /* Espaco */
  --space-chapter: clamp(5rem, 3rem + 10vw, 11rem);
  --container: 1280px;
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 2.5rem);
  --header-h: 76px;
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 750ms;
  --dur-media: 950ms;

  /* Linhas */
  --hairline: 1px solid color-mix(in srgb, var(--dourado) 55%, transparent);
  --hairline-light: 1px solid color-mix(in srgb, var(--dourado-claro) 35%, transparent);
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--cafe);
  background: var(--creme-papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
p { max-width: var(--measure); }
p + p { margin-top: 1.25rem; }

:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }
.on-dark :focus-visible,
.chapter--bordo :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.photo-chapter :focus-visible { outline-color: var(--creme-papel); }

::selection { background: var(--bordo); color: var(--creme-papel); }

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: var(--track-display);
  color: var(--bordo);
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

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

.micro, .eyebrow {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-micro);
  color: var(--bordo);
}
.eyebrow { margin-bottom: 1.5rem; }
.eyebrow--gold { color: var(--dourado-claro); }

/* etiqueta de capitulo: "Capitulo 01 . Nome" com fio */
.chapter-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.chapter-label .micro { color: inherit; opacity: 0.85; }
.chapter-label::after { content: ""; flex: 1; max-width: 160px; height: 1px; background: var(--dourado); opacity: 0.6; }
.chapter--bordo .chapter-label::after, .on-dark .chapter-label::after { background: var(--dourado-claro); opacity: 0.45; }

.num-deco {
  font-weight: 100;
  font-size: var(--fs-num-giant);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--dourado);
}

/* --------------------------------------------------------------------------
   4. Layout: capitulos
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.chapter { position: relative; padding-block: var(--space-chapter); overflow: clip; background: var(--creme-papel); }
.chapter--areia { background: var(--areia); }
.chapter--bordo { background: var(--bordo); color: var(--creme-papel); }
.chapter--bordo h1, .chapter--bordo h2, .chapter--bordo h3,
.chapter--bordo p { color: var(--creme-papel); }
.chapter--flush { padding-block: 0; }
.chapter > .container { position: relative; z-index: 2; }

/* grao de pelicula (so em faixas bordo) */
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E"); }

/* fio divisor */
.hairline { border: 0; height: 1px; background: var(--dourado); opacity: 0.55; }
.chapter--bordo .hairline { background: var(--dourado-claro); opacity: 0.35; }

/* marca d'agua mh (1 por pagina) */
.watermark { position: absolute; z-index: 0; pointer-events: none; user-select: none; width: clamp(420px, 70%, 900px); opacity: 0.045; }
.watermark--right { right: -6%; top: 50%; transform: translateY(-50%); }
.watermark--center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(480px, 84%, 1100px); }
.chapter--bordo .watermark, .site-footer .watermark { opacity: 0.06; }

/* placeholder de foto: areia + monograma a 8% */
.ph-img { background: var(--areia); display: grid; place-items: center; position: relative; overflow: hidden; }
.ph-img::after { content: ""; width: 62%; aspect-ratio: 1000 / 360; background: center / contain no-repeat url("../img/monogram.svg"); opacity: 0.08; }
.chapter--bordo .ph-img { background: var(--bordo-escuro); }
.chapter--bordo .ph-img::after { background-image: url("../img/monogram-light.svg"); opacity: 0.1; }

/* --------------------------------------------------------------------------
   5. Fio de progresso (a linha continua)
   -------------------------------------------------------------------------- */
.progress-line {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 130;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Botoes e links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 1.05rem 2.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--bordo); color: var(--creme-papel); }
.btn--primary:hover { background: var(--bordo-escuro); }
.btn--ghost { border: 1px solid var(--bordo); color: var(--bordo); }
.btn--ghost:hover { background: var(--bordo); color: var(--creme-papel); }
.btn--light { background: var(--creme-papel); color: var(--bordo); }
.btn--light:hover { background: var(--branco-quente); }
.btn--ghost-light { border: 1px solid var(--dourado-claro); color: var(--creme-papel); }
.btn--ghost-light:hover { background: var(--creme-papel); color: var(--bordo); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }

/* link de texto com fio que desliza */
.tlink {
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bordo);
}
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--dourado); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }
.chapter--bordo .tlink, .on-dark .tlink { color: var(--creme-papel); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--creme-papel) 96%, transparent); border-bottom: var(--hairline); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { width: 52px; height: auto; }
.brand__name { font-size: 0.9375rem; font-weight: 450; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bordo); line-height: 1; }

.nav__menu { display: none; }
.nav__cta { display: none; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; margin-right: -10px; }
.nav-toggle span { height: 2px; width: 100%; background: var(--bordo); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span { background: var(--creme-papel); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle.on-menu span { background: var(--creme-papel); }

/* menu mobile full-screen (bordo-escuro, links display) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bordo-escuro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 2.5rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__list a {
  display: block;
  padding: 0.4rem 0;
  font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  font-weight: 320;
  letter-spacing: -0.02em;
  color: var(--creme-papel);
  text-decoration: none;
}
.mobile-menu__sub { padding-left: 1.4rem; }
.mobile-menu__sub a { font-size: clamp(1.2rem, 4.5vw, 1.5rem); color: var(--dourado-claro); }
.mobile-menu__cta { margin-top: 2.5rem; }
.mobile-menu .hairline { margin: 1.5rem 0; background: var(--dourado-claro); opacity: 0.3; }
.mobile-menu__list > li { opacity: 0; transform: translateY(18px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.mobile-menu.is-open .mobile-menu__list > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) { transition-delay: 240ms; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) { transition-delay: 300ms; }

/* --------------------------------------------------------------------------
   8. Heroes
   O sistema: foto nunca atras do nav nem atras de texto pequeno. A headline
   monumental sobrepoe a borda da foto com mix-blend multiply (bordo escurece
   sobre foto clara, contraste garantido). Mobile: foto em faixa, texto no creme.
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--creme-papel); overflow: clip; padding-top: var(--header-h); min-height: 100svh; display: flex; flex-direction: column; }
.hero__media { position: relative; height: 54svh; overflow: clip; }
.hero__media .plx { position: absolute; inset: -8% 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 16%; }
.hero__content { position: relative; z-index: 2; padding-top: 2.25rem; padding-bottom: clamp(3.5rem, 8vh, 6rem); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 12ch; mix-blend-mode: multiply; }
.hero .lead { margin-top: 1.6rem; max-width: 44ch; }

/* monograma desenhado */
.hero__monogram { width: min(260px, 56%); margin-bottom: 1.25rem; pointer-events: none; }
.hero__monogram path { stroke: var(--dourado); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-mh 1.6s var(--ease) 0.4s forwards; }
@keyframes draw-mh { to { stroke-dashoffset: 0; } }

/* scroll cue: a linha continua desce */
.scroll-cue { position: absolute; right: var(--gutter); bottom: 0; z-index: 3; display: none; flex-direction: column; align-items: center; gap: 0.85rem; }
.scroll-cue .micro { color: var(--cafe); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: clamp(48px, 9vh, 88px); background: var(--dourado); }

/* hero de paginas internas (tipografico) */
.page-hero {
  position: relative;
  overflow: clip;
  background: var(--creme-papel);
  padding-top: calc(var(--header-h) + clamp(4rem, 12vh, 9rem));
  padding-bottom: clamp(3.5rem, 9vh, 7rem);
}
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { margin-top: 1.75rem; max-width: 46ch; color: var(--cafe); }

@media (min-width: 1024px) {
  .hero { display: block; }
  .hero__media { position: absolute; top: var(--header-h); right: 0; bottom: 0; height: auto; width: 52vw; }
  .hero__media img { object-position: 62% 10%; }
  .hero__content { min-height: calc(100svh - var(--header-h)); padding-bottom: clamp(5rem, 12vh, 8rem); }
  .hero h1 { max-width: 14ch; }
  .hero .lead { max-width: 38ch; }
  .hero__monogram { position: absolute; top: calc(var(--header-h) + 2vh); left: -2%; width: min(460px, 36vw); margin: 0; z-index: 1; opacity: 0.9; }
  .scroll-cue { display: flex; right: calc(var(--gutter) + 64px); left: auto; }
}

/* --------------------------------------------------------------------------
   9. Reveals (texto, blocos, midia)
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* headline por linha (JS agrupa palavras em linhas) */
[data-lines] .rl-line { display: block; overflow: clip; }
[data-lines] .rl-inner { display: block; transform: translateY(112%); transition: transform var(--dur-reveal) var(--ease); transition-delay: calc(var(--l, 0) * 90ms); }
[data-lines].is-in .rl-inner { transform: none; }

/* midia com mascara */
.media-reveal { clip-path: inset(10% 6%); transition: clip-path var(--dur-media) var(--ease); }
.media-reveal img { transform: scale(1.07); transition: transform var(--dur-media) var(--ease); }
.media-reveal.is-in { clip-path: inset(0); }
.media-reveal.is-in img { transform: scale(1); }

/* linha que se desenha */
.draw-line { height: 1px; background: var(--dourado); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.15s; }
.draw-line.is-in { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   10. Credenciais
   -------------------------------------------------------------------------- */
.credbar { background: var(--areia); border-top: var(--hairline); border-bottom: var(--hairline); padding-block: clamp(2rem, 4vw, 3rem); }
.credbar__list { display: flex; flex-direction: column; gap: 1.1rem; }
.credbar__item { font-size: var(--fs-micro); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cafe); }

/* --------------------------------------------------------------------------
   11. Manifesto (capitulo bordo)
   -------------------------------------------------------------------------- */
.manifesto__quote { font-size: var(--fs-quote); font-weight: 320; line-height: 1.4; letter-spacing: -0.02em; max-width: 24em; margin-top: clamp(2rem, 5vw, 3.5rem); }
.manifesto__quote p { max-width: none; }
.manifesto__quote p + p { margin-top: 1.6em; }
.manifesto__sign { margin-top: 3rem; }
.manifesto__sign img { width: 120px; opacity: 0.85; }
.manifesto__sign .micro { color: var(--dourado-claro); margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   12. Lista-indice (navegacao como conteudo)
   -------------------------------------------------------------------------- */
.index-list { border-bottom: var(--hairline); }
.index-row {
  position: relative;
  display: block;
  border-top: var(--hairline);
  text-decoration: none;
  overflow: clip;
}
.index-row::before { content: ""; position: absolute; inset: 0; background: var(--bordo); transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease); }
.index-row__inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; align-items: baseline; padding: clamp(1.75rem, 4vw, 3rem) 0; transition: transform 0.4s var(--ease); }
.index-row__num { font-weight: 100; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--dourado); letter-spacing: 0.04em; }
.index-row__title { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem); font-weight: 340; letter-spacing: var(--track-display); line-height: 1.05; color: var(--bordo); transition: color 0.35s var(--ease); }
.index-row__text { grid-column: 2; max-width: 56ch; color: var(--cafe); transition: color 0.35s var(--ease); }
.index-row__cta { grid-column: 2; margin-top: 0.5rem; font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--dourado); transition: color 0.35s var(--ease); }
.index-row:hover::before, .index-row:focus-visible::before { transform: scaleY(1); }
.index-row:hover .index-row__inner, .index-row:focus-visible .index-row__inner { transform: translateX(12px); }
.index-row:hover .index-row__title, .index-row:focus-visible .index-row__title { color: var(--creme-papel); }
.index-row:hover .index-row__text, .index-row:focus-visible .index-row__text { color: var(--creme-papel); }
.index-row:hover .index-row__cta, .index-row:focus-visible .index-row__cta { color: var(--dourado-claro); }
/* variante sobre bordo */
.chapter--bordo .index-list, .chapter--bordo .index-row { border-color: color-mix(in srgb, var(--dourado-claro) 35%, transparent); }
.chapter--bordo .index-row::before { background: var(--bordo-escuro); }
.chapter--bordo .index-row__title { color: var(--creme-papel); }
.chapter--bordo .index-row__text { color: var(--creme-papel); }

/* --------------------------------------------------------------------------
   13. Split (texto + midia/poster) e autoridade
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* poster tipografico (slot de foto pendente em faixa bordo) */
.poster {
  position: relative;
  background: var(--bordo-escuro);
  min-height: clamp(320px, 52vw, 560px);
  overflow: clip;
  display: grid;
  place-items: center;
}
.poster__type {
  font-weight: 100;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dourado-claro);
  opacity: 0.5;
  text-align: center;
  pointer-events: none;
}
.poster__type span { display: block; }
.poster__type .poster__small { font-size: 0.32em; letter-spacing: 0.5em; opacity: 0.9; margin-top: 1.2em; }

/* --------------------------------------------------------------------------
   14. Passos (a linha que conecta)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: clamp(2.5rem, 5vw, 3rem); }
.step { position: relative; }
.step__num { display: block; font-weight: 100; font-size: clamp(3.4rem, 2.4rem + 4.5vw, 6rem); line-height: 1; color: var(--dourado); margin-bottom: 1.1rem; }
.step h3 { margin-bottom: 0.7rem; }
.steps__connector { margin: clamp(2rem, 4vw, 3rem) 0; }

/* --------------------------------------------------------------------------
   15. Teaser full-bleed (clinica) e capitulo de foto
   -------------------------------------------------------------------------- */
.photo-chapter { position: relative; min-height: clamp(480px, 86vh, 860px); display: flex; align-items: flex-end; overflow: clip; }
.photo-chapter__media { position: absolute; inset: 0; z-index: 0; }
.photo-chapter__media .plx { position: absolute; inset: -8% 0; }
.photo-chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-chapter__media::after { content: ""; position: absolute; inset: 0; background: var(--bordo); opacity: 0.58; mix-blend-mode: multiply; }
.photo-chapter__content { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 7vh, 5rem); }
.photo-chapter__content h2, .photo-chapter__content p { color: var(--creme-papel); }
.photo-chapter__content .eyebrow { color: var(--dourado-claro); }
.photo-chapter__content p { max-width: 52ch; }

/* --------------------------------------------------------------------------
   16. FAQ (split sticky + accordion)
   -------------------------------------------------------------------------- */
.faq-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.faq-grid__head h2 { max-width: 12ch; }
.faq { border-bottom: var(--hairline); }
.faq__item { border-top: var(--hairline); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; text-align: left; font-size: 1.0625rem; font-weight: 450; color: var(--bordo); }
.faq__toggle { flex: none; width: 20px; height: 20px; position: relative; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; background: var(--dourado); transition: transform 0.3s var(--ease), opacity 0.3s; }
.faq__toggle::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq__toggle::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq__q[aria-expanded="true"] .faq__toggle::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq__a { overflow: clip; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq__a-inner { padding: 0 0 1.6rem; }
.faq__a p { max-width: 64ch; }

/* --------------------------------------------------------------------------
   17. CTA final
   -------------------------------------------------------------------------- */
.cta-final { position: relative; background: var(--areia); text-align: center; padding-block: clamp(6rem, 18vh, 12rem); overflow: clip; }
.cta-final__inner { position: relative; z-index: 1; max-width: 52ch; margin-inline: auto; }
.cta-final h2 { max-width: 16ch; margin-inline: auto; }
.cta-final p { margin: 1.5rem auto 0; }
.cta-final .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   18. Prosa, capitulos de tratamento, listas editoriais
   -------------------------------------------------------------------------- */
.prose p { max-width: var(--measure); }
.stack > * + * { margin-top: 1.5rem; }
.stack--lg > * + * { margin-top: clamp(2.5rem, 5vw, 4rem); }

.treat { display: grid; gap: 0.6rem 2rem; max-width: 880px; }
.treat__num { font-weight: 100; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--dourado); }
.treat h3 { margin-bottom: 0.5rem; }
.treat .eyebrow { margin-bottom: 0.6rem; }

/* lista editorial (sociedades, principios) */
.deflist { display: grid; gap: 0; border-bottom: var(--hairline); max-width: 880px; }
.deflist__item { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; align-items: baseline; padding: clamp(1.6rem, 3.5vw, 2.4rem) 0; border-top: var(--hairline); }
.deflist__item dt { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 340; letter-spacing: var(--track-display); color: var(--bordo); }
.deflist__item dd { grid-column: 2; margin: 0; max-width: 60ch; }
.deflist--num { counter-reset: d; }
.deflist--num .deflist__item::before { counter-increment: d; content: "0" counter(d); font-weight: 100; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--dourado); grid-row: 1 / span 2; align-self: start; padding-right: 1.5rem; }
.deflist--num .deflist__item { grid-template-columns: auto auto 1fr; }
.deflist--num .deflist__item dt { grid-column: 2; }
.deflist--num .deflist__item dd { grid-column: 2; }
.chapter--bordo .deflist, .chapter--bordo .deflist__item { border-color: color-mix(in srgb, var(--dourado-claro) 35%, transparent); }
.chapter--bordo .deflist__item dt { color: var(--creme-papel); }

/* galeria editorial assimetrica */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.gallery > * { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .ph-img { aspect-ratio: 4 / 3; }

/* nota emoldurada */
.note { border-left: 2px solid var(--dourado); padding: 1.25rem 0 1.25rem 1.75rem; max-width: 70ch; }
.note p { font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   19. Contato: canais, formulario de linhas, infos
   -------------------------------------------------------------------------- */
.channel-row__inner { grid-template-columns: auto 1fr auto; align-items: center; }
.channel-row__inner .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

.form { max-width: 640px; }
.field { margin-bottom: 2.25rem; position: relative; }
.field label { display: block; font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--bordo); margin-bottom: 0.6rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0;
  font: inherit;
  font-weight: 380;
  color: var(--cafe);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cafe) 35%, transparent);
  transition: border-color 0.25s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--bordo); }
.field--check { display: flex; gap: 0.85rem; align-items: flex-start; }
.field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: 0.2rem; flex: none; accent-color: var(--bordo); }
.field--check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-weight: 380; color: var(--cafe); line-height: 1.55; }
.field__error { display: none; color: var(--bordo); font-size: 0.8125rem; font-weight: 450; margin-top: 0.5rem; }
.field.has-error input, .field.has-error select { border-bottom-color: var(--bordo); border-bottom-width: 2px; }
.field.has-error .field__error { display: block; }
.form__status { display: none; border-left: 2px solid var(--dourado); background: var(--areia); padding: 1.1rem 1.5rem; margin-top: 2rem; }
.form__status.is-visible { display: block; }

.map { margin-top: 2.5rem; border: var(--hairline); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.map .ph-img { aspect-ratio: 16 / 7; }

.info-list { display: grid; gap: 1.5rem; }
.info-list dt { font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--bordo); margin-bottom: 0.3rem; }
.info-list dd { margin: 0; }

/* --------------------------------------------------------------------------
   20. Rodape
   -------------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--bordo-escuro); color: var(--creme-papel); overflow: clip; padding-block: clamp(4rem, 9vw, 7rem) 2.5rem; }
.site-footer .container { position: relative; z-index: 2; }
.footer__grid { display: grid; gap: 2.75rem; }
.footer__brand .brand__name { color: var(--creme-papel); }
.footer__brand p { color: var(--dourado-claro); font-size: 0.9375rem; margin-top: 1rem; max-width: 30ch; }
.footer h4 { font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 1.4rem; }
.footer__nav a, .footer__contact a, .footer__contact span { color: var(--creme-papel); text-decoration: none; font-size: 0.9375rem; }
.footer__nav li, .footer__contact li { padding: 0.32rem 0; }
.footer__nav a:hover { color: var(--dourado-claro); }
.footer__legal { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: var(--hairline-light); }
.footer__legal p { color: color-mix(in srgb, var(--creme-papel) 78%, transparent); font-size: 0.8125rem; line-height: 1.65; max-width: 90ch; }
.footer__legal p + p { margin-top: 0.6rem; }
.footer__legal a { color: var(--dourado-claro); }
.footer__monogram { position: absolute; right: -4%; bottom: -8%; width: min(560px, 72%); opacity: 0.06; z-index: 0; }

/* --------------------------------------------------------------------------
   21. WhatsApp flutuante e cookies
   -------------------------------------------------------------------------- */
.float-wa { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--bordo); border: 1px solid color-mix(in srgb, var(--dourado-claro) 55%, transparent); display: grid; place-items: center; transition: background-color 0.25s var(--ease); }
.float-wa:hover { background: var(--bordo-escuro); }
.float-wa svg { width: 26px; height: 26px; fill: var(--creme-papel); }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--bordo-escuro); color: var(--creme-papel); padding: 1.25rem var(--gutter); transform: translateY(110%); transition: transform 0.4s var(--ease); }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.cookie-banner p { max-width: 70ch; font-size: 0.9375rem; color: var(--creme-papel); }
.cookie-banner a { color: var(--dourado-claro); }
.cookie-banner__actions { display: flex; gap: 0.75rem; }
.cookie-banner .btn { min-height: 44px; padding: 0.7rem 1.6rem; }

/* --------------------------------------------------------------------------
   22. Cursor follower (so pointer fino; criado via JS)
   -------------------------------------------------------------------------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 140; pointer-events: none; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; background: var(--dourado); margin: -4px 0 0 -4px; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid var(--dourado); margin: -18px 0 0 -18px; display: grid; place-items: center; transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.cursor-ring span { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--creme-papel); opacity: 0; transition: opacity 0.25s; }
.cursor--hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--dourado-claro); }
.cursor--label .cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--bordo); border-color: var(--bordo); }
.cursor--label .cursor-ring span { opacity: 1; }
.cursor--label .cursor-dot, .cursor--hover .cursor-dot { opacity: 0; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* --------------------------------------------------------------------------
   23. Motion off
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  [data-reveal], [data-lines] .rl-inner { opacity: 1 !important; transform: none !important; }
  .media-reveal { clip-path: inset(0) !important; }
  .media-reveal img { transform: none !important; }
  .draw-line { transform: scaleX(1) !important; }
  .hero__monogram path { stroke-dashoffset: 0; animation: none; }
  .cursor-dot, .cursor-ring, .progress-line { display: none !important; }
  .plx { transform: none !important; inset: 0 !important; }
}

/* --------------------------------------------------------------------------
   24. Breakpoints: 768 / 1024 / 1440 (mobile-first)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .credbar__list { flex-direction: row; flex-wrap: wrap; gap: 1.25rem 0; }
  .credbar__item { flex: 1 1 33%; display: flex; align-items: center; justify-content: center; text-align: center; padding-inline: 1.25rem; border-left: var(--hairline); }
  .credbar__item:first-child { border-left: 0; }

  .split { grid-template-columns: 1fr 1fr; }
  .split--rev > :first-child { order: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .faq-grid__head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .gallery__wide { grid-column: span 2; aspect-ratio: 21 / 9; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }

  .index-row__inner { grid-template-columns: minmax(64px, auto) 1.2fr 1fr; column-gap: 3rem; }
  .index-row__title { grid-column: 2; }
  .index-row__text { grid-column: 3; grid-row: 1; align-self: center; }
  .index-row__cta { grid-column: 2; }
}

@media (min-width: 1024px) {
  :root { --header-h: 88px; }

  .nav-toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: 2.25rem; }
  .nav__menu > li > a, .nav__trigger { font-size: 0.8125rem; font-weight: 450; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--cafe); padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.25s; }
  .nav__menu > li > a:hover, .nav__trigger:hover { color: var(--bordo); }
  .nav__cta { display: inline-flex; min-height: 44px; padding: 0.75rem 1.8rem; }

  .has-dropdown { position: relative; }
  .dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); min-width: 230px; background: var(--branco-quente); border: var(--hairline); padding: 0.5rem 0; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .dropdown a { display: block; padding: 0.7rem 1.6rem; font-size: 0.8125rem; font-weight: 450; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cafe); text-decoration: none; white-space: nowrap; }
  .dropdown a:hover { background: var(--areia); color: var(--bordo); }
  .nav__trigger svg { width: 10px; height: 10px; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .gallery__wide { grid-column: span 2; }
  .treat { grid-template-columns: minmax(72px, auto) 1fr; }
  .treat__num { grid-row: 1 / span 3; }
}

@media (min-width: 1440px) {
  .index-row__inner { column-gap: 4rem; }
}
