/* ============================================================================
   TEMPLATE PREMIUM #3 — "ONDAS DE CALMA"
   Identidade visual distinta dos Templates 1 e 2: ameixa + âmbar + off-white
   quente, tipografia Cormorant Garamond + Sora, e o motivo de ondas suaves
   (calma, reflexão) como elemento de assinatura e divisor de seções.
   Todas as cores ficam em :root e são sobrescritas via JS a partir de config.js.
   ============================================================================ */

/* ---------------------------------- RESET -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Escritos page: footer always at bottom */
body:has(.escritos-footer) {
  display: flex;
  flex-direction: column;
}
body:has(.escritos-footer) #main {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------ DESIGN TOKENS ----------------------------- */
:root {
  --primary: #1A4A5B;
  --primary-dark: #0E3340;
  --secondary: #C8DCE4;
  --accent: #1A4A5B;
  --accent-dark: #0E3340;
  --background: #E8F2F6;
  --text: #0E3340;
  --gray: #4A6572;

  --white: #FFFFFF;
  --surface: #FFFFFF;
  --border-soft: rgba(26, 74, 91, 0.16);
  --shadow-soft: 0 12px 40px rgba(14, 51, 64, 0.12);
  --shadow-med: 0 22px 60px rgba(14, 51, 64, 0.18);

  /* Tipografia — pareamento distinto dos Templates 1 e 2 */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Sora', sans-serif;

  --container: 1180px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 40px;
  --section-pad: clamp(72px, 10vw, 132px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------- BASE ---------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.8rem, 5.8vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); }

p { color: var(--text); opacity: 0.82; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.06rem; }

section { position: relative; padding: var(--section-pad) 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: var(--white);
  padding: 12px 20px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------- LOADER ----------------------------------- */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--background);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-wave { width: 64px; height: 24px; overflow: visible; }
.loader-wave path {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: wave-draw 1.6s ease-in-out infinite;
}
@keyframes wave-draw {
  0% { stroke-dashoffset: 90; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -90; }
}

/* ------------------------- SIGNATURE: ONDAS -------------------------------- */
/* Ondas suaves — usadas como divisor entre seções e textura de fundo,
   remetendo à calma e à reflexão (o "espelho d'água" da terapia). */
.wave-divider { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.wave-divider path { fill: var(--background); }
.wave-divider.into-primary path { fill: var(--primary-dark); }
.wave-divider.into-surface path { fill: var(--surface); }
.wave-divider.into-secondary path { fill: var(--secondary); }
.wave-divider.flip { transform: rotate(180deg); }

.wave-bg {
  position: absolute; left: 0; right: 0; opacity: 0.5; pointer-events: none; z-index: 0;
}

/* --------------------------------- HEADER ---------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(232, 242, 246, 0.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { border-color: var(--border-soft); box-shadow: 0 4px 24px rgba(74,61,80,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--container); margin: 0 auto; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--primary-dark); }
.logo span { color: var(--accent); font-style: italic; }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-img-footer { height: 38px; filter: brightness(0) invert(1); }
.footer-logo-img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-name-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: block;
}

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a { font-size: 0.92rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav-desktop a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.btn-nav-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 100px;
  background: transparent; border: 1.5px solid var(--border-soft);
  color: var(--primary-dark); font-size: 0.82rem; font-weight: 600;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap; flex-shrink: 0;
}
.btn-nav-instagram:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
/* No mobile o Instagram fica dentro do menu — esconde do header */
@media (max-width: 768px) { .btn-nav-instagram { display: none; } }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; z-index: 1100; }
.menu-toggle span { width: 24px; height: 2px; background: var(--primary-dark); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
  background: var(--surface); z-index: 1050; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  padding: 100px 32px 40px; display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a { font-size: 1.15rem; font-weight: 600; color: var(--primary-dark); }
.nav-mobile a.btn-primary { color: var(--white) !important; }
.nav-mobile-cta { font-size: 1.15rem; font-weight: 600; color: var(--primary-dark); }
.btn-mobile-ig {
  background: transparent !important;
  color: var(--primary-dark) !important;
  border: 1.5px solid var(--primary-dark) !important;
  box-shadow: none !important;
  font-size: 1rem;
}
.nav-overlay {
  position: fixed; inset: 0; background: rgba(58,46,61,0.35); z-index: 1040;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* --------------------------------- BUTTONS --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--border-soft); }
