/* ===========================================================
   The CosmoCare Clinic — Design System
   Aesthetic: refined medical-luxury. Soft mint-cream canvas,
   teal brand, warm gold accents, editorial Fraunces display.
   =========================================================== */

:root {
  /* Palette */
  --mint: #F4FAF9;
  --mint-2: #EAF4F3;
  --cream: #FBF8F2;
  --ink: #0A2A2E;
  --ink-soft: #2C4A4E;
  --muted: #5E7679;
  --line: #DCE9E7;

  --teal: #14B8C8;
  --teal-deep: #0A7A89;
  --teal-ink: #0E3B42;
  --teal-glow: rgba(20, 184, 200, 0.18);

  --gold: #C29A52;
  --gold-soft: #E7D6B0;

  --white: #ffffff;

  /* Typography */
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape & motion */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 44px;
  --shadow-sm: 0 4px 18px -8px rgba(10, 42, 46, 0.18);
  --shadow-md: 0 18px 50px -22px rgba(10, 42, 46, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(10, 42, 46, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--mint);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Atmosphere: grain + mesh ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, var(--teal-glow), transparent 60%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(194, 154, 82, 0.08), transparent 55%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.page { position: relative; z-index: 2; }

/* ---------- Preloader (page-load animation) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--mint);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s ease 0.3s;
}
.preloader::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50vw 40vw at 50% 40%, var(--teal-glow), transparent 60%);
}
.preloader.loaded { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.preloader__logo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pl-mark { width: 96px; height: 96px; overflow: visible; }
.pl-mark .pl-c {
  fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round;
  transform-origin: 50px 50px; opacity: 0;
  animation: plDraw 1.15s var(--ease) forwards;
}
.pl-mark .pl-c1 { stroke-dasharray: 251; stroke-dashoffset: 251; animation-delay: .05s; }
.pl-mark .pl-c2 { stroke-dasharray: 176; stroke-dashoffset: 176; stroke: var(--teal-deep); animation-delay: .2s; }
.pl-mark .pl-c3 { stroke-dasharray: 100; stroke-dashoffset: 100; animation-delay: .35s; }
.pl-mark .pl-dot { fill: var(--teal); opacity: 0; transform-origin: 50px 50px; animation: plPop .5s var(--ease) .55s forwards; }
.pl-mark .pl-ring { fill: none; stroke: var(--teal); stroke-width: 2; opacity: .25; transform-origin: 50px 50px; animation: plSpin 1.6s linear infinite; }
@keyframes plDraw { to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes plPop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-word { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.01em; color: var(--ink); opacity: 0; transform: translateY(14px); animation: plWord .8s var(--ease) .55s forwards; display: flex; align-items: baseline; gap: 8px; }
.pl-word span { font-size: 0.85rem; font-family: var(--sans); font-weight: 600; color: var(--teal-deep); }
.pl-word strong { font-weight: 500; }
.pl-word strong b { color: var(--teal-deep); font-weight: 600; }
.pl-word em { font-family: var(--sans); font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
@keyframes plWord { to { opacity: 1; transform: none; } }
.pl-bar { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); border-radius: 3px; animation: plBar 1.4s var(--ease) forwards; }
@keyframes plBar { 0% { width: 0; } 100% { width: 100%; } }
html.preloaded-done .preloader { display: none; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.1s linear; }

@media (prefers-reduced-motion: reduce) {
  .pl-mark .pl-c, .pl-mark .pl-dot, .pl-word, .pl-bar span, .pl-mark .pl-ring { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
  .preloader { transition: opacity .3s ease; }
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(50px, 6vw, 80px) 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.h-xl { font-size: clamp(2.8rem, 6.2vw, 5.3rem); font-optical-sizing: auto; }
.h-lg { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.serif-italic { font-style: italic; font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--muted); }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--teal); display: inline-block;
}
.eyebrow--center::after {
  content: ""; width: 26px; height: 1.5px; background: var(--teal); display: inline-block;
}
.text-center { text-align: center; }
.text-center .eyebrow { justify-content: center; }

.accent { color: var(--teal-deep); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--teal-ink); }
.btn--teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: var(--white);
  box-shadow: 0 14px 30px -12px var(--teal-deep);
}
.btn--teal:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px var(--teal-deep); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-3px); }
.btn--lg { padding: 19px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.45s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(244, 250, 249, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 10px 40px -28px rgba(10,42,46,0.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 46px; transition: height 0.4s var(--ease); }
.scrolled .nav__logo img { height: 40px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 0.97rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--teal);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { font-weight: 700; color: var(--teal-deep); display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.nav__phone svg { width: 17px; height: 17px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav__toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.35s var(--ease); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { color: #cfe9ec; font-family: var(--display); font-size: 2rem; padding: 10px; opacity: 0; transform: translateY(20px); }
.mobile-menu.open a { animation: slideUp 0.5s var(--ease) forwards; }
.mobile-menu.open a:nth-child(1){animation-delay:.08s} .mobile-menu.open a:nth-child(2){animation-delay:.14s}
.mobile-menu.open a:nth-child(3){animation-delay:.20s} .mobile-menu.open a:nth-child(4){animation-delay:.26s}
.mobile-menu.open a:nth-child(5){animation-delay:.32s} .mobile-menu.open a:nth-child(6){animation-delay:.38s}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(140px, 18vw, 200px); padding-bottom: clamp(60px, 8vw, 100px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { margin: 22px 0 24px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.hero.in .hero__title .line > span { transform: translateY(0); }
.hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.hero__title .line:nth-child(3) > span { transition-delay: 0.2s; }

.fade-seq { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.hero.in .fade-seq { opacity: 1; transform: none; }
.hero.in .fade-seq.d1 { transition-delay: 0.35s; }
.hero.in .fade-seq.d2 { transition-delay: 0.5s; }
.hero.in .fade-seq.d3 { transition-delay: 0.65s; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.hero__rating { display: flex; align-items: center; gap: 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.hero__rating b { font-family: var(--display); font-size: 1.4rem; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--mint); object-fit: cover; margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__media {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg); transform: translateY(30px) scale(0.97); opacity: 0;
  transition: opacity 1s var(--ease) 0.3s, transform 1s var(--ease) 0.3s;
}
.hero.in .hero__media { opacity: 1; transform: none; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(10,42,46,0.35)); }

.float-card {
  position: absolute; background: rgba(255,255,255,0.86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow-md); z-index: 3;
}
.float-card--1 { bottom: 28px; left: -26px; animation: floaty 6s ease-in-out infinite; }
.float-card--2 { top: 36px; right: -22px; animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.float-card .num { font-family: var(--display); font-size: 1.7rem; color: var(--teal-deep); line-height: 1; }
.float-card .lbl { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.hero__blob { position: absolute; z-index: -1; width: 120%; left: -10%; top: -10%; opacity: 0.5; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream); padding: 22px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 1.5rem; color: var(--teal-ink); white-space: nowrap; }
.marquee__item::before { content: "✦"; color: var(--gold); font-size: 0.9rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .h-lg { margin-top: 16px; }
.sec-head.text-center { margin-inline: auto; max-width: 760px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{transition-delay:.1s}.reveal[data-d="2"]{transition-delay:.2s}
.reveal[data-d="3"]{transition-delay:.3s}.reveal[data-d="4"]{transition-delay:.4s}
.reveal[data-d="5"]{transition-delay:.5s}

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.scard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.scard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.scard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.scard:hover::before { transform: scaleX(1); }
.scard__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--mint-2); color: var(--teal-deep); transition: all 0.5s var(--ease);
}
.scard:hover .scard__icon { background: var(--teal); color: var(--white); transform: rotate(-6deg); }
.scard__icon svg { width: 30px; height: 30px; }
.scard h3 { font-size: 1.4rem; margin-bottom: 10px; }
.scard p { color: var(--muted); font-size: 0.97rem; }
.scard__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-deep); font-size: 0.92rem; }
.scard__link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.scard:hover .scard__link svg { transform: translateX(5px); }
.scard--feature { grid-column: span 2; background: linear-gradient(150deg, var(--teal-ink), #0a3338); color: #dff3f5; border: none; }
.scard--feature h3, .scard--feature .scard__link { color: #fff; }
.scard--feature p { color: #aacdd1; }
.scard--feature .scard__icon { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; }
.stat .num { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--teal-deep); line-height: 1; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-top: 8px; letter-spacing: 0.04em; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/6; position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__list { margin-top: 26px; display: grid; gap: 16px; }
.split__list li { display: flex; gap: 14px; align-items: flex-start; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-2); color: var(--teal-deep); display: grid; place-items: center; margin-top: 2px; }
.tick svg { width: 15px; height: 15px; }
.split__list b { display: block; }
.split__list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: none; }
.step__num { counter-increment: step; font-family: var(--display); font-size: 2.2rem; color: var(--teal); width: 70px; }
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 60ch; }

/* ---------- Testimonials ---------- */
.tcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 16px; height: 100%;
}
.tcard__stars { color: var(--gold); display: flex; gap: 2px; }
.tcard__stars svg { width: 17px; height: 17px; }
.tcard p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.tcard__person { display: flex; align-items: center; gap: 12px; }
.tcard__person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tcard__person b { display: block; font-size: 0.96rem; }
.tcard__person span { color: var(--muted); font-size: 0.82rem; }
.tcard__quote { font-family: var(--display); font-size: 3rem; color: var(--teal-glow); line-height: 0.5; height: 26px; }

/* ---------- Before / After slider ---------- */
.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; user-select: none;
  box-shadow: var(--shadow-md); cursor: ew-resize; touch-action: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); color: var(--teal-deep); }
