/* ═══════════════════════════════════════════════════════════════
   Dra. Lara Guerra — Endocrinologia · Rio Verde, GO
   Design system: editorial, terroso, premium.
   Ordem: tokens → base → tipografia → componentes → seções → motion → mobile
   ═══════════════════════════════════════════════════════════════ */

/* ── FONTES (self-hosted, subset latin) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorantgaramond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorantgaramond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorantgaramond-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

/* ── TOKENS ── */
:root {
  --paper:      #FAF8F5;
  --cream:      #F2EAE0;
  --espresso:   #1A0F0A;
  --coffee:     #2D1A10;
  --brown:      #5C3D2C;
  --caramel:    #B8905A;
  --gold:       #C9A86C;
  --beige:      #E2D0B8;

  --ink:        #1A0F0A;
  --ink-2:      #54463B;   /* texto secundário — 8:1 sobre paper */
  --ink-3:      #75655A;   /* notas — 4.6:1 sobre paper */
  --label-c:    #8A6437;   /* labels caramelo escurecido — 5:1 */

  --hair:       #E5D9C8;
  --hair-2:     #D6C4A9;

  --d-text:     #F4EDE2;
  --d-text-2:   rgba(244, 237, 226, 0.68);
  --d-label:    #D8B888;
  --d-hair:     rgba(244, 237, 226, 0.14);

  --olive:      #2C4A3E;
  --wa:         #1EA84C;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --container: 1280px;
  --gutter: 48px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.76, 0, 0.24, 1);

  /* ── Escala tipográfica fluida (ratio ~1.25, sem saltos entre breakpoints) ── */
  --fs-hero:    clamp(2.5rem, 1.35rem + 4.6vw, 4.75rem);
  --fs-h2:      clamp(1.95rem, 1.4rem + 2.4vw, 3.05rem);
  --fs-h3:      clamp(1.3rem, 1.08rem + 1vw, 1.8rem);
  --fs-lead:    clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.78rem;
  --fs-eyebrow: 0.72rem;

  /* ── Espaçamento (base 4/8) ── */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-8: 3rem;    --space-10: 4rem;
  --space-12: 6rem;    --space-16: 8rem;
  --section-pad: clamp(5rem, 10vw, 9rem);   /* ritmo vertical único de toda seção */

  /* ── Cores semânticas (aliases dos valores da marca) ── */
  --bg:         #FAF8F5;
  --bg-alt:     #1A0F0A;
  --gold-soft:  rgba(201, 168, 108, 0.12);
  --gold-line:  rgba(201, 168, 108, 0.34);
  --text:       #1A0F0A;
  --text-muted: #54463B;
  --line:       #E5D9C8;

  /* ── Raios e sombras ── */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 10px rgba(26, 15, 10, 0.06);
  --shadow-md:   0 22px 54px -26px rgba(26, 15, 10, 0.4);
  --shadow-gold: 0 14px 44px -14px rgba(201, 168, 108, 0.45);

  /* z-index semântico */
  --z-sticky: 110; --z-header: 120; --z-drawer: 200; --z-cursor: 998; --z-preloader: 999;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.is-loading body { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--beige); color: var(--espresso); }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  background: var(--espresso);
  color: var(--d-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  transform: translateY(-64px);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── TIPOGRAFIA ── */
.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--label-c);
}
.label--light { color: var(--d-label); }

.display {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--espresso);
}
.display em { font-style: italic; font-weight: 500; color: var(--brown); }

.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--espresso);
}
.h2 em { font-style: italic; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 62ch;
}

.body-text {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 65ch;
  text-wrap: pretty;
}

/* ── BOTÕES E LINKS ── */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: scale(1.12) rotate(-4deg); }

/* preenchimento que desliza da esquerda no hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform 0.3s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* CTAs magnéticos: o JS alimenta --mx/--my apenas em desktop */
.btn.magnet { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }

.btn--dark { background: var(--espresso); color: var(--d-text); }
.btn--dark::before { background: var(--brown); }

