:root {
  --teal-900: #073b3e;
  --teal-700: #0e5a5e;
  --teal-500: #1b8a86;
  --mint-200: #cfeee8;
  --mint-100: #e8f6f3;
  --sand: #f6efe4;
  --gold: #d9a441;
  --ink: #16282a;
  --muted: #5d7275;
  --bg: #fbfdfc;
  --card: #ffffff;
  --line: #e2ecea;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(7, 59, 62, .18);
  --shadow-lg: 0 30px 60px -20px rgba(7, 59, 62, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.45; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--teal-900); }
h3 { font-size: 1.15rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 700;
  color: var(--teal-500);
  background: var(--mint-100);
  padding: 4px 14px; border-radius: 99px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: 0 10px 24px -10px var(--teal-700); }
.btn--primary:hover { background: var(--teal-900); }
.btn--ghost { background: transparent; color: var(--teal-700); border: 2px solid var(--mint-200); }
.btn--ghost:hover { border-color: var(--teal-500); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 253, 252, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo span { display: flex; flex-direction: column; line-height: 1.2; }
.logo b { font-size: 1.35rem; color: var(--teal-700); }
.logo small { font-size: .72rem; color: var(--muted); }
.logo--light b { color: #fff; } .logo--light small { color: var(--mint-200); }
.nav { display: flex; gap: 26px; font-weight: 500; }
.nav a { position: relative; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--teal-700); }
.nav a::after { content: ""; position: absolute; right: 0; bottom: -4px; height: 2px; width: 0; background: var(--teal-500); transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 700; color: var(--teal-700); font-size: .95rem; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; width: 24px; background: var(--teal-900); border-radius: 2px; transition: .3s; margin-inline: auto; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 90px; background: radial-gradient(900px 500px at 10% 0%, var(--mint-100), transparent 70%), radial-gradient(600px 400px at 100% 100%, var(--sand), transparent 70%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); color: var(--teal-900); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal-500); position: relative; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 10px; background: var(--gold); opacity: .3; z-index: -1; border-radius: 4px; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 540px; }
.hero__actions { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: 36px; }
.hero__stats b { display: block; font-size: 1.8rem; color: var(--teal-700); }
.hero__stats span { color: var(--muted); font-size: .9rem; }
.hero__art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.blob { position: absolute; inset: 6%; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; animation: morph 10s ease-in-out infinite; box-shadow: var(--shadow-lg); }
.tooth { position: absolute; inset: 22%; width: 56%; filter: drop-shadow(0 20px 20px rgba(0,0,0,.2)); animation: bob 5s ease-in-out infinite; }
.float-card { position: absolute; background: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; animation: bob 6s ease-in-out infinite; }
.float-card small { color: var(--muted); font-weight: 500; }
.float-card--1 { top: 8%; right: -4%; }
.float-card--2 { bottom: 10%; left: -2%; animation-delay: -3s; color: var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 4px #2ec27e33; }
@keyframes morph { 50% { border-radius: 42% 58% 45% 55% / 55% 45% 55% 45%; } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--mint-100); }
.section--dark { background: var(--teal-900); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { background: rgba(255,255,255,.1); color: var(--mint-200); }
.section--dark .section__head p { color: var(--mint-200); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__head p { color: var(--muted); margin-top: 10px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint-200); }
.card__icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem; background: var(--mint-100); border-radius: 16px; margin-bottom: 18px; }
.card h3 { color: var(--teal-900); margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__img { aspect-ratio: 4/5; border-radius: 28px; background: linear-gradient(160deg, var(--mint-200), var(--teal-500)); display: grid; place-items: center; color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); }
.about__badge { position: absolute; bottom: -24px; left: -18px; background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 240px; }
.about__badge b { font-size: 2rem; color: var(--gold); }
.about__badge span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.about__text p { color: var(--muted); margin: 14px 0 20px; }
.checks { list-style: none; margin-bottom: 28px; display: grid; gap: 10px; }
.checks li { padding-right: 32px; position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; right: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--teal-700); color: #fff; border-radius: 50%; font-size: .75rem; }