.btn-outline:hover { border-color: var(--primary); background: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.header-cta .btn-sm { height: 38px; padding: 0 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---------------------------------- HERO ----------------------------------- */
.hero { padding-top: clamp(120px, 18vh, 180px); padding-bottom: 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
/* Hero invertido: foto esquerda (col 1), texto direita (col 2) */
.hero-grid-reversed .hero-media { order: 1; }
.hero-grid-reversed #hero-content { order: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-soft);
  padding: 8px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  color: var(--primary-dark); margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #5CA96F; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.hero h1 { margin-bottom: 20px; }
.hero-h1-main { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 14px; color: var(--primary-dark); font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
.hero-h1-sub  { font-size: clamp(1.25rem, 2.5vw, 1.7rem); margin-bottom: 22px; color: var(--primary); font-family: var(--font-display); font-weight: 500; line-height: 1.25; }
.hero .sub { font-size: 1.08rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-seals { display: flex; flex-wrap: wrap; gap: 22px; }
.seal { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); }
.seal svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-photo-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-med); aspect-ratio: 4/5; }
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 18px 22px; box-shadow: var(--shadow-soft);
  max-width: 250px;
}
.hero-float-card .label { font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); line-height: 1.4; }

.hero-wave-bottom { position: relative; z-index: 1; margin-top: 40px; }

/* --------------------------------- ABOUT ------------------------------------ */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.about-photo { order: 2; position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 1/1; max-width: 440px; margin-left: auto; }
.about-text { order: 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-text .lead { font-size: 1.1rem; margin-bottom: 28px; }

/* ---- Cards "Quem eu sou" ---- */
.quem-cards { display: flex; flex-direction: column; gap: 12px; }
.quem-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--background); border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 18px 20px; text-align: left;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer; width: 100%;
}
.quem-card:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); transform: translateX(4px); }
.quem-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--secondary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.quem-card-icon svg { width: 22px; height: 22px; }
.quem-card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.quem-card-body strong { font-size: 0.98rem; font-weight: 700; color: var(--primary-dark); }
.quem-card-body span { font-size: 0.85rem; color: var(--gray); }
.quem-card-arrow { color: var(--accent); flex-shrink: 0; }
.quem-card-arrow svg { width: 18px; height: 18px; }

