/* ============================================================
   Ordinacija Oaza Zdravlja — design system v2
   Soft medical aesthetic: lavender → blush, serif display
   Layered depth, glass surfaces, refined micro-interactions
   ============================================================ */

:root {
  --lav-50:  #f3f0ff;
  --lav-100: #e9e3ff;
  --lav-200: #d6caff;
  --lav-300: #b9a6f5;
  --lav-400: #9d7ef5;
  --lav-500: #7c5fd8;
  --lav-600: #5f44b8;
  --lav-700: #4c359a;
  --blush-50: #fdf2f8;
  --blush-100: #fbe6f1;
  --blush-200: #f6cfe2;
  --blush-300: #efaccd;
  --teal:    #16a394;
  --teal-dark: #11857a;
  --ink:     #2b2350;
  --ink-deep:#221b40;
  --ink-soft:#4a4170;
  --muted:   #6c6494;
  --paper:   #f6f4fb;
  --white:   #ffffff;
  --mint:    #eef5f3;

  /* layered shadows: tight contact + soft ambient */
  --shadow-sm: 0 1px 2px rgba(43,35,80,.05), 0 4px 16px rgba(60,40,120,.08);
  --shadow-md: 0 2px 5px rgba(43,35,80,.06), 0 14px 40px rgba(60,40,120,.13);
  --shadow-lg: 0 4px 10px rgba(43,35,80,.07), 0 28px 72px rgba(60,40,120,.18);
  --glow-primary: 0 10px 26px rgba(95,68,184,.34), 0 2px 6px rgba(95,68,184,.22);
  --glow-primary-lg: 0 18px 40px rgba(95,68,184,.42), 0 4px 10px rgba(95,68,184,.26);
  /* "lit from above" inner highlight for glass surfaces */
  --edge-light: inset 0 1px 0 rgba(255,255,255,.85);

  --border-soft: 1px solid rgba(124,95,216,.12);
  --radius: 22px;
  --radius-lg: 34px;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 12% -8%, var(--lav-100), transparent 60%),
    radial-gradient(900px 540px at 100% 0%, var(--blush-100), transparent 55%),
    radial-gradient(720px 480px at 50% 120%, rgba(214,202,255,.35), transparent 60%),
    linear-gradient(180deg, var(--lav-50), #ffffff 38%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) so no scroll container is created and position:sticky keeps working;
     paired with the same on <html> because body's clip can't contain the position:fixed preloader */
  overflow-x: clip;
  animation: pageIn .5s var(--ease) forwards;
}
@keyframes pageIn { from { opacity: .98; } to { opacity: 1; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--lav-600); }

::selection { background: var(--lav-200); color: var(--ink-deep); }

/* keyboard focus — visible, on-brand */
:focus-visible {
  outline: 2px solid var(--lav-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .menu a:focus-visible, .dd-toggle:focus-visible { outline-offset: 2px; border-radius: 999px; }

/* slim branded scrollbar (progressive enhancement) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--lav-50); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lav-300), var(--lav-500));
  border-radius: 99px; border: 2px solid var(--lav-50);
}
::-webkit-scrollbar-thumb:hover { background: var(--lav-500); }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

h1,h2,h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin: 0 0 .6em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 1.6em 0 .5em; }
p  { margin: 0 0 1.05em; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Ambient orbs (slow drifting colour fields) ---------- */
.ambient-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(70px); opacity: .5; will-change: transform;
}
.ambient-orb-1 {
  width: 480px; height: 480px; top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(185,166,245,.5), transparent 70%);
  animation: orbDrift1 26s ease-in-out infinite;
}
.ambient-orb-2 {
  width: 420px; height: 420px; bottom: -140px; left: -140px;
  background: radial-gradient(circle, rgba(246,207,226,.55), transparent 70%);
  animation: orbDrift2 32s ease-in-out infinite;
}
.ambient-orb-3 {
  width: 300px; height: 300px; top: 42%; left: 58%;
  background: radial-gradient(circle, rgba(22,163,148,.14), transparent 70%);
  animation: orbDrift3 38s ease-in-out infinite;
}
@keyframes orbDrift1 { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(-70px,60px) } }
@keyframes orbDrift2 { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(60px,-50px) } }
@keyframes orbDrift3 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(-40px,-60px) scale(1.15) } }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- Preloader (legacy fallback) ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  overflow: hidden; /* clip the 130vmax .pre-aurora so it can't force horizontal scroll */
  background: linear-gradient(160deg, var(--lav-100), var(--blush-50));
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
#preloader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 78px; height: 78px;
  display: grid; place-items: center;
  animation: pulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.loader-mark svg { width: 100%; height: 100%; }