/* Doctors */
.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 24px; transition: transform .3s, box-shadow .3s; }
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor__img { aspect-ratio: 1; border-radius: 16px; background: linear-gradient(180deg, var(--mint-100), var(--mint-200)); display: grid; place-items: center; color: var(--teal-500); font-weight: 700; margin-bottom: 16px; }
.doctor h3 { color: var(--teal-900); }
.doctor p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal-700); background: var(--mint-100); padding: 2px 12px; border-radius: 99px; }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ba { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; user-select: none; }
.ba__img { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background-size: cover; background-position: center; }
.ba__after { background-color: #2a7d79; background-image: linear-gradient(135deg, #3aa39d, #1b6e6b); }
.ba__before { background-color: #6b5b4a; background-image: linear-gradient(135deg, #8d7a64, #5b4c3d); clip-path: inset(0 0 0 var(--pos)); }
.ba__img span { position: absolute; top: 12px; background: rgba(0,0,0,.4); color: #fff; padding: 2px 14px; border-radius: 99px; font-size: .85rem; }
.ba__after span { left: 12px; } .ba__before span { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; direction: ltr; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.ba__handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--teal-700); display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ba figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: .9rem; z-index: 2; pointer-events: none; }

/* Testimonials */
.testimonials { position: relative; max-width: 760px; margin: 0 auto; text-align: center; min-height: 220px; }
.quote { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(12px); transition: .5s; pointer-events: none; }
.quote.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.quote p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 500; color: var(--teal-900); line-height: 2; }
.quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--muted); }
.quote__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.quote__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--mint-200); cursor: pointer; transition: .3s; }
.quote__dots button.active { width: 28px; background: var(--teal-700); }

/* Booking & forms */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.booking__info p { color: var(--muted); margin: 12px 0 28px; }
.hours { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.hours h4 { color: var(--teal-900); margin-bottom: 10px; }
.hours div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border: 0; }
.hours b { color: var(--teal-700); }
.form { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form h3 { color: var(--teal-900); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--teal-900); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1.5px solid var(--line); background: var(--bg);
  border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--mint-100); background: #fff; }
