/* ===================================================================
   ANIRON Magánklinika — Modern Design System
   Premium medical theme: glassmorphism + 3D + smooth motion
   =================================================================== */

:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --primary-deep: #134e4a;
  --primary-soft: #ccfbf1;
  --primary-glow: rgba(20, 184, 166, 0.35);

  --secondary: #0a2540;
  --secondary-soft: #1e3a5f;

  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-soft: #fef3c7;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-mint: #f0fdfa;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.7);

  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 20px 60px -10px var(--primary-glow);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

  --container: 1240px;
  --header-h: 70px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* notch / safe-area support */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, svg { max-width: 100%; display: block; }
a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Mobile interaction polish */
a, button, [role="button"] { touch-action: manipulation; }

::selection { background: var(--primary); color: #fff; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; padding: 120px 0; }
section.tight { padding: 80px 0; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--secondary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
  padding: 8px 16px;
  background: var(--primary-soft);
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(20,184,166,.18);
}

.section-title { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.section-title p { font-size: 1.05rem; margin-top: 18px; }

.text-grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 60%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all .35s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn i { width: 18px; height: 18px; }
.btn-sm {
  padding: 9px 18px;
  font-size: 0.86rem;
  gap: 7px;
}
.btn-sm i { width: 15px; height: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px var(--primary-glow);
}

.btn-ghost {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

.btn-dark {
  background: var(--secondary);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-deep); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--secondary);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.25);
}
.btn-light:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.35);
}

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ===== Topbar (slim contact strip) ===== */
.topbar {
  background: linear-gradient(90deg, #0a1628 0%, var(--secondary) 100%);
  color: #cbd5e1;
  font-size: 0.8rem;
  height: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 101;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.topbar-left, .topbar-right {
  display: flex;
  gap: 22px;
  align-items: center;
  height: 100%;
}
.topbar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color .2s var(--ease);
}
.topbar .tb-item i { width: 13px; height: 13px; color: var(--primary); }
.topbar a.tb-item:hover { color: #fff; }
.topbar a.tb-item:hover i { color: #5eead4; }
.topbar .tb-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(20,184,166,0.16);
  color: #5eead4;
  border: 1px solid rgba(20,184,166,0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.topbar .tb-cta i { width: 13px; height: 13px; }
.topbar .tb-cta:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
/* Long/short label switch (small phones override below) */
.topbar .tb-cta-short { display: none; }
.topbar .tb-cta-long { display: inline; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.12);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.header.scrolled .nav { height: 60px; }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--secondary);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform .3s var(--ease);
}
.logo img {
  height: 38px; width: auto; display: block;
  transition: height .3s var(--ease);
}
.header.scrolled .logo img { height: 32px; }
.logo.logo-sm img { height: 32px; }
.footer .logo img { height: 44px; }

.menu {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 100%;
}
.menu > a {
  position: relative;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--secondary);
  border-radius: 10px;
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.menu > a:hover { color: var(--primary-dark); background: rgba(20, 184, 166, 0.08); }
.menu > a.active { color: var(--primary-dark); }
.menu > a.active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

/* dropdown / megamenu trigger */
.has-sub { position: relative; display: inline-flex; align-items: center; }
.has-sub > .menu-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--secondary);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.has-sub > .menu-trigger:hover,
.has-sub.open > .menu-trigger {
  color: var(--primary-dark);
  background: rgba(20, 184, 166, 0.08);
}
.has-sub > .menu-trigger .chev {
  width: 13px; height: 13px;
  transition: transform .25s var(--ease);
}
.has-sub.open > .menu-trigger .chev { transform: rotate(180deg); }

.megamenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1100px, calc(100vw - 60px));
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.25);
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 150;
}
.megamenu::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px; height: 16px;
  background: #fff;
  border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
}
.has-sub.open .megamenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.megamenu-col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 14px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.megamenu-col h5 i { width: 14px; height: 14px; }
.megamenu-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.megamenu-col a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
  line-height: 1.3;
}
.megamenu-col a:hover {
  color: var(--primary-dark);
  background: var(--bg-mint);
  padding-left: 14px;
}
.megamenu-col a i {
  width: 14px; height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}
.megamenu-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.megamenu-footer .blurb { font-size: 0.85rem; color: var(--text-muted); }
.megamenu-footer .actions { display: flex; gap: 10px; }
.megamenu-footer .actions a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.megamenu-footer .actions .ghost { color: var(--secondary); border: 1px solid var(--border); }
.megamenu-footer .actions .ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.megamenu-footer .actions .solid { background: var(--primary); color: #fff; }
.megamenu-footer .actions .solid:hover { background: var(--primary-dark); }

/* megamenu backdrop (when open) */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 90;
}
.menu-backdrop.show { opacity: 1; pointer-events: auto; }

.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-phone {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-mint);
  align-items: center; justify-content: center;
  color: var(--primary-dark);
  text-decoration: none;
  transition: all .2s var(--ease);
}
.nav-phone i { width: 18px; height: 18px; }
.nav-phone:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--bg-mint);
  border: 1px solid rgba(20, 184, 166, 0.12);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.burger:hover { background: rgba(20, 184, 166, 0.16); border-color: rgba(20, 184, 166, 0.3); }
.burger i { width: 20px; height: 20px; color: var(--secondary); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 0; right: -100%;
  width: 88%; max-width: 380px; height: 100vh;
  background: #fff;
  z-index: 200;
  padding: 28px;
  overflow-y: auto;
  transition: right .4s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.15);
}
.mobile-menu.open { right: 0; }
.mobile-menu .close-btn {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft); display: grid; place-items: center;
}
.mobile-menu .close-btn i { width: 20px; height: 20px; }
.mobile-menu nav { margin-top: 60px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  padding: 14px 16px; border-radius: 10px;
  font-weight: 500; color: var(--secondary);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu nav a:hover { background: var(--bg-mint); color: var(--primary-dark); }
.mobile-menu details summary {
  padding: 14px 16px; border-radius: 10px; cursor: pointer;
  font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu details summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] summary { background: var(--bg-mint); color: var(--primary-dark); }
.mobile-menu details .sub { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu details .sub a { padding: 8px 12px; font-size: 0.92rem; color: var(--text-muted); }

.overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(20, 184, 166, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(245, 158, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-mint) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 184, 166, 0.15) 1px, transparent 0);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: .5;
}

.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-grid > .scene-3d { min-width: 0; }
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 .accent {
  position: relative; display: inline-block;
}
.hero h1 .accent svg {
  position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px;
}
.hero .lead {
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--text-muted);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-trust {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.hero-trust .item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-trust .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1;
}
.hero-trust .lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* 3D scene shared keyframes */
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@keyframes floatSlow {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}
@keyframes floatTilt {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -12px; rotate: 0.6deg; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Marquee feature bar ===== */
.feature-bar {
  background: var(--secondary);
  color: #cbd5e1;
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.feature-track {
  display: flex; gap: 60px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.feature-track .item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem;
}
.feature-track .item i { width: 18px; height: 18px; color: var(--primary); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Service cards (six categories) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 38px 30px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Soft brand wash on hover */
.service-card::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
  border-radius: inherit;
  pointer-events: none;
}
/* Cursor-following spotlight */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(20, 184, 166, 0.10),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.service-card:hover {
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow:
    0 30px 60px -20px rgba(20, 184, 166, 0.25),
    0 18px 36px -16px rgba(15, 23, 42, 0.18);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }
.service-card > * { position: relative; z-index: 2; transform-style: preserve-3d; }

.service-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #ecfeff 100%);
  display: grid; place-items: center;
  margin-bottom: 24px;
  position: relative;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 8px 18px -8px rgba(20, 184, 166, 0.22);
  /* keep icon-wrap on a flat plane - no rotateY to avoid backface flip */
  transform: translateZ(20px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Soft glow halo behind icon on hover (rendered behind via z-index) */
.service-card .icon-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(20,184,166,0.45) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
}
.service-card .icon-wrap i {
  width: 30px; height: 30px;
  color: var(--primary-dark);
  transition: color 0.35s var(--ease), transform 0.45s var(--ease);
  position: relative;
  z-index: 2;
  /* keep icon strictly visible — no transforms that could hide it */
}

.service-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  transform: translateZ(40px) translateY(-4px);
  box-shadow:
    0 18px 32px -10px rgba(20, 184, 166, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.service-card:hover .icon-wrap::before { opacity: 1; }
.service-card:hover .icon-wrap i {
  color: #fff;
  transform: scale(1.08);
}

/* Subtle stacking depth for content */
.service-card h3   { transform: translateZ(12px); margin-bottom: 10px; }
.service-card p    { transform: translateZ(8px); font-size: 0.95rem; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateZ(14px);
}
.service-card .more i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service-card:hover .more i { transform: translateX(4px); }

/* ===== Why us / split ===== */
.why-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.why-list .item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 18px 18px 18px;
  display: flex; align-items: center; gap: 12px;
  transition: all .3s var(--ease);
}
.why-list .item:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow); }
.why-list .item .ic {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--primary-soft); border-radius: 10px;
  display: grid; place-items: center; color: var(--primary-dark);
}
.why-list .item .ic i { width: 18px; height: 18px; }
.why-list .item span { font-weight: 500; font-size: 0.92rem; color: var(--secondary); }

