/* =========================================================
   DR. RAHUL SHARMA — PREMIUM CLINIC THEME
   Core Stylesheet
   Theme variables live at the top — change these to re-skin
   the entire theme for AddKee (different specialty/clinic).
   ========================================================= */

:root {
  --primary: #123B5D;
  --primary-dark: #0C2A42;
  --secondary: #4F8FBF;
  --accent: #C9A24B;
  --background: #F7FAFC;
  --surface: #FFFFFF;
  --text: #17212B;
  --muted: #5B6B79;
  --border: #E6EDF2;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(18, 59, 93, 0.06);
  --shadow-md: 0 12px 30px rgba(18, 59, 93, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 59, 93, 0.16);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --header-h: 88px;
  --container-w: 1240px;
  --ease: cubic-bezier(.22,.9,.3,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 12px 20px; z-index: 9999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--primary-dark); line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--muted); }

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary); background: rgba(79,143,191,0.1); padding: 7px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
  white-space: nowrap; border: 2px solid transparent;
}
.btn img { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--primary-dark); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--secondary);
  opacity: 0; animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.25); opacity: 0; }
}
.link-underline { position: relative; font-weight: 600; color: var(--primary); }
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- PAGE LOADER ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  animation: loaderOut .6s var(--ease) .45s forwards;
}
.page-loader img { animation: loaderPulse 1s ease-in-out infinite; filter: brightness(0) invert(1); }
@keyframes loaderPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .75; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s ease;
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.header-transparent { background: linear-gradient(180deg, rgba(12,42,66,0.55), rgba(12,42,66,0)); }
.header-transparent .brand-text strong,
.header-transparent .main-nav a,
.header-transparent .menu-toggle img { color: #fff; filter: brightness(0) invert(1); }
.header-transparent .brand-text strong { -webkit-text-fill-color: #fff; }
.header-transparent .brand-text small { color: rgba(255,255,255,0.75); }
.header-transparent .main-nav a { color: #fff; }
.header-transparent .btn-primary { background: #fff; color: var(--primary); }
.header-transparent .btn-primary:hover { background: var(--secondary); color: #fff; }

.header-solid, .header-solid-init, .site-header.is-scrolled {
  background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); padding: 10px 0;
}
.header-solid .brand-text strong, .header-solid-init .brand-text strong,
.site-header.is-scrolled .brand-text strong { color: var(--primary-dark); }
.site-header.is-scrolled.header-transparent { background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); padding: 10px 0; }
.site-header.is-scrolled.header-transparent .brand-text strong,
.site-header.is-scrolled.header-transparent .main-nav a,
.site-header.is-scrolled.header-transparent .menu-toggle img { color: var(--primary-dark); filter: none; -webkit-text-fill-color: var(--primary-dark); }
.site-header.is-scrolled.header-transparent .brand-text small { color: var(--muted); }
.site-header.is-scrolled.header-transparent .btn-primary { background: var(--primary); color: #fff; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary-dark); transition: color .3s ease; }
.brand-text small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.03em; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-block; padding: 10px 16px; font-weight: 600; font-size: 0.94rem;
  border-radius: 999px; transition: background .3s ease, color .3s ease;
  position: relative;
}
.main-nav a:hover { background: rgba(79,143,191,0.14); }
.main-nav a.active { color: var(--secondary); }
.header-transparent .main-nav a.active { color: #C9E4FF; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { padding: 12px 24px; font-size: 0.92rem; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(18,59,93,0.06);
}
.menu-toggle img { width: 22px; height: 22px; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(12,42,66,0.55); z-index: 1400; opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease; backdrop-filter: blur(2px);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); background: #fff; z-index: 1500;
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; padding: 24px; overflow-y: auto;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.menu-close { width: 42px; height: 42px; border-radius: 50%; background: var(--background); display: flex; align-items: center; justify-content: center; }
.menu-close img { width: 18px; height: 18px; }
.mobile-menu-links { margin-bottom: 22px; }
.mobile-menu-links li { border-bottom: 1px solid var(--border); }
.mobile-menu-links a { display: block; padding: 16px 4px; font-weight: 600; font-size: 1.05rem; color: var(--primary-dark); }
.mobile-menu-links a.active { color: var(--secondary); }
.mobile-menu-contact { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu-contact a { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.mobile-menu-contact img { width: 18px; height: 18px; opacity: 0.7; }

body.menu-open { overflow: hidden; }

/* ---------- FLOATING ACTIONS ---------- */
.floating-actions {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 900;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-md); padding: 13px; overflow: hidden; width: 50px; height: 50px;
  transition: width .4s var(--ease), background .3s ease, box-shadow .3s ease, transform .3s ease;
  white-space: nowrap;
}
.fab img { width: 20px; height: 20px; flex-shrink: 0; }
.fab span { font-size: 0.88rem; font-weight: 700; opacity: 0; transition: opacity .25s ease .1s; color: var(--primary-dark); }
.fab:hover { width: 148px; transform: translateX(-4px); box-shadow: var(--shadow-lg); }
.fab:hover span { opacity: 1; }
.fab-call { color: var(--primary); }
.fab-whatsapp img { filter: none; }
.fab-appointment { background: var(--primary); }
.fab-appointment img { filter: brightness(0) invert(1); }
.fab-appointment span { color: #fff; }

/* ---------- MOBILE STICKY BOTTOM BAR ---------- */
.mobile-bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: none;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(18,59,93,0.08);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  align-items: stretch; justify-content: space-between; gap: 8px;
}
.mbb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 4px; border-radius: 14px; font-size: 0.72rem; font-weight: 700; color: var(--primary-dark);
  min-height: 52px;
}
.mbb-item img { width: 20px; height: 20px; }
.mbb-primary { background: var(--primary); color: #fff; }
.mbb-primary img { filter: brightness(0) invert(1); }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: relative; height: 100svh; min-height: 620px; max-height: 980px; overflow: hidden; color: #fff;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 8s linear;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,42,66,0.86) 0%, rgba(12,42,66,0.55) 42%, rgba(12,42,66,0.15) 75%);
}
.hero-slide-content { position: relative; z-index: 3; max-width: 620px; padding-top: var(--header-h); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px;
  opacity: 0; transform: translateY(16px);
}
.hero-slide h1 { color: #fff; margin-bottom: 6px; opacity: 0; transform: translateY(24px); }
.hero-slide .hero-role { font-size: 1.15rem; font-weight: 600; color: #C9E4FF; margin-bottom: 18px; opacity: 0; transform: translateY(20px); }
.hero-slide .hero-quote { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: rgba(255,255,255,0.92); margin-bottom: 34px; max-width: 520px; opacity: 0; transform: translateY(20px); }
.hero-slide-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); }

.hero-slide.active .hero-eyebrow { animation: heroUp .8s var(--ease) .25s forwards; }
.hero-slide.active h1 { animation: heroUp .9s var(--ease) .4s forwards; }
.hero-slide.active .hero-role { animation: heroUp .9s var(--ease) .55s forwards; }
.hero-slide.active .hero-quote { animation: heroUp .9s var(--ease) .7s forwards; }
.hero-slide.active .hero-slide-actions { animation: heroUp .9s var(--ease) .85s forwards; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }

.hero-controls {
  position: absolute; z-index: 5; bottom: 110px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; transition: background .3s ease, transform .3s ease;
}
.hero-arrow img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.hero-arrow:hover { background: rgba(255,255,255,0.15); transform: scale(1.06); }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all .35s ease; }
.hero-dot.active { background: #fff; width: 28px; border-radius: 999px; }

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.hero-scroll-hint span.line { width: 1px; height: 34px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.hero-scroll-hint span.line::after { content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background:#fff; animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* Inner page hero (non-slider) */
.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: center; color: #fff;
  padding-top: var(--header-h); background-size: cover; background-position: center; overflow: hidden;
}
.page-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(12,42,66,0.92), rgba(18,59,93,0.72)); }
.page-hero-inner { position: relative; z-index: 2; padding: 60px 0; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 560px; }

.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--border); }
.breadcrumb li:not(:last-child) a { color: var(--muted); font-weight: 500; }
.breadcrumb li:last-child { color: var(--primary); font-weight: 600; }

