/* ============================================================
   SEARLY MEDEIROS — TERAPIAS INTEGRATIVAS
   Design system: "Terreno Biológico"
   Paleta: azul-marinho profundo + ciano (identidade Voltagem 3D)
   Tipografia: Fraunces (display) + Work Sans (corpo/UI)
   Elemento-assinatura: linha de bioressonância (onda senoidal)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Cor */
  --ink: #16213A;
  --ink-soft: #445068;
  --ink-faint: #75839F;

  --bg: #F5F7FB;
  --bg-alt: #E9EEF7;
  --surface: #FFFFFF;
  --line: #D6DFEC;

  --primary: #16264A;
  --primary-dark: #0A1327;
  --primary-soft: #DCE7F7;
  --primary-tint: #EEF3FC;

  --accent: #2FA0D6;
  --accent-dark: #1B77A6;
  --accent-soft: #DCF0FA;

  --on-dark: #F1F6FC;
  --on-dark-soft: #C3D2E8;

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", "Georgia",;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Escala fluida */
  --fs-h1: clamp(2.4rem, 1.7rem + 3vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(20, 34, 24, 0.06);
  --shadow-md: 0 14px 40px -12px rgba(20, 34, 24, 0.22);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* html { scroll-behavior: smooth; } */
@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; scroll-behavior: auto !important; }
}
/* body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
} */

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--header-h, 80px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: var(--on-dark);
  padding: 0.75rem 1.25rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- 3. TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--accent); }

h1 em, h1 i { font-style: italic; color: var(--accent); }

.section-lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 0.9rem;
}
.section-lead-light { color: var(--on-dark-soft); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-tint); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(246, 244, 236, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header[data-scrolled] { border-color: var(--line); box-shadow: 0 4px 20px rgba(20,34,24,0.05); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 30px; height: 30px; color: var(--primary); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; }
.brand-text em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

.site-nav ul { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.3rem;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem);
}
.hero-waveform {
  position: absolute;
  inset: auto 0 -4rem 0;
  height: 260px;
  color: var(--primary-soft);
  opacity: 0.9;
  pointer-events: none;
}
.hero-waveform svg { width: 100%; height: 100%; }
.wave-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-wave 2.4s var(--ease) forwards 0.2s;
}
@keyframes draw-wave { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy h1 { margin-bottom: 1.3rem; }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }

.credential-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.credential-chips li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.hero-figure { position: relative; }
.hero-figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-alt));
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-figure-frame img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hero-figure-frame::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- 7. SECTIONS (generic) ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head-center { max-width: 60ch; margin-inline: auto; text-align: center; }
.section-cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

.section-dark {
  position: relative;
  background: var(--primary-dark);
  color: var(--on-dark);
  overflow: hidden;
}
.section-dark h2 { color: var(--on-dark); }
.section-waveform {
  position: absolute; inset: 0;
  color: rgba(243, 241, 231, 0.06);
  pointer-events: none;
}
.section-waveform svg { width: 100%; height: 100%; }

/* ---------- 8. TIMELINE (Formação) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}
.timeline-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.timeline-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.timeline-body h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.timeline-body p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- 9. PILLAR GRID (Mentoria) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
}
.pillar-card {
  background: rgba(243, 241, 231, 0.05);
  border: 1px solid rgba(243, 241, 231, 0.14);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.75rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar-card:hover { transform: translateY(-4px); background: rgba(243, 241, 231, 0.09); border-color: var(--accent); }
.pillar-index {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.pillar-card h3 { color: var(--on-dark); font-size: var(--fs-h3); margin-bottom: 0.65rem; }
.pillar-card p { color: var(--on-dark-soft); font-size: 0.95rem; }

/* ---------- 10. CARD GRID (Tratamentos) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.treatment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.85rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.treatment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.treatment-icon {
  width: 52px; height: 52px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.treatment-icon svg { width: 26px; height: 26px; }
.treatment-card h3 { font-size: var(--fs-h3); margin-bottom: 0.7rem; }
.treatment-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.4rem; }
.card-link { font-weight: 600; color: var(--accent-dark); font-size: 0.9rem; transition: gap 0.25s var(--ease); }
.card-link:hover { color: var(--primary); }

/* ---------- 11. TESTIMONIALS ---------- */
.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; line-height: 1.5; color: var(--ink); }
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--primary-soft); }
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--ink-faint); }
.testimonial-dots { display: none; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.testimonial-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.testimonial-dots span[data-active] { background: var(--accent); width: 18px; border-radius: 4px; transition: width 0.3s var(--ease); }

/* ---------- 12. CTA BAND ---------- */
.cta-band {
  background: var(--accent-soft);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-inner { text-align: center; max-width: 640px; margin-inline: auto; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { color: var(--ink-soft); margin-bottom: 2rem; font-size: var(--fs-lead); }

/* ---------- 13. FOOTER ---------- */
.site-footer { background: var(--primary-dark); color: var(--on-dark-soft); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(243,241,231,0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-block: 1.5rem; text-align: center; font-size: 0.8rem; }

/* ---------- 14. FLOATING BUTTONS ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  right: 1.5rem; bottom: 6.25rem;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 90;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }

/* ---------- 15. SCROLL REVEAL ---------- */
[data-reveal], [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible, [data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.18s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.34s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.42s; }

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    overflow: hidden;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(20,34,24,0.15);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
  }
  .site-nav[data-open] { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nav-link { font-size: 1.1rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 340px; margin-inline: auto; }

  .pillar-grid, .card-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .header-actions .btn-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .testimonial-dots { display: flex; }
}