.form .invalid { border-color: #d64545; }
.form textarea { resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__msg { font-weight: 700; text-align: center; min-height: 1.5em; }
.form__msg.ok { color: #1f8f5f; } .form__msg.err { color: #c43b3b; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--mint-200); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--teal-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-500); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.contact__list { list-style: none; display: grid; gap: 16px; margin: 20px 0 24px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list li > span { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.contact__list b { display: block; color: var(--teal-900); font-size: .9rem; }
.contact__list a { color: var(--teal-700); font-weight: 700; }
.map { position: relative; overflow: hidden; min-height: 220px; border-radius: var(--radius); padding: 28px; text-align: center; display: grid; place-items: center; gap: 10px; color: var(--teal-900); font-weight: 700; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, #fff 0 30%, transparent 70%), repeating-linear-gradient(0deg, transparent 0 38px, var(--mint-200) 38px 39px), repeating-linear-gradient(90deg, transparent 0 38px, var(--mint-200) 38px 39px), var(--mint-100); }
.map__pin { font-size: 2.4rem; animation: pin 1.8s ease-in-out infinite; filter: drop-shadow(0 8px 6px rgba(0,0,0,.2)); }
@keyframes pin { 50% { transform: translateY(-10px); } }
.closed { color: #c43b3b !important; }

/* Footer */
.footer { background: var(--teal-900); color: var(--mint-200); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer__inner a:not(.logo) { display: block; padding: 3px 0; transition: color .2s; }
.footer__inner a:hover { color: #fff; }
.footer p { margin-top: 12px; font-size: .95rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom a { color: #fff; font-weight: 700; }

/* Floating call + booking (mobile) */
.fab { display: none; position: fixed; bottom: 14px; inset-inline: 14px; z-index: 60; gap: 10px; }
.fab a { flex: 1; text-align: center; padding: 12px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow-lg); }
.fab__call { background: #fff; color: var(--teal-700); border: 2px solid var(--mint-200); }
.fab__book { background: var(--teal-700); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services, .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .phone-link { display: none; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 76px; inset-inline: 0;
    flex-direction: column; gap: 0; background: #fff;
    padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero__inner, .about, .booking, .contact { grid-template-columns: 1fr; }
  .hero__art { max-width: 340px; order: -1; }
  .hero { padding-top: 30px; }
  .section { padding: 72px 0; }
  .about__badge { left: 10px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .fab { display: flex; }
  .footer { padding-bottom: 70px; }
  .totop { bottom: 80px; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .services, .ba-grid, .doctors, .form__row { grid-template-columns: 1fr; }
  .header__cta .btn { display: none; }
  .hero__stats { gap: 22px; }
  .hero__stats b { font-size: 1.4rem; }
  .form { padding: 22px; }
  .float-card { font-size: .78rem; }
}
/* ================= v3 effects ================= */

/* scroll progress bar */
.progress { position: fixed; top: 0; right: 0; height: 3px; width: 100%; z-index: 100; transform-origin: right; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--teal-500), var(--teal-700)); }

/* header phone ring */
.ring { display: inline-block; animation: ring 3s ease-in-out infinite; }
@keyframes ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-15deg); } 88% { transform: rotate(15deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }

/* hero bubbles */
.hero { position: relative; overflow: hidden; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; }
.bubbles i { position: absolute; bottom: -60px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(27,138,134,.18) 60%, transparent 70%); border: 1px solid rgba(27,138,134,.15); animation: rise linear infinite; }
.bubbles i:nth-child(1)  { right: 5%;  width: 18px; height: 18px; animation-duration: 14s; }
.bubbles i:nth-child(2)  { right: 15%; width: 34px; height: 34px; animation-duration: 18s; animation-delay: -4s; }
.bubbles i:nth-child(3)  { right: 28%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: -2s; }
.bubbles i:nth-child(4)  { right: 40%; width: 26px; height: 26px; animation-duration: 16s; animation-delay: -9s; }
.bubbles i:nth-child(5)  { right: 52%; width: 16px; height: 16px; animation-duration: 13s; animation-delay: -6s; }
.bubbles i:nth-child(6)  { right: 63%; width: 40px; height: 40px; animation-duration: 20s; animation-delay: -12s; }
.bubbles i:nth-child(7)  { right: 72%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: -1s; }
.bubbles i:nth-child(8)  { right: 82%; width: 22px; height: 22px; animation-duration: 17s; animation-delay: -7s; }
.bubbles i:nth-child(9)  { right: 90%; width: 30px; height: 30px; animation-duration: 19s; animation-delay: -3s; }
.bubbles i:nth-child(10) { right: 96%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: -5s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(-20px, -50vh); } 100% { transform: translate(10px, -110vh); opacity: 0; } }

/* hero heading: word-by-word + shimmering gradient */
.split .w { display: inline-block; opacity: 0; transform: translateY(20px) rotate(2deg); filter: blur(6px); animation: wordIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.hero h1 em, .hero h1 em .w { background: linear-gradient(90deg, var(--teal-500), var(--gold), var(--teal-500)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }

/* hero art: orbit ring, sparkles, parallax */
.hero__art { transition: transform .2s ease-out; }
.hero__art .blob, .hero__art .tooth { transition: translate .3s ease-out; }
.ring-orbit { position: absolute; inset: 0; border: 2px dashed rgba(27,138,134,.25); border-radius: 50%; animation: spin 30s linear infinite; }
.ring-orbit span { position: absolute; top: 50%; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(217,164,65,.2), 0 0 20px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.sparkle { position: absolute; color: #fff; font-size: 1.6rem; text-shadow: 0 0 12px #fff; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
.sparkle.s1 { top: 26%; right: 30%; } .sparkle.s2 { top: 40%; left: 30%; font-size: 1.1rem; animation-delay: -.8s; } .sparkle.s3 { bottom: 30%; right: 36%; animation-delay: -1.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
.float-card { z-index: 2; }
.dot.off { background: #d64545; box-shadow: 0 0 0 4px #d6454533; }
.dot { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,194,126,.6); } 100% { box-shadow: 0 0 0 10px rgba(46,194,126,0); } }
.dot.off { animation: none; }

/* shiny button */
.btn { position: relative; overflow: hidden; }
.btn--shine::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.5); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* service cards: 3D tilt + spotlight */
.tilt { transform-style: preserve-3d; position: relative; overflow: hidden; will-change: transform; }
.tilt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(27,138,134,.12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tilt:hover::before { opacity: 1; }
.card__icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s; }
.card:hover .card__icon { transform: translateZ(30px) scale(1.12) rotate(-6deg); background: var(--mint-200); }

/* doctor cards: shine sweep */
.doctor { position: relative; overflow: hidden; }
.doctor::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: rotate(20deg); transition: left .8s; pointer-events: none; }
.doctor:hover::after { left: 130%; }
.doctor__img { transition: transform .5s; }
.doctor:hover .doctor__img { transform: scale(1.04); }

/* section heading underline */
.section__head h2 { position: relative; display: inline-block; padding-bottom: 10px; }
.section__head h2::after { content: ""; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal-500), var(--gold)); transition: width .9s .3s cubic-bezier(.2,.7,.2,1); }
.section__head.in h2::after { width: 70px; }

/* wave divider on dark section */
.wave { position: relative; }
.wave::before, .wave::after { content: ""; position: absolute; inset-inline: 0; height: 50px; background-repeat: no-repeat; background-size: 100% 100%; }
.wave::before { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-240 30-480 30-720 10S240 0 0 25z' fill='%23fbfdfc'/%3E%3C/svg%3E"); }
.wave::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0 50h1440V25c-240-30-480-30-720-10S240 50 0 25z' fill='%23fbfdfc'/%3E%3C/svg%3E"); }
.section--dark { background: radial-gradient(700px 300px at 80% 20%, rgba(27,138,134,.35), transparent 70%), var(--teal-900); }

/* reveal variants */
.reveal--right { transform: translateX(40px); }
.reveal--left { transform: translateX(-40px); }
.reveal--zoom { transform: scale(.9); }
.reveal--right.in, .reveal--left.in, .reveal--zoom.in { transform: none; }

/* FAQ smooth open */
.faq details p { animation: fadeDown .4s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* back-to-top with progress ring */
.totop { position: fixed; bottom: 22px; right: 22px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); cursor: pointer; z-index: 59; display: grid; place-items: center; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .35s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { position: absolute; inset: 2px; width: 44px; height: 44px; transform: rotate(-90deg); }
.totop circle { fill: none; stroke: var(--mint-100); stroke-width: 3; }
.totop .totop__bar { stroke: var(--teal-500); stroke-dasharray: 126; stroke-dashoffset: 126; stroke-linecap: round; }
.totop span { position: relative; font-weight: 800; color: var(--teal-700); font-size: 1.1rem; }
.totop:hover { transform: translateY(-3px); }

@media (hover: none) { .tilt { transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .split .w { opacity: 1; transform: none; filter: none; }
  .bubbles { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.tilt.in { transition: transform .15s ease-out, box-shadow .3s, border-color .3s, opacity .7s; }
.section__head h2 { display: block; width: fit-content; margin-inline: auto; }
.hero h1 em::after { display: none; }