.btn--gold {
  background: var(--gold);
  color: var(--espresso);
  box-shadow: 0 6px 22px -10px rgba(201, 168, 108, 0.55);
  transition: color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn--gold::before { background: #D8BC85; }
.btn--gold:hover { box-shadow: var(--shadow-gold); }

.btn--lg { padding: 20px 40px; font-size: 0.92rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--caramel);
  transform-origin: right;
  transform: scaleX(0.35);
  transition: transform 0.45s var(--ease-out);
}
.link-arrow:hover::after { transform-origin: left; transform: scaleX(1); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow--light { color: var(--gold); }

/* ── SCROLL PROGRESS ── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  transform-origin: 0 0;
  transform: scaleX(0);
}

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--espresso);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform 0.9s var(--ease-io), visibility 0s 0.9s;
}
.preloader-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  overflow: hidden;
}
.preloader-mark span {
  display: inline-block;
  transform: translateY(115%);
  animation: pre-up 0.8s var(--ease-out) 0.1s forwards;
}
.preloader-line {
  width: 130px; height: 1px;
  background: var(--hair);
  position: relative;
  overflow: hidden;
}
.preloader-line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  animation: pre-line 1s var(--ease-io) 0.25s forwards;
}
.preloader.done { transform: translateY(-101%); visibility: hidden; }
@keyframes pre-up   { to { transform: none; } }
@keyframes pre-line { to { transform: scaleX(1); } }

/* ── CURSOR ── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 998;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--espresso); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(184, 144, 90, 0.7);
  transition: background 0.3s ease, border-color 0.3s ease;
}
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
.cursor-ring.is-hover { background: rgba(201, 168, 108, 0.12); border-color: var(--gold); }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;   /* acima do drawer (200) para o botão fechar continuar acessível */
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { height: 40px; width: auto; }
.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--d-text);              /* claro sobre o hero escuro */
  transition: color 0.4s ease;
}
.brand-text span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(244, 237, 226, 0.62);
  margin-top: 2px;
  transition: color 0.4s ease;
}
.site-nav { display: flex; gap: 36px; }
.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--d-text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
/* Quando o cabeçalho vira sólido (seções claras), texto escuro */
.site-header.solid .brand-text strong { color: var(--espresso); }
.site-header.solid .brand-text span { color: var(--ink-3); }
.site-header.solid .site-nav a { color: var(--ink-2); }
.site-header.solid .site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover { color: var(--d-text); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.cta-short { display: none; }

/* ── HAMBÚRGUER + MENU MOBILE ── */
.nav-toggle {
  display: none;                       /* só no mobile (media query abaixo) */
  width: 44px; height: 44px;           /* alvo de toque mínimo */
  align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--d-text);                /* claro sobre o hero escuro */
  transition: color 0.4s ease;
}
.site-header.solid .nav-toggle { color: var(--espresso); }
html.menu-open .nav-toggle { color: var(--d-text); }   /* sobre o drawer escuro */
.nav-toggle-bars { position: relative; width: 22px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }

/* header fica acima do drawer para o X continuar clicável; some o "Agendar" duplicado */
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
html.menu-open .header-cta { display: none; }
html.menu-open .brand-text strong { color: var(--d-text); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--espresso);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 2.75rem);
  padding: 104px var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;                /* não bloqueia cliques enquanto fecha */
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu-nav { display: flex; flex-direction: column; gap: clamp(0.75rem, 3.5vh, 1.5rem); }
.mobile-menu-nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.9rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--d-text);
  width: fit-content;
  transition: color 0.3s ease, transform 0.4s var(--ease-out);
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible { color: var(--gold); transform: translateX(6px); }
.mobile-menu-cta { align-self: flex-start; margin-top: var(--space-2); }
.mobile-menu-foot {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--d-text-2);
  margin-top: var(--space-2);
}

/* ── HERO (ambiente escuro cinematográfico) ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--espresso);   /* base; o canvas WebGL pinta a luz por cima */
  color: var(--d-text);
  isolation: isolate;
}
/* Canvas WebGL: fundo pleno. Ele mesmo pinta o espresso — sem blend.
   width/height 100% é obrigatório: um <canvas> (elemento substituído)
   posicionado com inset:0 mas largura "auto" usaria seu tamanho
   intrínseco (300×150) em vez de esticar. */
#mol {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Vinheta: garante contraste do texto sobre a luz (foco na coluna esquerda
   e no topo, onde ficam título e cabeçalho) sem apagar o brilho à direita. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 105% at 6% 46%, rgba(20, 11, 7, 0.78), rgba(20, 11, 7, 0) 58%),
    linear-gradient(180deg, rgba(20, 11, 7, 0.55) 0%, rgba(20, 11, 7, 0) 20%, rgba(20, 11, 7, 0) 78%, rgba(20, 11, 7, 0.5) 100%);
}