.loader-ring {
  position: absolute; width: 132px; height: 132px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--lav-500);
  border-right-color: var(--lav-300);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity:.9 } 50% { transform: scale(1.08); opacity:1 } }

/* ---------- Preloader v2 (aurora build, injected by animations.js) ---------- */
.pre-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--lav-100), var(--blush-50) 60%, var(--lav-50));
}
.pre-aurora {
  position: absolute; width: 130vmax; height: 130vmax; left: 50%; top: 50%;
  background: conic-gradient(from 0deg,
    rgba(185,166,245,.32), rgba(246,207,226,.28), rgba(22,163,148,.10),
    rgba(185,166,245,.32));
  border-radius: 50%; filter: blur(80px);
  transform: translate(-50%,-50%);
  animation: auroraSpin 9s linear infinite;
}
@keyframes auroraSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.pre-content { position: relative; display: grid; place-items: center; text-align: center; }
.pre-rings { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 1.4rem; }
.pre-ring { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.pre-ring-1 {
  inset: 0;
  border-top-color: var(--lav-500); border-right-color: rgba(124,95,216,.25);
  animation: spin 1.2s linear infinite;
}
.pre-ring-2 {
  inset: 12px;
  border-bottom-color: var(--blush-300); border-left-color: rgba(239,172,205,.3);
  animation: spin 1.8s linear infinite reverse;
}
.pre-ring-3 {
  inset: 26px;
  border-top-color: rgba(22,163,148,.65);
  animation: spin 2.6s linear infinite;
}
.pre-logo-wrap {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 8px 30px rgba(95,68,184,.3), var(--edge-light);
  animation: pulse 1.6s ease-in-out infinite;
  background: #fff;
}
.pre-logo { width: 100%; height: 100%; object-fit: contain; }
.pre-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  letter-spacing: .34em; text-indent: .34em; color: var(--ink);
}
.pre-sub {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: .45rem;
}
.pre-bar-wrap {
  width: 168px; height: 3px; border-radius: 99px; overflow: hidden;
  background: rgba(124,95,216,.16); margin-top: 1.3rem;
}
.pre-bar {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--lav-500), var(--blush-300), var(--teal));
  animation: preFill 1.6s var(--ease) forwards;
}
@keyframes preFill { 0% { width: 0 } 60% { width: 72% } 100% { width: 100% } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  background: rgba(246,244,251,.66);
  border-bottom: 1px solid rgba(124,95,216,.12);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header::after {
  /* prismatic hairline under the glass */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,95,216,.35) 30%, rgba(239,172,205,.35) 70%, transparent);
  pointer-events: none;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(246,244,251,.88); }
.scroll-progress {
  position: absolute; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--lav-500), #e879f9, var(--teal));
  z-index: 10; pointer-events: none; border-radius: 0 1px 1px 0;
  transition: width .1s linear;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; color: var(--ink); }