/* ===== Orbit 3D scene (Why us) ===== */
.orbit-3d {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  perspective: 1400px;
  transform-style: preserve-3d;
  --tx: 0;
  --ty: 0;
}

.orbit-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(20,184,166,0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(245,158,11,0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(20,184,166,0.35);
  pointer-events: none;
}
.orbit-ring.r1 { inset: 0; animation: spin 50s linear infinite; }
.orbit-ring.r2 { inset: 10%; border-style: solid; border-color: rgba(20,184,166,0.12); animation: spin 38s linear infinite reverse; }
.orbit-ring.r3 { inset: 22%; border-color: rgba(245,158,11,0.3); animation: spin 28s linear infinite; }
.orbit-ring .pip {
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.18), 0 0 20px rgba(20,184,166,0.6);
  transform: translateX(-50%);
}
.orbit-ring.r2 .pip { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,0.18), 0 0 20px rgba(245,158,11,0.6); }
.orbit-ring.r3 .pip { background: #5eead4; box-shadow: 0 0 0 4px rgba(94,234,212,0.2), 0 0 20px rgba(94,234,212,0.6); }

.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 38%; aspect-ratio: 1;
  translate: -50% -50%;
  transform: translate3d(calc(var(--tx) * 1px), calc(var(--ty) * 1px), 60px);
  z-index: 5;
  display: grid;
  place-items: center;
}
.orbit-core .core-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), transparent 45%),
    linear-gradient(140deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: grid; place-items: center;
  color: #fff;
  box-shadow:
    0 30px 70px -10px rgba(20,184,166,0.55),
    inset -20px -25px 60px rgba(0,0,0,0.25),
    inset 14px 14px 36px rgba(255,255,255,0.18);
  position: relative;
  animation: floatSlow 6s ease-in-out infinite;
}
.orbit-core .core-inner i { width: 56px; height: 56px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); }
.orbit-core .core-pulse {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px solid rgba(20,184,166,0.4);
  animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.95); opacity: 0.7; }
  80%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.orbit-card {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow:
    0 24px 50px -12px rgba(15,23,42,0.18),
    0 8px 20px -8px rgba(15,23,42,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
  display: flex; gap: 12px; align-items: center;
  z-index: 6;
  min-width: 168px;
  transform: translate3d(calc(var(--tx) * 1px), calc(var(--ty) * 1px), 0);
  transition: transform 0.25s var(--ease);
}
.orbit-card .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -4px var(--primary-glow);
}
.orbit-card .ic.amber { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 16px -4px rgba(245,158,11,0.4); }
.orbit-card .ic.navy  { background: linear-gradient(135deg, var(--secondary), #1e3a8a); box-shadow: 0 8px 16px -4px rgba(10,37,64,0.35); }
.orbit-card .ic.teal  { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 8px 16px -4px rgba(6,182,212,0.4); }
.orbit-card .ic i { width: 20px; height: 20px; }
.orbit-card .meta { display: flex; flex-direction: column; gap: 1px; }
.orbit-card .meta span { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.orbit-card .meta strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--secondary); }

.orbit-card.c1 { top: 6%;  left: -4%; animation: floatTilt 6s ease-in-out infinite; }
.orbit-card.c2 { top: 18%; right: -8%; animation: floatTilt 7s ease-in-out infinite 0.8s; }
.orbit-card.c3 { bottom: 18%; left: -8%; animation: floatTilt 6.5s ease-in-out infinite 1.6s; }
.orbit-card.c4 { bottom: 4%;  right: -4%; animation: floatTilt 7.5s ease-in-out infinite 2.2s; }

/* ===== Specialty list ===== */
.spec-bg { background: var(--bg-soft); }
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.spec-tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border-soft);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.spec-tile::before {
  content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.spec-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.spec-tile:hover::before { transform: scaleY(1); }
.spec-tile .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.spec-tile .ic i { width: 20px; height: 20px; }
.spec-tile span { font-weight: 500; font-size: 0.92rem; color: var(--secondary); }

.spec-section h3 {
  display: flex; align-items: center; gap: 14px;
  margin: 50px 0 22px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-dark);
}
.spec-section h3::after {
  content:""; flex: 1; height: 1px; background: var(--border);
}
.spec-section h3:first-of-type { margin-top: 0; }

/* ===== Stats banner ===== */
.stats {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-deep) 100%);
  color: #fff;
}
.stats::before {
  content:""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 30px 30px;
}
.stats::after {
  content:""; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: .25; filter: blur(40px);
}
.stats .container { position: relative; z-index: 2; }
.stats-head { text-align: center; margin-bottom: 60px; }
.stats-head h2 { color: #fff; }
.stats-head p { color: rgba(255,255,255,.7); margin-top: 14px; font-size: 1.05rem; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.stat {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all .3s var(--ease);
}
.stat:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); border-color: var(--primary); }
.stat .icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px var(--primary-glow);
}
.stat .icon i { width: 26px; height: 26px; color: #fff; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}
.stat .lbl { color: rgba(255,255,255,.7); font-size: 0.95rem; }

/* ===== Doctors ===== */
.doctors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.doctor-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all .35s var(--ease);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-mint) 100%);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.doctor-portrait::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(20,184,166,.2), transparent 50%);
}
.doctor-portrait .avatar {
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--primary-soft));
  display: grid; place-items: center;
  box-shadow: 0 20px 50px -10px rgba(20,184,166,.3);
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary-deep);
}
.doctor-portrait .badge-spec {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  background: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; color: var(--primary-dark);
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.doctor-info { padding: 22px 22px 26px; }
.doctor-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.doctor-info .role {
  font-size: 0.82rem; color: var(--primary-dark); font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.doctor-info p { font-size: 0.88rem; line-height: 1.55; }
.doctor-info .links {
  display: flex; gap: 8px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--border-soft);
}
.doctor-info .links a {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft);
  display: grid; place-items: center; color: var(--text-muted);
}
.doctor-info .links a:hover { background: var(--primary); color: #fff; }
.doctor-info .links a i { width: 16px; height: 16px; }

/* ===== Showcase / sliders ===== */
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.showcase-card {
  position: relative; min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  isolation: isolate;
  transition: transform .4s var(--ease);
}
.showcase-card:hover { transform: translateY(-6px); }
.showcase-card::before {
  content:""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
}
.showcase-card.amber::before { background: linear-gradient(135deg, #92400e 0%, var(--accent) 100%); }
.showcase-card.navy::before { background: linear-gradient(135deg, var(--secondary) 0%, #1e40af 100%); }
.showcase-card::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.08), transparent 50%);
}
.showcase-card .floating-icon {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: grid; place-items: center;
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}
.showcase-card .floating-icon i { width: 20px; height: 20px; color: #fff; }
.showcase-card .eyebrow {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  margin-bottom: 14px;
}
.showcase-card .eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.showcase-card h3 { color: #fff; margin-bottom: 12px; font-size: 1.6rem; }
.showcase-card p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.showcase-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px; color: #fff; font-weight: 600; font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 4px; align-self: flex-start;
}
.showcase-card .more i { width: 16px; height: 16px; }

/* ===== Recent posts ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all .3s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-soft), var(--bg-mint));
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.post-thumb::before {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(20,184,166,.3), transparent 60%);
}
.post-thumb i { width: 64px; height: 64px; color: var(--primary-dark); position: relative; z-index: 2; opacity: .8; }
.post-thumb .date {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: #fff; padding: 8px 12px; border-radius: 10px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.post-thumb .date .d { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--secondary); line-height: 1; }
.post-thumb .date .m { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.post-content { padding: 26px; }
.post-content .cat { font-size: 0.78rem; color: var(--primary-dark); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.post-content h3 { margin: 10px 0 14px; font-size: 1.3rem; }
.post-content p { font-size: 0.93rem; }
.post-content .read {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--primary-dark); font-weight: 600; font-size: 0.9rem;
}
.post-content .read i { width: 16px; height: 16px; }

/* ===== Info trio (3 small info boxes) ===== */
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-soft);
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.trio-card::before {
  content:""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--primary-soft); opacity: .5;
  transition: transform .5s var(--ease);
}
.trio-card:hover::before { transform: scale(1.4); }
.trio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.trio-card > * { position: relative; z-index: 2; }
.trio-card .icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px -8px var(--primary-glow);
}
.trio-card .icon i { width: 30px; height: 30px; color: #fff; }
.trio-card h3 { margin-bottom: 10px; }
.trio-card .hours-list { margin-top: 12px; }
.trio-card .hours-list .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.trio-card .hours-list .row:last-child { border-bottom: none; }
.trio-card .hours-list .day { color: var(--secondary); font-weight: 500; }
.trio-card .hours-list .time { color: var(--text-muted); }

/* ===== CTA banner ===== */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 70px 60px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-deep) 100%);
  color: #fff;
  overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta::before {
  content:""; position: absolute; top: -100px; left: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--primary); filter: blur(80px); opacity: .35;
}
.cta::after {
  content:""; position: absolute; bottom: -80px; right: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--accent); filter: blur(80px); opacity: .25;
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-primary { background: #fff; color: var(--primary-deep); }
.cta .btn-primary:hover { background: var(--primary-soft); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn-ghost:hover { border-color: #fff; }

/* ===== Footer ===== */
/* ===== Footer CTA strip ===== */
.footer-cta {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(245, 158, 11, 0.10), transparent 50%);
  pointer-events: none;
}
.footer-cta .container { position: relative; }
.fcta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.fcta-text .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fcta-text .eyebrow i { width: 14px; height: 14px; }
.fcta-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #fff;
  margin-top: 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fcta-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: #0a1628;
  color: #cbd5e1;
  padding: 80px 0 28px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,184,166,.4), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.f-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 14px;
}
.f-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.footer .logo {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 0;
}
.footer .logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.f-brand p {
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.f-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.f-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.f-contact .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .25s ease;
}
.f-contact .ic i { width: 16px; height: 16px; }
.f-contact li:hover .ic {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.f-contact a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .25s;
}
.f-contact a:hover { color: var(--primary); }