/* ---- Modais ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(23, 61, 74, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 24px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 540px; width: 100%; padding: 40px;
  box-shadow: var(--shadow-med); position: relative;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark); transition: background 0.2s;
}
.modal-close:hover { background: var(--border-soft); }
.modal-close svg { width: 16px; height: 16px; }
.modal-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.modal-icon svg { width: 26px; height: 26px; }
.modal-box h3 { font-size: 1.5rem; color: var(--primary-dark); margin: 0; }
.modal-box p { font-size: 1rem; line-height: 1.75; opacity: 0.88; }
.modal-topico-label { font-size: 0.92rem; font-weight: 700; color: var(--primary); padding: 10px 14px; background: var(--secondary); border-radius: var(--radius-sm); opacity: 1 !important; }
body.modal-open { overflow: hidden; }


/* ---- Modal rich content ---- */
.modal-box-rich { max-height: none; overflow-y: visible; }
.modal-rich-content p { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.modal-rich-content p:last-child { margin-bottom: 0; }
.modal-rich-content strong { color: var(--primary-dark); font-weight: 700; display: block; margin: 16px 0 6px; }
.modal-rich-content ul { padding-left: 18px; margin-bottom: 12px; }
.modal-rich-content ul li { font-size: 0.92rem; line-height: 1.65; color: var(--text); margin-bottom: 4px; }

/* ---- Modal overlay scrolls (for long modal content) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(23, 61, 74, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

/* ---- Modal rich content (listas, parágrafos) ---- */
.modal-box-rich { max-height: none; overflow-y: visible; }
.modal-rich-content p { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.modal-rich-content p:last-child { margin-bottom: 0; }
.modal-rich-content strong { color: var(--primary-dark); font-weight: 700; display: block; margin: 16px 0 6px; }
.modal-rich-content ul { padding-left: 18px; margin-bottom: 12px; }
.modal-rich-content ul li { font-size: 0.92rem; line-height: 1.65; color: var(--text); margin-bottom: 4px; }

/* ---- Seção "Quando a análise faz sentido" ---- */
.quando-section { background: var(--primary-dark); color: var(--white); position: relative; overflow: hidden; }
.quando-section .section-head h2 { color: var(--white); }
.quando-section .eyebrow { color: rgba(255,255,255,0.7); }
.quando-section .eyebrow::before { background: var(--accent); }
.quando-section .section-head p { color: rgba(255,255,255,0.75); }
.topicos-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.topico-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 18px 22px; text-align: left; width: 100%;
  cursor: pointer; color: var(--white);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.topico-item:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateX(4px); }
.topico-check {
  width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.topico-texto { flex: 1; font-size: 1rem; font-weight: 500; }
.topico-arrow { color: var(--accent); flex-shrink: 0; opacity: 0.7; }
.topico-arrow svg { width: 18px; height: 18px; }

/* ------------------------------ CARD GRIDS ---------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 32px 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--secondary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent-dark);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.card p { font-size: 0.92rem; }

/* ------------------------------- HOW IT WORKS -------------------------------- */
.timeline { background: var(--primary-dark); color: var(--white); position: relative; overflow: hidden; }
.timeline .section-head h2, .timeline .eyebrow { color: var(--white); }
.timeline .eyebrow::before { background: var(--accent); }
.timeline .section-head p { color: var(--white); opacity: 0.75; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 20px; }
.timeline-item { position: relative; padding: 0 24px 0 0; }
.timeline-item:not(:last-child)::after { content: ''; position: absolute; top: 26px; right: -12px; width: calc(100% - 20px); height: 1.5px; background: rgba(255,255,255,0.18); }
.timeline-num {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--accent);
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25); margin-bottom: 22px; background: rgba(255,255,255,0.05);
}
.timeline-item h3 { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 8px; }
.timeline-item p { color: var(--white); opacity: 0.72; font-size: 0.92rem; }

/* -------------------------------- TESTIMONIALS -------------------------------- */
.testimonials { background: var(--background); }
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px 28px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--accent); }
.testi-stars svg { width: 16px; height: 16px; }
.testi-text { font-size: 0.98rem; font-style: italic; margin-bottom: 20px; color: var(--text); }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--secondary);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--primary-dark);
}
.testi-name { font-weight: 700; font-size: 0.92rem; }
.testi-age { font-size: 0.8rem; opacity: 0.6; }

/* -------------------------------- CAMINHOS PARA A ANÁLISE -------------------------------- */
.caminhos-topicos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.caminho-topico-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: default;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.caminho-topico-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--secondary) 20%, var(--surface));
}
.caminho-topico-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
}
.caminho-topico-check::after {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.35;
}
.caminho-topico-texto {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.55;
}

/* -------------------------------- COMO DAR O PRIMEIRO PASSO — TRILHA VERTICAL -------------------------------- */
.primeiro-passo-section {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}
.primeiro-passo-section .section-head h2 { color: var(--white); }
.primeiro-passo-section .eyebrow { color: rgba(255,255,255,0.7); }
.primeiro-passo-section .eyebrow::before { background: var(--secondary); }

/* Container vertical da trilha */
.trilha-vertical {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Linha vertical central */
.trilha-vertical-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg,
    var(--secondary) 0%,
    rgba(200, 220, 228, 0.4) 100%
  );
  z-index: 0;
  border-radius: 2px;
}