/* Fundo em CSS (fallback sem WebGL e mobile): blobs dourados sobre espresso */
.hero-mesh {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero.no-gl .hero-mesh { display: block; }
.hero-mesh span {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.hero-mesh span:nth-child(1) {
  top: -14%; left: -10%;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.30), transparent 66%);
  animation: mesh-a 26s ease-in-out infinite alternate;
}
.hero-mesh span:nth-child(2) {
  top: 18%; right: -20%;
  background: radial-gradient(circle, rgba(184, 144, 90, 0.26), transparent 66%);
  animation: mesh-b 30s ease-in-out infinite alternate;
}
.hero-mesh span:nth-child(3) {
  bottom: -18%; left: 12%;
  background: radial-gradient(circle, rgba(226, 208, 184, 0.16), transparent 62%);
  animation: mesh-c 23s ease-in-out infinite alternate;
}

/* Texto do hero sobre o escuro */
.hero .display { color: var(--d-text); }
.hero .display em { color: var(--gold); }
.hero .lead { color: var(--d-text-2); }

/* Kicker/eyebrow único e deliberado do hero (voz de marca, não scaffolding) */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--d-label);
  margin-bottom: clamp(1.35rem, 2.4vw, 1.9rem);
}
.hero-kicker::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold-line);
}

.hero-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 150px var(--gutter) 56px;
  display: grid;
  grid-template-columns: 6.5fr 5.5fr;
  grid-template-rows: auto auto;
  column-gap: 64px;
  align-content: center;
}
.hero-copy-top    { grid-column: 1; grid-row: 1; align-self: end; }
.hero-copy-bottom { grid-column: 1; grid-row: 2; }
.hero-media       { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.hero-copy-top .label { display: block; margin-bottom: 30px; }
.hero-copy-top .display { margin-bottom: 30px; max-width: 13ch; }

.hero-copy-bottom .lead { max-width: 430px; margin-bottom: 42px; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-media { position: relative; }
.hero-media-mask {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: min(72vh, 700px);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(201, 168, 108, 0.3),        /* fio dourado editorial */
    inset 0 0 0 1px rgba(244, 237, 226, 0.06);
}
/* vinheta na base: funde o retrato com o fundo escuro do hero */
.hero-media-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(26, 15, 10, 0.6) 0%, rgba(26, 15, 10, 0) 30%);
}
/* Glow quente por trás do retrato, para assentá-lo no escuro */
.hero-media::before {
  content: '';
  position: absolute;
  inset: -8% -6% -10% -6%;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 42%, rgba(201, 168, 108, 0.22), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.hero-media-mask img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 26px;
  border-top: 1px solid var(--d-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-cred {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(244, 237, 226, 0.86);   /* mais contraste sobre a luz do hero */
}
.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-facts span {
  font-size: 0.75rem;
  color: rgba(244, 237, 226, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-facts span::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── SEÇÕES ── */
.section { padding-block: var(--section-pad); }   /* ritmo vertical único e fluido */

.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 76px;
}
.sec-head .label { display: block; margin-bottom: 20px; }
.sec-head .body-text { max-width: 380px; justify-self: end; padding-bottom: 8px; }

.sec-head--center {
  display: block;
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.sec-head--center .body-text { margin: 18px auto 0; }

/* ── ESPECIALIDADES (grid de cards premium 2×2) ── */
.esp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.esp-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(242, 234, 224, 0.22));
  transition:
    transform 0.55s var(--ease-out),
    border-color 0.4s ease,
    box-shadow 0.55s var(--ease-out);
}
/* brilho dourado que surge no hover (sob o conteúdo) */
.esp-card::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 92% at 16% 0%, var(--gold-soft), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.esp-card:hover,
.esp-card:focus-visible { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.esp-card:hover::before,
.esp-card:focus-visible::before { opacity: 1; }

.esp-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--label-c);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  transition: color 0.4s ease, background 0.4s ease, transform 0.5s var(--ease-out);
}
.esp-icon svg { width: 26px; height: 26px; }
.esp-card:hover .esp-icon { color: var(--brown); background: rgba(201, 168, 108, 0.2); transform: scale(1.05) rotate(-2deg); }

.esp-card h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--espresso);
  text-wrap: balance;
}
.esp-card p { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }

.esp-go {
  margin-top: auto;
  padding-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--label-c);
  transition: color 0.35s ease;
}
.esp-go svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.esp-card:hover .esp-go { color: var(--brown); }
.esp-card:hover .esp-go svg { transform: translateX(6px); }

.index-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ── SOBRE (seção escura) ── */
.sobre {
  background: var(--espresso);
  color: var(--d-text);
  position: relative;
  overflow: hidden;
}
.wm {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(300px, 36vw, 540px);
  line-height: 0.8;
  color: rgba(201, 168, 108, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Marca d'água "LG" desativada na seção Sobre (desktop e mobile): atrás da lista
   de diferenciais ela sobrepunha o texto e o "G" era cortado pela borda direita,
   parecendo desalinhada. A da seção final (centralizada e simétrica) permanece. */
.sobre .wm { display: none; }
.sobre-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  align-items: center;
}
.sobre-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 40px 90px -44px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(201, 168, 108, 0.3);   /* mesmo fio dourado editorial do hero */
}
.sobre-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.sobre-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(26, 15, 10, 0.5) 0%, rgba(26, 15, 10, 0) 28%);
}

.sobre-content .label { display: block; margin-bottom: 22px; }
.sobre-content .h2 { color: var(--d-text); margin-bottom: 22px; }
.sobre-content > .body-text { color: var(--d-text-2); max-width: 460px; margin-bottom: 46px; }

.dif-list { border-top: 1px solid var(--d-hair); margin-bottom: 46px; }
.dif-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--d-hair);
}
/* marca dourada discreta no lugar do número (não é sequência ordenada) */
.dif-item h3 { position: relative; padding-left: 22px; }
.dif-item h3::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.dif-item p { padding-left: 22px; }
.dif-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  padding-top: 3px;
}
.dif-item h3 {
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--d-text);
  margin-bottom: 4px;
}
.dif-item p { font-size: 0.84rem; line-height: 1.75; color: var(--d-text-2); }

/* ── COMO FUNCIONA (processo editorial) ── */
.como-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: var(--space-8);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.como-steps[data-reveal] { opacity: 1; transform: none; }   /* só dispara a linha, não move */
/* linha dourada que conecta os passos e "desenha" ao entrar na viewport */
.como-steps::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) 0.15s;
}
.como-steps.in::before { transform: scaleX(1); }

.step { padding-top: 0; }
.step-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.25rem, 5.5vw, 4.5rem);
  line-height: 0.9;
  color: rgba(201, 168, 108, 0.5);
  margin-bottom: var(--space-5);
}
@supports (-webkit-text-stroke: 1px black) {
  .step-n {
    color: rgba(201, 168, 108, 0.12);
    -webkit-text-stroke: 1px rgba(201, 168, 108, 0.72);
  }
}
.step h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: var(--space-3);
}
.step p { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }
.como-cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.75rem); }

/* ── DEPOIMENTOS (cards) ── */
.depoimentos { background: var(--cream); }
.dep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(2.75rem, 5vw, 4.25rem);
}
.dep-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.dep-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.6;
  height: 0.5em;
  color: var(--gold);
  opacity: 0.55;
}
.dep-card blockquote {
  flex: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.6;
  color: #4A3D33;
}
.dep-card figcaption { display: flex; align-items: center; gap: 12px; }
.dep-avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--label-c);
}
.dep-card cite {
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dep-disclaimer {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--ink-3);
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}
.faq-left { position: sticky; top: 120px; }
.faq-left .label { display: block; margin-bottom: 20px; }
.faq-left .body-text { margin-top: 18px; max-width: 300px; }

.faq-list { border-top: 1px solid var(--hair); }
.faq-item {
  border-bottom: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  transition: background 0.4s ease;
}
.faq-item.open { background: rgba(201, 168, 108, 0.07); }   /* destaque sutil do aberto */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(4px, 1.4vw, 18px);
  min-height: 44px;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.3s ease;
}
.faq-q:hover { color: var(--brown); }
.faq-q svg {
  width: 36px; height: 36px;
  flex-shrink: 0;
  padding: 9px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--label-c);
  transition: transform 0.45s var(--ease-out), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.faq-item.open .faq-q svg { transform: rotate(45deg); background: var(--gold); color: var(--espresso); border-color: var(--gold); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-io);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
  padding: 0 clamp(4px, 1.4vw, 18px) 26px;
  max-width: 60ch;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ── CTA FINAL ── */