.f-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-col ul a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.45;
}
.f-col ul a:hover {
  color: var(--primary);
  transform: translateX(4px);
}
.f-quick ul a i {
  width: 14px; height: 14px;
  color: var(--primary);
  opacity: 0.6;
  transition: opacity .2s;
}
.f-quick ul a:hover i { opacity: 1; }

.f-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.f-twocol ul { gap: 10px; }

.f-badge {
  margin-top: 28px;
  padding: 16px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.f-badge > i {
  width: 28px; height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}
.f-badge strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.f-badge span {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid; place-items: center;
  color: #cbd5e1;
  transition: all .3s var(--ease);
  text-decoration: none;
}
.socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(20, 184, 166, 0.5);
}
.socials i { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-bottom strong { color: #cbd5e1; font-weight: 600; }
.footer-bottom .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom .links a {
  color: #64748b;
  text-decoration: none;
  transition: color .25s;
  position: relative;
}
.footer-bottom .links a:hover { color: var(--primary); }
.footer-bottom .links a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Page hero (for inner pages) ===== */
.page-hero {
  position: relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(ellipse at top right, rgba(20,184,166,0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-mint) 100%);
  overflow: hidden;
}
.page-hero::before {
  content:""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(20,184,166,.2) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, transparent 100%);
  opacity: .4;
}
.page-hero .container { position: relative; z-index: 2; text-align: center; max-width: 880px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p { font-size: 1.1rem; max-width: 660px; margin: 0 auto; }
.crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
.crumbs a { color: var(--text-muted); }
.crumbs .sep { color: var(--text-light); }
.crumbs .current { color: var(--primary-dark); font-weight: 600; }

/* page hero floating shapes */
.page-hero .shape {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  filter: blur(60px); opacity: .12;
  animation: float 8s ease-in-out infinite;
}
.page-hero .shape.s1 { width: 280px; height: 280px; top: -80px; left: -80px; }
.page-hero .shape.s2 { width: 200px; height: 200px; bottom: -60px; right: -30px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); animation-delay: 2s; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1100px; margin: 0 auto;
}
.price-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border-soft);
  position: relative;
  transition: all .35s var(--ease);
}
.price-card.featured {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured h3, .price-card.featured .amount { color: #fff; }
.price-card.featured p, .price-card.featured li { color: rgba(255,255,255,.85); }
.price-card.featured .price-feat { border-color: rgba(255,255,255,.15); }
.price-card.featured .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.price-card:not(.featured):hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.price-card.featured .icon { background: rgba(255,255,255,.15); color: #fff; }
.price-card .icon i { width: 28px; height: 28px; }
.price-card h3 { margin-bottom: 8px; }
.price-card .desc { font-size: 0.9rem; margin-bottom: 24px; }
.price-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.price-card.featured .price-amount { border-color: rgba(255,255,255,.15); }
.price-amount .amount {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--secondary); line-height: 1;
}
.price-amount .currency { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.price-amount .per { font-size: 0.88rem; color: var(--text-muted); margin-left: 6px; }
.price-card.featured .currency, .price-card.featured .per { color: rgba(255,255,255,.7); }
.price-feat { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; padding-top: 0; }
.price-feat li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--text); }
.price-card.featured .price-feat li { color: rgba(255,255,255,.9); }
.price-feat li i { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.price-card.featured .price-feat li i { color: #5eead4; }

/* Price table */
.price-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border-soft);
  overflow-x: auto;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  text-align: left; padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.price-table th {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.price-table td.right { text-align: right; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--bg-mint); }
.price-table .price-val {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.05rem;
}
.price-table .cat-row td {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
}
.price-table .cat-row td .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-soft); margin-right: 10px; vertical-align: middle;
}
.price-table .cat-row td .ic i { width: 14px; height: 14px; color: var(--primary-dark); }

/* ===== Contact ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch;
}
.contact-info {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative; overflow: hidden;
}
.contact-info::before {
  content:""; position: absolute; bottom: -100px; right: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--primary); filter: blur(80px); opacity: .35;
}
.contact-info > * { position: relative; z-index: 2; }
.contact-info h2 { color: #fff; margin-bottom: 16px; }
.contact-info p { color: rgba(255,255,255,.8); margin-bottom: 32px; }
.contact-info .row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-info .row:last-of-type { border-bottom: none; }
.contact-info .row .ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  color: #5eead4;
}
.contact-info .row .ic i { width: 20px; height: 20px; }
.contact-info .row .meta { flex: 1; }
.contact-info .row .lbl { font-size: 0.78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-info .row .val { color: #fff; font-weight: 500; font-size: 1rem; }
.contact-info .row .val a { color: #fff; }

.contact-info .socials { display: flex; gap: 10px; margin-top: 24px; }
.contact-info .socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center; color: #fff;
}
.contact-info .socials a:hover { background: var(--primary); }
.contact-info .socials i { width: 18px; height: 18px; }

/* Quick actions inside contact-info (replaces socials) */
.contact-info .quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
}
.contact-info .qa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contact-info .qa-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(94,234,212,.45);
  transform: translateY(-2px);
}
.contact-info .qa-ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,184,166,.25), rgba(20,184,166,.08));
  color: #5eead4;
  flex-shrink: 0;
  border: 1px solid rgba(94,234,212,.25);
}
.contact-info .qa-ic i { width: 22px; height: 22px; }
.contact-info .qa-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.contact-info .qa-lbl {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin-bottom: 2px;
}
.contact-info .qa-val {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-info .qa-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
  border-color: rgba(94,234,212,.55);
  box-shadow: 0 10px 30px -12px rgba(20,184,166,.55);
}
.contact-info .qa-btn-primary .qa-ic {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.contact-info .qa-btn-primary:hover {
  background: linear-gradient(135deg, #0d9488 0%, var(--primary) 100%);
  transform: translateY(-2px);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  border: 1px solid var(--border-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem; font-weight: 500; color: var(--secondary);
}
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: inherit;
  /* 16px prevents iOS Safari from auto-zooming on focus */
  font-size: 16px;
  color: var(--text);
  transition: all .25s var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); }
.field .check input { width: 18px; height: 18px; margin-top: 2px; }

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border-soft);
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(20%) contrast(1.05); }

/* ===== About story ===== */
.story-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center;
}
.story-visual {
  position: relative; aspect-ratio: 1/1.05;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 20%, var(--primary-soft), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-visual::before {
  content:""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.15) 1px, transparent 0);
  background-size: 24px 24px;
}
.story-visual .layer {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
  display: flex; gap: 14px; align-items: center;
}
.story-visual .layer .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
}
.story-visual .layer .ic i { width: 22px; height: 22px; }
.story-visual .layer .v { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--secondary); line-height: 1; }
.story-visual .layer .lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.story-visual .l1 { top: 8%; left: -6%; animation: float 6s ease-in-out infinite; }
.story-visual .l2 { bottom: 30%; right: -8%; animation: float 6s ease-in-out infinite 1s; }
.story-visual .l3 { bottom: 6%; left: 10%; animation: float 6s ease-in-out infinite 2s; }
.story-visual .center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display);
  color: rgba(255,255,255,.9);
  font-size: 5.5rem; font-weight: 600;
  text-align: center; line-height: 1;
}
.story-visual .center small { display: block; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-sans); margin-top: 8px; opacity: .8; }

.story-content .eyebrow { margin-bottom: 18px; }
.story-content h2 { margin-bottom: 22px; }
.story-content p { font-size: 1rem; margin-bottom: 16px; }
.story-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.story-points li { display: flex; gap: 14px; align-items: flex-start; }
.story-points li .ic {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.story-points li .ic i { width: 16px; height: 16px; }
.story-points li strong { color: var(--secondary); display: block; margin-bottom: 2px; }
.story-points li span { font-size: 0.92rem; color: var(--text-muted); }

/* ===== Values grid (about) ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: all .3s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-card .ic {
  width: 70px; height: 70px;
  border-radius: 20px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-soft), var(--bg-mint));
  display: grid; place-items: center;
  color: var(--primary-dark);
  position: relative;
}
.value-card .ic::after {
  content:""; position: absolute; inset: -4px;
  border-radius: 22px;
  border: 1px dashed var(--primary); opacity: .4;
  animation: spin 20s linear infinite;
}
.value-card .ic i { width: 32px; height: 32px; }
.value-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.value-card p { font-size: 0.93rem; }

/* ===== Appointment page ===== */
.appt-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start;
}
.appt-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.appt-form-wrap h2 { margin-bottom: 8px; }
.appt-form-wrap > p { margin-bottom: 30px; }

.steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 36px;
}
.steps .step {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem; color: var(--text-muted);
  position: relative;
}
.steps .step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-muted);
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.steps .step.active { color: var(--primary-dark); }
.steps .step.active .num { background: var(--primary); color: #fff; }
.steps .step:not(:last-child)::after {
  content:""; flex: 1; height: 1px; background: var(--border); margin-left: 6px;
}

.appt-side {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.appt-side-card {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative; overflow: hidden;
}
.appt-side-card::before {
  content:""; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--primary); filter: blur(60px); opacity: .35;
}
.appt-side-card > * { position: relative; z-index: 2; }
.appt-side-card h3 { color: #fff; margin-bottom: 12px; }
.appt-side-card p { color: rgba(255,255,255,.8); margin-bottom: 22px; font-size: 0.95rem; }

.appt-side-card .row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.appt-side-card .row:last-child { border-bottom: none; }
.appt-side-card .row .ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12);
  display: grid; place-items: center; color: #5eead4;
  flex-shrink: 0;
}
.appt-side-card .row .ic i { width: 18px; height: 18px; }
.appt-side-card .row .lbl { font-size: 0.75rem; color: rgba(255,255,255,.6); letter-spacing: 0.1em; text-transform: uppercase; }
.appt-side-card .row .val { color: #fff; font-weight: 500; font-size: 0.95rem; }

/* ===== 3D Hero Scene (homepage) ===== */
/* ===== Hero Visual — premium contained photo card =====
   Hard-contained inside its own panel so nothing can ever overlap text. */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5/6;
  max-height: 640px;
  /* Containment: any absolute child is guaranteed to paint inside this panel */
  contain: layout paint;
  --tx: 0;
  --ty: 0;
}

/* Soft ambient glows (background, behind everything) */
.hero-visual .hv-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero-visual .hv-glow-a {
  width: 70%; aspect-ratio: 1;
  top: -4%; right: -8%;
  background: radial-gradient(circle, rgba(20,184,166,0.45), transparent 60%);
  animation: floatSlow 11s ease-in-out infinite;
}
.hero-visual .hv-glow-b {
  width: 50%; aspect-ratio: 1;
  bottom: 4%; left: -10%;
  background: radial-gradient(circle, rgba(245,158,11,0.32), transparent 60%);
  animation: floatSlow 13s ease-in-out infinite 2s;
}

/* Subtle dot grid backdrop */
.hero-visual .hv-grid {
  position: absolute;
  inset: 6%;
  border-radius: 28px;
  background-image: radial-gradient(circle at 1px 1px, rgba(20,184,166,0.22) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* Slowly-rotating decorative dashed ring (decoration, never overlaps text) */
.hero-visual .hv-ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 8%; right: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(20,184,166,0.30);
  z-index: 0;
  pointer-events: none;
  animation: spin 80s linear infinite;
}

/* Main photo card frame (inside the panel) */
.hero-visual .hv-card {
  position: absolute;
  inset: 6% 8% 8% 6%;
  border-radius: 28px;
  background: #fff;
  padding: 8px;
  box-shadow:
    0 50px 100px -28px rgba(15,23,42,0.40),
    0 22px 44px -16px rgba(15,23,42,0.20);
  transform: translate3d(calc(var(--tx) * 0.6px), calc(var(--ty) * 0.6px), 0);
  transition: transform 0.5s var(--ease);
  z-index: 3;
  isolation: isolate;
}

/* The actual photo (fills the card, with overlays inside) */
.hero-visual .hv-photo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.hero-visual .hv-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual .hv-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Rating overlay — INSIDE the photo, top-left corner */
.hero-visual .hv-rating {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 12px 28px -10px rgba(15,23,42,0.25);
  z-index: 3;
}
.hero-visual .hv-stars {
  display: inline-flex; gap: 2px;
  color: #f59e0b;
}
.hero-visual .hv-stars i,
.hero-visual .hv-stars svg {
  width: 18px; height: 18px;
  fill: #f59e0b;
  color: #f59e0b;
  display: block;
}
.hero-visual .hv-rating-text {
  display: flex; flex-direction: column;
  line-height: 1.15;
}
.hero-visual .hv-rating-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
}
.hero-visual .hv-rating-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Bottom info bar — INSIDE the photo, full-width pill */
.hero-visual .hv-bottombar {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.66);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.4);
  z-index: 3;
}
.hero-visual .hv-doctors {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.hero-visual .hv-thumb {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.85);
  margin-left: -8px;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.3);
}
.hero-visual .hv-thumb:first-child { margin-left: 0; }
.hero-visual .hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .hv-bottombar-text {
  display: flex; flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.hero-visual .hv-bottombar-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-visual .hv-bottombar-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.hero-visual .hv-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary, #14b8a6);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: background .25s ease, transform .25s ease;
  box-shadow: 0 6px 14px -4px rgba(20,184,166,0.6);
}
.hero-visual .hv-link:hover { background: var(--primary-deep, #0d9488); transform: translateX(2px); }
.hero-visual .hv-link i { width: 18px; height: 18px; }

/* Circular floating badge — INSIDE panel, top-right corner */
.hero-visual .hv-badge {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #f59e0b), var(--accent-dark, #d97706));
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  box-shadow:
    0 18px 40px -12px rgba(245,158,11,0.55),
    inset 0 2px 0 rgba(255,255,255,0.35);
  transform: translate3d(calc(var(--tx) * 1.4px), calc(var(--ty) * 1.4px), 0);
  z-index: 10;
  animation: floatSlow 7s ease-in-out infinite;
  isolation: isolate;
}
.hero-visual .hv-badge .bd-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.6);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.hero-visual .hv-badge strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}
.hero-visual .hv-badge span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
  opacity: 0.95;
}

/* Mini accent card — INSIDE panel, bottom-left */
.hero-visual .hv-mini {
  position: absolute;
  bottom: 2%;
  left: 2%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 16px 36px -12px rgba(15,23,42,0.28);
  z-index: 10;
  transform: translate3d(calc(var(--tx) * 1.2px), calc(var(--ty) * 1.2px), 0);
  animation: floatSlow 8s ease-in-out infinite 1.5s;
}
.hero-visual .hv-mini .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(6,182,212,0.5);
}
.hero-visual .hv-mini .ic i { width: 18px; height: 18px; }
.hero-visual .hv-mini .meta { display: flex; flex-direction: column; line-height: 1.2; }
.hero-visual .hv-mini .meta strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.92rem;
}
.hero-visual .hv-mini .meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Image card (services/showcase with photo) ===== */
.img-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all .35s var(--ease);
  display: flex; flex-direction: column;
}
.img-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.img-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-mint);
}
.img-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.img-card:hover .thumb img { transform: scale(1.06); }
.img-card .thumb::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.5));
}
.img-card .thumb .badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; color: var(--primary-dark);
  letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 2;
}
.img-card .thumb .icon-tag {
  position: absolute; bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: grid; place-items: center;
  z-index: 2;
}
.img-card .thumb .icon-tag i { width: 24px; height: 24px; color: var(--primary-dark); }
.img-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.img-card .body h3 { margin-bottom: 10px; font-size: 1.25rem; }
.img-card .body p { font-size: 0.95rem; flex: 1; }
.img-card .body .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 600; font-size: 0.9rem;
}
.img-card .body .more i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.img-card:hover .body .more i { transform: translateX(4px); }

/* ===== Showcase with image bg ===== */
.showcase-card.with-image::before { display: none; }
.showcase-card.with-image .bg-img {
  position: absolute; inset: 0; z-index: -2;
}
.showcase-card.with-image .bg-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.showcase-card.with-image::after {
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.55) 0%, rgba(10, 37, 64, 0.85) 100%),
    radial-gradient(circle at 80% 20%, rgba(20,184,166,0.3), transparent 50%);
}

/* ===== Doctor card with image ===== */
.doctor-portrait.with-image { padding: 0; }
.doctor-portrait.with-image::before { display: none; }
.doctor-portrait .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.doctor-portrait.with-image .gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 37, 64, 0.6) 100%);
  z-index: 2;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .4s var(--ease);
  /* button reset (since gallery-item is now a <button>) */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-item:focus-visible {
  outline: 3px solid var(--primary, #14b8a6);
  outline-offset: 3px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-item::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 37, 64, 0.6));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gi-label {
  position: absolute; bottom: 16px; left: 18px; right: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s var(--ease);
}
.gallery-item:hover .gi-label { opacity: 1; transform: translateY(0); }
.gallery-item .gi-icon {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  display: grid; place-items: center;
  z-index: 3;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item .gi-icon i { width: 18px; height: 18px; color: var(--primary-dark); }
.gallery-item:hover .gi-icon { opacity: 1; }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 18, 33, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(.96);
  transition: transform .35s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.lightbox.open .lightbox-stage { transform: scale(1); }
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 14px;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.7);
  object-fit: contain;
  background: #0a2540;
}
.lightbox-caption {
  color: #e2e8f0;
  font-family: var(--font-display, serif);
  font-size: 1rem;
  text-align: center;
  margin: 0;
  letter-spacing: .02em;
}
.lightbox-counter {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.lightbox-btn i { width: 22px; height: 22px; }
.lightbox-close {
  top: 18px; right: 18px;
}
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-btn { width: 42px; height: 42px; }
}