/* Cada linha da trilha: 3 colunas [conteúdo | número | conteúdo] */
.trilha-vertical-item {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 0 24px;
  position: relative;
  z-index: 1;
  padding: 28px 0;
}

/* Coluna central: número */
.trilha-v-center {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.trilha-v-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 6px rgba(200, 220, 228, 0.18),
    0 8px 28px rgba(14, 51, 64, 0.35);
  letter-spacing: -0.02em;
}

/* Conteúdo (card de texto) */
.trilha-v-body {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(200, 220, 228, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.trilha-v-body h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.trilha-v-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

/* Item da esquerda: texto à esquerda, vazio à direita */
.trilha-v-left .trilha-v-body { text-align: right; }

/* Item da direita: vazio à esquerda, texto à direita */
.trilha-v-right .trilha-v-body { text-align: left; }

/* Célula vazia (lado oposto ao texto) */
.trilha-v-empty { /* apenas espaçamento */ }

/* Linha de conexão horizontal (do número ao card) — pseudo-elemento */
.trilha-v-left .trilha-v-body {
  position: relative;
}
.trilha-v-left .trilha-v-body::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 1.5px;
  background: rgba(200, 220, 228, 0.35);
}
.trilha-v-right .trilha-v-body {
  position: relative;
}
.trilha-v-right .trilha-v-body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -24px;
  width: 24px;
  height: 1.5px;
  background: rgba(200, 220, 228, 0.35);
}

/* ---- Responsivo ---- */
@media (max-width: 680px) {
  .trilha-vertical-spine { left: 36px; }
  .trilha-vertical-item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto;
    gap: 0 18px;
    padding: 20px 0;
  }
  /* Todos os itens: número à esquerda, texto à direita */
  .trilha-v-left .trilha-v-body,
  .trilha-v-right .trilha-v-body { text-align: left; }
  .trilha-v-left .trilha-v-body::after,
  .trilha-v-right .trilha-v-body::before { display: none; }
  .trilha-v-empty { display: none; }
  .trilha-v-left .trilha-v-center { grid-column: 1; grid-row: 1; }
  .trilha-v-left .trilha-v-body  { grid-column: 2; grid-row: 1; }
  .trilha-v-right .trilha-v-center { grid-column: 1; grid-row: 1; }
  .trilha-v-right .trilha-v-body  { grid-column: 2; grid-row: 1; }
  .trilha-v-num { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* -------------------------------- MINHA CLÍNICA — TÓPICOS CLICÁVEIS -------------------------------- */
.minha-clinica-section {
  background: var(--surface);
  color: var(--text);
  position: relative;
  padding-bottom: 0;
}
.minha-clinica-section .section-head h2 { color: var(--primary-dark); }
.minha-clinica-section .eyebrow { color: var(--gray); }
.minha-clinica-section .eyebrow::before { background: var(--accent); }
.minha-clinica-section .section-head p { color: var(--gray); }
.clinica-topicos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.clinica-topico-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--background);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: var(--text);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.clinica-topico-item:hover {
  background: var(--secondary);
  border-color: var(--accent);
  transform: translateX(4px);
}
.clinica-topico-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clinica-topico-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.clinica-topico-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
}
.clinica-topico-resumo {
  font-size: 0.84rem;
  color: var(--gray);
  font-weight: 400;
}
.clinica-topico-arrow {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}
.clinica-topico-arrow svg { width: 18px; height: 18px; }

/* ------------------------------------ FAQ -------------------------------------- */
.faq { background: var(--background); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--primary-dark); }
.faq-question .icon-plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-question .icon-plus::before, .faq-question .icon-plus::after { content: ''; position: absolute; background: var(--accent-dark); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-question .icon-plus::before { width: 14px; height: 2px; }
.faq-question .icon-plus::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item.open .icon-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding: 0 4px 24px; font-size: 0.96rem; max-width: 680px; }

