/* ==========================================================
   Atharva Ayurveda Clinic — main stylesheet
   ========================================================== */
:root {
  --green-900: #12301f;
  --green-800: #1d4535;
  --green-700: #2a5c46;
  --green-500: #4f8a3c;
  --leaf: #6aa84f;
  --gold: #c9a24a;
  --gold-dark: #a8832f;
  --cream: #faf6ee;
  --sand: #f1e9d8;
  --ink: #1f2a24;
  --muted: #5d6b63;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(18, 48, 31, .35);
  --shadow-sm: 0 8px 24px -12px rgba(18, 48, 31, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 82px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dev: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 1em 2em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #d8b360; }
.btn--primary { background: var(--green-800); color: var(--white); }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--green-900); }
.btn--outline { border-color: var(--green-800); color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: var(--white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--green-500);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head .eyebrow { justify-content: center; }
.section__title { font: 600 clamp(2rem, 4.5vw, 3.2rem)/1.1 var(--serif); color: var(--green-900); }
.section__title em, .hero__title em { font-style: italic; color: var(--green-500); }
.section__title--light { color: var(--white); }
.section__title--light em { color: var(--gold); }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; }
.topbar a:hover { color: var(--gold); }
.topbar__status { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; }
.topbar__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #999); box-shadow: 0 0 0 0 var(--dot, #999); animation: pulse 2s infinite; }
.topbar__status.is-open { --dot: #57d27a; color: #9be8b0; }
.topbar__status.is-closed { --dot: #e39b5b; color: #f1c79f; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(250, 246, 238, .85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(29, 69, 53, .08);
  transition: box-shadow .3s, height .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(18,48,31,.4); background: rgba(250,246,238,.96); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 62px; width: auto; transition: height .3s; }
.header.is-scrolled .brand__logo { height: 54px; }
.brand__fallback { display: none; flex-direction: column; line-height: 1; color: var(--green-500); }
.brand__dev { font-family: var(--dev); font-size: 1.9rem; color: var(--green-500); }
.brand__en { font-size: .62rem; letter-spacing: .45em; color: var(--green-800); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  position: relative; padding: .5rem .8rem; font-size: .92rem; font-weight: 500; color: var(--green-900);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--green-500); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: .6rem; padding: .7em 1.3em; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--green-800); cursor: pointer; position: relative; z-index: 1002; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, calc(100vh - var(--header-h) - 34px));
  display: flex; align-items: center; overflow: hidden; color: var(--white);
  background: var(--green-900);
}
.hero__bg {
  position: absolute; inset: -4%; background-size: cover; background-position: center 35%;
  animation: kenburns 22s ease-in-out infinite alternate; will-change: transform;
}
@keyframes kenburns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 34, 22, .92) 0%, rgba(18, 48, 31, .78) 40%, rgba(18, 48, 31, .25) 75%, rgba(18,48,31,.1) 100%),
    linear-gradient(0deg, rgba(12,34,22,.55), transparent 40%);
}
.hero__content { position: relative; z-index: 1; padding: 90px 0 110px; max-width: 1200px; }
.hero__content > * { max-width: 640px; }
.hero .eyebrow { color: var(--gold); }
.hero__title { font: 600 clamp(2.6rem, 6.5vw, 5rem)/1.02 var(--serif); margin-bottom: .35em; }
.hero__title em { color: var(--gold); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.88); font-weight: 300; }
.hero__lead strong { color: var(--white); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.2rem; }
.hero__anim { opacity: 0; transform: translateY(30px); animation: heroIn 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.rating-badge {
  display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1.1rem .6rem .6rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; backdrop-filter: blur(8px);
  transition: background .3s;
}
.rating-badge:hover { background: rgba(255,255,255,.2); }
.rating-badge__score { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--green-900); font-weight: 600; }
.rating-badge__txt { font-size: .88rem; }
.stars { color: #f5c04a; letter-spacing: .1em; }
.stars--lg { font-size: 1.6rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; transform: translateX(-50%); z-index: 1; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--green-800); color: var(--sand); overflow: hidden; padding: 1.1rem 0; }
.marquee__track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 32s linear infinite; font: 500 clamp(1.2rem, 2.2vw, 1.6rem)/1 var(--serif); font-style: italic; }
.marquee__track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.06); }
.about__img--main { aspect-ratio: 4 / 4.6; }
.about__img--accent { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--cream); }
.about__stamp {
  position: absolute; left: -18px; top: 28px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--gold); color: var(--green-900); display: grid; place-items: center; text-align: center;
  font: 600 .9rem/1.15 var(--serif); font-size: 1.05rem; box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}