/* ---------- TRUST / STATS STRIP ---------- */
.trust-strip { background: var(--primary); position: relative; margin-top: -1px; z-index: 5; }
.trust-strip .container { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 48px 0; }
.stat-item { text-align: center; padding: 0 16px; position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255,255,255,0.14); }
.stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 700; color: #fff; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-label { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-top: 6px; font-weight: 500; }

/* ---------- ABOUT DOCTOR SPLIT ---------- */
.about-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about-image-frame:hover img { transform: scale(1.05); }
.about-badge-card {
  position: absolute; bottom: -28px; left: -28px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 24px; display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.about-badge-card img { width: 40px; height: 40px; }
.about-badge-card strong { display: block; color: var(--primary-dark); font-size: 1.3rem; font-family: var(--font-display); }
.about-badge-card span { font-size: 0.82rem; color: var(--muted); }

.about-content .doctor-cred { color: var(--secondary); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 6px; display:block; }
.about-content h2 { margin-bottom: 6px; }
.about-content .exp-tag { display: inline-block; background: rgba(201,162,75,0.14); color: var(--accent); font-weight: 700; padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; margin: 10px 0 20px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 26px 0 32px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary-dark); font-size: 0.95rem; }
.checklist img { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- BENTO SERVICES ---------- */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
  position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 58px; height: 58px; border-radius: 16px; background: rgba(79,143,191,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: transform .4s var(--ease), background .4s ease;
}
.service-icon img { width: 28px; height: 28px; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); background: var(--primary); }
.service-card:hover .service-icon img { filter: brightness(0) invert(1); }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { font-size: 0.93rem; margin-bottom: 18px; }
.service-card .card-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--primary); }
.service-card .card-arrow img { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.service-card:hover .card-arrow img { transform: translateX(6px); }

/* ---------- TREATMENTS HORIZONTAL ---------- */
.treatments-scroll { display: grid; grid-template-columns: repeat(6, minmax(280px,1fr)); gap: 24px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.treatment-card { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); border: 1px solid var(--border); }
.treatment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.treatment-img { aspect-ratio: 4/3; overflow: hidden; }
.treatment-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.treatment-card:hover .treatment-img img { transform: scale(1.08); }
.treatment-body { padding: 22px; }
.treatment-category { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); }
.treatment-body h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.treatment-body p { font-size: 0.9rem; margin-bottom: 14px; }

