/* Dr. Rohan Mehta — custom styles (Tailwind handles most layout) */

:root {
  --navy: #0B2C55;
  --navy-900: #061A36;
  --navy-950: #04122A;
  --teal: #0E7C99;
  --teal-400: #22B5D6;
  --amber: #F5B82E;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body { overflow-x: clip; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 17px; color: #1E293B; background: #fff; }
main { overflow-x: clip; }
h1, h2, h3, h4, .font-display, .font-display { font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -.015em; }
::selection { background: var(--teal); color: #fff; }

/* ---------- Eyebrow label ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--amber)); }
.eyebrow.light { color: var(--amber); }

/* ---------- Header (floating island) ---------- */
#header-island {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 20px 50px -25px rgba(4,18,42,.55);
  transition: height .3s ease, box-shadow .3s ease, background-color .3s ease, max-width .4s ease;
}
#site-header.is-scrolled #header-island { background: rgba(255,255,255,.97); box-shadow: 0 18px 45px -18px rgba(4,18,42,.4); border-color: #E2E8F0; }
@media (min-width: 1024px) { #site-header.is-scrolled #header-island { height: 64px; } }
#scroll-progress { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 2px; }

.nav-link { position: relative; z-index: 1; white-space: nowrap; padding: .5rem .72rem; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: #334155; transition: color .2s; }
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: #fff; background: var(--navy); }
#nav-pill { position: absolute; z-index: 0; top: 50%; height: 38px; transform: translateY(-50%); border-radius: 999px; background: #E9F4F8; opacity: 0;
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1), opacity .2s; pointer-events: none; }

.book-btn { background: linear-gradient(135deg, #0B2C55 0%, #0E7C99 100%); box-shadow: 0 12px 26px -12px rgba(14,124,153,.8); transition: transform .25s, box-shadow .25s; }
.book-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -12px rgba(14,124,153,.9); }
.book-btn:hover span { background: var(--amber); color: var(--navy-900); }
.book-btn span { transition: background-color .25s, color .25s; }

.dropdown { position: relative; }
.dropdown-panel { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: top center; transition: opacity .22s ease, transform .25s ease, visibility .22s; }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown:hover .chev, .dropdown:focus-within .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; }
.mega { box-shadow: 0 50px 90px -30px rgba(4,18,42,.45); }
.mega-head { display: flex; align-items: center; gap: .5rem; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #94A3B8; margin: 0 0 .6rem .4rem; }
.mega-head span { width: 6px; height: 6px; border-radius: 2px; }
.mega-link { display: flex; align-items: center; gap: .6rem; padding: .45rem .4rem; border-radius: .8rem; color: #334155; font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s; }
.mega-link .mi { width: 30px; height: 30px; border-radius: .6rem; display: grid; place-items: center; background: #F0F8FB; color: var(--teal); flex-shrink: 0; transition: all .2s; }
.mega-link:hover { background: #F3F7FA; color: var(--navy); }
.mega-link:hover .mi { background: var(--teal); color: #fff; }

/* Mobile menu: full screen (dark), slides down; Menu / Treatments / Clinics tabs */
#mobile-drawer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, #04122A 0%, #0B2C55 70%, #0B3A66 100%);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .5s cubic-bezier(.7,0,.2,1), opacity .3s ease, visibility .5s; }
#mobile-drawer.open { transform: none; opacity: 1; visibility: visible; }
#mobile-drawer > :not(.hero-grid) { position: relative; }
.dw-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.dw-head img { height: 2.25rem; width: auto; }
.dw-close { width: 2.75rem; height: 2.75rem; border-radius: .75rem; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: background .2s; }
.dw-close:hover { background: rgba(255,255,255,.2); }
.dw-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; margin: .25rem 1.25rem 0; padding: .3rem; border-radius: 999px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.dw-tabs button { min-width: 0; padding: .7rem .35rem; border-radius: 999px; font-family: 'Poppins', system-ui, sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-align: center; color: rgba(255,255,255,.7); transition: color .2s, background .25s, box-shadow .25s; }
.dw-tabs button:hover { color: #fff; }
.dw-tabs button.is-on { background: var(--amber); color: var(--navy-950); font-weight: 700; box-shadow: 0 6px 16px -6px rgba(245,184,46,.6); }
@media (max-width: 359px) { .dw-tabs button { font-size: .66rem; letter-spacing: .02em; } }
.dw-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .75rem 1.25rem 1rem; }
.dw-pane[hidden] { display: none; }
.dw-list a { display: flex; align-items: center; gap: .85rem; padding: .85rem .25rem; font-size: 1.05rem; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08); transition: color .2s; }
.dw-list a:hover, .dw-list a.is-on { color: var(--amber); }
.m-num { font-size: .68rem; font-weight: 700; color: var(--amber); letter-spacing: .1em; width: 1.3rem; flex-shrink: 0; }
.dw-ic { width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: .65rem; display: grid; place-items: center;
  background: rgba(34,181,214,.12); color: var(--teal-400); box-shadow: inset 0 0 0 1px rgba(34,181,214,.2); }
.dw-ic svg { width: 1.05rem; height: 1.05rem; }
.dw-list--icons a { font-size: 1rem; padding: .6rem .25rem; }
.dw-list a.is-on .dw-ic, .dw-all .dw-ic { background: var(--amber); color: var(--navy-950); box-shadow: none; }
.dw-all { font-weight: 700; }
.dw-clinic { display: flex; align-items: flex-start; gap: .85rem; padding: .85rem .25rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.dw-clinic strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.dw-clinic small { display: block; margin-top: .15rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.dw-clinic:hover strong { color: var(--amber); }
.dw-foot { padding: .65rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); }
.dw-book { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; padding: .7rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 700; }
body.drawer-open .cn-cb-fab-stack { display: none !important; }   /* no Call / WhatsApp buttons over the open menu */

/* entrance: items rise in one after another (again on every tab switch — a shown pane restarts its animation) */
.m-item { opacity: 0; transform: translateY(14px); }
#mobile-drawer.open .m-item { animation: mUp .5s cubic-bezier(.2,.8,.2,1) forwards; }
#mobile-drawer.open .dw-head { animation-delay: .1s; }
#mobile-drawer.open .dw-tabs { animation-delay: .14s; }
#mobile-drawer.open .dw-pane .m-item:nth-child(1) { animation-delay: .18s; } #mobile-drawer.open .dw-pane .m-item:nth-child(2) { animation-delay: .21s; }
#mobile-drawer.open .dw-pane .m-item:nth-child(3) { animation-delay: .24s; } #mobile-drawer.open .dw-pane .m-item:nth-child(4) { animation-delay: .27s; }
#mobile-drawer.open .dw-pane .m-item:nth-child(5) { animation-delay: .30s; } #mobile-drawer.open .dw-pane .m-item:nth-child(6) { animation-delay: .33s; }
#mobile-drawer.open .dw-pane .m-item:nth-child(7) { animation-delay: .36s; } #mobile-drawer.open .dw-pane .m-item:nth-child(8) { animation-delay: .39s; }
#mobile-drawer.open .dw-pane .m-item:nth-child(n+9) { animation-delay: .42s; }
#mobile-drawer.open .dw-foot { animation-delay: .3s; }
@keyframes mUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .m-item { opacity: 1; transform: none; } #mobile-drawer.open .m-item { animation: none; } }
.acc.open .acc-chev { transform: rotate(45deg); }

/* ---------- Footer (bento) ---------- */
.bento { border-radius: 1.75rem; border: 1px solid rgba(226,232,240,.9); box-shadow: 0 20px 45px -35px rgba(11,44,85,.45); }
.bento-label { display: inline-flex; align-items: center; gap: .45rem; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #64748B; }
.bento-label i, .bento-label svg { color: var(--teal); }
.clinic-mini { display: block; padding: 1rem; border-radius: 1.1rem; background: #F6F9FB; border: 1px solid #EDF2F6; transition: background-color .25s, transform .25s, box-shadow .25s; }
.clinic-mini:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 18px 35px -22px rgba(11,44,85,.45); }
.t-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; background: #F3F7FA; border: 1px solid #E6EDF2; color: #334155; font-size: 14px; font-weight: 600; transition: all .22s ease; }
.t-chip svg { color: var(--teal); transition: color .22s; }
.t-chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.t-chip:hover svg { color: var(--amber); }
.q-link { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.9); transition: color .2s, transform .2s; }
.q-link::before { content: "→"; opacity: 0; width: 0; overflow: hidden; transition: all .2s; color: var(--amber); }
.q-link:hover { color: #fff; }
.q-link:hover::before { opacity: 1; width: 1rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(700px 500px at 80% 30%, rgba(34,181,214,.28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(245,184,46,.14), transparent 60%),
    linear-gradient(160deg, #04122A 0%, #0B2C55 55%, #0B3A66 100%);
}
.hero-grid { position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
#neuro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.text-shine { background: linear-gradient(90deg, #7FE3F7 0%, #FFFFFF 40%, #F5C95C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gradient { background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Photo arch */
.arch-wrap { position: relative; padding: 6px; border-radius: 999px 999px 2.6rem 2.6rem;
  background: linear-gradient(160deg, rgba(127,227,247,.9), rgba(255,255,255,.15) 45%, rgba(245,184,46,.85)); }
.arch { border-radius: 999px 999px 2.3rem 2.3rem; overflow: hidden; background: #DCEBF3; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s ease; }
.arch-wrap:hover .arch img { transform: scale(1.04); }
.arch-glow { position: absolute; inset: 10% -10% -5% -10%; border-radius: 50%; background: radial-gradient(circle, rgba(34,181,214,.55), transparent 65%); filter: blur(30px); }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); animation: spin 60s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 12%; left: 6%; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px var(--amber); }

/* Rotating badge */
.rotating-badge svg { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass { background: rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.18); }
.glass-white { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.float-chip { animation: floaty 6s ease-in-out infinite; }
.float-chip.d2 { animation-delay: -2s; }
.float-chip.d3 { animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pulse-dot { position: relative; }
.pulse-dot::before { content: ""; position: absolute; inset: -4px; border-radius: 9999px; background: currentColor; opacity: .4; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Symptom tiles ---------- */

/* ---------- Treatment cards ---------- */
.treat-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.treat-card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px -28px rgba(11,44,85,.5); border-color: rgba(14,124,153,.35); }
.treat-card .tc-arrow { transition: all .3s ease; }
.treat-card:hover .tc-arrow { background: var(--teal); color: #fff; transform: translateX(3px); }
.treat-card .tc-icon { transition: transform .4s ease; }
.treat-card:hover .tc-icon { transform: scale(1.08) rotate(-4deg); }

.seg { background: #fff; border: 1px solid #E2E8F0; }
.tab-btn { transition: all .25s ease; }
.tab-btn[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 10px 25px -12px rgba(11,44,85,.7); }

/* Photo frame (about) */
.frame-back { position: absolute; inset: 8% -6% -6% 8%; border-radius: 2rem; background: linear-gradient(140deg, var(--teal), var(--navy)); }
.frame-dots { position: absolute; width: 140px; height: 140px; left: -28px; top: -28px; opacity: .5;
  background-image: radial-gradient(var(--teal) 2px, transparent 2px); background-size: 16px 16px; }

/* Timeline */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--amber)); border-radius: 2px; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); display: grid; place-items: center; }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Clinic cards */
.clinic-card { transition: transform .3s ease, box-shadow .3s ease; }
.clinic-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,44,85,.5); }
.map-pattern { background-color: #0B2C55;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(34,181,214,.45), transparent 40%),
    linear-gradient(30deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%),
    linear-gradient(90deg, rgba(255,255,255,.05) 2%, transparent 2.5%);
  background-size: 100% 100%, 60px 105px, 60px 105px, 60px 60px; }
.pin-pulse { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Process */
.step-line { background: repeating-linear-gradient(90deg, rgba(245,184,46,.6) 0 10px, transparent 10px 20px); height: 2px; }
.step-card { transition: transform .3s ease, background-color .3s; }
.step-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }

/* FAQ */
.faq-item .faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item .faq-body > div { overflow: hidden; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-item.open { border-color: rgba(14,124,153,.35); box-shadow: 0 20px 45px -28px rgba(11,44,85,.45); background: #fff; }
.faq-icon { transition: all .25s ease; }

/* Blog */
.blog-card { transition: transform .3s ease, box-shadow .3s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,44,85,.5); }
.blog-art { position: relative; overflow: hidden; }
.blog-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1.5px, transparent 1.5px); background-size: 18px 18px; }

/* Form */

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #12A0C2 0%, var(--teal) 50%, #0B6A84 100%); background-size: 200% 100%; color: #fff; box-shadow: 0 14px 30px -12px rgba(14,124,153,.75); transition: transform .25s, box-shadow .25s, background-position .4s; }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 36px -12px rgba(14,124,153,.85); }
.btn-amber { background: linear-gradient(135deg, #FFD06A, var(--amber)); color: var(--navy-900); box-shadow: 0 14px 30px -12px rgba(245,184,46,.7); transition: transform .25s, box-shadow .25s; }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(245,184,46,.85); }
.btn-wa { background: #25D366; color: #fff; transition: transform .2s, filter .2s; }
.btn-wa:hover { transform: translateY(-2px); filter: brightness(.95); }
.btn-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background-color .2s, transform .2s; }
.btn-glass:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-arrow i { transition: transform .25s; }
.btn-arrow:hover i:last-child { transform: translateX(4px); }

/* Floating buttons */
.fab { box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); transition: transform .2s; }
.fab:hover { transform: scale(1.08); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #25D366; animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite; z-index: -1; }

#to-top { opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease-out); }
#to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-chip, .pulse-dot::before, .rotating-badge svg, .orbit, .marquee-track, .pin-pulse, .fab-wa::before { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 1023px) { body { padding-bottom: 72px; } }
@media (min-width: 640px) { .tl::before { display: none; } }

/* Clinic photos — drop assets/img/clinic-{naranpura|bopal|gift-city}.jpg to show them */
.clinic-img { transition: transform 1s ease; }
.clinic-card:hover .clinic-img { transform: scale(1.06); }
.clinic-shade { display: none; background: linear-gradient(to top, rgba(4,18,42,.85) 0%, rgba(4,18,42,.25) 45%, rgba(4,18,42,.1) 100%); }
.clinic-media.has-img .clinic-shade { display: block; }
.clinic-media.has-img .pin-pulse { left: auto; top: 1.1rem; right: 1.1rem; transform: none; width: 2.75rem; height: 2.75rem; animation: none; }
.clinic-media.has-img .pin-pulse svg { width: 1.25rem; height: 1.25rem; }

/* Blog cover images — drop assets/img/blog-*.jpg to show them */
.blog-img { transition: transform .8s ease; }
.blog-card:hover .blog-img { transform: scale(1.06); }
.blog-art.has-img::after { display: none; }
.blog-art.has-img > span:not(.position-absolute) { display: none; }
.blog-art > span.position-absolute { z-index: 2; }
@media (max-width: 639px) { .t-chip { padding: .45rem .7rem; font-size: 13px; gap: .35rem; } .t-chip svg { width: 14px; height: 14px; } }

/* ===== Classic header (overrides the floating-island styles above) ===== */
#site-header { transition: box-shadow .3s ease; }
#site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(6,26,54,.45); }
#scroll-progress { position: static; display: block; height: 100%; border-radius: 0; }
#main-nav .nav-link { height: 100%; display: inline-flex; align-items: center; padding: 0 .55rem; border-radius: 0; background: none; color: #334155; font-weight: 600; font-size: 15px; position: relative; }
#main-nav .nav-link::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); transform: scaleX(0); transition: transform .25s ease; }
#main-nav .nav-link:hover { color: var(--navy); background: none; }
#main-nav .nav-link:hover::after, #main-nav .nav-link.active::after, #main-nav .dropdown:hover > .nav-link::after { transform: scaleX(1); }
#main-nav .nav-link.active { color: var(--teal); background: none; }
#main-nav > .nav-link, #main-nav > .dropdown { height: 100%; }
@media (min-width: 1280px) { #main-nav .nav-link { padding: 0 .8rem; } #main-nav .nav-link::after { left: .8rem; right: .8rem; } }

/* ===== Classic dark footer ===== */
.site-footer .f-head { font-family: 'Poppins', sans-serif; font-weight: 600; color: #fff; font-size: 1.05rem; margin-bottom: 1.25rem; padding-bottom: .75rem; position: relative; }
.site-footer .f-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--teal-400); }
.site-footer .f-link { color: rgba(255,255,255,.7); transition: color .2s, padding-left .2s; }
.site-footer .f-link:hover { color: #fff; padding-left: .3rem; }
.f-contact-row { display: inline-flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.85); transition: color .2s; }
.f-contact-row:hover { color: #fff; }
.f-contact-row .f-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--teal-400); transition: background-color .2s, color .2s; }
.f-contact-row:hover .f-ic { background: var(--teal); color: #fff; }

/* Footer clinic cards — glass effect */
.glass-card { background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 40px -28px rgba(0,0,0,.6); transition: transform .3s ease, border-color .3s ease, background-color .3s ease; }
.glass-card:hover { transform: translateY(-4px); border-color: rgba(63,182,211,.45); }

/* Footer: glass panels + treatment tiles */
.glass-panel { background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.t-tile { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: .9rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: 15px; font-weight: 500; transition: background-color .25s, border-color .25s, color .25s, transform .25s; }
.t-tile .t-ic { width: 34px; height: 34px; border-radius: .65rem; display: grid; place-items: center; flex-shrink: 0; background: rgba(34,181,214,.14); color: var(--teal-400); transition: background-color .25s, color .25s; }
.t-tile .t-go { opacity: 0; transform: translateX(-6px); color: var(--teal-400); transition: opacity .25s, transform .25s; }
.t-tile:hover { background: rgba(14,124,153,.22); border-color: rgba(34,181,214,.4); color: #fff; transform: translateY(-2px); }
.t-tile:hover .t-ic { background: var(--teal); color: #fff; }
.t-tile:hover .t-go { opacity: 1; transform: none; }
.t-tile-all { background: rgba(14,124,153,.25); border-color: rgba(34,181,214,.35); color: #fff; font-weight: 600; }
.t-tile-all .t-go { opacity: 1; transform: none; }
.f-contact-row { align-items: center; }

/* Header nav — keep everything on one line from 1024px up */
@media (min-width: 1024px) { #main-nav .nav-link { padding: 0 .42rem; font-size: 14px; } #main-nav .nav-link::after { left: .42rem; right: .42rem; } }
@media (min-width: 1280px) { #main-nav .nav-link { padding: 0 .6rem; font-size: 15px; } #main-nav .nav-link::after { left: .6rem; right: .6rem; } }
@media (min-width: 1400px) { #main-nav .nav-link { padding: 0 .8rem; } #main-nav .nav-link::after { left: .8rem; right: .8rem; } }

/* Small phones: keep symptom tiles readable */
/* Tablet: third clinic card spans the full row */
@media (min-width: 768px) and (max-width: 1023px) { #clinics .d-grid > article:last-child { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .footer-clinics > article:last-child { grid-column: span 2; } }

/* Links to pages not built yet */
a.link-soon { cursor: default; }

/* Treatments mega menu — single-line items */
.mega-treat .mega-link { white-space: nowrap; font-size: 14.5px; }
.mega-treat .mega-head { white-space: nowrap; }

/* New / old patient choice */
@media (max-width: 1279px) {
  .mega-treat .mega { grid-template-columns: 1fr !important; }
  .mega-treat .mega > a:last-child { display: none !important; }
}

/* ===== Smooth scroll (Lenis) ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ===== Motion timing & click feedback ===== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
a, button, label, select { -webkit-tap-highlight-color: transparent; }
.btn-primary, .btn-amber, .btn-wa, .btn-glass, .fab, .tab-btn, .book-clinic, #menu-btn, #to-top,
.symptom-tile, .treat-card, .clinic-card, .blog-card, .t-tile, .glass-card, .f-contact-row, .ptype-opt, .faq-btn, .mega-link,
a.rounded-pill, a.rounded-lg, a.rounded-xl, a.rounded-2xl { transition-timing-function: var(--ease-out); }
.symptom-tile, .treat-card, .clinic-card, .blog-card { transition-duration: .4s; }

.btn-primary:active, .btn-amber:active, .btn-wa:active, .btn-glass:active, .book-clinic:active, #menu-btn:active,
.tab-btn:active, a.rounded-pill:active, a.rounded-lg:active, button.rounded-pill:active, #booking-form button[type=submit]:active {
  transform: scale(.96); transition-duration: .08s; }
.fab:active, #to-top:active { transform: scale(.92); transition-duration: .08s; }
.symptom-tile:active, .treat-card:active, .clinic-card:active, .blog-card:active, .t-tile:active, .glass-card:active { transform: scale(.985); transition-duration: .1s; }
.faq-btn:active .faq-icon, .ptype-opt:active { transform: scale(.95); }

.dropdown-panel { transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility .25s; }
.faq-item .faq-body, .acc-body { transition: grid-template-rows .4s var(--ease-out); }
.faq-icon { transition: transform .35s var(--ease-out), background-color .25s, color .25s; }
/* Above-the-fold blocks show at once instead of waiting for AOS (which runs at the end of the page) to fade them in —
   otherwise the hero text/photo stay invisible for seconds on mobile (LCP / Speed Index). */
.hero [data-aos], .ar-cover[data-aos], .cp2-glance__photo[data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Treatments: sliding tab indicator + smoother cards */
#treat-tabs { isolation: isolate; }
#tab-pill { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 999px; background: var(--navy); opacity: 0;
  box-shadow: 0 10px 25px -12px rgba(11,44,85,.7); transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out); pointer-events: none; }
#treat-tabs .tab-btn { position: relative; background: transparent; transition: color .3s var(--ease-out); }
#treat-tabs .tab-btn[aria-selected="true"] { background: transparent; box-shadow: none; color: #fff; }
#treat-tabs .tab-btn:not([aria-selected="true"]):hover { color: var(--navy); }
.treat-card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease; will-change: transform; }
.treat-card .tc-arrow { transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out); }
.treat-card .tc-icon { transition: transform .5s var(--ease-out); }

/* ===== How your visit works — step-by-step timeline ===== */
.steps { position: relative; display: grid; gap: 2.25rem; --node: 76px; }
.steps-track { position: absolute; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.steps-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #22B5D6, #F5B82E); transform-origin: left center; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65,0,.35,1); }
.step { position: relative; display: grid; grid-template-columns: var(--node) 1fr; gap: 1.25rem; align-items: start; }
.step-node { position: relative; width: var(--node); height: var(--node); border-radius: 1.4rem; display: grid; place-items: center;
  background: #0D2A52; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s, box-shadow .5s, transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * .3s); z-index: 1; }
.step-ring { position: absolute; inset: -7px; border-radius: 1.8rem; border: 2px solid rgba(34,181,214,.0); transition: border-color .5s; transition-delay: calc(var(--i) * .3s); }
.step-badge { position: absolute; top: -9px; right: -9px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font: 700 12px/1 'Poppins', sans-serif; background: #12345F; color: rgba(255,255,255,.7); border: 2px solid #071E3D; transition: background-color .5s, color .5s; transition-delay: calc(var(--i) * .3s); }
.step-body { padding-top: .3rem; opacity: .45; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * .3s + .1s); }
.step-kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #F5B82E; }
.step-title { margin-top: .3rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.25rem; color: #fff; }
.step-text { margin-top: .45rem; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.68); }

/* active (set step by step when the section scrolls into view) */
.steps.is-active .steps-fill { transform: scaleX(1); }
.steps.is-active .step-node { background: linear-gradient(145deg, #0E7C99, #22B5D6); color: #fff; border-color: transparent; box-shadow: 0 16px 34px -14px rgba(34,181,214,.75); }
.steps.is-active .step:nth-child(2) .step-node { background: linear-gradient(145deg, #FFD06A, #F5B82E); color: #071E3D; box-shadow: 0 16px 34px -14px rgba(245,184,46,.7); }
.steps.is-active .step-ring { border-color: rgba(34,181,214,.28); }
.steps.is-active .step-badge { background: #fff; color: #0B2C55; }
.steps.is-active .step-body { opacity: 1; transform: none; }
.step:hover .step-node { transform: translateY(-4px); transition-delay: 0s; }

/* mobile / tablet: vertical line on the left */
.steps-track { left: calc(var(--node) / 2 - 2px); top: calc(var(--node) / 2); bottom: calc(var(--node) / 2); width: 4px; }
.steps-fill { background: linear-gradient(180deg, #F5B82E, #22B5D6); transform-origin: center top; transform: scaleY(0); }
.steps.is-active .steps-fill { transform: scaleY(1); }

/* desktop: horizontal line through the icons */
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; --node: 84px; }
  .steps-track { left: 10%; right: 10%; top: calc(var(--node) / 2 - 2px); bottom: auto; width: auto; height: 4px; }
  .steps-fill { background: linear-gradient(90deg, #F5B82E, #22B5D6); transform-origin: left center; transform: scaleX(0); }
  .steps.is-active .steps-fill { transform: scaleX(1); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; }
  .step-body { padding: 0 .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .steps-fill, .step-node, .step-body, .step-ring, .step-badge { transition: none !important; }
}
.steps-track { list-style: none; }

/* Blog card footer link */
.blog-card .read-more svg { transition: transform .35s var(--ease-out); }
.blog-card:hover .read-more svg { transform: translateX(4px); }
.blog-card:hover .read-more { color: var(--navy); }

/* ===== Treatments mega menu v2 ===== */
.mega2 { box-shadow: 0 40px 80px -30px rgba(6,26,54,.4); }
.mm-col { border-radius: 1.1rem; background: #F7FAFC; border: 1px solid #EDF2F7; padding: .9rem .6rem .6rem; }
.mm-head { display: flex; align-items: center; gap: .55rem; padding: 0 .45rem .7rem; margin-bottom: .35rem; border-bottom: 1px solid #E8EEF4;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #0B2C55; white-space: nowrap; }
.mm-head-ic { width: 28px; height: 28px; border-radius: .55rem; display: grid; place-items: center; background: var(--c); color: #fff; flex-shrink: 0; }
.mm-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--c); background: #fff; border: 1px solid #E2E8F0; border-radius: 999px; padding: 1px 8px; }
.mm-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border-radius: .8rem; transition: background-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s; }
.mm-ic { width: 36px; height: 36px; border-radius: .7rem; display: grid; place-items: center; flex-shrink: 0; background: #fff; color: var(--c); border: 1px solid #E2E8F0; transition: background-color .25s, color .25s, border-color .25s; }
.mm-name { display: block; font-size: 14.5px; font-weight: 600; color: #1E293B; white-space: nowrap; transition: color .2s; }
.mm-sub { display: block; font-size: 12px; color: #64748B; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-link:hover { background: #fff; box-shadow: 0 10px 24px -16px rgba(11,44,85,.45); transform: translateX(2px); }
.mm-link:hover .mm-ic { background: var(--c); color: #fff; border-color: transparent; }
.mm-link:hover .mm-name { color: #0B2C55; }
.mm-all { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem; border-radius: 999px; background: #0B2C55; color: #fff; font-size: 14px; font-weight: 600; transition: background-color .25s, transform .25s var(--ease-out); }
.mm-all:hover { background: #0E7C99; }
.mm-all svg:last-child { transition: transform .3s var(--ease-out); }
.mm-all:hover svg:last-child { transform: translateX(3px); }
@media (max-width: 1279px) {
  .mega-treat .mega { grid-template-columns: 1fr !important; }
  .mega-treat .mega > a:last-child { display: none !important; }
  .mm-sub { display: none; }
}

/* ===== Footer & header responsive polish ===== */
.footer-about .f-contact-row { min-width: 0; max-width: 100%; }
.footer-about .f-contact-row > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) and (max-width: 1279px) {
  /* stacked about panel: intro on the left, contact on the right */
  .footer-about { display: grid !important; grid-template-columns: 1.2fr 1fr; column-gap: 2.5rem; align-items: start; }
  .footer-about > *:not(:last-child) { grid-column: 1; }
  .footer-about > :last-child { grid-column: 2; grid-row: 1 / span 4; margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; align-self: center; }
}
@media (max-width: 380px) { .t-tile { font-size: 14px; padding: .6rem .7rem; } }
/* phone numbers: the font's spaces are very narrow */
a[href^="tel:"] { word-spacing: .14em; }
.f-contact-row, a[href*="wa.me"] { word-spacing: .14em; }

/* Mobile menu sub-links */
.acc-btn .acc-chev { transition: transform .35s var(--ease-out); }
.acc.open > .acc-btn { color: #F5B82E; }

/* Dropdown forced closed after a selection / Escape */
#main-nav .dropdown.dd-closed .dropdown-panel { opacity: 0 !important; visibility: hidden !important; transform: translateY(10px) !important; pointer-events: none; }
#main-nav .dropdown.dd-closed .chev { transform: none !important; }

/* "Coming soon" links + toast */
a.link-soon { cursor: pointer; }
a.link-inactive { cursor: default; }
#site-toast { position: fixed; left: 50%; bottom: 96px; z-index: 90; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: .7rem 1.1rem; border-radius: 999px; background: #0B2C55; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(6,26,54,.6);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); white-space: nowrap; }
#site-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { #site-toast { bottom: 32px; } }

/* Mobile menu accordions (Treatments / Clinics): collapsed unless .open */
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc-body > div { overflow: hidden; min-height: 0; }
.acc.open > .acc-body { grid-template-rows: 1fr; }
.acc .acc-chev { transition: transform .35s var(--ease-out); }
.acc.open .acc-chev { transform: rotate(45deg); }

/* Mobile menu — smaller, calmer type */

/* Room at the bottom of the page for the mobile quick-connect bar — added inside the (dark) footer, not on <body>,
   so no white strip shows under the footer behind the bar */
body { padding-bottom: 0; }
@media (max-width: 767px) { .ft-bottom { padding-bottom: 76px; } }

/* ===== Transparent header over the hero (pages that set $transparentHeader) ===== */
#site-header { transition: background-color .35s ease, border-color .35s ease, box-shadow .3s ease; }
#site-header .logo-light { display: none; }
.hero-overlap { margin-top: -76px; }
@media (min-width: 1024px) { .hero-overlap { margin-top: -80px; } }
#site-header.header-transparent:not(.is-scrolled) { background: transparent; border-color: rgba(255,255,255,.14); box-shadow: none; }
#site-header.header-transparent:not(.is-scrolled) .logo-dark { display: none; }
#site-header.header-transparent:not(.is-scrolled) .logo-light { display: block; }
#site-header.header-transparent:not(.is-scrolled) #main-nav .nav-link { color: rgba(255,255,255,.88); }
#site-header.header-transparent:not(.is-scrolled) #main-nav .nav-link:hover,
#site-header.header-transparent:not(.is-scrolled) #main-nav .nav-link.active { color: #fff; }
#site-header.header-transparent:not(.is-scrolled) #main-nav .nav-link::after { background: #22B5D6; }
#site-header.header-transparent:not(.is-scrolled) .hdr-cta { background: #fff; color: #0B2C55; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
#site-header.header-transparent:not(.is-scrolled) .hdr-cta:hover { background: #0E7C99; color: #fff; }
#site-header.header-transparent:not(.is-scrolled) .hdr-menu { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
#site-header.header-transparent:not(.is-scrolled) #scroll-progress { opacity: 0; }

/* ===== Hover: "How your visit works" steps ===== */
.step { border-radius: 1.4rem; padding: .9rem; margin: -.9rem; transition: background-color .4s var(--ease-out), translate .45s var(--ease-out); }
.step-title { transition: color .3s ease; }
.step-node { transition-property: background-color, color, border-color, box-shadow, transform, translate, scale; }
@media (hover: hover) {
  .step:hover { background: rgba(255,255,255,.05); translate: 0 -6px; }
  .step:hover .step-node { translate: 0 -4px; scale: 1.06; box-shadow: 0 0 0 6px rgba(34,181,214,.16), 0 20px 40px -14px rgba(34,181,214,.8); transition-delay: 0s; }
  .step:hover .step-ring { border-color: rgba(34,181,214,.55); transition-delay: 0s; }
  .step:hover .step-title { color: #7FE3F7; }
  .step:hover .step-badge { background: #F5B82E; color: #071E3D; transition-delay: 0s; }
}

/* ===== Hover: "Before your visit" cards ===== */
.prep-card { position: relative; overflow: hidden; isolation: isolate;
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s ease; }
.prep-card::after { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #0E7C99, #22B5D6); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.prep-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(14,124,153,.14), transparent 70%); opacity: 0; transition: opacity .45s ease; }
.prep-card > span:first-child { transition: transform .5s var(--ease-out); }
.prep-card h3 { transition: color .3s ease; }
@media (hover: hover) {
  .prep-card:hover { translate: 0 -8px; box-shadow: 0 28px 55px -30px rgba(11,44,85,.55); --tw-ring-color: rgba(14,124,153,.35); }
  .prep-card:hover::after { transform: scaleX(1); }
  .prep-card:hover::before { opacity: 1; }
  .prep-card:hover > span:first-child { transform: scale(1.08) rotate(-6deg); }
  .prep-card:hover h3 { color: #0E7C99; }
}
@media (prefers-reduced-motion: reduce) { .prep-card, .step { translate: none !important; } }

/* ===== About page ===== */
.edu-card { position: relative; list-style: none; border-radius: 1.75rem; background: #fff; padding: 2rem 1.75rem 1.75rem; box-shadow: 0 1px 0 rgba(226,232,240,1) inset, 0 0 0 1px #E2E8F0;
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.edu-year { position: absolute; top: 1.6rem; right: 1.75rem; font: 800 2.25rem/1 'Poppins', sans-serif; color: #E8EEF4; transition: color .3s; }
.edu-ic { width: 52px; height: 52px; border-radius: 1rem; display: grid; place-items: center; background: linear-gradient(140deg, #0B2C55, #0E7C99); color: #fff; box-shadow: 0 12px 24px -12px rgba(14,124,153,.7); }
@media (hover: hover) { .edu-card:hover { translate: 0 -6px; box-shadow: 0 0 0 1px rgba(14,124,153,.3), 0 28px 50px -30px rgba(11,44,85,.5); } .edu-card:hover .edu-year { color: #D7EEF5; } }

.exp-card { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: 1.1rem; background: #fff; border: 1px solid #E2E8F0;
  transition: border-color .25s, box-shadow .35s var(--ease-out), translate .35s var(--ease-out); }
.exp-ic { width: 42px; height: 42px; border-radius: .8rem; display: grid; place-items: center; flex-shrink: 0; background: #F0F8FB; color: #0E7C99; transition: background-color .25s, color .25s; }
.exp-go { color: #CBD5E1; transition: color .25s, transform .3s var(--ease-out); }
@media (hover: hover) {
  .exp-card:hover { border-color: rgba(14,124,153,.35); box-shadow: 0 18px 36px -24px rgba(11,44,85,.45); translate: 0 -3px; }
  .exp-card:hover .exp-ic { background: #0E7C99; color: #fff; }
  .exp-card:hover .exp-go { color: #0E7C99; transform: translateX(3px); }
}

.aff-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.75rem; background: #fff; border: 1px solid #E2E8F0;
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.aff-img { display: block; height: 11rem; overflow: hidden; }
.aff-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .aff-card:hover { translate: 0 -6px; box-shadow: 0 30px 55px -32px rgba(11,44,85,.5); } .aff-card:hover .aff-img img { transform: scale(1.05); } }
/* Treatment page illustration */
.tp-figure { position: relative; margin-top: 1.75rem; overflow: hidden; border-radius: 1.5rem; border: 1px solid #E2E8F0; background: #F0F8FB; box-shadow: 0 24px 50px -34px rgba(11,44,85,.45); }
.tp-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tp-figure figcaption { position: absolute; right: .75rem; bottom: .75rem; padding: .2rem .55rem; border-radius: .45rem; background: rgba(4,18,42,.72); color: #fff; font-size: 11px; font-weight: 500; }
/* Treatment page: illustration in the hero */
.tp-hero-figure { position: relative; margin: 0 0 1.75rem; border-radius: 1.75rem; padding: 6px; background: linear-gradient(150deg, rgba(127,227,247,.75), rgba(255,255,255,.12) 45%, rgba(245,184,46,.7)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.tp-hero-figure picture, .tp-hero-figure > picture img { display: block; width: 100%; border-radius: 1.45rem; }
.tp-hero-figure > picture img { aspect-ratio: 16 / 9; object-fit: cover; background: #EAF5FA; }
.tp-hero-figure figcaption { position: absolute; right: 1rem; top: 1rem; padding: .2rem .55rem; border-radius: .45rem; background: rgba(4,18,42,.72); color: #fff; font-size: 11px; font-weight: 500; }
.tp-doc-chip { position: absolute; left: 1rem; bottom: -1.5rem; display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem .55rem .55rem; border-radius: 1rem; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px -18px rgba(4,18,42,.6); }
.tp-doc-chip img { width: 44px; height: 44px; border-radius: .75rem; object-fit: cover; object-position: top; }
@media (min-width: 640px) { .tp-doc-chip { left: -1rem; } }

/* Treatment hero without a photo yet: icon panel in the same gradient frame */
.tp-hero-art__panel { position: relative; aspect-ratio: 16 / 9; border-radius: 1.45rem; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 1rem;
  background: radial-gradient(circle at 50% 42%, rgba(34,181,214,.35), transparent 60%), linear-gradient(150deg, #061A36 0%, #0B2C55 55%, #0E7C99 130%); }
.tp-hero-art__panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 20px 20px; }
.tp-hero-art__ring { position: absolute; left: 50%; top: 42%; width: 9.5rem; height: 9.5rem; translate: -50% -50%; border-radius: 50%; border: 1.5px solid rgba(127,227,247,.35); }
.tp-hero-art__ring--2 { width: 14rem; height: 14rem; border-color: rgba(245,184,46,.22); }
.tp-hero-art__icon { position: relative; width: 6rem; height: 6rem; border-radius: 1.75rem; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #0E7C99, #22B5D6); box-shadow: 0 24px 50px -18px rgba(34,181,214,.9); }
.tp-hero-art__icon svg { width: 3rem; height: 3rem; stroke-width: 1.6; }
.tp-hero-art__label { position: relative; font: 600 1rem/1.3 'Poppins', sans-serif; color: rgba(255,255,255,.9); letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) { .tp-hero-art__icon { animation: tpFloat 6s ease-in-out infinite; } }
@keyframes tpFloat { 50% { translate: 0 -6px; } }

/* "How your visit works" hover box: same light box as before, but solid underneath (section navy) so the timeline line
   no longer shows through its top */
@media (hover: hover) {
  .step:hover { background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)), rgb(8, 35, 70); position: relative; z-index: 1; }
}
/* more room above the icon inside the hover box (padding offset by margin, so nothing else moves) */
.step { padding-top: 1.75rem; margin-top: -1.75rem; }