/* ------------------------------------ CTA FINAL --------------------------------- */
.cta-final { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-final h2, .cta-final p { color: var(--white); }
.cta-final .eyebrow { color: rgba(255,255,255,0.7); }
.cta-final .btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.cta-final .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.cta-final .section-head { margin-inline: auto; }
.cta-final-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* -------------------------------------- FOOTER ----------------------------------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-nav-2col { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.footer-nav-2col li { gap: 0; }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 18px; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent); }
.footer-map { border-radius: var(--radius-md); overflow: hidden; height: 160px; filter: grayscale(0.3); }
.footer-map iframe { width: 100%; height: 100%; border: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.3s var(--ease); }
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------- FLOATING ELEMENTS ------------------------------ */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 900; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); animation: float-bob 3s ease-in-out infinite; transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes float-bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-6px);} }

.back-to-top {
  position: fixed; bottom: 26px; right: 96px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; color: var(--primary-dark); }

/* -------------------------------- SCROLL ANIMATIONS -------------------------------- */
[data-animate] { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-animate="fade-up"] { transform: translateY(28px); }
[data-animate="fade-left"] { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate].in-view { opacity: 1; transform: translate(0,0); }

/* ------------------------------------- RESPONSIVE ---------------------------------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .timeline-item:nth-child(2)::after { display: none; }
  .testi-track { grid-template-columns: repeat(1, 1fr); max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav-2col { grid-template-columns: 1fr; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid-reversed .hero-media { order: 1; max-width: 420px; margin: 0 auto 20px; }
  .hero-grid-reversed #hero-content { order: 2; }
  .hero-media { order: 1; max-width: 420px; margin: 0 auto 20px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav-desktop, .header-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { padding: 24px 18px; }
  .timeline-grid { grid-template-columns: 1fr; }
  .timeline-item::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-float-card { position: static; margin-top: -30px; margin-inline: 16px; }
  .back-to-top { right: 16px; bottom: 96px; }
  .whatsapp-float { right: 16px; bottom: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-box { padding: 28px 22px; border-radius: var(--radius-md); }
  .topico-item { padding: 14px 16px; }
}
@media (max-width: 420px) { .card-grid { grid-template-columns: 1fr; } }
/* ══════════════════════════════════════════════
   ESCRITOS — CARROSSEL NA HOME
══════════════════════════════════════════════ */
.escritos-section {
  padding: clamp(64px, 10vh, 100px) 0;
  background: var(--background);
}
.escritos-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  position: relative;
}
.escritos-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.escritos-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.escritos-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--secondary);
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(14,51,64,0.10);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.escritos-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(14,51,64,0.18);
}
.escritos-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.escritos-slide-no-cover {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
  color: var(--primary-dark);
}
.escritos-slide-no-cover svg { width: 36px; height: 36px; opacity: 0.4; }
.escritos-slide-no-cover span { font-size: 0.88rem; opacity: 0.6; font-weight: 600; }
.escritos-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,51,64,0.82) 0%, transparent 100%);
  padding: 32px 16px 14px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.escritos-slide:hover .escritos-slide-overlay { opacity: 1; }
.escritos-slide-title {
  color: #fff; font-size: 0.88rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Setas */
.escritos-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(14,51,64,0.10);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  cursor: pointer;
}
.escritos-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.escritos-arrow svg { width: 18px; height: 18px; }

/* Dots */
.escritos-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.escritos-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.escritos-dot.active { background: var(--accent); transform: scale(1.3); }

.escritos-empty {
  padding: 40px; text-align: center; opacity: 0.5; font-size: 0.9rem;
}
.escritos-loading {
  padding: 40px; text-align: center; opacity: 0.4; font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1023px) {
  .escritos-slide { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 639px) {
  .escritos-slide { flex: 0 0 100%; }
  .escritos-arrow { width: 38px; height: 38px; }
  .escritos-arrow svg { width: 16px; height: 16px; }
}
