/* ==========================================================================
   GALAXY HOSPITAL — DESIGN SYSTEM
   Muzaffarpur, Bihar | Multi-Speciality Care
   ========================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root{
  /* Brand colors (from brief) */
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --ocean: #0284C7;
  --ocean-dark: #075985;
  --ocean-light: #E0F2FE;
  --crimson: #DC2626;
  --crimson-dark: #B91C1C;
  --top-bar-neutral: #64748B;
  --rose-bg: #FDF2F8;
  --rose-text: #BE185D;
  --rose-line: #FBCFE8;
  --off-white: #F8FAFC;
  --white: #FFFFFF;

  /* Supporting neutrals */
  --slate-900: #0F172A;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;

  /* Functional accents, used sparingly */
  --success: #059669;
  --success-bg: #ECFDF5;
  --amber: #D97706;
  --amber-bg: #FFFBEB;

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Shape & shadow (from brief) */
  --radius-sm: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lift: 0 12px 24px -8px rgba(15,23,42,0.18);
  --shadow-nav: 0 1px 3px rgba(15,23,42,0.08);

  /* Layout */
  --container: 1200px;
  --section-pad: 88px;
  --section-pad-mobile: 56px;
  --bar-height: 40px;
  --nav-height: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-height) + var(--nav-height) + 16px); overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure{ 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; }
input, select, textarea{ font: inherit; }