.about__stamp .ic { width: 26px; height: 26px; margin: 0 auto -4px; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--green-800); }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.checklist li { position: relative; padding-left: 1.9rem; font-weight: 500; color: var(--green-900); font-size: .95rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(106,168,79,.18); color: var(--green-500); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(29,69,53,.12); }
.stat strong { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); color: var(--green-800); }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Treatments ---------- */
.treatments { background: var(--sand); }
.treatments::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 10% 10%, rgba(106,168,79,.12), transparent 40%), radial-gradient(circle at 90% 80%, rgba(201,162,74,.15), transparent 40%);
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3.2; overflow: hidden; position: relative; }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,48,31,.45), transparent 55%); opacity: 0; transition: opacity .5s; }
.card:hover .card__img::after { opacity: 1; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.1); }
.card__body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__tag { display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); background: rgba(201,162,74,.14); padding: .35em .8em; border-radius: 999px; margin-bottom: .8rem; }
.card h3 { font: 600 1.6rem/1.1 var(--serif); color: var(--green-900); }
.card p { color: var(--muted); font-size: .92rem; flex: 1; }
.card__more { align-self: flex-start; border: 0; background: none; padding: 0; font: 600 .9rem var(--sans); color: var(--green-500); cursor: pointer; }
.card__more span { display: inline-block; transition: transform .3s var(--ease); }
.card__more:hover span { transform: translateX(6px); }

/* ---------- Quote band (parallax) ---------- */
.quote-band { position: relative; overflow: hidden; color: var(--white); text-align: center; padding: clamp(90px, 14vw, 160px) 0; background: var(--green-900); }
.quote-band__bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.quote-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12,34,22,.82), rgba(18,48,31,.75)); z-index: 1; }
.quote-band__inner { position: relative; z-index: 2; max-width: 860px; }
.quote-band__dev { font: clamp(1.5rem, 3.6vw, 2.5rem)/1.5 var(--dev); color: var(--gold); margin-bottom: .6em; }
.quote-band__en { font: italic 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.5 var(--serif); color: rgba(255,255,255,.9); margin-bottom: 2rem; }