.cta-final {
  background: var(--espresso);
  color: var(--d-text);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 180px 0 170px;
}
.cta-final .wm {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(340px, 44vw, 640px);
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final .label { display: block; margin-bottom: 26px; }
.cta-final .h2 {
  color: var(--d-text);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-bottom: 20px;
}
.cta-final .h2 em { color: var(--gold); }
.cta-final .body-text {
  color: var(--d-text-2);
  max-width: 400px;
  margin: 0 auto 52px;
}
.cta-note {
  margin-top: 30px;
  font-size: 0.74rem;
  color: var(--d-text-2);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--espresso);
  color: var(--d-text-2);
  border-top: 1px solid var(--d-hair);
  padding: 88px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px;
}
.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--d-text);
  margin-bottom: 10px;
}
.footer-brand span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.8;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--d-label);
  margin-bottom: 22px;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.8;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--gold); }
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 13px 26px;
  border: 1px solid rgba(244, 237, 226, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--d-text);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-light svg { width: 14px; height: 14px; }
.footer-bottom {
  margin-top: 68px;
  padding-top: 28px;
  border-top: 1px solid var(--d-hair);
  text-align: center;
  font-size: 0.72rem;
  line-height: 2;
  color: rgba(244, 237, 226, 0.55);
}

/* ── WHATSAPP FLUTUANTE ── */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 168, 76, 0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out), background 0.3s ease;
}
.float-wa.visible { opacity: 1; transform: none; pointer-events: auto; }
.float-wa:hover { background: #178B3E; }
.float-wa svg { width: 26px; height: 26px; }

/* ── MOTION: entrada do hero (disparada por html.ready) ── */
.line { display: block; }

/* Reveal por palavra: máscara (clip) + subida + blur-in, stagger de 70ms */
.w {
  display: inline-block;
  clip-path: inset(-0.35em -0.18em 0 -0.18em); /* corta só embaixo; deixa respiro p/ itálico */
}
.w .wi {
  display: inline-block;
  transform: translateY(118%);
  filter: blur(6px);
  opacity: 0;
  will-change: transform, filter, opacity; /* GPU: evita repaint por frame do blur */
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease;
  transition-delay: calc(var(--wd, 0) * 70ms + 150ms);
}
html.ready .w .wi { transform: none; filter: blur(0); opacity: 1; }

/* Degradação adaptativa: em aparelhos lentos a entrada é quase instantânea */
html.instant .w .wi,
html.instant [data-hero] {
  transition-duration: 0.3s;
  transition-delay: 0ms;
}
html.instant .hero-media-mask,
html.instant .hero-media-mask img {
  transition-duration: 0.4s;
  transition-delay: 0ms;
}

[data-hero] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
html.ready [data-hero] { opacity: 1; transform: none; }

/* Eyebrow: 100% estático (sem transform/opacity) — é o maior texto do hero
   na medição mobile; qualquer animação nele adia o LCP até o movimento parar. */

.hero-media-mask {
  clip-path: inset(100% 0 0 0 round 18px); /* revela de baixo para cima */
  will-change: clip-path;
  transition: clip-path 1.1s var(--ease-io) 0.2s;
}
.hero-media-mask img {
  transform: scale(1.14);
  will-change: transform;
  transition: transform 1.5s var(--ease-out) 0.2s;
}
html.ready .hero-media-mask { clip-path: inset(0 0 0 0 round 18px); }
html.ready .hero-media-mask img { transform: scale(1); }

/* ── MOTION: scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal="fade"] { transform: none; }
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="img"] { transform: none; overflow: hidden; }
[data-reveal="img"] img {
  transform: scale(1.12);
  transition: transform 1.3s var(--ease-out);
}
[data-reveal="img"].in img { transform: scale(1); }

/* ── MOBILE (tratamento exclusivo) ── */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .hero-grid { column-gap: 40px; grid-template-columns: 1fr 1fr; }
  .sobre-grid { gap: 56px; }
  .faq-grid { gap: 56px; }
}