body{
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--bar-height) + var(--nav-height));
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Typography ---- */
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2{ font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3{ font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4{ font-size: 1.05rem; font-weight: 700; }
p{ color: var(--slate-600); }
.lede{ font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate-600); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ocean-dark);
  background: var(--ocean-light);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow.rose{ color: var(--rose-text); background: var(--rose-bg); border: 1px solid var(--rose-line); }
.eyebrow.crimson{ color: var(--crimson-dark); background: #FEF2F2; }

.section-head{ max-width: 680px; margin-bottom: 40px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head p{ margin-top: 12px; }

/* ---- Layout helpers ---- */
.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: var(--section-pad) 0; }
.section.tight{ padding: 48px 0; }
@media (max-width: 720px){
  .section{ padding: var(--section-pad-mobile) 0; }
  .section.tight{ padding: 36px 0; }
}
.section.alt{ background: var(--white); }
.section.navy{ background: var(--navy); color: var(--white); }
.section.navy h2, .section.navy h3{ color: var(--white); }
.section.navy p{ color: #CBD5E1; }
.section.rose{ background: var(--rose-bg); }

.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2, 1fr); } .grid-3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.flex{ display: flex; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.gap-8{ gap: 8px; } .gap-12{ gap: 12px; } .gap-16{ gap: 16px; } .gap-24{ gap: 24px; }

/* ---- Buttons ---- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--ocean); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover{ background: var(--ocean-dark); box-shadow: var(--shadow-lift); }
.btn-emergency{ background: var(--crimson); color: var(--white); box-shadow: 0 4px 10px -2px rgba(220,38,38,0.4); }
.btn-emergency:hover{ background: var(--crimson-dark); box-shadow: 0 10px 22px -6px rgba(220,38,38,0.55); }
.btn-outline{ background: transparent; border-color: var(--slate-300); color: var(--navy); }
.btn-outline:hover{ border-color: var(--ocean); color: var(--ocean-dark); }
.btn-outline-white{ background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-white:hover{ background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-ghost{ background: transparent; color: var(--ocean-dark); padding: 10px 14px; }
.btn-ghost:hover{ background: var(--ocean-light); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 9px 16px; font-size: 0.85rem; }

/* ---- Emergency Top Bar ---- */
.top-bar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--bar-height);
  background: var(--top-bar-neutral);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
}
.top-bar .container{ height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-bar .tb-left{ display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.top-bar .tb-right{ display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.top-bar a{ color: var(--white); }
.top-bar a:hover{ text-decoration: underline; }
.pulse-dot{ width: 8px; height: 8px; border-radius: 50%; background: #FCA5A5; flex-shrink: 0; animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot{ 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: 0.4; transform: scale(0.75);} }
.tb-badge{ display: none; }
@media (min-width: 560px){ .tb-badge{ display: inline; } }

/* ---- Header / Nav ---- */
.site-header{
  position: fixed; top: var(--bar-height); left: 0; right: 0; z-index: 190;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav);
}
.site-header .container{ height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{
  width: 42px; height: 42px; border-radius: 10px;
  background: #a6a6a6 url('assets/galaxyhoslogo.webp') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
}
.brand-mark svg{ display: none; }
.brand-text{ display: none; }
.brand-text .name{ font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.brand-text .tag{ font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ocean-dark); }

.nav-links{ display: none; align-items: center; gap: 4px; }
.nav-links a{
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--slate-600); padding: 10px 14px; border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover{ background: var(--slate-100); color: var(--navy); }
.nav-links a.active{ color: var(--ocean-dark); background: var(--ocean-light); }
.nav-cta{ display: none; align-items: center; gap: 10px; }
@media (min-width: 1080px){ .nav-links{ display: flex; } .nav-cta{ display: flex; } }

@media (max-width: 720px){
  .highlight-banner > .flex{ align-items: center !important; justify-content: flex-start; flex-wrap: wrap; }
}

.menu-toggle{
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--slate-100); border: none;
}
.menu-toggle span{ width: 20px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1080px){ .menu-toggle{ display: none; } }

.mobile-menu{
  position: fixed; top: calc(var(--bar-height) + var(--nav-height)); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 180;
  transform: translateX(100%); transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu .container{ padding-top: 20px; padding-bottom: 40px; }
.mobile-menu a{
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  padding: 16px 4px; border-bottom: 1px solid var(--slate-200); color: var(--navy);
}
.mobile-menu .mm-cta{ margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .mm-cta a{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 20px !important;
  border-bottom: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.mobile-menu .mm-cta a.btn-emergency{
  background: var(--crimson) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3) !important;
}
.mobile-menu .mm-cta a.btn-emergency:hover,
.mobile-menu .mm-cta a.btn-emergency:active{
  background: var(--crimson-dark) !important;
  color: var(--white) !important;
}
.mobile-menu .mm-cta a.btn-outline{
  background: var(--white) !important;
  border: 1.5px solid var(--slate-300) !important;
  color: var(--navy) !important;
}
.mobile-menu .mm-cta a.btn-outline:hover,
.mobile-menu .mm-cta a.btn-outline:active{
  border-color: var(--ocean) !important;
  color: var(--ocean-dark) !important;
}
.mobile-menu .mm-cta a.btn-primary{
  background: var(--ocean) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(2,132,199,0.3) !important;
}
.mobile-menu .mm-cta a.btn-primary:hover,
.mobile-menu .mm-cta a.btn-primary:active{
  background: var(--ocean-dark) !important;
  color: var(--white) !important;
}
@media (min-width: 1080px){ .mobile-menu{ display: none; } }

/* ---- Hero ---- */
.hero{
  /* Keep the complete hospital facade in frame. `cover` crops the image vertically
     on short, wide screens, hiding the entrance until the visitor scrolls. */
  min-height: calc(100svh - var(--bar-height) - var(--nav-height));
  height: calc(100svh - var(--bar-height) - var(--nav-height));
  background: #063b72 url('assets/hero-building.webp') right center / auto 100% no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5vw, 78px) 0 34px;
}
.hero::before{
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,28,67,.98) 0%, rgba(0,36,81,.94) 29%, rgba(0,51,105,.57) 50%, rgba(0,45,95,.05) 76%),
    linear-gradient(0deg, rgba(0,22,56,.90) 0%, rgba(0,22,56,0) 35%);
  pointer-events: none;
}
.hero .container{ position: relative; z-index: 2; }
.hero .hero-grid{ min-height: calc(100svh - var(--bar-height) - var(--nav-height) - clamp(48px, 5vw, 78px) - 34px); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.hero-mobile-image{ display: none; }
.hero-copy{ width: min(100%, 535px); }
.hero-kicker{ display: inline-flex; align-items: center; gap: 11px; padding: 10px 17px; margin-bottom: 58px; border: 1px solid #1681f1; border-radius: 12px; color: #dbeafe; font-family: var(--font-display); font-size: .88rem; font-weight: 700; text-transform: uppercase; }
.hero-kicker svg{ width: 25px; height: 25px; color: #4b9cff; }
.hero h1{ margin-bottom: 24px; color: var(--white); font-size: clamp(3rem, 4.45vw, 4.2rem); line-height: 1.28; letter-spacing: -.045em; }
.hero h1 span{ color: #59a0ff; }
.hero .lede{ max-width: 510px; margin-bottom: 38px; color: #f0f6ff; font-size: clamp(1rem, 1.22vw, 1.16rem); line-height: 1.78; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 36px; }
.hero-actions .btn{ min-width: 232px; min-height: 66px; border-radius: 9px; font-size: 1rem; }
.hero-actions .btn-primary{ background: #1264e8; box-shadow: 0 12px 22px rgba(0,53,160,.34); }
.hero-actions .btn-primary:hover{ background: #0955cf; }
.hero-emergency{ color: #ff3d46; border: 1.5px solid #ff3040; background: rgba(2,31,70,.23); box-shadow: none; }
.hero-emergency:hover{ background: rgba(220,38,38,.12); color: #ff5b62; }
.hero-emergency-note{ display: none; }
.hero-emergency-note > svg{ flex: 0 0 22px; margin-top: 3px; color: #3d95ff; }
.hero-emergency-note strong{ display: block; margin-top: 7px; color: #ff4149; font-size: 1rem; }
.hero-features{ display: flex; align-items: stretch; gap: 28px; }
.hero-feature{ display: flex; align-items: center; gap: 13px; padding-right: 28px; border-right: 1px solid rgba(106,168,255,.16); color: #5fa6ff; }
.hero-feature:last-child{ padding-right: 0; border-right: 0; }
.hero-feature svg{ width: 38px; height: 38px; flex: 0 0 38px; }
.hero-feature span{ display: flex; flex-direction: column; color: #f8fafc; font-size: .83rem; line-height: 1.55; white-space: nowrap; }
.hero-feature strong{ color: #f8fafc; font-size: .91rem; }
@media (min-width: 901px){
  .hero .hero-grid{ position: relative; }
  .hero-copy{ position: absolute; top: 50%; transform: translateY(-50%); }
  .hero-features{ position: absolute; right: 0; bottom: 0; left: 0; }
}
@media (max-width: 900px){
  .hero{
    min-height: calc(100svh - var(--bar-height) - var(--nav-height));
    height: calc(100svh - var(--bar-height) - var(--nav-height));
    padding: clamp(28px, 5vh, 48px) 0 clamp(22px, 4vh, 36px);
    background-size: cover;
    background-position: 62% center;
  }
  .hero::before{
    background:
      linear-gradient(90deg, rgba(0,25,61,.98) 0%, rgba(0,31,73,.91) 47%, rgba(0,39,88,.58) 72%, rgba(0,41,90,.24) 100%),
      linear-gradient(0deg, rgba(0,20,51,.90) 0%, rgba(0,20,51,0) 48%);
  }
  .hero .hero-grid{ min-height: calc(100svh - var(--bar-height) - var(--nav-height) - clamp(28px, 5vh, 48px) - clamp(22px, 4vh, 36px)); gap: 20px; }
  .hero-kicker{ margin-bottom: 24px; }
  .hero h1{ line-height: 1.18; margin-bottom: 16px; }
  .hero .lede{ margin-bottom: 22px; line-height: 1.55; }
  .hero-actions{ margin-bottom: 20px; }
  .hero-actions .btn{ min-height: 56px; }
  .hero-features{ flex-wrap: wrap; gap: 18px; }
  .hero-feature{ padding-right: 18px; }
}
@media (min-width: 561px) and (max-width: 900px){
  .hero{ background-position: 66% center; }
  .hero-copy{ width: min(64%, 510px); }
  .hero-kicker{ margin-bottom: 20px; }
  .hero h1{ font-size: clamp(2.65rem, 5.4vw, 3.65rem); }
  .hero .lede{ max-width: 460px; }
  .hero-actions{ gap: 14px; }
  .hero-actions .btn{ min-width: 205px; }
  .hero-features{
    width: 100%; padding: 12px 14px; gap: 14px;
    border: 1px solid rgba(147,197,253,.18); border-radius: 14px;
    background: rgba(1,27,64,.46); backdrop-filter: blur(8px);
  }
  .hero-feature{ padding-right: 14px; }
}
@media (max-width: 560px){
  .hero{
    min-height: calc(100svh - var(--bar-height) - var(--nav-height) - 66px);
    height: calc(100svh - var(--bar-height) - var(--nav-height) - 66px);
    padding: 18px 0 0;
    background-size: auto 42%;
    background-position: center bottom;
  }
  .hero::before{
    background:
      linear-gradient(180deg, rgba(0,24,58,.96) 0%, rgba(0,24,58,.91) 47%, rgba(0,24,58,.35) 71%, rgba(0,20,51,.54) 100%),
      radial-gradient(circle at 16% 68%, rgba(18,102,223,.46), transparent 42%);
  }
  .hero .hero-grid{ position: relative; min-height: calc(100svh - var(--bar-height) - var(--nav-height) - 82px); gap: 0; }
  .hero-copy{ width: 100%; text-shadow: 0 2px 18px rgba(0,16,42,.28); }
  .hero-kicker{ margin-bottom: 14px; padding: 7px 10px; font-size: .63rem; background: rgba(0,38,84,.36); }
  .hero-kicker svg{ width: 18px; height: 18px; }
  .hero h1{ font-size: clamp(2.2rem, 10.5vw, 2.7rem); line-height: 1.1; margin-bottom: 12px; }
  .hero .lede{ margin-bottom: 16px; font-size: .88rem; line-height: 1.45; }
  .hero-actions{ gap: 9px; margin-bottom: 14px; }
  .hero-actions .btn{ width: 100%; min-width: 0; min-height: 46px; font-size: .84rem; }
  
  .hero-features{
    position: absolute; right: 0; bottom: 0; left: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 0;
    padding: 10px 4px 12px; border: 1px solid rgba(96,165,250,.6); border-bottom: 0; border-radius: 15px 15px 0 0;
    background: rgba(2,28,67,.78); backdrop-filter: blur(10px);
  }
  .hero-feature{
    min-height: 65px; padding: 0 4px; gap: 5px; border: 0; border-right: 1px solid rgba(147,197,253,.16);
    border-radius: 0; background: none; flex-direction: column; justify-content: center; text-align: center;
  }
  .hero-feature:last-child{ border-right: 0; }
  .hero-feature svg{ width: 29px; height: 29px; flex-basis: 29px; }
  .hero-feature span{ align-items: center; font-size: .64rem; line-height: 1.25; white-space: normal; }
  .hero-feature strong{ font-size: .72rem; }
}

/* Short desktop screens (including browsers at increased zoom): keep every
   hero element visible without requiring an initial scroll. */
@media (min-width: 901px) and (max-height: 800px){
  .hero{ padding: clamp(24px, 4vh, 42px) 0 20px; }
  .hero .hero-grid{ min-height: calc(100svh - var(--bar-height) - var(--nav-height) - clamp(24px, 4vh, 42px) - 20px); }
  .hero-kicker{ margin-bottom: 20px; }
  .hero h1{ font-size: clamp(2.55rem, 4vw, 3.5rem); line-height: 1.14; margin-bottom: 14px; }
  .hero .lede{ margin-bottom: 18px; line-height: 1.48; }
  .hero-actions{ gap: 14px; margin-bottom: 18px; }
  .hero-actions .btn{ min-height: 52px; }
  .hero-features{ gap: 20px; }
  .hero-feature{ gap: 10px; padding-right: 20px; }
  .hero-feature svg{ width: 33px; height: 33px; flex-basis: 33px; }
}

/* Landscape phones have very little vertical room once the fixed header is
   accounted for. Prioritize the message and actions so the first view never
   overflows below the fold. */
@media (max-width: 560px) and (max-height: 620px){
  .hero{ padding-bottom: 24px; }
  .hero h1{ font-size: clamp(2rem, 9vw, 2.45rem); }
  .hero .lede{ font-size: .82rem; }
}

/* ---- Signage badge system (signature motif) ----
   Modeled on hospital corridor wayfinding plates: a bold mono "code"
   chip paired with the full department name. Reused for departments,
   services, and the doctor filter tabs to unify the site. */
.signage{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
}
.signage .code{
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  background: var(--ocean); color: var(--white);
  padding: 8px 10px; letter-spacing: 0.03em;
}
.signage .label{ padding: 8px 14px; }
.signage.on-white{ background: var(--slate-100); color: var(--navy); }
.signage.on-white .code{ background: var(--ocean-light); color: var(--ocean-dark); }

/* ---- Cards ---- */
.card{
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--slate-300); }
.card-icon{
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--ocean-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: 8px; }
.card p{ font-size: 0.94rem; }

/* ---- Highlight banner (Ayushman Bharat) ---- */
.highlight-banner{
  background: linear-gradient(120deg, rgba(2,132,199,0.92) 0%, rgba(7,89,133,0.9) 100%), url('assets/pmcarehomepage.webp') center / cover no-repeat;
  border-radius: 18px;
  padding: 32px 36px;
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 16px 32px -12px rgba(2,132,199,0.45);
}
.highlight-banner .hb-text h3{ color: var(--white); margin-bottom: 6px; }
.highlight-banner .hb-text p{ color: #E0F2FE; margin: 0; }
.highlight-banner .hb-seal{
  font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}

/* ---- Maternity / OPD-slip signature card ----
   Styled after the physical OPD registration ticket handed to patients
   at Indian hospital counters: perforated edge, stub, and a stamped
   approval seal. Used for the Safe Motherhood pricing feature. */
.opd-slip{
  background: var(--rose-bg);
  border: 1.5px dashed var(--rose-line);
  border-radius: var(--radius-lg);
  position: relative;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.opd-slip-head{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 28px; border-bottom: 1.5px dashed var(--rose-line);
  background: rgba(255,255,255,0.5);
}
.opd-slip-head .title{ font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-text); font-weight: 700; }
.opd-slip-head h3{ color: var(--rose-text); margin-top: 4px; }
.opd-seal{
  flex-shrink: 0;
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid var(--rose-text); color: var(--rose-text);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.62rem; line-height: 1.2;
  transform: rotate(-8deg);
  padding: 4px;
}
.opd-slip-body{ padding: 26px 28px 28px; }
.opd-row{
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px dashed var(--rose-line);
}
.opd-row:last-of-type{ border-bottom: none; }
.opd-row .opd-name{ font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.opd-row .opd-name span{ display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--slate-600); margin-top: 3px; }
.opd-row .opd-price{ font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--rose-text); white-space: nowrap; }
.opd-slip::before, .opd-slip::after{
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: var(--off-white); top: 108px;
}
.opd-slip::before{ left: -11px; }
.opd-slip::after{ right: -11px; }
@media (max-width: 720px){ .opd-slip::before, .opd-slip::after{ display: none; } }

/* ---- Footer ---- */
.site-footer{ background: var(--navy); color: #CBD5E1; padding: 64px 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color: var(--white); margin-bottom: 18px; font-size: 0.95rem; }
.site-footer .brand-text .name{ color: var(--white); }
.site-footer p{ color: #94A3B8; font-size: 0.92rem; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a{ color: #94A3B8; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-links a:hover{ color: var(--white); }
.footer-contact li{ margin-bottom: 14px; font-size: 0.92rem; color: #CBD5E1; display: flex; gap: 10px; }
.footer-contact svg{ flex-shrink: 0; margin-top: 2px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; text-align: center;
  font-size: 0.82rem; color: #64748B;
}

/* ---- FAQ Accordion ---- */
.faq-item{ border-bottom: 1px solid var(--slate-200); }
.faq-item:first-child{ border-top: 1px solid var(--slate-200); }
.faq-q{
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy);
}
.faq-q .icon{
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ocean-light); color: var(--ocean-dark);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-q .icon::before, .faq-q .icon::after{ content: ''; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .icon::before{ width: 12px; height: 2px; }
.faq-q .icon::after{ width: 2px; height: 12px; transition: transform 0.25s ease; }
.faq-item.open .faq-q .icon{ background: var(--ocean); color: var(--white); }
.faq-item.open .faq-q .icon::after{ transform: rotate(90deg) scaleY(0); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner{ padding: 0 4px 22px; max-width: 680px; }
.faq-a-inner p{ font-size: 0.95rem; }

/* ---- Doctor filter tabs ---- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tab{
  font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--slate-200);
  background: var(--white); color: var(--slate-600);
  transition: all 0.15s ease;
}
.filter-tab:hover{ border-color: var(--ocean); color: var(--ocean-dark); }
.filter-tab.active{ background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (max-width: 560px){
  .filter-bar{ flex-wrap: nowrap; overflow-x: auto; margin-right: -24px; padding-right: 24px; padding-bottom: 8px; scrollbar-width: thin; }
  .filter-tab{ flex: 0 0 auto; }
}

.doctor-card{ 
  background: var(--white); 
  border: none; 
  border-radius: 24px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08); 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  color: inherit;
  text-decoration: none;
}
.doctor-card:hover{ 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12); 
}
.doctor-photo{
  height: 320px; 
  background: var(--slate-100); 
  display: flex; 
  align-items: center; 
  justify-content: center;
  flex-shrink: 0;
}
.doctor-photo img{ 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center top; 
  display: block; 
}
.doctor-photo svg{ width: 64px; height: 64px; color: var(--ocean); opacity: 0.6; }
.doctor-body{ 
  padding: 20px 24px; 
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
}
.doctor-body h3{ 
  margin: 0; 
  font-size: 1.15rem; 
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}
.doctor-dept{ 
  margin: 0;
  font-family: inherit; 
  font-size: 0.88rem; 
  text-transform: capitalize; 
  letter-spacing: normal;
  color: #64748b; 
}
.doctor-qual, .doctor-affil { 
  display: none; 
}
.doctor-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ocean-dark);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.doctor-cta:hover {
  gap: 8px;
  text-decoration: underline;
}
.doctor-card.hidden{ display: none !important; }

/* ---- Forms ---- */
.form-group{ margin-bottom: 20px; }
.form-group label{ display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; color: var(--navy); }
.form-control{
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus{ outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px var(--ocean-light); }
textarea.form-control{ resize: vertical; min-height: 110px; }
.form-note{ font-size: 0.82rem; color: var(--slate-500); margin-top: 6px; }
.form-success{
  display: none; background: var(--success-bg); border: 1px solid #A7F3D0; color: var(--success);
  padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 20px;
}
.form-success.show{ display: block; }

/* ---- Tables ---- */
.table-wrap{ overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); }
table{ width: 100%; border-collapse: collapse; background: var(--white); min-width: 480px; }
th, td{ text-align: left; padding: 14px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--slate-200); }
th{ font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); background: var(--slate-100); }
tr:last-child td{ border-bottom: none; }

/* ---- TPA / Partner logos ---- */
.tpa-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px){ .tpa-grid{ grid-template-columns: repeat(2, 1fr); } }
.tpa-marquee{ overflow: hidden; width: 100%; padding: 10px 0; }
.tpa-track{ display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; }
.tpa-track.animated { width: max-content; flex-wrap: nowrap; justify-content: flex-start; animation: tpaScroll 34s linear infinite; }
.tpa-marquee:hover .tpa-track.animated{ animation-play-state: paused; }
@keyframes tpaScroll{ from{ transform: translateX(0); } to{ transform: translateX(calc(-50% - 9px)); } }
.tpa-logo{ width: 150px; height: 92px; flex: 0 0 150px; padding: 10px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); }
.tpa-logo img{ width: 100%; height: 100%; object-fit: contain; }
.tpa-card{
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--navy);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tpa-card:hover{ border-color: var(--ocean); transform: translateY(-2px); }

/* ---- Page hero (interior pages) ---- */
.page-hero{
  background: linear-gradient(180deg, var(--navy), var(--navy-soft));
  color: var(--white); padding: 56px 0 44px; position: relative; overflow: hidden;
}
.page-hero.hero-about{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/pexels-messalaciulla-19563295.webp'); background-position: center; background-size: cover; }
.page-hero.hero-departments{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/pexels-rdne-6129679.webp'); background-position: center; background-size: cover; }
.page-hero.hero-doctors{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/pexels-weverton-oliveira-927931218-20217786.webp'); background-position: center; background-size: cover; }
.page-hero.hero-services{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/pexels-rdne-6129691.webp'); background-position: center; background-size: cover; }
.page-hero.hero-insurance{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/insurance.webp'); background-position: center; background-size: cover; }
.page-hero.hero-contact{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/contact.webp'); background-position: center; background-size: cover; }
.page-hero.hero-gallery{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/hero-building.webp'); background-position: center; background-size: cover; }
.page-hero.hero-appointment{ background-image: linear-gradient(180deg, rgba(15,23,42,0.52), rgba(30,41,59,0.66)), url('assets/contact.webp'); background-position: center; background-size: cover; }
.page-hero.hero-doctor-profile{ background-image: linear-gradient(180deg, rgba(15,23,42,0.65), rgba(30,41,59,0.76)), url('assets/doctor-profile-banner.webp'); background-position: center 30%; background-size: cover; }
.page-hero::before{
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(2,132,199,0.08), transparent 50%);
}
.page-hero .container{ position: relative; z-index: 2; }
.breadcrumb{ display: none; }
.breadcrumb a:hover{ color: var(--white); }
.page-hero h1{ color: var(--white); margin-bottom: 10px; }
.page-hero p{ color: #CBD5E1; max-width: 620px; }

/* ---- Scroll reveal ---- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---- Misc utility ---- */
.mt-8{ margin-top: 8px; } .mt-16{ margin-top: 16px; } .mt-24{ margin-top: 24px; } .mt-32{ margin-top: 32px; } .mt-48{ margin-top: 48px; }
.mb-8{ margin-bottom: 8px; } .mb-16{ margin-bottom: 16px; } .mb-24{ margin-bottom: 24px; } .mb-32{ margin-bottom: 32px; }
.text-center{ text-align: center; }
.divider{ height: 1px; background: var(--slate-200); border: none; margin: 0; }
.icon-badge{ width: 20px; height: 20px; flex-shrink: 0; }
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--ocean); outline-offset: 2px;
}
.list-check{ display: flex; flex-direction: column; gap: 12px; }
.list-check li{ display: flex; align-items: flex-start; gap: 10px; color: var(--slate-600); font-size: 0.94rem; }
.list-check li svg{ flex-shrink: 0; margin-top: 3px; color: var(--success); }

.stat-strip{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px){ .stat-strip{ grid-template-columns: repeat(2, 1fr); } }
.stat-strip .stat{ text-align: center; }
.stat-strip .stat .num{ font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ocean); }
.stat-strip .stat .lbl{ font-size: 0.85rem; color: var(--slate-500); margin-top: 4px; }
.section.navy .stat-strip .stat .lbl{ color: #94A3B8; }
/* ==========================================================================
   NEW COMPONENTS — added for premium homepage rebuild (Aug 2026)
   Everything below reuses the token system above. No new colors introduced.
   ========================================================================== */

/* ---- Certification / Trust strip ---- */
.trust-strip{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 28px; padding: 28px 0;
}
.trust-strip-item{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--slate-600);
}
.trust-strip-item svg{ color: var(--ocean); flex-shrink: 0; }
.trust-strip-divider{ width: 1px; height: 22px; background: var(--slate-200); }
@media (max-width: 700px){ .trust-strip-divider{ display: none; } }

/* ---- Placeholder / template marker (used where real client content is required before launch) ---- */
.placeholder-tag{
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber);
  background: var(--amber-bg); border: 1px solid #FDE68A;
  padding: 3px 8px; border-radius: 999px; margin-bottom: 10px;
}
.placeholder-block{ border: 1.5px dashed var(--slate-300); background: var(--slate-100); }

/* ---- Departments accordion ---- */
.dept-list{ display: flex; flex-direction: column; }
.dept-item{ border-bottom: 1px solid var(--slate-200); }
.dept-item:first-child{ border-top: 1px solid var(--slate-200); }
.dept-q{
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy);
}
.dept-q .chev{
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--slate-100); color: var(--slate-500);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.dept-item.open .dept-q .chev{ background: var(--ocean); color: var(--white); transform: rotate(180deg); }
.dept-a{ max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.dept-a-inner{ padding: 0 4px 18px; max-width: 560px; }
.dept-a-inner p{ font-size: 0.92rem; }
.dept-plus{ margin-top: 18px; padding: 16px 18px; background: var(--slate-100); border-radius: var(--radius-sm); font-size: 0.86rem; color: var(--slate-600); }
.dept-photo-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dept-photo-grid .ph-tile:nth-child(2){ margin-top: 28px; }
.dept-photo-grid .ph-tile:nth-child(3){ margin-top: -28px; }
@media (max-width: 900px){ .dept-photo-grid .ph-tile:nth-child(2), .dept-photo-grid .ph-tile:nth-child(3){ margin-top: 0; } }

/* ---- Generic photo placeholder tile (gallery, departments) ---- */
.ph-tile{
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--slate-100), var(--ocean-light));
  border: 1.5px dashed var(--slate-300);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 16px; overflow: hidden;
}
.ph-tile svg{ width: 30px; height: 30px; color: var(--ocean); opacity: 0.55; }
.ph-tile .ph-label{ font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--slate-600); }
.ph-tile .ph-note{ font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-500); background: var(--white); padding: 3px 8px; border-radius: 999px; position: absolute; top: 10px; right: 10px; border: 1px solid var(--slate-300); }
.ph-tile.cardiac-care-photo{ display: block; padding: 0; }
.ph-tile.cardiac-care-photo img{ width: 100%; height: 100%; object-fit: cover; }
.ph-tile.cardiac-care-photo .ph-label{ position: absolute; right: 16px; bottom: 14px; left: 16px; padding: 8px 10px; color: var(--white); background: rgba(15,23,42,0.72); border-radius: var(--radius-sm); }

/* ---- Gallery grid ---- */
.gallery-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .gallery-grid{ grid-template-columns: 1fr; } }

/* ---- Testimonials ---- */
.testi-grid{ display: flex; width: max-content; gap: 24px; animation: testimonialScroll 72s linear infinite; }
.testi-grid:hover{ animation-play-state: paused; }
.has-real-reviews .container{ overflow: hidden; }
.testi-card{
  background: var(--white); border: 1.5px dashed var(--slate-300); border-radius: var(--radius-lg);
  width: min(360px, 82vw); height: 500px; flex: 0 0 auto; padding: 26px; display: flex; flex-direction: column; gap: 14px;
  animation: testimonialFocus 72s linear infinite;
}
.testi-source{ align-self: flex-start; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ocean-dark); }
.testi-source:hover{ text-decoration: underline; }
.review-text-wrapper{ overflow: hidden; }
.testi-stars{ display: flex; gap: 3px; color: var(--amber); }
.testi-stars svg{ width: 16px; height: 16px; }
.testi-quote{ display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 7; font-size: 0.95rem; color: var(--slate-600); font-style: italic; line-height: 1.55; }
.testi-meta{ display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-shrink: 0; }
.testi-avatar{ width: 38px; height: 38px; border-radius: 50%; background: var(--ocean-light); color: var(--ocean-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.testi-meta .name{ font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.testi-meta .tag{ font-size: 0.78rem; color: var(--slate-500); }
@keyframes testimonialScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@keyframes testimonialFocus{ 0%, 7%{ transform: scale(.92); opacity: .78; } 12%, 24%{ transform: scale(1.04); opacity: 1; } 29%, 100%{ transform: scale(.92); opacity: .78; } }
@media (max-width: 900px){ .testi-card{ height: 460px; } }
@media (max-width: 560px){ .testi-card{ height: 440px; padding: 22px; } .testi-quote{ -webkit-line-clamp: 9; } }
.footer-contact a{ color: inherit; }
.footer-contact a:hover{ color: var(--white); text-decoration: underline; }

/* ---- Google reviews strip ---- */
.reviews-strip{
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card);
}
@media (max-width: 800px){ .reviews-strip{ grid-template-columns: 1fr; } }
.reviews-score{ text-align: center; }
.reviews-score .big-num{ font-family: var(--font-mono); font-weight: 700; font-size: 3rem; color: var(--navy); line-height: 1; }
.reviews-score .stars{ display: flex; justify-content: center; gap: 4px; color: var(--amber); margin: 10px 0; }
.reviews-score .stars svg{ width: 20px; height: 20px; }
.reviews-score .count{ font-size: 0.85rem; color: var(--slate-500); }
.reviews-snips{ display: flex; flex-direction: column; gap: 14px; }
.review-snip{ font-size: 0.88rem; color: var(--slate-600); padding-left: 14px; border-left: 2px solid var(--ocean-light); }
.review-snip .who{ display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-500); margin-top: 4px; }

/* ---- Health checkup packages ---- */
.checkup-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px){ .checkup-grid{ grid-template-columns: 1fr; } }
.checkup-card{
  background: var(--white); border: 1.5px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.checkup-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.checkup-card.featured{ border-color: var(--ocean); box-shadow: 0 16px 32px -14px rgba(2,132,199,0.35); }
.checkup-badge{
  position: absolute; top: -13px; left: 26px;
  background: var(--ocean); color: var(--white); font-family: var(--font-mono); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.checkup-name{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ocean-dark); margin-bottom: 6px; }
.checkup-card h3{ margin-bottom: 10px; }
.checkup-price{ font-family: var(--font-mono); font-weight: 700; font-size: 1.8rem; color: var(--navy); margin-bottom: 4px; }
.checkup-price span{ font-size: 0.85rem; font-weight: 500; color: var(--slate-500); }
.checkup-card .list-check{ margin: 18px 0 24px; flex-grow: 1; }
.checkup-note{ font-size: 0.8rem; color: var(--slate-500); text-align: center; margin-top: 8px; }

/* ---- Map / Visit Us ---- */
.map-split{ display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px){ .map-split{ grid-template-columns: 1fr; } }
.map-embed{ border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-200); min-height: 340px; box-shadow: var(--shadow-card); }
.map-embed iframe{ width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.visit-card{
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.visit-row{ display: flex; gap: 12px; align-items: flex-start; }
.visit-row svg{ flex-shrink: 0; margin-top: 2px; color: #7DD3FC; }
.visit-row .lbl{ font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: #94A3B8; margin-bottom: 3px; }
.visit-row .val{ font-size: 0.92rem; color: #E2E8F0; }

/* ---- Newsletter (footer) ---- */
.newsletter{ display: flex; gap: 8px; margin-top: 16px; }
.newsletter input{
  flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: var(--white); font-size: 0.88rem;
}
.newsletter input::placeholder{ color: #64748B; }
.newsletter input:focus{ outline: none; border-color: var(--ocean); }
.footer-social{ display: flex; gap: 10px; margin-top: 20px; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover{ background: var(--ocean); border-color: var(--ocean); }
.footer-social svg{ width: 16px; height: 16px; color: var(--white); }
.footer-trust-strip{ padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: #94A3B8; }

/* ---- Floating WhatsApp button ---- */
.float-whatsapp{
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; box-shadow: 0 10px 24px -6px rgba(37,211,102,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.float-whatsapp:hover{ transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 28px -6px rgba(37,211,102,0.65); }
.float-whatsapp svg{ width: 28px; height: 28px; color: var(--white); }
@media (max-width: 720px){ .float-whatsapp{ right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 50px; height: 50px; } .float-whatsapp svg{ width: 24px; height: 24px; } }

.float-call{
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--crimson); color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(71,224,60,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.float-call:hover{ transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 28px -6px rgba(71,224,60,0.65); }
.float-call svg{ width: 27px; height: 27px; }
@media (max-width: 720px){ .float-call{ left: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 50px; height: 50px; } .float-call svg{ width: 24px; height: 24px; } }
.about-page .float-whatsapp,
.about-page .mobile-cta-bar{ display: none; }
.hide-page-float-actions .float-whatsapp,
.hide-page-float-actions .float-call,
.hide-page-float-actions .mobile-cta-bar{ display: none; }

@media (max-width: 560px){
  .hero{ height: auto; min-height: 0; padding: 0 0 32px; background: #063b72; }
  .hero::before{ display: none; }
  .hero .hero-grid{ min-height: 0; gap: 0; }
  .hero-mobile-image{ display: block; order: 1; width: calc(100% + 48px); max-width: none; height: auto; margin: 0 -24px -36px; position: relative; z-index: 1; }
  .hero-copy{ order: 2; position: relative; z-index: 2; width: calc(100% + 48px); margin: 0 -24px; padding: 60px 24px 0; background: linear-gradient(180deg, rgba(6,59,114,0) 0, #063b72 46px); }
  .hero-actions{ margin-top: 20px; gap: 10px; }
  .hero-actions .btn{ width: 100%; min-width: 0; min-height: 50px; }
  .hero-features{ order: 3; position: static; width: 100%; margin-top: 28px; }
  .final-cta-banner > .flex{ width: 100%; gap: 8px; }
  .final-cta-banner > .flex .btn{ flex: 1; min-width: 0; padding-left: 8px; padding-right: 8px; font-size: .78rem; }
}

/* ---- Section eyebrow on navy background ---- */
.section.navy .eyebrow{ background: rgba(255,255,255,0.1); color: #7DD3FC; }
.section.navy .section-head p{ color: #CBD5E1; }

/* ---- Book-with-doctor micro CTA ---- */
.doctor-cta{ margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--ocean-dark); }
.doctor-cta:hover{ text-decoration: underline; }

/* ---- Nav active state already covered by .nav-links a.active ---- */

/* ==========================================================================
   SITE-WIDE EXPANSION — multi-page build (About/Departments/Doctors/etc.)
   ========================================================================== */

/* ---- Glassmorphism header on scroll ---- */
.site-header{ transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease; }
.site-header.scrolled{
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px -12px rgba(15,23,42,0.18);
}

/* ---- Page transition fade ---- */
.page-fade{ animation: pageFadeIn 0.5s ease both; }
@keyframes pageFadeIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }
body.leaving{ opacity: 0; transition: opacity 0.22s ease; }
@media (prefers-reduced-motion: reduce){ .page-fade{ animation: none; } body.leaving{ transition: none; opacity: 1; } }

/* ---- Doctor search + filter bar ---- */
.doctor-toolbar{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.doctor-search{ position: relative; flex: 1; min-width: 240px; }
.doctor-search svg{ position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-500); width: 18px; height: 18px; }
.doctor-search input{ width: 100%; padding: 12px 14px 12px 40px; border-radius: 999px; border: 1.5px solid var(--slate-200); font-size: 0.9rem; background: var(--white); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.doctor-search input:focus{ outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px var(--ocean-light); }
.dept-select{ padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--slate-200); background: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--navy); min-width: 220px; }
.dept-select:focus{ outline: none; border-color: var(--ocean); }
.doctor-card.hidden{ display: none !important; }
.doctor-card{ transition: transform 0.25s ease, box-shadow 0.25s ease; }
.doctor-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* ---- Department index cards (clickable) ---- */
.dept-card{
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; position: relative; overflow: hidden;
}
.dept-card::after{ content:""; position:absolute; inset:0; background: linear-gradient(135deg, transparent 60%, var(--ocean-light) 150%); opacity:0; transition: opacity 0.25s ease; }
.dept-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--ocean); }
.dept-card:hover::after{ opacity: 1; }
.dept-card h3, .dept-card .dept-title{
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin-bottom: 12px; position: relative; z-index: 1; transition: color 0.2s ease;
}
.dept-card:hover h3, .dept-card:hover .dept-title{ color: var(--ocean); }
.dept-card p{ position: relative; z-index: 1; flex-grow: 1; }
.dept-card .dept-count{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--ocean-dark); background: var(--ocean-light); display: inline-block; padding: 3px 10px; border-radius: 999px; margin-top: 12px; position: relative; z-index: 1; }
.dept-card .view-link{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-family:var(--font-display); font-weight:700; font-size:0.85rem; color:var(--ocean-dark); position:relative; z-index:1; }

/* ---- Doctor profile page layout ---- */
.doctor-profile-grid{ display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px){ .doctor-profile-grid{ grid-template-columns: 1fr; } }
.doctor-profile-photo{
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center; position: relative;
  border: 1.5px dashed rgba(255,255,255,0.25);
}
.doctor-profile-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.doctor-profile-photo img[src^="assets/"] ~ svg,
.doctor-profile-photo img[src^="assets/"] ~ .ph-note{ display: none; }
.doctor-profile-photo svg{ width: 30%; height: 30%; color: rgba(255,255,255,0.55); }
.doctor-profile-photo .ph-note{ position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); background: rgba(255,255,255,0.9); padding: 4px 9px; border-radius: 999px; }
.doctor-sidebar-card{ background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 22px; margin-top: 18px; box-shadow: var(--shadow-card); }
.doctor-sidebar-card h4{ font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 10px; }
.doctor-sidebar-row{ display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--slate-100); font-size: 0.86rem; }
.doctor-sidebar-row:last-child{ border-bottom: none; }
.doctor-sidebar-row .k{ color: var(--slate-500); }
.doctor-sidebar-row .v{ color: var(--navy); font-weight: 600; text-align: right; }
.doctor-cta-stack{ display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.doctor-profile-name{ margin-bottom: 4px; }
.doctor-profile-dept-chip{ display: inline-block; background: var(--ocean-light); color: var(--ocean-dark); font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.doctor-content-section{ margin-bottom: 34px; }
.doctor-content-section h2{ font-size: 1.4rem; margin-bottom: 14px; }
.placeholder-note-box{
  border: 1.5px dashed var(--amber); background: var(--amber-bg); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 0.85rem; color: #92400E; display: flex; gap: 10px; align-items: flex-start;
}
.placeholder-note-box svg{ flex-shrink: 0; margin-top: 2px; color: var(--amber); }

/* ---- Department detail page ---- */
.dept-hero-stats{ display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.dept-hero-stats .stat-mini .num{ font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--white); }
.dept-hero-stats .stat-mini .lbl{ font-size: 0.76rem; color: #CBD5E1; }
.treatment-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px){ .treatment-grid{ grid-template-columns: 1fr; } }
.treatment-pill{ display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 0.88rem; color: var(--navy); font-weight: 600; }
.treatment-pill svg{ flex-shrink: 0; color: var(--ocean); }

/* ---- Sitemap page ---- */
.sitemap-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.sitemap-col h3{ font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ocean-light); }
.sitemap-col ul{ display: flex; flex-direction: column; gap: 9px; }
.sitemap-col a{ font-size: 0.9rem; color: var(--slate-600); transition: color 0.15s ease, padding-left 0.15s ease; }
.sitemap-col a:hover{ color: var(--ocean-dark); padding-left: 4px; }

/* ---- Legal pages (Privacy / Terms) ---- */
.legal-content{ max-width: 780px; margin: 0 auto; }
.legal-content h2{ font-size: 1.25rem; margin-top: 36px; margin-bottom: 12px; }
.legal-content h2:first-child{ margin-top: 0; }
.legal-content p, .legal-content li{ color: var(--slate-600); font-size: 0.95rem; line-height: 1.75; }
.legal-content ul{ margin: 10px 0 10px 22px; list-style: disc; }
.legal-content li{ margin-bottom: 6px; }
.legal-updated{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-500); margin-bottom: 30px; }
.legal-disclaimer{
  border: 1.5px dashed var(--amber); background: var(--amber-bg); border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 0.86rem; color: #92400E; margin-bottom: 34px;
}

/* ---- Gallery Mosaic (Bento layout matching reference) ---- */
.gallery-mosaic {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mosaic-row {
  display: flex;
  gap: 16px;
  width: 100%;
}
.mosaic-row-1 {
  height: clamp(260px, 28vw, 360px);
}
.mosaic-row-1 .tile-r1-1 {
  flex: 1.15;
}
.mosaic-row-1 .tile-r1-2 {
  flex: 2.15;
}
.mosaic-row-1 .tile-r1-col {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mosaic-row-1 .tile-r1-col .mosaic-tile {
  flex: 1;
}
.mosaic-row-1 .tile-r1-4 {
  flex: 0.48;
}

.mosaic-row-2 {
  height: clamp(260px, 28vw, 360px);
}
.mosaic-row-2 .tile-r2-1 {
  flex: 1.05;
}
.mosaic-row-2 .tile-r2-2 {
  flex: 1.25;
}
.mosaic-row-2 .tile-r2-3 {
  flex: 2.7;
}

.mosaic-row-3 {
  height: clamp(340px, 38vw, 480px);
}
.mosaic-row-3 .tile-r3-tall {
  flex: 1.25;
  height: 100%;
}
.mosaic-row-3 .tile-r3-col {
  flex: 1.65;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.mosaic-row-3 .tile-r3-subrow {
  display: flex;
  gap: 16px;
  flex: 1;
}
.mosaic-row-3 .tile-r3-subrow .mosaic-tile {
  flex: 1;
}
.mosaic-row-3 .tile-r3-wide {
  flex: 1.35;
}

.mosaic-tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  text-align: left;
  outline: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.mosaic-tile:hover img {
  transform: scale(1.06);
}
.mosaic-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 25, 47, 0.88) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mosaic-tile:hover::after {
  opacity: 0.95;
}
.mosaic-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}
.mosaic-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.mosaic-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

@media (max-width: 900px) {
  .mosaic-row-1, .mosaic-row-2, .mosaic-row-3 {
    height: auto;
    flex-wrap: wrap;
  }
  .mosaic-row-1 .tile-r1-1,
  .mosaic-row-1 .tile-r1-2,
  .mosaic-row-1 .tile-r1-col,
  .mosaic-row-1 .tile-r1-4,
  .mosaic-row-2 .tile-r2-1,
  .mosaic-row-2 .tile-r2-2,
  .mosaic-row-2 .tile-r2-3,
  .mosaic-row-3 .tile-r3-tall,
  .mosaic-row-3 .tile-r3-col {
    flex: 1 1 calc(50% - 8px);
    height: 220px;
  }
  .mosaic-row-1 .tile-r1-col {
    display: flex;
    flex-direction: row;
  }
  .mosaic-row-3 .tile-r3-subrow {
    flex-direction: row;
    width: 100%;
  }
}
@media (max-width: 580px) {
  .mosaic-row-1 .tile-r1-1,
  .mosaic-row-1 .tile-r1-2,
  .mosaic-row-1 .tile-r1-col,
  .mosaic-row-1 .tile-r1-4,
  .mosaic-row-2 .tile-r2-1,
  .mosaic-row-2 .tile-r2-2,
  .mosaic-row-2 .tile-r2-3,
  .mosaic-row-3 .tile-r3-tall,
  .mosaic-row-3 .tile-r3-col,
  .mosaic-row-1 .tile-r1-col .mosaic-tile,
  .mosaic-row-3 .tile-r3-subrow .mosaic-tile {
    flex: 1 1 100%;
    height: 200px;
  }
  .mosaic-row-1 .tile-r1-col,
  .mosaic-row-3 .tile-r3-subrow {
    flex-direction: column;
    height: auto;
  }
}

/* ---- Gallery lightbox ---- */
.gallery-tile-btn{ display: block; width: 100%; text-align: left; border: none; background: none; padding: 0; cursor: zoom-in; }
.lightbox-overlay{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  background: rgba(10, 15, 25, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-overlay.open{
  display: flex !important;
  animation: lbFadeIn 0.22s ease forwards;
}
@keyframes lbFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
.lightbox-box{
  background: var(--white);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  padding: 24px;
  text-align: center;
  position: relative;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  animation: lbScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lbScaleIn{
  from{ opacity: 0; transform: scale(0.95); }
  to{ opacity: 1; transform: scale(1); }
}
#lightbox-img{
  width: 100%;
  max-height: 66vh;
  max-height: 66dvh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto 16px;
  background: var(--slate-100);
}
.lightbox-box h3[data-lb-title]{
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
}
#lightbox-desc{
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.lightbox-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--navy);
}
.lightbox-close:hover{
  background: var(--slate-200);
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .lightbox-overlay{
    padding: 12px;
  }
  .lightbox-box{
    padding: 18px 14px 16px;
    border-radius: 16px;
    max-height: 92vh;
    max-height: 92dvh;
  }
  #lightbox-img{
    max-height: 52vh;
    max-height: 52dvh;
    margin-bottom: 12px;
  }
  .lightbox-box h3[data-lb-title]{
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  #lightbox-desc{
    font-size: 0.85rem;
  }
  .lightbox-close{
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
}

/* ---- Glass utility (used sparingly per request) ---- */
.glass-panel{
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
}

/* ---- Appointment page prefill banner ---- */
.prefill-banner{
  display: flex; align-items: center; gap: 12px; background: var(--ocean-light); color: var(--ocean-dark);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.86rem; font-weight: 600; margin-bottom: 20px;
}

/* ---- Skeleton hover lift, applied broadly for consistency ---- */
.dept-list .dept-item .dept-q:hover{ color: var(--ocean-dark); }
.affil-chip{ transition: background 0.15s ease; }

/* ---- Contact page grid & spacing ---- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Global Booking Popup Modal ---- */
.booking-modal-overlay{
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 999999;
  background: rgba(10, 15, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.booking-modal-overlay.open{
  display: flex !important;
  animation: bmFadeIn 0.22s ease forwards;
}
@keyframes bmFadeIn{ from{ opacity:0 } to{ opacity:1 } }

.booking-modal{
  background: var(--white);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 28px;
  position: relative;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.5);
  box-sizing: border-box;
  animation: bmScaleIn 0.22s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes bmScaleIn{ from{ opacity:0; transform:scale(0.95) } to{ opacity:1; transform:scale(1) } }

.booking-modal .bm-close{
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--navy);
}
.booking-modal .bm-close:hover{
  background: var(--slate-200);
  transform: scale(1.08);
}
.booking-modal .bm-header{
  margin-bottom: 24px;
}
.booking-modal .bm-header h3{
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 6px;
}
.booking-modal .bm-header p{
  font-size: 0.9rem;
  color: var(--slate-600);
  margin: 0;
}
.booking-modal .form-group{
  margin-bottom: 16px;
}
.booking-modal .form-group label{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  display: block;
}
.booking-modal .form-control{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  font-family: var(--font-body);
}
.booking-modal .form-control:focus{
  border-color: var(--ocean);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}
.booking-modal .bm-submit{
  width: 100%;
  margin-top: 8px;
}
.booking-modal .bm-note{
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 12px;
}
.booking-modal .bm-success{
  display: none;
  text-align: center;
  padding: 24px 16px;
}
.booking-modal .bm-success.show{
  display: block;
}
.booking-modal .bm-success svg{
  width: 48px; height: 48px;
  color: #16a34a;
  margin-bottom: 12px;
}
.booking-modal .bm-success h4{
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 8px;
}
.booking-modal .bm-success p{
  font-size: 0.9rem;
  color: var(--slate-600);
  margin: 0;
}

@media (max-width: 640px){
  .booking-modal-overlay{ padding: 12px; }
  .booking-modal{
    padding: 28px 20px 22px;
    border-radius: 16px;
    max-height: 94vh;
    max-height: 94dvh;
  }
  .booking-modal .bm-header h3{ font-size: 1.2rem; }
}

/* Security & Form Validation styles */
.form-error-alert {
  display: none;
  background-color: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 10px;
  line-height: 1.45;
  animation: shakeAlert 0.3s ease;
}
.form-error-alert.show {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-error-alert svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #DC2626;
}
.form-control.input-invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18) !important;
  background-color: #FFF5F5 !important;
}
@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