/* ---------- Doctor ---------- */
.doctor__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.doctor__card {
  position: relative; text-align: center; padding: 3rem 2rem 2.5rem; border-radius: 28px;
  background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: var(--white); box-shadow: var(--shadow); overflow: hidden;
}
.doctor__card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(201,162,74,.25); top: -120px; right: -120px; }
.doctor__card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(106,168,79,.12); bottom: -90px; left: -70px; }
.doctor__monogram { width: 150px; height: 150px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 2px solid var(--gold); color: var(--gold); position: relative; z-index: 1; }
.doctor__monogram svg { width: 90px; height: 90px; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.doctor__card h3 { font: 600 2rem/1.1 var(--serif); position: relative; z-index: 1; }
.doctor__deg { color: var(--gold); font-size: .9rem; margin-bottom: .3rem; position: relative; z-index: 1; }
.doctor__reg { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .3em .9em; border: 1px solid rgba(201,162,74,.5); border-radius: 999px; color: rgba(255,255,255,.85); margin-bottom: .8rem; position: relative; z-index: 1; }
.doctor__role { color: rgba(255,255,255,.75); font-size: .9rem; position: relative; z-index: 1; }
.doctor__card .btn { position: relative; z-index: 1; margin-top: .6rem; border-color: var(--gold); color: var(--gold); }
.doctor__card .btn:hover { background: var(--gold); color: var(--green-900); }
.doctor__text > p { color: var(--muted); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.step { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step > span { font: 700 1.8rem/1 var(--serif); color: var(--gold); }
.step h4 { font: 600 1.05rem var(--sans); color: var(--green-900); margin-bottom: .2rem; }
.step p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Why ---------- */
.why { background: var(--green-900); color: var(--white); }
.why .section__title { color: var(--white); }
.why .section__title em { color: var(--gold); }
.why .eyebrow { color: var(--gold); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why__item { padding: 2rem 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: background .4s, transform .4s var(--ease), border-color .4s; }
.why__item:hover { background: rgba(255,255,255,.08); transform: translateY(-6px); border-color: rgba(201,162,74,.5); }
.why__item .ic { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: rgba(201,162,74,.15); color: var(--gold); margin-bottom: 1.2rem; }
.why__item h4 { font: 600 1.45rem var(--serif); }
.why__item p { color: rgba(255,255,255,.72); font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.g-item { position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in; background: var(--sand); }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.g-item::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; color: var(--white); font-size: .88rem; background: linear-gradient(transparent, rgba(12,34,22,.85)); transform: translateY(100%); transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { transform: none; }

/* ---------- Reviews ---------- */
.reviews { padding-top: 0; }
.reviews__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(36px, 5vw, 56px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.reviews__score { text-align: center; padding-right: clamp(30px, 6vw, 80px); border-right: 1px solid rgba(29,69,53,.12); }
.reviews__score strong { display: block; font: 700 5rem/1 var(--serif); color: var(--green-800); }
.reviews__score p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.reviews__text p { color: var(--muted); }
.reviews__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Appointment ---------- */
.appointment { background: linear-gradient(135deg, var(--green-900), var(--green-800)); color: var(--white); overflow: hidden; }
.appointment::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; top: -200px; background: radial-gradient(circle, rgba(201,162,74,.18), transparent 70%); }
.appointment__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; position: relative; }
.appointment__info > p { color: rgba(255,255,255,.8); }
.info-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: center; }
.info-list .ic { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: rgba(201,162,74,.15); color: var(--gold); }
.info-list span { display: block; }
.info-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 500; }
.info-list a:hover { color: var(--gold); }
.form { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: 24px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .8rem; font-weight: 500; color: var(--green-800); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid #dfe5df; border-radius: 12px; background: #fbfcfa;
  font: 400 .95rem var(--sans); color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d4535' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); background: var(--white); box-shadow: 0 0 0 4px rgba(106,168,79,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,.12); }
.form__error { color: #c0392b; font-size: .88rem; min-height: 1.2em; margin: 0 0 .6rem; }
.form__note { text-align: center; font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.form__note a { color: var(--green-500); font-weight: 600; text-decoration: underline; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq__container { max-width: 860px; }
.accordion { display: grid; gap: .9rem; }
.acc { background: var(--white); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 1.2rem 3.5rem 1.2rem 1.5rem; font-weight: 500; color: var(--green-900); position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--green-800); font-size: 1.3rem; transition: transform .35s var(--ease), background .3s; }
.acc[open] summary::after { transform: rotate(45deg); background: var(--gold); }
.acc p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--muted); animation: accIn .45s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: stretch; }
.contact__cards { display: grid; gap: 1rem; }
.c-card { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.c-card:hover { transform: translateX(6px); }
.c-card > .ic { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--green-800); color: var(--gold); }
.c-card h4 { font: 600 1.25rem var(--serif); color: var(--green-900); margin-bottom: .2rem; }
.c-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.c-card a { color: var(--green-500); font-weight: 500; font-size: .9rem; }
.contact__map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--sand); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 70px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 50px; }
.footer__brand { font: 600 1.8rem var(--serif); color: var(--white); margin-bottom: .8rem; }
.footer__brand .brand__dev { color: var(--gold); font-size: 2rem; }
.footer h5 { font: 600 1.15rem var(--serif); color: var(--white); margin-bottom: 1rem; letter-spacing: .03em; }
.footer__grid > div > a { display: block; padding: .25rem 0; transition: color .25s, transform .25s; }
.footer__grid > div > a:hover { color: var(--gold); transform: translateX(4px); }
.footer p { margin-bottom: .5rem; }
.footer p a:hover { color: var(--gold); }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background .3s, color .3s, transform .3s; }
.socials a:hover { background: var(--gold); color: var(--green-900); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__bottom a { color: var(--gold); }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: grid; gap: .7rem; }
.fab__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.fab__btn:hover { transform: scale(1.1); }
.fab__btn .ic { width: 26px; height: 26px; }
.fab__btn--wa { background: #25d366; animation: ring 3s infinite; }
.fab__btn--call { background: var(--green-800); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--gold); color: var(--green-900); font-size: 1.2rem; font-weight: 700; cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--shadow-sm); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12,34,22,.7); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.modal__box { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: 24px; display: grid; grid-template-columns: 1fr 1.2fr; animation: popIn .45s var(--ease); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.modal__body { padding: 2.2rem 2rem; }
.modal__body h3 { font: 600 2.2rem var(--serif); color: var(--green-900); }
.modal__body p, .modal__body li { color: var(--muted); font-size: .94rem; }
.modal__body ul { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(8,20,13,.94); display: grid; place-items: center; animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; animation: popIn .4s var(--ease); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: .8rem; font: italic 500 1.2rem var(--serif); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: var(--white); cursor: pointer; border-radius: 50%; width: 50px; height: 50px; font-size: 1.8rem; line-height: 1; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--green-900); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -25px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 2200; max-width: min(92vw, 460px); padding: 1rem 1.3rem; border-radius: 14px; background: var(--green-800); color: var(--white); box-shadow: var(--shadow); font-size: .92rem; transform: translate(-50%, 150%); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #a94442; }

/* ---------- Background videos ---------- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.bg-video.is-playing { opacity: 1; }
.hero__video { z-index: 0; transform: scale(1.04); }
.hero__leaves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__overlay { z-index: 1; }
.hero__content, .hero__scroll { z-index: 2; }
.quote-band__video { z-index: 0; }

/* Word-by-word hero title */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(.35s + var(--wi) * .09s); }
@keyframes wordUp { to { transform: none; } }
.hero__title.split { opacity: 1; transform: none; animation: none; }