/* ---------- WHY CHOOSE US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { text-align: left; padding: 34px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .35s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; }

/* ---------- APPOINTMENT SECTION ---------- */
.appointment-section { position: relative; background: var(--primary-dark); color: #fff; overflow: hidden; }
.appointment-section .bg-image { position: absolute; inset: 0; opacity: 0.22; background-size: cover; background-position: center; }
.appointment-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.appointment-info h2 { color: #fff; margin-bottom: 16px; }
.appointment-info p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.availability-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; gap: 18px; backdrop-filter: blur(6px); margin-bottom: 26px;
}
.availability-dot { width: 12px; height: 12px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 5px rgba(74,222,128,0.2); flex-shrink: 0; animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 5px rgba(74,222,128,0.2);} 50% { box-shadow: 0 0 0 9px rgba(74,222,128,0.05);} }
.availability-card strong { display: block; font-size: 1.1rem; }
.availability-card span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.appointment-steps-mini { display: flex; flex-direction: column; gap: 16px; }
.appointment-steps-mini li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.appointment-steps-mini .num { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }

.appointment-form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); color: var(--text); }
.appointment-form-card h3 { color: var(--primary-dark); margin-bottom: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group-full { grid-column: 1 / -1; margin-bottom: 18px; }
.form-group label { font-size: 0.86rem; font-weight: 700; color: var(--primary-dark); }
.form-group label .optional { font-weight: 400; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; background: var(--background);
  transition: border-color .25s ease, box-shadow .25s ease; font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(79,143,191,0.15); background: #fff;
}
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #E0554F; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-error { font-size: 0.78rem; color: #E0554F; min-height: 14px; display: block; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.loading .btn-text { opacity: 0.5; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- NOTIFICATIONS (custom, no alert()) ---------- */
.notification-stack { position: fixed; top: 24px; right: 24px; z-index: 5000; display: flex; flex-direction: column; gap: 12px; width: min(360px, 90vw); }
.notification {
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 12px; border-left: 4px solid var(--secondary);
  animation: notifyIn .4s var(--ease);
}
.notification.success { border-color: #35A36B; }
.notification.error { border-color: #E0554F; }
.notification .n-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.notification strong { display: block; font-size: 0.92rem; color: var(--primary-dark); margin-bottom: 2px; }
.notification p { font-size: 0.85rem; margin: 0; }
.notification .n-close { margin-left: auto; opacity: 0.5; flex-shrink: 0; }
@keyframes notifyIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.notification.closing { animation: notifyOut .3s ease forwards; }
@keyframes notifyOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- TIMELINE (appointment steps) ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: var(--border); z-index: 0; }
.timeline-step { position: relative; z-index: 1; text-align: center; }
.timeline-num {
  width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--border); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 700; color: var(--primary); transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s var(--ease);
}
.timeline-step.in-view .timeline-num { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.timeline-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.timeline-step p { font-size: 0.88rem; }

/* ---------- FACILITIES ---------- */
.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.facility-card:hover img { transform: scale(1.1); }
.facility-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,42,66,0.85), rgba(12,42,66,0.05) 55%); display: flex; align-items: flex-end; padding: 22px; }
.facility-overlay h3 { color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.facility-overlay img.facility-icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }

/* ---------- TESTIMONIALS ---------- */
.testimonial-carousel { position: relative; max-width: 780px; margin: 0 auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform .6s var(--ease); }
.testimonial-slide { min-width: 100%; padding: 8px; }
.testimonial-card { background: var(--surface); border-radius: var(--radius-lg); padding: 46px; text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.testimonial-quote-icon { width: 40px; height: 40px; margin: 0 auto 18px; opacity: 0.25; }
.testimonial-stars { display: flex; gap: 4px; justify-content: center; margin-bottom: 18px; }
.testimonial-stars img { width: 18px; height: 18px; filter: invert(70%) sepia(60%) saturate(700%) hue-rotate(360deg) brightness(1.05); }
.testimonial-text { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--primary-dark); margin-bottom: 26px; }
.testimonial-author strong { display: block; color: var(--primary-dark); }
.testimonial-author span { font-size: 0.85rem; color: var(--muted); }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; }

/* ---------- FAQ ACCORDION ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; text-align: left; font-weight: 700; color: var(--primary-dark); }
.faq-question .plus-icon { width: 22px; height: 22px; flex-shrink: 0; transition: transform .35s var(--ease); }
.faq-item.open .plus-icon { transform: rotate(135deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-answer-inner { padding: 0 26px 22px; color: var(--muted); }
.faq-item.open .faq-answer { }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-img img { transform: scale(1.08); }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 12px; align-items: center; font-size: 0.78rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.blog-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.blog-body p { font-size: 0.9rem; margin-bottom: 16px; }
.blog-footer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); }

.blog-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 56px; }
.blog-featured-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: 20px 40px 20px 0; }

.blog-search-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 8px 8px 20px; max-width: 420px; }
.blog-search-bar input { flex: 1; border: none; background: none; }
.blog-search-bar input:focus { outline: none; }
.blog-search-bar button { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.blog-search-bar button img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

.blog-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-cat-pill { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: all .3s ease; }
.blog-cat-pill.active, .blog-cat-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body p { font-size: 1.06rem; margin-bottom: 22px; color: var(--text); }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/9; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- GALLERY / MASONRY ---------- */
.gallery-masonry { column-count: 3; column-gap: 22px; }
.gallery-item { break-inside: avoid; margin-bottom: 22px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0; background: rgba(12,42,66,0.55); opacity: 0; transition: opacity .35s ease;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay img.zoom-icon { width: 32px; height: 32px; filter: brightness(0) invert(1); }

.lightbox { position: fixed; inset: 0; background: rgba(6,18,28,0.94); z-index: 6000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background .3s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close img, .lightbox-prev img, .lightbox-next img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.9rem; opacity: 0.8; }

/* ---------- CARDS: doctor / team ---------- */
.doctor-hero-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.doctor-hero-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 120px; }
.doctor-hero-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.doctor-hero-card-body { padding: 26px; text-align: center; }
.doctor-hero-card-body h3 { margin-bottom: 4px; }
.doctor-hero-card-body span { color: var(--muted); font-size: 0.88rem; display: block; margin-bottom: 18px; }