@media (max-width: 820px) {
  :root { --gutter: 22px; }
  body { line-height: 1.7; }

  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { height: 62px; gap: 12px; }
  .brand-logo { height: 30px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-text span { display: none; }   /* evita quebra em 2 linhas; CRM aparece logo abaixo no hero-foot */
  .header-cta { padding: 12px 20px; font-size: 0.8rem; }
  .cta-full { display: none; }
  .cta-short { display: inline; }

  /* Hero mobile: título → retrato → texto → ação */
  .hero { min-height: auto; position: relative; overflow: hidden; }

  /* Gradient mesh: blobs dourados girando lentamente (só CSS, só mobile) */
  .hero-mesh {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-mesh span {
    position: absolute;
    width: 72vw;
    height: 72vw;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform;
  }
  .hero-mesh span:nth-child(1) {
    top: -12%; left: -18%;
    background: radial-gradient(circle, rgba(201, 168, 108, 0.32), transparent 65%);
    animation: mesh-a 26s ease-in-out infinite alternate;
  }
  .hero-mesh span:nth-child(2) {
    top: 26%; right: -28%;
    background: radial-gradient(circle, rgba(226, 208, 184, 0.5), transparent 65%);
    animation: mesh-b 30s ease-in-out infinite alternate;
  }
  .hero-mesh span:nth-child(3) {
    bottom: -16%; left: 2%;
    background: radial-gradient(circle, rgba(184, 144, 90, 0.2), transparent 60%);
    animation: mesh-c 23s ease-in-out infinite alternate;
  }
  .hero-grid { position: relative; z-index: 1; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    padding-top: 108px;
    padding-bottom: 44px;
  }
  .hero-copy-top { order: 1; }
  .hero-media { order: 2; }
  .hero-copy-bottom { order: 3; }
  .hero-copy-top .label { margin-bottom: 20px; }
  .hero-copy-top .display { margin-bottom: 34px; max-width: none; }
  .hero-media { margin-bottom: 34px; }
  .hero-media-mask { height: auto; aspect-ratio: 4 / 5; max-height: 62vh; border-radius: 14px; }
  .hero-copy-bottom .lead { margin-bottom: 30px; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-arrow { align-self: center; }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 22px;
  }
  .hero-facts { gap: 10px 22px; }

  .section { padding: 92px 0; }

  .sec-head {
    display: block;
    margin-bottom: 48px;
  }
  .sec-head .body-text { max-width: none; justify-self: start; padding: 18px 0 0; }

  .esp-grid { grid-template-columns: 1fr; }

  .sobre-grid { display: block; }
  .sobre-media { aspect-ratio: 4 / 5; max-height: 60vh; margin-bottom: 44px; }

  .como-steps { display: block; padding-top: 0; margin-top: clamp(2rem, 6vw, 2.5rem); }
  .como-steps::before { display: none; }   /* linha horizontal não faz sentido empilhado */
  .step { padding: 26px 0; }
  .step + .step { border-top: 1px solid var(--hair-2); }
  .step-n { font-size: 2.75rem; margin-bottom: 10px; }
  .como-cta { margin-top: 40px; }
  .como-cta .btn { width: 100%; max-width: 400px; }

  /* carrossel horizontal com scroll-snap, sangrando até as bordas */
  .dep-grid {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dep-grid::-webkit-scrollbar { display: none; }
  .dep-card { scroll-snap-align: start; flex: 0 0 84%; }
  .dep-disclaimer { margin-top: 32px; }

  .faq-grid { display: block; }
  .faq-left { position: static; margin-bottom: 44px; }
  .faq-q { padding: 22px 0; font-size: 0.92rem; }

  .cta-final { padding: 120px 0; }
  .cta-final .btn { width: 100%; max-width: 400px; }

  .site-footer { padding: 68px 0 32px; }
  .footer-grid { display: block; }
  .footer-brand { margin-bottom: 44px; }
  .footer-col { margin-bottom: 44px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-bottom { margin-top: 48px; }
}

/* ── Keyframes do gradient mesh (mobile) ── */
@keyframes mesh-a {
  to { transform: translate(16vw, 12vh) rotate(30deg) scale(1.18); }
}
@keyframes mesh-b {
  to { transform: translate(-14vw, -8vh) rotate(-24deg) scale(1.12); }
}
@keyframes mesh-c {
  to { transform: translate(10vw, -10vh) rotate(18deg) scale(1.22); }
}

/* ── ACESSIBILIDADE: reduzir movimento ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], [data-hero] { opacity: 1; transform: none; }
  .w { clip-path: none; }
  .w .wi { transform: none; filter: none; opacity: 1; }
  .hero-mesh { display: none; }
  .hero-media-mask { clip-path: none; }
  .hero-media-mask img, [data-reveal="img"] img { transform: none; }
  .preloader { display: none; }
}