.brand .logo {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: contain;
  box-shadow: 0 4px 12px rgba(43,35,80,.24), 0 0 0 2px rgba(255,255,255,.9), 0 0 0 3px rgba(124,95,216,.18);
  transition: transform .4s var(--ease-spring), box-shadow .3s ease;
}
.brand:hover .logo { transform: scale(1.06) rotate(-4deg); box-shadow: 0 6px 18px rgba(43,35,80,.3), 0 0 0 2px #fff, 0 0 0 4px rgba(124,95,216,.32); }
.brand span small { display:block; font-family: var(--sans); font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color: var(--lav-500); font-weight:700; margin-top:2px;}

.menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.menu > li > a, .menu > li > .dd-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  background: transparent; border: 0; cursor: pointer; font-family: var(--sans);
  transition: color .2s ease, background .25s ease, transform .15s ease, box-shadow .25s ease;
}
.menu > li > a:hover, .menu > li > .dd-toggle:hover {
  color: var(--lav-600); background: rgba(124,95,216,.1); transform: translateY(-2px);
}
.menu > li.active > a {
  color: var(--lav-600);
  background: linear-gradient(140deg, rgba(124,95,216,.14), rgba(246,207,226,.2));
  box-shadow: var(--edge-light), 0 1px 4px rgba(95,68,184,.12);
}
.menu > li > a:active, .menu > li > .dd-toggle:active { transform: translateY(0); }
.dd-toggle .chev { transition: transform .3s var(--ease); }
.dropdown { position: relative; }
/* invisible bridge so cursor can cross the gap to the menu without it closing */
.dropdown.open::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px; z-index: 199;
}
.dropdown.open .dd-toggle .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 290px; border-radius: 18px; padding: 8px;
  background: linear-gradient(165deg, #322a5c, var(--ink-deep));
  border: 1px solid rgba(185,166,245,.16);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.07);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  max-height: 70vh; overflow:auto;
}
.dropdown.open .dd-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dd-menu a {
  display: block; padding: .7rem .95rem; border-radius: 11px;
  color: #cfc7ea; font-weight: 500; font-size: .92rem;
  transition: background .18s ease, color .18s ease, padding-left .18s ease, transform .15s ease;
}
.dd-menu a:hover { background: linear-gradient(135deg, var(--lav-500), var(--lav-600)); color: #fff; padding-left: 1.25rem; transform: translateX(2px); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, filter .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--lav-400), var(--lav-600) 80%);
  color: #fff;
  box-shadow: var(--glow-primary), inset 0 1px 0 rgba(255,255,255,.28);
}
/* sheen sweep */
.btn-primary::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
}
.btn-primary:hover::before { left: 130%; }
/* cursor-tracked ripple highlight (--bx/--by set by animations.js) */
.btn-primary::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(140px circle at var(--bx,50%) var(--by,50%), rgba(255,255,255,.22), transparent 65%);
  opacity: 0; transition: opacity .3s ease;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-primary-lg), inset 0 1px 0 rgba(255,255,255,.3); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.72); color: var(--lav-600);
  box-shadow: var(--shadow-sm), var(--edge-light);
  border: 1px solid rgba(124,95,216,.14);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); background:#fff; box-shadow: var(--shadow-md), var(--edge-light); border-color: rgba(124,95,216,.3); }
.btn-ghost:active { transform: translateY(-1px); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem,6vw,5rem) 0 clamp(3rem,7vw,6rem); }
#heroCanvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--lav-600);
  background: rgba(255,255,255,.72); padding: .5rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow-sm), var(--edge-light);
  border: 1px solid rgba(124,95,216,.12);
  backdrop-filter: blur(6px);
}
.hero h1 { margin: 1.2rem 0 0; }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--lav-600), var(--lav-400) 55%, #c75c9f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--lav-600);
}
.hero-lead { font-size: clamp(1.05rem,1.6vw,1.28rem); color: var(--muted); max-width: 30ch; margin-top: 1.2rem; }
.hero-cta { display: flex; gap: .9rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .blob {
  position: absolute; inset: -6% -4% -6% -4%;
  background: linear-gradient(150deg, var(--lav-200), var(--blush-200));
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px); z-index: 0;
  animation: morph 14s ease-in-out infinite;
}
/* soft halo ring orbiting behind the hero image */
.hero-art::before {
  content: ""; position: absolute; inset: -11% -9%; z-index: 0; border-radius: 50%;
  border: 1.5px dashed rgba(124,95,216,.3);
  animation: spin 60s linear infinite;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%      { border-radius: 58% 42% 44% 56% / 46% 56% 44% 54%; }
}
.hero-art img, .hero-art .art-card {
  position: relative; z-index: 1; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,.55);
}
.hero-img { width: 100%; aspect-ratio: 1024/683; object-fit: cover; }
/* specialty page banner */
.spec-banner {
  position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,.55);
  margin: 1.4rem 0 .5rem; height: auto;
}
.spec-banner-wrap { position: relative; }
.spec-banner-wrap .blob {
  position: absolute; inset: 2% -3%; z-index: 0;
  background: linear-gradient(150deg, var(--lav-200), var(--blush-200));
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; filter: blur(6px);
  animation: morph 14s ease-in-out infinite;
}
.art-card {
  background: linear-gradient(160deg,#fff,var(--lav-50));
  aspect-ratio: 4/4.4; display: grid; place-items: center; text-align: center; padding: 2rem;
}
.art-card .caduceus { width: 46%; opacity: .9; }

.float-badge {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px; padding: .75rem 1.05rem;
  box-shadow: var(--shadow-md), var(--edge-light);
  display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem;
}
.float-badge small { display:block; font-weight:500; color: var(--muted); font-size:.74rem; }
.float-badge .ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--lav-100), var(--blush-100));
  display:grid; place-items:center; color: var(--lav-600);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.fb-1 { top: 8%; left: -7%; animation: floaty 5s ease-in-out infinite; }