.info-block { margin-bottom: 34px; }
.info-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.15rem; }
.info-block h3 img { width: 22px; height: 22px; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.info-list li:last-child { border-bottom: none; }
.info-list img { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; opacity: 0.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { background: rgba(79,143,191,0.12); color: var(--secondary); font-weight: 700; font-size: 0.82rem; padding: 8px 16px; border-radius: 999px; }

.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 30px 0; }
.mini-stat { text-align: center; background: var(--background); border-radius: var(--radius-sm); padding: 18px 8px; }
.mini-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--primary-dark); }
.mini-stat span { font-size: 0.76rem; color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 60px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s ease; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(79,143,191,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.contact-card-icon img { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- MISC PAGES: process / values / mission ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease); }
.value-card:hover { transform: translateY(-6px); }
.value-card .service-icon { margin-bottom: 18px; }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.process-card { text-align: center; padding: 10px; }
.process-num { font-family: var(--font-display); font-size: 2.6rem; color: rgba(18,59,93,0.1); font-weight: 700; margin-bottom: 6px; }

.cta-banner {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg);
  padding: 60px; text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 auto 30px; }
.cta-banner-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- SERVICE DETAIL ---------- */
.service-hero-icon { width: 66px; height: 66px; border-radius: 18px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-hero-icon img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-list li { display: flex; gap: 12px; padding: 8px 0; }
.check-list img { width: 20px; height: 20px; flex-shrink: 0; color: var(--secondary); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.72); margin-top: 0; }
.footer-cta { background: var(--primary); padding: 56px 0; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.footer-cta p { color: rgba(255,255,255,0.75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-family: var(--font-body); }
.footer-col h4.mt { margin-top: 26px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9rem; transition: color .25s ease; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 0.9rem; margin: 18px 0 22px; line-height: 1.7; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .3s ease, transform .3s ease; }
.social-icons a:hover { background: var(--secondary); transform: translateY(-3px); }
.social-icons img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact img { width: 17px; height: 17px; margin-top: 3px; opacity: 0.7; }
.footer-hours li { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 10px; }
.footer-hours strong { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
.footer-credit a { color: rgba(255,255,255,0.85); font-weight: 600; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 24px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease); z-index: 850;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* ---------- CUSTOM CURSOR (desktop only, subtle) ---------- */
.custom-cursor {
  position: fixed; width: 26px; height: 26px; border: 1.5px solid var(--secondary); border-radius: 50%;
  pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease;
  display: none;
}
.custom-cursor.active { display: block; }
.custom-cursor.grow { width: 46px; height: 46px; background: rgba(79,143,191,0.12); }

/* ---------- SCROLL REVEAL BASE ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