/* ---------- Video showcase ---------- */
.videos { background: var(--cream); }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 240px 240px; gap: 1rem; }
.vcard { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 18px; cursor: pointer; background: var(--green-900) center/cover; box-shadow: var(--shadow-sm); text-align: left; color: var(--white); font: inherit; isolation: isolate; }
.vcard--big { grid-column: span 2; grid-row: span 2; }
.vcard .bg-video { opacity: 1; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.95); }
.vcard:hover .bg-video { transform: scale(1.06); filter: saturate(1.1); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,34,22,.85), rgba(12,34,22,.05) 60%); z-index: 1; }
.vcard__play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.8); backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .3s; }
.vcard__play::before { content: ""; position: absolute; left: 26px; top: 20px; border-left: 16px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vcard__play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ripple 2.4s var(--ease) infinite; }
@keyframes ripple { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.vcard:hover .vcard__play { transform: scale(1.12); background: var(--gold); border-color: var(--gold); }
.vcard--big .vcard__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.vcard--big .vcard__play::before { left: 34px; top: 27px; border-left-width: 20px; border-top-width: 14px; border-bottom-width: 14px; }
.vcard__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem; font: 600 1.15rem/1.25 var(--serif); }
.vcard--big .vcard__cap { font-size: 1.6rem; padding: 1.5rem 1.8rem; }
.vcard__cap small { display: block; font: 600 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }

.vplayer { position: fixed; inset: 0; z-index: 2100; background: rgba(8,20,13,.95); display: grid; place-items: center; padding: 16px; animation: fadeIn .3s; }
.vplayer[hidden] { display: none; }
.vplayer figure { margin: 0; width: min(1100px, 100%); text-align: center; }
.vplayer video { width: 100%; max-height: 80vh; border-radius: 12px; background: #000; animation: popIn .4s var(--ease); }
.vplayer figcaption { color: rgba(255,255,255,.85); margin-top: .8rem; font: italic 500 1.25rem var(--serif); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .12s); }
.reveal[data-anim="left"] { transform: translateX(-50px); }
.reveal[data-anim="right"] { transform: translateX(50px); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding: .5rem .55rem; font-size: .88rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  /* backdrop-filter would become the containing block of the fixed drawer */
  .header, .header.is-scrolled { backdrop-filter: none; background: var(--cream); }
  .burger { display: block; }
  .nav:not(.open) { visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 20px) 28px 30px; background: var(--cream); box-shadow: -20px 0 60px -20px rgba(0,0,0,.35);
    transform: translateX(105%); transition: transform .5s var(--ease); z-index: 1001; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav__link { padding: 1rem .2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(29,69,53,.08); opacity: 0; transform: translateX(20px); transition: opacity .4s, transform .4s var(--ease), color .25s; }
  .nav.open .nav__link { opacity: 1; transform: none; }
  .nav.open .nav__link:nth-child(2) { transition-delay: .05s; } .nav.open .nav__link:nth-child(3) { transition-delay: .1s; }
  .nav.open .nav__link:nth-child(4) { transition-delay: .15s; } .nav.open .nav__link:nth-child(5) { transition-delay: .2s; }
  .nav.open .nav__link:nth-child(6) { transition-delay: .25s; } .nav.open .nav__link:nth-child(7) { transition-delay: .3s; }
  .nav.open .nav__link:nth-child(8) { transition-delay: .35s; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1.5rem 0 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(12,34,22,.5); z-index: 999; opacity: 0; pointer-events: none; transition: opacity .4s; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  .brand__logo { height: 54px; }

  .about__grid, .doctor__grid, .appointment__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; margin: 0 auto; width: 100%; }
  .reviews__inner { grid-template-columns: 1fr; text-align: center; }
  .reviews__score { border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(29,69,53,.12); padding-bottom: 1.6rem; }
  .reviews__text .eyebrow { justify-content: center; }
  .reviews__actions { justify-content: center; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .vgrid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 300px 200px 200px; }
  .vcard--big { grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .modal__box { grid-template-columns: 1fr; }
  .modal__img img { max-height: 240px; min-height: 0; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .topbar__inner { justify-content: center; flex-wrap: wrap; gap: .2rem 1rem; font-size: .76rem; }
  .topbar__inner > span:first-child { display: none; }
  .hero { min-height: 600px; }
  .hero__content { padding: 70px 0 100px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__overlay { background: linear-gradient(180deg, rgba(12,34,22,.65), rgba(18,48,31,.88)); }
  .cards, .why__grid, .steps, .checklist { grid-template-columns: 1fr; }
  .stats { gap: .5rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .gallery__grid { grid-auto-rows: 150px; gap: .6rem; }
  .vgrid { grid-template-rows: 230px 160px 160px; gap: .6rem; }
  .vcard__cap { font-size: .98rem; padding: .7rem .8rem; }
  .vcard--big .vcard__cap { font-size: 1.3rem; padding: 1rem 1.1rem; }
  .vcard__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .vcard__play::before { left: 19px; top: 14px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
  .g-item--wide { grid-column: span 2; }
  .about__stamp { width: 92px; height: 92px; font-size: .9rem; left: -6px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { justify-content: center; text-align: center; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
  .fab__btn { width: 50px; height: 50px; }
  .reviews__score strong { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__anim { opacity: 1; transform: none; }
}