.fb-2 { bottom: 10%; right: -6%; animation: floaty 6s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(124,95,216,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--edge-light);
  overflow: hidden;
}
.stat {
  display: grid; gap: .15rem; justify-items: center; text-align: center;
  padding: clamp(1.5rem,3vw,2.3rem) 1rem;
  position: relative;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(124,95,216,.25), transparent);
}
.stat-num {
  font-family: var(--serif); font-weight: 600; line-height: 1;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  background: linear-gradient(120deg, var(--lav-600), var(--lav-400) 60%, #c75c9f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--lav-600);
}
.stat-lbl {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin-top: .5rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem,7vw,6rem) 0; }
.section-head { max-width: 56ch; margin-bottom: 2.6rem; }
.section-head .eyebrow, .eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; letter-spacing:.2em; text-transform:uppercase; font-weight:700; color: var(--lav-500);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lav-500), var(--blush-300));
}
.lead { font-size: 1.12rem; color: var(--muted); }

/* feature cards */
.why-feature { display:grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items:center; margin-bottom: 2.6rem; }
.why-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 0 0 5px rgba(255,255,255,.55);
  aspect-ratio: 3/4; object-fit: cover; width:100%;
}
@media (max-width: 760px){ .why-feature { grid-template-columns: 1fr; } .why-img { aspect-ratio: 16/10; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.3rem; }
.card {
  position: relative;
  background: linear-gradient(170deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
  border: 1px solid rgba(124,95,216,.1);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm), var(--edge-light);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background .3s ease;
}
/* warm glow that breathes in on hover */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at 30% -10%, rgba(185,166,245,.18), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md), var(--edge-light); border-color: var(--lav-200); }
.card:hover::after { opacity: 1; }
.card:active { transform: translateY(-4px); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(140deg, var(--lav-100), var(--blush-100)); color: var(--lav-600);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 3px 10px rgba(95,68,184,.1);
  transition: transform .4s var(--ease-spring), box-shadow .3s ease;
}
.card:hover .ic { transform: scale(1.08) rotate(-3deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 6px 16px rgba(95,68,184,.2); }
.card h3 { margin: 0 0 .45rem; }
.card p { font-size: .96rem; margin: 0; }

/* specialty grid */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(255px,1fr)); gap: 1.1rem; }
.spec-card {
  position: relative; overflow: hidden; display: block;
  background: linear-gradient(170deg, #fff, rgba(255,255,255,.86));
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm), var(--edge-light);
  border: 1px solid rgba(124,95,216,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.spec-card::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(360px circle at 85% -10%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, var(--lav-500), var(--lav-700));
  opacity:0; transition: opacity .35s ease; z-index:0;
}
.spec-card > * { position: relative; z-index: 1; transition: color .3s ease; }
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), 0 14px 34px rgba(95,68,184,.3); border-color: var(--lav-300); }
.spec-card:active { transform: translateY(-2px); }
.spec-card:hover::before { opacity: 1; }
.spec-card:hover h3, .spec-card:hover p, .spec-card:hover .spec-num, .spec-card:hover .go { color: #fff; }
.spec-num {
  display: inline-grid; place-items: center; min-width: 2.1em; padding: .12em .5em;
  font-family: var(--serif); font-size: .8rem; font-weight: 600;
  color: var(--lav-500); border: 1px solid rgba(124,95,216,.28); border-radius: 999px;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.spec-card:hover .spec-num { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.spec-card h3 { margin: .65rem 0 .4rem; font-size: 1.22rem; }
.spec-card p { font-size: .88rem; color: var(--muted); margin: 0 0 1rem; min-height: 2.4em; }
.spec-card .go { display:inline-flex; align-items:center; gap:.4rem; font-weight:700; font-size:.85rem; color: var(--lav-600); transition: color .3s ease; }
.spec-card .go svg { transition: transform .3s var(--ease); }
.spec-card:hover .go svg { transform: translateX(5px); }

/* content (specialty / about pages) */
.page-hero { padding: clamp(2.2rem,5vw,3.6rem) 0 0; }
.crumb { font-size:.85rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a:hover { color: var(--lav-600); }
.team-photo {
  width:100%; max-width:680px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(255,255,255,.55);
  margin: 0 0 2.4rem;
}
.prose { max-width: 760px; }
.prose h3 {
  display: flex; align-items: baseline; gap: .6rem;
}
.prose h3::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 3px; border-radius: 3px;
  align-self: center;
  background: linear-gradient(90deg, var(--lav-500), var(--blush-300));
}
.prose hr {
  border: 0; height: 1px; margin: 2.2rem 0;
  background: linear-gradient(90deg, rgba(124,95,216,.3), rgba(239,172,205,.3), transparent);
}
.prose ul { padding-left: 0; list-style: none; margin: 1.2rem 0; }
.prose ul li { position: relative; padding: .35rem 0 .35rem 1.9rem; color: var(--ink-soft); }
.prose ul li::before {
  content:""; position:absolute; left:0; top:.95em; width:9px; height:9px; border-radius:50%;
  background: linear-gradient(135deg,var(--lav-500),var(--blush-200));
  box-shadow: 0 0 0 3px rgba(124,95,216,.12);
}
.doctor-chip {
  display:flex; align-items:center; gap:1rem; margin-top: 2rem;
  background: linear-gradient(140deg,#fff,var(--lav-50)); border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm), var(--edge-light);
  border:1px solid rgba(124,95,216,.1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease, background .3s ease;
}
.doctor-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--edge-light); border-color: var(--lav-200); background: linear-gradient(140deg,#fff,var(--lav-100)); }
.doctor-chip:active { transform: translateY(-1px); }
.doctor-chip .av { width:54px; height:54px; border-radius:50%; background: linear-gradient(140deg,var(--lav-200),var(--blush-200)); display:grid; place-items:center; color: var(--lav-600); flex:0 0 auto; transition: transform .3s var(--ease), box-shadow .3s ease; box-shadow: 0 4px 14px rgba(95,68,184,.15); }
.doctor-chip:hover .av { transform: scale(1.08); box-shadow: 0 6px 20px rgba(95,68,184,.24); }
.doctor-chip .doc-photo {
  width:84px; height:84px; border-radius:18px; object-fit:cover; object-position:center top; flex:0 0 auto;
  box-shadow: var(--shadow-sm), 0 0 0 3px rgba(255,255,255,.85), 0 0 0 4px rgba(124,95,216,.16);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.doctor-chip:hover .doc-photo { transform: scale(1.05); box-shadow: var(--shadow-md), 0 0 0 3px #fff, 0 0 0 5px rgba(124,95,216,.3); }
.doctor-chip small { color: var(--lav-500); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:.68rem; }

/* contact */
.contact-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: stretch; }
.contact-card {
  background: linear-gradient(170deg, #fff, rgba(255,255,255,.88));
  border: 1px solid rgba(124,95,216,.1);
  border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.6rem);
  box-shadow: var(--shadow-md), var(--edge-light);
}
.contact-item { display:flex; gap:1rem; padding:1rem 0; border-bottom:1px solid rgba(124,95,216,.1); transition: transform .2s ease, background .2s ease; }
.contact-item:hover { transform: translateX(4px); }
.contact-item:last-child { border-bottom:0; }
.contact-item .ic {
  width:46px;height:46px;border-radius:13px;
  background: linear-gradient(140deg, var(--lav-100), var(--blush-100));
  color:var(--lav-600);display:grid;place-items:center;flex:0 0 auto;
  transition: transform .3s var(--ease), box-shadow .3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 8px rgba(95,68,184,.12);
}
.contact-item:hover .ic { transform: scale(1.12) rotate(4deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 12px rgba(95,68,184,.24); }
.contact-item .lbl { font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.contact-item a { transition: color .25s ease; }
.contact-item a:hover { color: var(--lav-600); }
.map-frame {
  border-radius: var(--radius-lg); overflow:hidden; min-height: 360px;
  box-shadow: var(--shadow-md), 0 0 0 5px rgba(255,255,255,.55);
  border: 1px solid rgba(124,95,216,.12);
}
.map-frame iframe { width:100%; height:100%; min-height:360px; border:0; display:block; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(560px 300px at 88% -20%, rgba(232,121,249,.3), transparent 60%),
    radial-gradient(480px 280px at 0% 110%, rgba(22,163,148,.22), transparent 60%),
    linear-gradient(135deg, var(--lav-500), var(--lav-700));
  border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,3.6rem); color:#fff; text-align:center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.cta-band:hover { transform: translateY(-4px); box-shadow: 0 32px 90px rgba(95,68,184,.3), inset 0 1px 0 rgba(255,255,255,.18); }
/* fine dot texture, fading toward the bottom */
.cta-band::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.cta-band::after { content:""; position:absolute; width:340px;height:340px; right:-80px; top:-120px; background: radial-gradient(circle,rgba(255,255,255,.18),transparent 70%); }
.cta-band h2 { color:#fff; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 50ch; margin-inline:auto; position: relative; z-index: 1; }
.cta-band > div { position: relative; z-index: 1; }
.cta-band .btn-ghost { background: rgba(255,255,255,.94); color: var(--lav-600); border-color: transparent; }
.cta-band .btn-ghost:hover { background: #fff; }

/* ---- Promo popups ---- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; justify-content: center; align-items: stretch;
  padding: 1.4rem; background: transparent;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  pointer-events: none;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-overlay.leaving { opacity: 0; visibility: hidden; }
.popup-panel {
  pointer-events: auto;
  display: flex; justify-content: space-between; gap: 1rem;
  width: min(100%, 860px); max-width: 100%; align-items: flex-start;
}
.popup-stack {
  pointer-events: auto;
  display: flex; flex-direction: column; gap: 1rem;
  max-height: calc(100vh - 2.8rem); overflow-y: auto;
  width: min(380px, 100%); padding: .75rem;
  background: rgba(255,255,255,.9); border-radius: calc(var(--radius) * 1.1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.7);
}
.popup-card {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg), var(--edge-light);
  border-top: 3px solid var(--teal);
  width: 100%; transform: translateX(20px) scale(.97); opacity: 0;
  animation: popIn .45s var(--ease) forwards;
}
.popup-stack--left .popup-card { transform: translateX(-20px) scale(.97); }
.popup-stack .popup-card:nth-child(2) { animation-delay: .1s; }
.popup-stack .popup-card:nth-child(3) { animation-delay: .2s; }
.popup-card.leaving { animation: popOut .3s var(--ease) forwards; }
@keyframes popIn  { to { transform: none; opacity: 1; } }
@keyframes popOut { to { transform: translateY(-12px) scale(.97); opacity: 0; } }
@keyframes slideInLeft { from { transform: translateX(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-stack--left { position: fixed; left: 1.4rem; top: 1.4rem; width: min(360px, 38%); z-index: 510; animation: slideInLeft .45s var(--ease) both; }
.popup-stack--right { position: fixed; right: 1.4rem; top: 1.4rem; width: min(360px, 38%); z-index: 510; animation: slideInRight .45s var(--ease) both; }
.popup-card h3 { margin: 0 0 .7rem; font-size: 1.4rem; line-height: 1.2; padding-right: 4.5rem; }
.popup-card p  { font-size: .98rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.popup-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: var(--teal); color: #fff; border: 0; cursor: pointer;
  padding: .4rem .85rem; border-radius: 9px; font-weight: 700; font-size: .82rem;
  font-family: var(--sans); transition: background .2s ease, transform .2s var(--ease), box-shadow .2s ease;
  box-shadow: 0 4px 12px rgba(22,163,148,.24);
}
.popup-close:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(22,163,148,.32); }
.popup-close:active { transform: translateY(0); }
.popup-cta { background: linear-gradient(135deg, #1cb9a8, var(--teal-dark)); box-shadow: 0 10px 26px rgba(22,163,148,.34), inset 0 1px 0 rgba(255,255,255,.25); }
.popup-cta:hover { box-shadow: 0 16px 36px rgba(22,163,148,.42), inset 0 1px 0 rgba(255,255,255,.25); }
@media (max-width: 760px) {
  /* remove promo popups on small screens (JS also skips building them) */
  .popup-overlay { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(620px 320px at 90% 0%, rgba(124,95,216,.25), transparent 60%),
    radial-gradient(480px 280px at 0% 100%, rgba(246,207,226,.08), transparent 55%),
    linear-gradient(175deg, #322a5c, var(--ink-deep) 70%);
  color: #c8c0e6; margin-top: 3rem; padding: 3.6rem 0 1.6rem;
}
.site-footer::before {
  /* prismatic hairline along the top edge */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,166,245,.55) 30%, rgba(239,172,205,.5) 70%, transparent);
}
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:2rem; }
.site-footer h4 { font-family: var(--sans); font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:#fff; margin:0 0 1rem; }
.site-footer a:hover { color:#fff; transition: color .25s ease; }
.site-footer .f-brand { display:flex; align-items:center; gap:.7rem; font-family: var(--serif); font-size:1.2rem; color:#fff; margin-bottom:.9rem; }
.site-footer .f-brand .logo { width:40px; height:40px; border-radius:50%; object-fit:contain; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.site-footer .f-brand span small { display:block; font-family: var(--sans); font-size:.6rem; letter-spacing:.22em; text-transform:uppercase; color: var(--lav-300); font-weight:700; margin-top:2px; }
.f-about p { color:#9d94bd; font-size:.92rem; max-width:34ch; }
.f-social { display:flex; gap:.5rem; margin-top:1.1rem; }
.f-social a {
  display:grid; place-items:center; width:38px; height:38px; border-radius:11px;
  color:#9d94bd; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  transition: color .25s ease, background .25s ease, transform .25s var(--ease), border-color .25s ease;
}
.f-social a:hover { color:#fff; background: rgba(124,95,216,.4); border-color: rgba(185,166,245,.4); transform: translateY(-3px); }
.f-links { list-style:none; padding:0; margin:0; display:grid; gap:.55rem; font-size:.92rem; }
.f-links a { position: relative; transition: color .22s ease, padding-left .22s ease; }
.f-links a:hover { padding-left: .55rem; }
.f-links a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lav-400), var(--blush-300));
  transform: translateY(-50%); transition: width .22s var(--ease);
}
.f-links a:hover::before { width: .35rem; }
.f-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:2.4rem; padding-top:1.3rem; font-size:.82rem; color:#8d84ad; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; }
.f-credit a { color:#9d94bd; }
.f-credit a:hover { color:#fff; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

/* hero intro (plays once, not scroll-based) */
.hero [data-intro] { opacity:0; transform: translateY(30px); }
.hero.ready [data-intro] { animation: introUp .9s var(--ease) forwards; }
.hero.ready [data-intro][data-delay="1"]{ animation-delay:.15s }
.hero.ready [data-intro][data-delay="2"]{ animation-delay:.3s }
.hero.ready [data-intro][data-delay="3"]{ animation-delay:.45s }
.hero.ready [data-intro][data-delay="4"]{ animation-delay:.6s }
.hero.ready .hero-art { animation: introArt 1.1s var(--ease) .25s forwards; opacity:0; transform: scale(.94); }
@keyframes introUp { to { opacity:1; transform:none; } }
@keyframes introArt { to { opacity:1; transform: scale(1); } }

/* Smooth link hover effect */
.crumb a, .prose a {
  position: relative;
  transition: color .25s ease;
}
.crumb a::after, .prose a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lav-500), var(--blush-200));
  transition: width .3s var(--ease);
  border-radius: 1px;
}
.crumb a:hover::after, .prose a:hover::after {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .hero [data-intro], .hero-art, .popup-card { opacity:1 !important; transform:none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { order:-1; max-width: 420px; margin-inline:auto; }
  .float-badge { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .stat + .stat::before {
    left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,95,216,.25), transparent);
  }
  .menu { display: none; }
  .burger { display: block; }
  .site-header.menu-open .menu {
    display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column;
    background: rgba(246,244,251,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1rem 1.2rem 1.6rem; gap: .2rem; box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(124,95,216,.12); align-items: stretch;
  }
  .site-header.menu-open .menu > li > a, .site-header.menu-open .menu > li > .dd-toggle { width:100%; justify-content: space-between; }
  .dd-menu { position: static; transform:none; width:100%; background: rgba(43,35,80,.04); border: 0; box-shadow:none; max-height:0; padding:0; overflow:hidden; transition: max-height .3s ease; }
  .dropdown.open .dd-menu { max-height: 600px; padding: 6px; transform:none; }
  .dd-menu a { color: var(--ink-soft); }
  .dd-menu a:hover { background: var(--lav-100); color: var(--lav-600); }
  .f-bottom { flex-direction: column; }
  .ambient-orb { display: none; }
}