/* ===== About story with image ===== */
.story-visual.with-image {
  background: none;
  overflow: visible;
  box-shadow: none;
}
.story-visual.with-image::before { display: none; }
.story-visual.with-image .main-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-visual.with-image .main-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.story-visual.with-image .main-photo::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(10, 37, 64, 0.25) 100%);
}

/* ===== Animations / utility ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); will-change: auto; }

/* ===== Specialty page ===== */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs i { width: 13px; height: 13px; opacity: .5; }
.breadcrumbs .current { color: var(--secondary); font-weight: 600; }

.spec-hero {
  padding: 40px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(20,184,166,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 90%, rgba(245,158,11,0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-mint) 100%);
}
.spec-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(20,184,166,0.12) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.spec-hero .container { position: relative; z-index: 2; }
.spec-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.spec-hero-grid > .spec-hero-visual { min-width: 0; }
.spec-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 22px;
  color: var(--secondary);
}
.spec-hero-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.spec-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.spec-hero-meta {
  margin-top: 30px;
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.spec-hero-meta span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-muted);
  font-weight: 500;
}
.spec-hero-meta i { width: 18px; height: 18px; color: var(--primary); }

/* ===== Spec Hero Visual — refined contained 3D photo card ===== */
.spec-hero-visual {
  position: relative;
  height: 560px;
  perspective: 1600px;
  transform-style: preserve-3d;
  /* Defensive containment: keeps every absolute child inside its panel,
     so nothing can ever bleed onto the headline/lead text in the left col. */
  contain: layout paint;
  --tx: 0;
  --ty: 0;
}

/* Soft ambient glows behind the photo */
.spec-hero-visual .shv-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.spec-hero-visual .shv-glow-a {
  width: 64%; aspect-ratio: 1;
  top: 4%; right: 0;
  background: radial-gradient(circle, rgba(20,184,166,0.45), transparent 65%);
  animation: floatSlow 11s ease-in-out infinite;
}
.spec-hero-visual .shv-glow-b {
  width: 50%; aspect-ratio: 1;
  bottom: 6%; left: 0;
  background: radial-gradient(circle, rgba(245,158,11,0.30), transparent 65%);
  animation: floatSlow 13s ease-in-out infinite 2s;
}

/* Decorative outer dashed frame */
.spec-hero-visual .shv-frame {
  position: absolute;
  inset: 4% 4% 8% 8%;
  border-radius: 28px;
  border: 1px dashed rgba(20,184,166,0.35);
  z-index: 0;
  pointer-events: none;
  animation: spin 80s linear infinite;
}

/* Back accent card — peeks behind the main photo */
.spec-hero-visual .shv-back {
  position: absolute;
  top: 4%; right: 4%;
  width: 78%; height: 84%;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-deep, #0f766e) 0%, var(--secondary, #0a2540) 100%);
  box-shadow: 0 28px 60px -20px rgba(10,37,64,0.45);
  rotate: y 8deg;
  transform: translate3d(calc(var(--tx) * 0.5px), calc(var(--ty) * 0.5px), -30px);
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}
.spec-hero-visual .shv-back-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(94,234,212,0.35) 1px, transparent 0);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Main photo card */
.spec-hero-visual .spec-hero-photo {
  position: absolute;
  top: 8%; left: 4%;
  width: 82%; height: 84%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 50px 100px -28px rgba(15,23,42,0.40),
    0 20px 40px -14px rgba(15,23,42,0.22);
  rotate: y -6deg;
  transform: translate3d(calc(var(--tx) * 1.2px), calc(var(--ty) * 1.2px), 40px);
  transition: transform 0.5s var(--ease);
  z-index: 3;
  isolation: isolate;
}
.spec-hero-visual .spec-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 5px solid #fff;
  z-index: 4;
  pointer-events: none;
}
.spec-hero-visual .spec-hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.spec-hero-visual .shv-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 30%, transparent 75%, rgba(0,0,0,0.10) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Built-in caption bar at the bottom of the photo */
.spec-hero-visual .shv-bottombar {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.62);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.4);
}
.spec-hero-visual .shv-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px var(--primary-glow);
}
.spec-hero-visual .shv-icon i { width: 22px; height: 22px; }
.spec-hero-visual .shv-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.spec-hero-visual .shv-title .lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 2px;
}
.spec-hero-visual .shv-title .v {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Circular floating badge — sits inside, top-right corner */
.spec-hero-visual .shv-badge {
  position: absolute;
  top: 4%; right: 6%;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #f59e0b) 0%, var(--accent-dark, #d97706) 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  box-shadow:
    0 18px 40px -12px rgba(245,158,11,0.55),
    inset 0 2px 0 rgba(255,255,255,0.35);
  transform: translate3d(calc(var(--tx) * 1.6px), calc(var(--ty) * 1.6px), 70px);
  z-index: 10;
  animation: floatSlow 7s ease-in-out infinite;
  isolation: isolate;
}
.spec-hero-visual .shv-badge .bd-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.55);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.spec-hero-visual .shv-badge .bd-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}
.spec-hero-visual .shv-badge .bd-lbl {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
  opacity: 0.9;
}

/* Status pill — sits inside, bottom-left over the back card edge */
.spec-hero-visual .shv-pill {
  position: absolute;
  left: 6%;
  bottom: 6%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 16px 36px -14px rgba(15,23,42,0.30);
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
  z-index: 10;
  transform: translate3d(calc(var(--tx) * 1.4px), calc(var(--ty) * 1.4px), 80px);
  animation: floatSlow 8s ease-in-out infinite 1s;
}
.spec-hero-visual .shv-pill .shv-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.18), 0 0 12px rgba(22,163,74,0.5);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* Legacy selectors kept harmless (some older HTML may still reference them) */
.spec-hero-visual .spec-hero-tag {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow:
    0 24px 50px -12px rgba(15,23,42,0.22),
    0 8px 20px -8px rgba(15,23,42,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,0.95);
  z-index: 10;
  display: none; /* superseded by new design */
}
.spec-hero-visual .spec-hero-tag.t1,
.spec-hero-visual .spec-hero-tag.t2,
.spec-hero-visual .spec-hero-tag.t3 { display: none; }
.spec-hero-visual .spec-hero-tag .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px var(--primary-glow);
}
.spec-hero-visual .spec-hero-tag .ic.amber {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.spec-hero-visual .spec-hero-tag .ic.teal {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.spec-hero-visual .spec-hero-tag .ic i { width: 22px; height: 22px; }
.spec-hero-visual .spec-hero-tag .lbl,
.spec-hero-visual .spec-hero-tag .meta .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.spec-hero-visual .spec-hero-tag .v,
.spec-hero-visual .spec-hero-tag .meta .v {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.2;
}

.spec-intro {
  padding: 80px 0;
  background: var(--bg-soft);
}
.spec-intro-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}
.spec-intro-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 18px;
}
.spec-intro-content p:first-of-type {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary);
  font-family: var(--font-display);
  line-height: 1.55;
}
.aside-card {
  background: linear-gradient(135deg, var(--primary-deep), var(--secondary));
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  position: sticky; top: 110px;
  box-shadow: var(--shadow-lg);
}
.aside-card .ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.aside-card .ic i { width: 26px; height: 26px; color: #fff; }
.aside-card h4 { font-size: 1.3rem; margin-bottom: 8px; color: #fff; font-family: var(--font-display); }
.aside-card p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.6; margin-bottom: 14px; }

.spec-block { padding: 90px 0; }
.spec-section {
  max-width: 920px; margin: 0 auto;
}
.spec-section-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
}
.spec-section-head .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.spec-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--secondary);
  line-height: 1.2;
}
.spec-section-body p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 14px;
}
.check-list {
  list-style: none; padding: 0; margin: 18px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.45;
  border: 1px solid var(--border-soft);
}
.check-list li i { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.spec-pricing { padding: 90px 0; background: var(--bg-mint); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.related-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: all .2s var(--ease);
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.related-card .ic {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.related-card .ic i { width: 22px; height: 22px; }
.related-card h4 { font-size: 1rem; color: var(--secondary); margin-bottom: 4px; }
.related-card .more {
  font-size: 0.82rem; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600;
}
.related-card .more i { width: 14px; height: 14px; transition: transform .2s; }
.related-card:hover .more i { transform: translateX(4px); }

/* ===== Pricing page ===== */
.pricing-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.ps-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 6px 20px -14px rgba(10, 37, 64, .25);
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease), border-color .25s var(--ease, ease);
}
.ps-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(20, 184, 166, .35);
  border-color: rgba(20, 184, 166, .35);
}
.ps-item .ps-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft, #ccfbf1) 0%, #ecfeff 100%);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--primary-dark, #0f766e);
}
.ps-item .ps-ic i { width: 24px; height: 24px; }
.ps-item .ps-text { display: flex; flex-direction: column; min-width: 0; }
.ps-item .v {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.ps-item .l {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
@media (max-width: 900px) {
  .pricing-summary { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ps-item { padding: 14px 16px; gap: 12px; }
  .ps-item .ps-ic { width: 44px; height: 44px; border-radius: 12px; }
  .ps-item .ps-ic i { width: 20px; height: 20px; }
  .ps-item .v { font-size: 1.6rem; }
}
@media (max-width: 640px) {
  .pricing-summary { grid-template-columns: 1fr; }
}

.pricing-nav-section {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.pricing-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.pricing-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.pricing-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.pricing-cat {
  padding: 80px 0;
  scroll-margin-top: calc(var(--header-h) + 80px);
  /* Performance: skip rendering off-screen sections on long pricing page */
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
.pricing-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  flex-wrap: wrap; gap: 10px;
}
.pricing-cat-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--secondary);
}
.badge-count {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pricing-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table thead {
  background: linear-gradient(135deg, var(--primary-deep), var(--secondary));
  color: #fff;
}
.pricing-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.pricing-table th:last-child { text-align: right; width: 200px; }
.pricing-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.45;
}
.pricing-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.pricing-table tbody tr:hover { background: var(--bg-mint); }
.pricing-table .price {
  text-align: right;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-display);
  white-space: nowrap;
}
.pricing-table tr:last-child td { border-bottom: none; }

.payment-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pi-item {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-soft);
}
.pi-item .ic {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.pi-item .ic i { width: 28px; height: 28px; }
.pi-item h3 { font-size: 1.2rem; color: var(--secondary); margin-bottom: 8px; font-family: var(--font-display); }
.pi-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== Doctor card update ===== */
.badge-spec {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--primary-dark);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: .05em;
  backdrop-filter: blur(10px);
}
.doctor-portrait .avatar {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
}