.ba__grip svg { width: 22px; height: 22px; }
.ba__tag { position: absolute; top: 16px; padding: 6px 14px; border-radius: 100px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(10,42,46,0.7); color: #fff; backdrop-filter: blur(6px); }
.ba__tag--b { left: 16px; } .ba__tag--a { right: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink); }
.faq__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all 0.4s var(--ease); position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--teal-deep); border-radius: 2px; }
.faq__icon::before { width: 14px; height: 2px; } .faq__icon::after { width: 2px; height: 14px; transition: transform 0.4s var(--ease); }
.faq__item.open .faq__icon { background: var(--teal); border-color: var(--teal); }
.faq__item.open .faq__icon::before, .faq__item.open .faq__icon::after { background: #fff; }
.faq__item.open .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__a p { padding: 0 4px 26px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(50px, 7vw, 84px); background: linear-gradient(140deg, var(--teal-ink), #082a2f); color: #e7f5f6; text-align: center; }
.cta-band::before { content:""; position:absolute; width:480px; height:480px; border-radius:50%; background: radial-gradient(circle, var(--teal-glow), transparent 70%); top:-180px; right:-120px; }
.cta-band::after { content:""; position:absolute; width:360px; height:360px; border-radius:50%; background: radial-gradient(circle, rgba(194,154,82,0.18), transparent 70%); bottom:-160px; left:-100px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #aacdd1; position: relative; margin: 16px auto 32px; max-width: 56ch; }
.cta-band .hero__actions { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9fc0c4; padding: clamp(60px, 7vw, 90px) 0 30px; position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 52px; margin-bottom: 20px; }
.footer p { font-size: 0.95rem; color: #88adb1; max-width: 34ch; }
.footer h4 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: #9fc0c4; font-size: 0.96rem; transition: color 0.3s, padding 0.3s; }
.footer__links a:hover { color: var(--teal); padding-left: 5px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.95rem; color: #9fc0c4; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--teal); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); display: grid; place-items: center; color: #cfe9ec; transition: all 0.4s var(--ease); }
.footer__social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: #6f9498; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6);
  transition: transform 0.4s var(--ease); animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.5)} 70%{box-shadow:0 0 0 18px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(150px, 18vw, 200px); padding-bottom: clamp(40px, 6vw, 70px); text-align: center; }
.page-hero .h-xl { margin: 18px 0; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--teal-deep); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }
.field textarea { resize: vertical; min-height: 96px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Misc ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 100px; background: var(--mint-2); color: var(--teal-deep); font-size: 0.82rem; font-weight: 700; }
.divider-icon { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); margin: 0 auto; }
.divider-icon::before, .divider-icon::after { content: ""; height: 1px; width: 60px; background: var(--line); }

/* ---------- Real results gallery ---------- */
.real-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.real-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.real-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.real-card__media { position: relative; overflow: hidden; background: var(--mint-2); }
.real-card__media img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease); }
.real-card:hover .real-card__media img { transform: scale(1.03); }
.real-card__badge { position: absolute; top: 14px; left: 14px; background: rgba(10,42,46,.78); color: #fff; backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 100px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.real-card__badge svg { width: 13px; height: 13px; color: var(--gold-soft); }
.real-card__cap { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.real-card__cap b { font-size: .98rem; }
.real-card__cap span { font-size: .82rem; color: var(--muted); }

/* ---------- Video feature ---------- */
.video-feature { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: #06181b; aspect-ratio: 4/5; max-width: 440px; margin-inline: auto; }
.video-feature video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-feature__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-feature__overlay { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; transition: opacity .4s var(--ease); border: none; width: 100%; padding: 0; }
.video-feature__overlay::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(6,24,27,.12), rgba(6,24,27,.55)); }
.video-feature__overlay.hide { opacity: 0; pointer-events: none; }
.play-btn { position: relative; z-index: 3; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .35s var(--ease); }
.video-feature__overlay:hover .play-btn { transform: scale(1.08); }
.play-btn::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent var(--teal-deep); margin-left: 6px; }
.video-feature__label { position: absolute; left: 24px; bottom: 22px; color: #fff; z-index: 4; pointer-events: none; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.video-feature__label b { font-family: var(--display); font-size: 1.4rem; display: block; }
.video-feature__label span { font-size: .85rem; color: #cfe9ec; }
.video-feature.playing .video-feature__label { opacity: 0; transition: opacity .3s; }

/* ---------- Instagram strip ---------- */
.ig-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-tile { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-tile:hover img { transform: scale(1.07); }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: rgba(10,42,46,0); transition: background .4s; }
.ig-tile:hover::after { background: rgba(10,42,46,.25); }

@media (max-width: 760px) {
  .real-gallery { grid-template-columns: 1fr; }
  .ig-strip { grid-template-columns: repeat(2, 1fr); }
  .video-feature__label b { font-size: 1.1rem; }
}

/* ===========================================================
   3D interactive elements (cursor-reactive)
   =========================================================== */

/* ---- 3D tilt cards ---- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
  opacity: 0; transition: opacity .35s var(--ease); mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), rgba(255,255,255,0) 50%);
}
.tilt.is-tilting .tilt__glare { opacity: 1; }

/* ---- Magnetic buttons ---- */
.btn { will-change: transform; }

/* ---- Interactive 3D hair-growth ---- */
.hair-band { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--mint) 0%, var(--cream) 100%); border-block: 1px solid var(--line); }
.hair-band::before { content: ""; position: absolute; width: 55vw; height: 55vw; border-radius: 50%; background: radial-gradient(circle, var(--teal-glow), transparent 65%); top: -18%; left: -12%; pointer-events: none; }
.hair-band__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
.hairgrow { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 0.84; cursor: crosshair; touch-action: none; }
.hairgrow canvas { width: 100%; height: 100%; display: block; }
.hairgrow__badge { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; font-size: .76rem; font-weight: 700; color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.hairgrow__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal-glow); animation: liveDot 2s infinite; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(20,184,200,.5); } 70% { box-shadow: 0 0 0 9px rgba(20,184,200,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,200,0); } }
.hair-hint { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--teal-deep); }
.hair-hint svg { width: 18px; height: 18px; animation: hintMove 2.4s var(--ease) infinite; }
@keyframes hintMove { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,-4px); } }
@media (max-width: 860px) {
  .hair-band__grid { grid-template-columns: 1fr; text-align: center; }
  .hair-band .eyebrow { justify-content: center; }
  .hair-hint { justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; order: -1; }
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .scard--feature { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-card--1 { left: 10px; } .float-card--2 { right: 10px; }
  .hero__actions .btn { flex: 1; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__num { width: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .fade-seq, .hero__title .line > span, .hero__media { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================
   Blog index + article styles
   =========================================================== */
.blog-featured { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--white); margin-bottom: 44px; }
.blog-featured__media { position: relative; min-height: 280px; background: linear-gradient(150deg, var(--teal-ink), #0a3338); overflow: hidden; }
.blog-featured__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.blog-featured__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.blog-tag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: var(--mint-2); padding: 6px 13px; border-radius: 100px; margin-bottom: 16px; }
.blog-featured__body h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.blog-featured__body p { color: var(--muted); margin-bottom: 20px; }
.blog-meta { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.blog-meta svg { width: 15px; height: 15px; vertical-align: -2px; }

.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card__top { padding: 26px 26px 0; }
.blog-card__body { padding: 18px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.2; }
.blog-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.blog-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.blog-card__foot .read { font-weight: 700; color: var(--teal-deep); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.blog-card__foot .read svg { width: 15px; height: 15px; transition: transform .3s; }
.blog-card:hover .read svg { transform: translateX(4px); }
.blog-card__time { font-size: .8rem; color: var(--muted); }
.blog-card--soon { opacity: .72; }
.blog-card--soon .read { color: var(--muted); }

/* Article page */
.post { display: grid; grid-template-columns: 240px 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.post__toc { position: sticky; top: 110px; }
.post__toc h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.post__toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--ink-soft); font-size: .92rem; transition: all .3s; }
.post__toc a:hover { border-color: var(--teal); color: var(--teal-deep); padding-left: 18px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 38px 0 16px; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; margin: 26px 0 12px; }
.prose p { color: var(--ink-soft); margin-bottom: 18px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 9px; line-height: 1.7; }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose__lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 26px; }
.prose blockquote { margin: 24px 0; padding: 18px 24px; border-left: 3px solid var(--teal); background: var(--mint); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--display); font-size: 1.15rem; color: var(--teal-ink); }
.prose-cta { margin: 28px 0; padding: 24px; border-radius: var(--r-md); background: linear-gradient(150deg, var(--teal-ink), #0a3338); color: #dff3f5; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.prose-cta b { color: #fff; font-family: var(--display); font-size: 1.2rem; }
.prose-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.prose-table th, .prose-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose-table thead th { background: var(--teal-ink); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.prose-table td:first-child { font-weight: 700; color: var(--ink); }
.prose-table tbody tr:last-child td { border-bottom: none; }
.prose-table tbody tr:nth-child(even) { background: var(--mint); }

.author-card { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); margin: 40px 0; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--mint-2); }
.author-card b { display: block; font-family: var(--display); font-size: 1.2rem; }
.author-card span { color: var(--muted); font-size: .9rem; }

@media (max-width: 820px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__media { min-height: 200px; }
  .post { grid-template-columns: 1fr; }
  .post__toc { position: static; margin-bottom: 10px; padding: 20px; background: var(--mint); border-radius: var(--r-md); }
  .post__toc a { border-left: none; padding-left: 0; }
}

/* ===========================================================
   WebGL ambient 3D layer (scene3d.js)
   =========================================================== */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
#bg3d.ready { opacity: 1; }
.page { position: relative; z-index: 1; }
.site-header { z-index: 60; }
.hero { position: relative; }
@media (prefers-reduced-motion: reduce) { #bg3d { transition: none; } }