/* mobile menu groups */
.mobile-menu .mm-group {
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}
.mobile-menu .mm-group:first-child { border-top: none; padding-top: 0; }
.mobile-menu .mm-glabel {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 8px 12px;
}
.mobile-menu .mm-group a i {
  width: 16px; height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.mobile-menu details .sub a {
  display: flex; align-items: center; gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .menu, .nav-actions .btn-primary, .menu-backdrop { display: none !important; }
  .burger { display: flex; }
  .nav-phone { display: inline-flex; }
  .mobile-menu { display: block; }
  .topbar .tb-item.hide-md { display: none; }
  .hero-grid, .why-grid, .story-grid, .contact-grid, .appt-grid, .cta { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-actions { margin-bottom: 32px; }
  .hero-visual { max-width: 520px; margin: 24px auto 0; aspect-ratio: 5/6; }
  .orbit-3d { max-width: 460px; }
  .orbit-card.c1 { left: 0; }
  .orbit-card.c2 { right: 0; }
  .orbit-card.c3 { left: 0; }
  .orbit-card.c4 { right: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.wide { grid-column: span 2; }
  .cta { padding: 50px 36px; }
  .cta-actions { justify-content: flex-start; }
  .services-grid, .doctors-grid, .showcase-grid, .posts-grid, .trio-grid, .values-grid, .pricing-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid, .payment-info { grid-template-columns: repeat(2, 1fr); }
  .spec-hero-grid, .spec-intro-inner { grid-template-columns: 1fr; gap: 40px; }
  .spec-hero-visual { height: 460px; max-width: 540px; margin: 24px auto 0; }
  .spec-hero-visual .shv-badge { width: 78px; height: 78px; top: 6%; right: 8%; }
  .spec-hero-visual .shv-badge .bd-num { font-size: 1.15rem; }
  .spec-hero-visual .shv-badge .bd-lbl { font-size: 0.6rem; letter-spacing: 0.14em; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .f-brand { grid-column: 1 / -1; }
  .f-specialties { grid-column: 1 / -1; }
  .fcta-grid { grid-template-columns: 1fr; gap: 24px; }
  .fcta-actions { justify-content: flex-start; }
  .submenu { display: none; }
  .why-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .appt-side { position: static; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 50px 0 70px; }
  .services-grid, .doctors-grid, .showcase-grid, .posts-grid, .trio-grid, .values-grid, .pricing-grid, .stats-grid, .spec-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-trust { gap: 22px; }
  .price-card.featured { transform: none; }
  .related-grid, .payment-info { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .megamenu-grid { grid-template-columns: 1fr 1fr !important; }
  .pricing-table th, .pricing-table td { padding: 12px 14px; font-size: 0.85rem; }
  .pricing-table th:last-child { width: 130px; }
  .spec-section-head .num { width: 48px; height: 48px; font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .f-twocol { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .footer-cta { padding: 44px 0; }
  .footer { padding: 60px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .topbar { font-size: 0.74rem; height: 32px; }
  .topbar .tb-item.hide-sm { display: none; }
  .topbar-left, .topbar-right { gap: 14px; }
  .topbar .tb-cta { padding: 4px 10px; font-size: 0.72rem; }
  .topbar .tb-cta i { width: 12px; height: 12px; }
  :root { --header-h: 60px; }
  .header.scrolled .nav { height: 54px; }
  .contact-info, .contact-form, .appt-form-wrap { padding: 32px 24px; }
  .container { padding: 0 20px; }
  .hero-visual { max-width: 100%; margin: 16px auto 0; aspect-ratio: 4/5; }
  .hero-visual .hv-badge { width: 76px; height: 76px; }
  .hero-visual .hv-badge strong { font-size: 1.15rem; }
  .hero-visual .hv-badge span { font-size: 0.6rem; letter-spacing: 0.14em; }
  .hero-visual .hv-mini { padding: 8px 12px; gap: 8px; }
  .hero-visual .hv-mini .ic { width: 32px; height: 32px; }
  .hero-visual .hv-mini .ic i { width: 16px; height: 16px; }
  .hero-visual .hv-mini .meta strong { font-size: 0.85rem; }
  .hero-visual .hv-mini .meta span { font-size: 0.65rem; }
  .hero-visual .hv-rating { padding: 8px 12px; gap: 10px; }
  .hero-visual .hv-bottombar { padding: 8px 10px 8px 12px; gap: 10px; }
  .hero-visual .hv-thumb { width: 28px; height: 28px; }
  .hero-visual .hv-bottombar-text strong { font-size: 0.85rem; }
  .hero-visual .hv-bottombar-text span { font-size: 0.66rem; }
  .hero-visual .hv-link { width: 32px; height: 32px; }
  .hero-visual .hv-link i { width: 14px; height: 14px; }
  .spec-hero-visual { height: 380px; margin: 16px auto 0; }
  .spec-hero-visual .spec-hero-photo { top: 8%; left: 4%; width: 86%; height: 82%; }
  .spec-hero-visual .shv-back { width: 84%; height: 82%; top: 4%; right: 4%; }
  .spec-hero-visual .shv-badge { width: 68px; height: 68px; }
  .spec-hero-visual .shv-badge .bd-num { font-size: 1rem; }
  .spec-hero-visual .shv-badge .bd-lbl { font-size: 0.55rem; }
  .spec-hero-visual .shv-pill { font-size: 0.74rem; padding: 8px 12px; }
  .spec-hero-visual .shv-bottombar { padding: 10px 12px; gap: 10px; inset: auto 10px 10px 10px; }
  .spec-hero-visual .shv-icon { width: 38px; height: 38px; }
  .spec-hero-visual .shv-icon i { width: 18px; height: 18px; }
  .spec-hero-visual .shv-title .v { font-size: 0.95rem; }
  .orbit-3d { max-width: 380px; }
  .orbit-card { min-width: 140px; padding: 10px 14px; }
  .orbit-card .ic { width: 34px; height: 34px; }
  .orbit-card .meta strong { font-size: 0.95rem; }
}

/* =====================================================================
   ===== Phone optimisation — comprehensive responsive layer =========
   Tablet portrait → small phone → tiny phone → touch-only refinements.
   ===================================================================== */

/* Better mobile typography wrapping where supported */
@supports (text-wrap: balance) {
  h1, h2, .section-title h2 { text-wrap: balance; }
  p.lead, .hero .lead, .page-hero p { text-wrap: pretty; }
}

/* Make all "click" interactions feel native on mobile */
.btn { min-height: 44px; }
.btn-sm { min-height: 40px; }

/* Larger tap targets in nav: header buttons, burger, phone shortcut */
.burger,
.nav-phone {
  width: 44px;
  height: 44px;
}

/* ===== ≤900px (tablet portrait, large phones landscape) ===== */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  section { padding: 96px 0; }
  .container { padding: 0 24px; }
  .section-title { margin: 0 auto 50px; }
  .hero { padding: 60px 0 80px; }
  .hero-grid { gap: 36px; }
  .stats { padding: 70px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat { padding: 22px 18px; }
  .stat .icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .stat .num { font-size: 2.2rem; }
  .cta { padding: 44px 32px; gap: 24px; }
  .cta h2 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
  .footer-cta { padding: 40px 0; }
  .footer { padding: 64px 0 24px; }
  .feature-bar { padding: 18px 0; }
  .feature-track { gap: 36px; }
  .feature-track .item { font-size: 0.88rem; }
}

/* ===== ≤640px expansions (phone portrait) ===== */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }
  .container { padding: 0 18px; }
  .section-title { margin: 0 auto 36px; }
  .section-title p { font-size: 0.98rem; }

  /* Topbar slimmer + better spacing */
  .topbar .container { gap: 10px; padding: 0 16px; }
  .topbar-left, .topbar-right { gap: 10px; }
  .topbar .tb-cta {
    padding: 5px 11px;
    font-size: 0.7rem;
    gap: 6px;
  }
  .topbar .tb-cta i { width: 12px; height: 12px; }
  /* Replace long CTA text with shorter wording on small screens */
  .topbar .tb-cta-long { display: none; }
  .topbar .tb-cta-short { display: inline; }

  /* Header & logo */
  .header.scrolled .nav { height: 54px; }
  .logo img { height: 32px; }
  .header.scrolled .logo img { height: 28px; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 0.82rem; }
  .nav-actions .btn-primary span { display: none; }
  .nav-actions .btn-primary { gap: 0; padding: 0; width: 44px; height: 44px; min-height: 44px; justify-content: center; }
  .nav-actions .btn-primary i { width: 20px; height: 20px; }
  .nav-actions { gap: 6px; }

  /* Mobile menu sized for phones */
  .mobile-menu { width: 92%; max-width: 360px; padding: 24px 22px; }
  .mobile-menu nav { margin-top: 56px; }
  .mobile-menu nav a,
  .mobile-menu details summary { padding: 14px 14px; min-height: 48px; }
  .mobile-menu details .sub a { padding: 10px 12px; min-height: 42px; font-size: 0.95rem; }
  .mobile-menu .close-btn { width: 44px; height: 44px; }

  /* Hero — tighter on phones */
  .hero { padding: 32px 0 56px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); margin-bottom: 18px; }
  .hero .lead { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 28px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 18px 22px; }
  .hero-trust .num { font-size: 1.6rem; }
  .hero-trust .lbl { font-size: 0.72rem; letter-spacing: 0.08em; }

  /* Hero visual — keep, but smaller and out of text’s way */
  .hero-visual { max-width: 100%; margin: 12px auto 0; aspect-ratio: 4/5; max-height: 460px; }
  .hero-visual .hv-ring { display: none; }
  .hero-visual .hv-card { inset: 4% 6% 6% 4%; border-radius: 22px; padding: 6px; }
  .hero-visual .hv-photo { border-radius: 18px; }
  .hero-visual .hv-rating { padding: 6px 10px; gap: 8px; border-radius: 10px; top: 10px; left: 10px; }
  .hero-visual .hv-rating-text strong { font-size: 0.82rem; }
  .hero-visual .hv-rating-text span { font-size: 0.62rem; }
  .hero-visual .hv-stars i,
  .hero-visual .hv-stars svg { width: 14px; height: 14px; }
  .hero-visual .hv-bottombar { padding: 8px 8px 8px 10px; gap: 8px; inset: auto 10px 10px 10px; border-radius: 12px; }
  .hero-visual .hv-thumb { width: 26px; height: 26px; margin-left: -6px; border-width: 2px; }
  .hero-visual .hv-bottombar-text strong { font-size: 0.82rem; }
  .hero-visual .hv-bottombar-text span { font-size: 0.62rem; }
  .hero-visual .hv-link { width: 30px; height: 30px; }
  .hero-visual .hv-link i { width: 13px; height: 13px; }
  .hero-visual .hv-badge { width: 64px; height: 64px; }
  .hero-visual .hv-badge strong { font-size: 0.95rem; }
  .hero-visual .hv-badge span { font-size: 0.55rem; letter-spacing: 0.12em; margin-top: 3px; }
  .hero-visual .hv-mini { padding: 7px 10px; gap: 8px; border-radius: 10px; }
  .hero-visual .hv-mini .ic { width: 28px; height: 28px; border-radius: 8px; }
  .hero-visual .hv-mini .ic i { width: 14px; height: 14px; }
  .hero-visual .hv-mini .meta strong { font-size: 0.78rem; }
  .hero-visual .hv-mini .meta span { font-size: 0.6rem; }

  /* Why-orbit scene compact + simpler on phones */
  .orbit-3d { max-width: 320px; }
  .orbit-ring.r1 { display: none; }
  .orbit-card { min-width: 130px; padding: 8px 12px; gap: 10px; border-radius: 12px; }
  .orbit-card .ic { width: 30px; height: 30px; border-radius: 9px; }
  .orbit-card .ic i { width: 16px; height: 16px; }
  .orbit-card .meta strong { font-size: 0.86rem; }
  .orbit-card .meta span { font-size: 0.6rem; }
  .orbit-core { width: 32%; }
  .orbit-core .core-inner i { width: 38px; height: 38px; }
  .orbit-card.c1 { left: -2%; top: 4%; }
  .orbit-card.c2 { right: -2%; top: 14%; }
  .orbit-card.c3 { left: -2%; bottom: 14%; }
  .orbit-card.c4 { right: -2%; bottom: 4%; }

  /* Service cards / showcase / trio padding */
  .service-card { padding: 28px 22px 24px; border-radius: 20px; }
  .service-card .icon-wrap { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; }
  .service-card .icon-wrap i { width: 26px; height: 26px; }
  .showcase-card { padding: 26px 22px; min-height: 280px; border-radius: 20px; }
  .showcase-card h3 { font-size: 1.35rem; }
  .showcase-card .floating-icon { top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; }
  .showcase-card .floating-icon i { width: 16px; height: 16px; }
  .trio-card { padding: 28px 24px; border-radius: 20px; }
  .trio-card .icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; }
  .trio-card .icon i { width: 26px; height: 26px; }
  .trio-card h3 { font-size: 1.2rem; }
  .value-card { padding: 28px 22px; border-radius: 20px; }
  .value-card .ic { width: 60px; height: 60px; border-radius: 18px; }

  /* Stats banner */
  .stats { padding: 56px 0; }
  .stats-grid { gap: 14px; }
  .stat { padding: 22px 14px; }
  .stat .num { font-size: 2rem; }
  .stat .lbl { font-size: 0.85rem; }

  /* Doctors grid — already 1col, polish portrait */
  .doctor-card { border-radius: 20px; }
  .doctor-portrait .avatar { font-size: 2.4rem; }

  /* About story — simplify */
  .story-grid { gap: 32px; }
  .story-visual { aspect-ratio: 1/1; border-radius: 24px; }
  .story-visual .center { font-size: 3.6rem; }
  .story-visual .center small { font-size: 0.74rem; }
  .story-visual .layer { padding: 14px 18px; gap: 10px; border-radius: 14px; }
  .story-visual .layer .ic { width: 36px; height: 36px; border-radius: 10px; }
  .story-visual .layer .ic i { width: 18px; height: 18px; }
  .story-visual .layer .v { font-size: 1.1rem; }
  .story-visual .layer .lbl { font-size: 0.66rem; }
  .story-visual .l1 { left: -2%; }
  .story-visual .l2 { right: -2%; }
  .story-visual .l3 { left: 6%; }

  /* Spec hero tightening */
  .spec-hero { padding: 28px 0 64px; }
  .spec-hero-grid { gap: 32px; }
  .spec-hero-content h1 { font-size: clamp(1.9rem, 7.6vw, 2.4rem); margin: 10px 0 16px; }
  .spec-hero-content .lead { font-size: 1rem; margin-bottom: 22px; }
  .spec-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .spec-hero-meta { gap: 14px 22px; padding-top: 20px; margin-top: 22px; }
  .spec-hero-visual { height: 360px; }
  .spec-hero-visual .shv-frame { display: none; }

  .spec-section-head .num { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 12px; }
  .spec-section-body p { font-size: 0.98rem; line-height: 1.7; }
  .check-list { gap: 8px; }
  .check-list li { font-size: 0.92rem; padding: 11px 14px; }

  /* Pricing page */
  .page-hero { padding: 60px 0 70px; }
  .pricing-summary { gap: 12px; margin-top: 24px; padding-top: 22px; }
  .ps-item .v { font-size: 1.7rem; }
  .ps-item .l { font-size: 0.72rem; }
  .pricing-nav { gap: 6px; }
  .pricing-nav a { padding: 8px 13px; font-size: 0.8rem; }
  .pricing-cat { padding: 56px 0; }
  .pricing-cat-head { margin-bottom: 22px; padding-bottom: 14px; }
  .pricing-cat-head h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  /* Make table horizontally scrollable on phones */
  .pricing-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; }
  .pricing-table { min-width: 480px; }
  .pricing-table th, .pricing-table td { padding: 12px 14px; font-size: 0.86rem; }
  .pricing-table th:last-child { width: auto; }
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
  .price-table th, .price-table td { padding: 12px 14px; font-size: 0.88rem; }

  /* Contact / appointment */
  .contact-info, .contact-form, .appt-form-wrap { padding: 28px 22px; border-radius: 20px; }
  .contact-info .row .ic { width: 40px; height: 40px; border-radius: 11px; }
  .contact-info h2 { font-size: clamp(1.6rem, 5.4vw, 2rem); }
  .quick-actions .qa-btn { padding: 12px 14px; gap: 12px; }
  .quick-actions .qa-ic { width: 40px; height: 40px; border-radius: 11px; }
  .map-wrap { height: 280px; margin-top: 36px; }
  .form-row { gap: 14px; margin-bottom: 14px; }

  /* Appointment steps — stack labels vertically and tighten */
  .steps { gap: 6px; margin-bottom: 24px; }
  .steps .step { padding: 8px 6px; font-size: 0.72rem; gap: 6px; flex-direction: column; text-align: center; }
  .steps .step .num { width: 26px; height: 26px; font-size: 0.8rem; }
  .steps .step:not(:last-child)::after { display: none; }
  .appt-side-card { padding: 26px 22px; border-radius: 20px; }

  /* Gallery — comfortable single column on phones */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 12px; }
  .gallery-item { border-radius: 14px; }

  /* Footer CTA full-width buttons on phones */
  .footer-cta { padding: 36px 0; }
  .fcta-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .fcta-actions .btn { width: 100%; justify-content: center; }
  .footer { padding: 50px 0 22px; }
  .footer-grid { gap: 36px; margin-bottom: 36px; }
  .f-col h4 { font-size: 0.74rem; margin-bottom: 18px; padding-bottom: 12px; }
  .footer-bottom { font-size: 0.78rem; padding-top: 22px; }
  .footer-bottom .links { gap: 14px 18px; }
  .footer-bottom .links a:not(:last-child)::after { display: none; }

  /* Lightbox — phone-friendly controls */
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev:hover, .lightbox-next:hover { transform: scale(1.06); }
  .lightbox-img { max-height: calc(100vh - 220px); border-radius: 12px; }
  .lightbox-caption { font-size: 0.92rem; }

  /* Page hero shapes can clutter — soften */
  .page-hero .shape { opacity: 0.08; }
  .page-hero h1 { font-size: clamp(1.9rem, 7.4vw, 2.6rem); }
  .page-hero p { font-size: 1rem; }
  .crumbs { font-size: 0.76rem; padding: 5px 12px; }

  /* CTA banner — stack and tighten */
  .cta { padding: 36px 24px; gap: 18px; border-radius: 24px; }
  .cta h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .cta-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ===== ≤480px — compact phones ===== */
@media (max-width: 480px) {
  :root { --header-h: 58px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }

  .topbar { font-size: 0.7rem; height: 30px; }
  .topbar .tb-item:not(.tb-phone) { display: none; }
  .topbar .tb-phone i { width: 12px; height: 12px; }

  /* Hero is the priority — keep it scannable */
  .hero { padding: 24px 0 44px; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.3rem); }
  .hero-trust { gap: 16px 18px; }
  .hero-trust .num { font-size: 1.45rem; }

  /* Hero visual — even smaller, drop ring and grid */
  .hero-visual { aspect-ratio: 4/5; max-height: 380px; }
  .hero-visual .hv-grid { opacity: .35; }
  .hero-visual .hv-glow { filter: blur(48px); }
  .hero-visual .hv-badge { width: 58px; height: 58px; top: 4%; right: 4%; }
  .hero-visual .hv-badge strong { font-size: 0.86rem; }
  .hero-visual .hv-badge span { font-size: 0.5rem; letter-spacing: 0.1em; margin-top: 2px; }
  .hero-visual .hv-mini { left: 4%; bottom: 4%; padding: 6px 9px; gap: 7px; }
  .hero-visual .hv-mini .ic { width: 26px; height: 26px; }
  .hero-visual .hv-mini .ic i { width: 13px; height: 13px; }
  .hero-visual .hv-mini .meta strong { font-size: 0.72rem; }
  .hero-visual .hv-mini .meta span { font-size: 0.56rem; }

  /* Why-us orbit — drop the floating cards on tiny phones, keep core */
  .orbit-3d { max-width: 240px; aspect-ratio: 1/1; }
  .orbit-card { display: none; }
  .orbit-ring.r2, .orbit-ring.r3 { display: none; }
  .orbit-glow { inset: 8%; }

  /* Spec hero — collapse to a single contained photo */
  .spec-hero-visual { height: 300px; }
  .spec-hero-visual .shv-back,
  .spec-hero-visual .shv-badge,
  .spec-hero-visual .shv-pill { display: none; }
  .spec-hero-visual .spec-hero-photo {
    top: 0; left: 0; width: 100%; height: 100%;
    rotate: y 0deg;
    transform: none;
  }
  .spec-hero-visual .spec-hero-photo::before { border-width: 3px; }
  .spec-hero-visual .shv-bottombar { padding: 8px 10px; gap: 8px; inset: auto 8px 8px 8px; }
  .spec-hero-visual .shv-icon { width: 34px; height: 34px; }
  .spec-hero-visual .shv-icon i { width: 16px; height: 16px; }
  .spec-hero-visual .shv-title .v { font-size: 0.86rem; }

  /* Specialty section text */
  .spec-section-head { gap: 14px; margin-bottom: 22px; }
  .spec-section-head .num { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 10px; }
  .spec-section-head h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* Cards & sections */
  .service-card { padding: 24px 18px 20px; }
  .showcase-card { padding: 24px 20px; min-height: 240px; }
  .showcase-card h3 { font-size: 1.2rem; }
  .trio-card { padding: 24px 20px; }
  .price-card { padding: 32px 24px; }

  /* About story */
  .story-visual .layer.l1 { display: none; } /* avoid 3 bubbles overflow */
  .story-visual .center { font-size: 2.8rem; }

  /* Megamenu (rarely visible at this size, but defensive) */
  .megamenu { width: calc(100vw - 24px); padding: 20px; }
  .megamenu-grid { grid-template-columns: 1fr 1fr !important; gap: 18px 14px; }

  /* Footer */
  .footer-cta { padding: 32px 0; }
  .fcta-text h3 { font-size: clamp(1.3rem, 5.8vw, 1.7rem); }
  .footer { padding: 44px 0 20px; }
  .f-twocol { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.74rem; }

  /* Pricing summary cards full width */
  .ps-item { padding: 14px 16px; }
  .ps-item .ps-ic { width: 42px; height: 42px; border-radius: 11px; }
  .ps-item .ps-ic i { width: 20px; height: 20px; }
  .ps-item .v { font-size: 1.5rem; }

  /* Lightbox — even slimmer */
  .lightbox-btn { width: 40px; height: 40px; }
  .lightbox-btn i { width: 18px; height: 18px; }
  .lightbox-counter { font-size: 0.72rem; }

  /* Form spacing */
  .contact-form, .appt-form-wrap { padding: 24px 18px; }
  .field input, .field select, .field textarea { padding: 13px 14px; }

  /* Header "Időpontfoglalás" CTA → icon-only already (640px rules) */
  /* Burger keeps 44x44 minimum */
}

/* ===== ≤360px — tiny phones (small Androids, iPhone SE 1st gen) ===== */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .topbar .tb-cta { padding: 4px 9px; font-size: 0.66rem; }
  .topbar .tb-cta i { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lead { font-size: 0.95rem; }
  .hero-visual { max-height: 320px; }
  .hero-visual .hv-rating { padding: 5px 8px; }
  .hero-visual .hv-rating-text strong { font-size: 0.74rem; }
  .hero-visual .hv-rating-text span { font-size: 0.56rem; }
  .stat .num { font-size: 1.7rem; }
  .doctor-info { padding: 18px 18px 22px; }
  .footer .logo img { height: 38px; }
}

/* ===== Touch-only refinements (no-hover devices) ===== */
@media (hover: none) {
  /* Reveal gallery overlay for touch users (since they can't hover) */
  .gallery-item .gi-icon { opacity: 1; background: rgba(255,255,255,.92); }
  .gallery-item .gi-label { opacity: 1; transform: translateY(0); }
  .gallery-item::after { opacity: 1; }

  /* Disable card hover-lift transforms on touch — they look stuck */
  .service-card:hover,
  .doctor-card:hover,
  .trio-card:hover,
  .img-card:hover,
  .post-card:hover,
  .price-card:hover,
  .value-card:hover,
  .showcase-card:hover { transform: none; }

  /* Make all main CTAs not depend on hover */
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-dark:hover,
  .btn-light:hover,
  .btn-ghost-light:hover { transform: none; }
}

/* ===== Reduced motion — respect user preference ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Landscape phones — keep hero from being absurdly tall ===== */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 24px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; }
  .hero-visual { max-height: 320px; }
  .mobile-menu nav { margin-top: 40px; }
}

/* ===== Print — clean output (bonus) ===== */
@media print {
  .topbar, .header, .footer-cta, .footer, .mobile-menu, .menu-backdrop, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  section { padding: 24px 0; }
}
