/* ============================================================
   Jeevanvruksh Hospital — Complete Responsive Design System
   Brand Identity:
   • Primary Navy Wordmark:   #0B2A4A / #061A2E
   • Tree of Life Green:      #146C3A / #0F5E30
   • Accent Lime Green:       #7FAE2E
   • Red Cross & Hospital Red: #C5221F / #FF4D45
   • Caduceus Royal Blue:     #0D519B
   • Warm Logo Cream:         #FAF7F0 / #FBF7EF
   • Typography:              "Fraunces", "Noto Sans Gujarati", "Inter", sans-serif
   ============================================================ */

:root {
  /* Brand Color Palette */
  --ink: #0B2A4A;
  --ink-deep: #061A2E;
  --green: #146C3A;
  --green-deep: #0F5E30;
  --green-light: #7FAE2E;
  --green-subtle: #EBF4E5;
  --green-glow: rgba(20, 108, 58, 0.20);
  
  --red: #C5221F;
  --red-light: #FDE8E8;
  --red-bright: #FF5A52;
  
  --blue: #0D519B;
  --blue-subtle: #EAF2FB;
  --blue-accent: #1967D2;
  
  --cream: #FAF7F0;
  --cream-alt: #F3EDDE;
  --white: #FFFFFF;
  --muted: #536271;
  --muted-light: #7A8997;
  --line: rgba(11, 42, 74, 0.10);
  --line-strong: rgba(11, 42, 74, 0.18);
  
  --dark: #0A241B;
  --dark-surface: #0E3025;
  --dark-line: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-serif: "Fraunces", "Noto Sans Gujarati", Georgia, serif;
  --font-body: "Noto Sans Gujarati", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* UI Tokens */
  --radius-card: 20px;
  --radius-sub: 12px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(11, 42, 74, 0.05);
  --shadow: 0 4px 20px -6px rgba(11, 42, 74, 0.10), 0 1px 3px rgba(11, 42, 74, 0.04);
  --shadow-lg: 0 18px 40px -15px rgba(11, 42, 74, 0.18);
  --shadow-hover: 0 16px 36px -10px rgba(20, 108, 58, 0.20), 0 2px 8px rgba(11, 42, 74, 0.06);
  --maxw: 1240px;
}

/* ---------- Global Reset & Responsive Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px; /* Prevents auto-zoom on mobile iOS Safari */
}

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

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
}

section {
  position: relative;
  width: 100%;
}

/* Headings: Global Serif Font & Navy Ink */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  word-break: break-word;
}

p {
  margin: 0;
  font-family: var(--font-body);
}

.muted { color: var(--muted); }
.accent { color: var(--green); }

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 46px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(20, 108, 58, 0.28);
}
.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 6px 20px rgba(20, 108, 58, 0.40);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

@media (max-width: 520px) {
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ---------- Header & Navigation ---------- */
header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(11, 42, 74, 0.06);
  background: rgba(250, 247, 240, 0.98);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 8px;
}
.brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(20, 108, 58, 0.2);
  flex-shrink: 0;
}
.brand .wordmark {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .wordmark .hospital {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 24px);
  flex-shrink: 0;
}
.nav-links li {
  flex-shrink: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 42, 74, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 3px 5px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .18s ease;
  line-height: 1;
  font-family: var(--font-body);
  white-space: nowrap;
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn.active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(20, 108, 58, 0.28);
}
.lang-divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
  margin: 0 1px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(11, 42, 74, 0.04);
  transition: all .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-phone:hover {
  color: var(--green);
  background: rgba(11, 42, 74, 0.08);
}
.nav-phone svg { color: var(--green); flex-shrink: 0; }

.nav-toggle {
  display: none;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  touch-action: manipulation;
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
}
.mobile-phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green) !important;
  font-weight: 700 !important;
}

@media (max-width: 1200px) {
  .nav-phone { display: none; }
}

@media (max-width: 1040px) {
  nav { height: 68px; }
  .brand img { height: 38px; width: 38px; }
  .brand .wordmark { font-size: 1.15rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open {
    display: block;
    border-top: 1px solid var(--line);
    background: rgba(250, 247, 240, .98);
    padding: 16px 20px 24px;
    box-shadow: 0 14px 28px rgba(11, 42, 74, 0.10);
    max-height: 80vh;
    overflow-y: auto;
  }
  .mobile-menu a {
    display: block;
    padding: 12px 4px;
    font-size: 15.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(11, 42, 74, 0.06);
  }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Pulse Dot ---------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(20, 108, 58, 0.7);
  animation: pulse-ring 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 108, 58, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(20, 108, 58, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 108, 58, 0); }
}

/* ---------- Hero Section (Home) ---------- */
.hero {
  padding: 132px 0 68px;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.18;
}
.hero h1 .accent {
  text-decoration: underline;
  text-decoration-color: var(--green-light);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.hero-sub {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-cred {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cred-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-subtle);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-cred b { color: var(--ink); font-weight: 700; }
.hero-cred span {
  background: var(--cream-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--green-deep);
  font-size: 12px;
}

/* Doctor Image Presentation */
.hero-visual {
  position: relative;
  width: 100%;
}
.hero-photo-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.hero-photo-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at center, rgba(20, 108, 58, 0.16) 0%, rgba(127, 174, 46, 0.08) 50%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  border-radius: 36px;
}
.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #EFE7D8;
  aspect-ratio: 4 / 4.8;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .4s ease;
}
.hero-photo:hover img { transform: scale(1.02); }

.hero-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 42, 74, 0.10);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.hero-badge.b1 { 
  top: 36%; 
  left: -28px; 
}
.hero-badge.b2 { 
  bottom: 20px; 
  right: -20px; 
}

.badge-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon-wrap.emergency-pulse {
  background: var(--red-light);
  color: var(--red);
}
.badge-icon-wrap.check-badge {
  background: var(--green-subtle);
  color: var(--green);
}
.hero-badge .n {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.hero-badge .l {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.3;
  margin-top: 3px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero { padding: 108px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-wrap { max-width: 380px; }
  .hero-badge.b1 { left: -10px; top: 36%; }
  .hero-badge.b2 { right: -10px; bottom: 12px; }
}
@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-photo-wrap { max-width: 320px; }
  .hero-badge { padding: 8px 12px; gap: 8px; }
  .hero-badge .n { font-size: 1rem; }
  .hero-badge .l { font-size: 10px; white-space: nowrap; }
  .hero-badge.b1 { left: -6px; top: 36%; }
  .hero-badge.b2 { right: -6px; bottom: 8px; }
}

/* ---------- Stats Section ---------- */
.stats {
  background: var(--dark);
  padding: 44px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: left;
  border-left: 1px solid var(--dark-line);
  padding-left: 20px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat .unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat .lbl {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}
@media (max-width: 860px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .stat { border-left: none; padding-left: 0; }
}
@media (max-width: 440px) {
  .stats { padding: 32px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .stat .num { font-size: 20px; }
  .stat .lbl { font-size: 11.5px; }
}

/* ---------- Section Headings ---------- */
.section { padding: 84px 0; }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-head { max-width: 64ch; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; }
.section-head p { margin-top: 12px; font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Departments Category Filters (Home) ---------- */
.dept-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.dept-filter-btn {
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.dept-filter-btn:hover {
  color: var(--ink);
  border-color: var(--green);
  background: var(--cream);
}
.dept-filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 3px 10px rgba(20, 108, 58, 0.25);
}

@media (max-width: 600px) {
  .dept-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .dept-filters::-webkit-scrollbar { display: none; }
}

/* ---------- Departments 8-Card Responsive Grid (Home) ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dept-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.dept-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 108, 58, 0.35);
  box-shadow: var(--shadow-hover);
}
.dept-card.hide { display: none !important; }

.dept-card.featured {
  border-color: rgba(197, 34, 31, 0.20);
  background: linear-gradient(180deg, rgba(253, 232, 232, 0.35) 0%, #FFFFFF 30%);
}
.dept-card.highlight-green {
  border-color: rgba(20, 108, 58, 0.25);
  background: linear-gradient(180deg, rgba(235, 244, 229, 0.5) 0%, #FFFFFF 35%);
}

.dept-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dept-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dept-icon-box.ic-critical { background: #1C0A0A; color: var(--red-bright); }
.dept-icon-box.ic-emergency { background: #1F0D0A; color: #FFA07A; }
.dept-icon-box.ic-specialty { background: var(--dark); color: var(--green-light); }
.dept-icon-box.ic-diagnostics { background: #0A1C2C; color: #5BB2FF; }

.dept-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11, 42, 74, 0.05);
  color: var(--muted);
  white-space: nowrap;
}
.dept-badge.badge-emergency {
  background: var(--red-light);
  color: var(--red);
}
.dept-badge.badge-green {
  background: var(--green-subtle);
  color: var(--green-deep);
}
.dept-badge.badge-blue {
  background: var(--blue-subtle);
  color: var(--blue-accent);
}

.dept-card-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.35;
}
.dept-card-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.dept-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.dh-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(11, 42, 74, 0.04);
  color: var(--ink);
  border: 1px solid rgba(11, 42, 74, 0.06);
}

.dept-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dept-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.dept-book-btn svg { transition: transform .2s ease; }
.dept-card:hover .dept-book-btn svg { transform: translateX(4px); }

@media (max-width: 1100px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .dept-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   PAGE-SPECIFIC: departments.html Detailed Showcase
   ============================================================ */
.page-hero {
  padding: 124px 0 48px;
  background: linear-gradient(180deg, #F5EFE0 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 880px; }
.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.2;
}
.page-hero-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.8vw, 16.5px);
  color: var(--muted);
  line-height: 1.65;
}

/* Quick Jump Pill Navigation */
.dept-quick-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.quick-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all .18s ease;
  white-space: nowrap;
}
.quick-pill:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 108, 58, 0.20);
}

@media (max-width: 768px) {
  .page-hero { padding: 98px 0 36px; }
  .dept-quick-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .dept-quick-nav::-webkit-scrollbar { display: none; }
}

/* Detailed Department Cards */
.dept-detail-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dept-detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 36px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dept-detail-card:hover {
  border-color: rgba(20, 108, 58, 0.3);
  box-shadow: var(--shadow-lg);
}
.dept-detail-card.highlight-green {
  background: linear-gradient(180deg, rgba(235, 244, 229, 0.35) 0%, #FFFFFF 18%);
}

.dept-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.dept-detail-header h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
}
.dept-lead-doc {
  font-size: 13.5px;
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
}
.dept-detail-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 84ch;
}

.dept-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.dept-info-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 700;
}
.dept-check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dept-check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.dept-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.dept-card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.emergency-badge-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .dept-detail-card { padding: 24px 18px; }
  .dept-info-grid { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .dept-detail-header { flex-direction: column; gap: 12px; }
  .dept-card-action-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .action-buttons { width: 100%; }
  .action-buttons .btn { width: 100%; }
}

/* ---------- Why Us Section ---------- */
.whyus { background: var(--dark); color: var(--white); }
.whyus-inner {
  background-image: radial-gradient(rgba(127, 174, 46, .32) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -4px -4px;
  border-radius: 28px;
  padding: 60px 36px;
  text-align: center;
  border: 1px solid var(--dark-line);
}
.whyus-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.whyus h2 {
  color: var(--white);
  font-size: clamp(24px, 3.4vw, 38px);
  max-width: 24ch;
  margin: 0 auto;
}
.whyus p.lead {
  color: rgba(255, 255, 255, .75);
  max-width: 64ch;
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.65;
}
.whyus-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.whyus-feats .chip {
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease;
}
.whyus-feats .chip:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 174, 46, 0.4);
}
.chip-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
}
.chip-txt {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 800px) {
  .whyus-feats { grid-template-columns: 1fr; gap: 12px; }
  .whyus-inner { padding: 40px 18px; }
}

/* ---------- Doctor Showcase Section (Home) ---------- */
.doctor-section { background: var(--cream); }
.doctor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow);
}
.doctor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.doctor-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doctor-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: #EFE7D8;
}
.doctor-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .4s ease;
}
.doctor-photo-frame:hover img { transform: scale(1.02); }

.doc-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(10, 36, 27, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.doc-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Schedule Card */
.doc-schedule-card {
  background: var(--cream-alt);
  border: 1px solid rgba(11, 42, 74, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}
.sched-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.sched-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--ink);
  flex-wrap: wrap;
  gap: 4px;
}
.sched-row .day { font-weight: 600; color: var(--muted); }
.sched-row .time { font-weight: 700; }
.sched-row.em {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(11, 42, 74, 0.12);
  color: var(--red);
}
.sched-row.em .time { font-weight: 700; }

.doctor-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doctor-name { font-size: clamp(26px, 3.2vw, 36px); }
.doctor-degrees {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.degree-main {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.degree-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
}
.doctor-bio {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.doctor-competencies {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doctor-competencies h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-light);
  margin-bottom: 12px;
}
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.comp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.comp-item svg { color: var(--green); flex-shrink: 0; }

.doctor-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .doctor-card { padding: 24px 18px; }
  .doctor-grid { grid-template-columns: 1fr; gap: 32px; }
  .comp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .doctor-actions { flex-direction: column; }
  .doctor-actions .btn { width: 100%; }
}

/* ---------- Emergency Band ---------- */
.emergency {
  background: #0D271E;
  color: var(--white);
  padding: 56px 0;
  border-top: 1px solid var(--dark-line);
}
.em-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.em-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 6px;
}
.em-grid h2 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); }
.em-grid p { color: rgba(255, 255, 255, .75); margin-top: 6px; font-size: 14.5px; max-width: 48ch; }
.em-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.em-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--red-bright);
  transition: transform .15s ease;
}
.em-phone:hover { transform: scale(1.03); }

@media (max-width: 768px) {
  .emergency { padding: 44px 0; }
  .em-grid { flex-direction: column; align-items: flex-start; }
  .em-cta-group { width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; }
  .em-cta-group .btn { width: 100%; }
}

/* ---------- Appointment Section ---------- */
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.appt-info h2 { font-size: clamp(24px, 3vw, 34px); }
.appt-info p { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 44ch; line-height: 1.6; }
.appt-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appt-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.appt-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-subtle);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.appt-contact-card {
  margin-top: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-item svg { color: var(--green); flex-shrink: 0; }
.ac-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-light); font-weight: 700; }
.ac-val { font-size: 13.5px; font-weight: 700; color: var(--ink); }

form.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  padding: 11px 13px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.field .err { font-size: 12px; color: var(--red); min-height: 16px; margin-top: 2px; }
.field.has-err input, .field.has-err select { border-color: var(--red); }
.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-note svg { flex-shrink: 0; color: var(--green); }

.success { display: none; text-align: center; padding: 32px 14px; }
.success.show { display: block; }
.success-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-subtle);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.success h3 { font-size: 20px; color: var(--ink); }
.success p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 44ch; margin-inline: auto; }

@media (max-width: 900px) {
  .appt-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  form.card { padding: 22px 16px; }
}

/* ---------- Hospital Location & Map Section ---------- */
.location-section {
  background: var(--cream);
  padding: 80px 0 88px;
  border-top: 1px solid var(--line);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: stretch;
}
.location-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  gap: 22px;
}
.lic-top h3 {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.25;
}
.lic-top p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.lic-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lic-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lic-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-subtle);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lic-icon-wrap.emergency-icon {
  background: var(--red-light);
  color: var(--red);
}
.lic-text .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-light);
  font-weight: 700;
  margin-bottom: 2px;
}
.lic-text .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.lic-text .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.location-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
}
.loc-pill svg { color: var(--green); }

.location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Map Card */
.location-map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 440px;
}
.map-header {
  padding: 12px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-wrap: wrap;
  gap: 8px;
}
.map-header .map-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-header .map-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  background: var(--green-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.map-frame-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 380px;
  position: relative;
}
.map-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-overlay-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-lg);
  transition: all .2s ease;
}
.map-overlay-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

@media (max-width: 960px) {
  .location-grid { grid-template-columns: 1fr; gap: 24px; }
  .location-map-card { min-height: 360px; }
  .map-frame-wrap { min-height: 320px; }
}
@media (max-width: 520px) {
  .location-info-card { padding: 24px 18px; }
  .location-actions { flex-direction: column; }
  .location-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
footer {
  background: #061710;
  color: rgba(255, 255, 255, 0.7);
  padding: 54px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand .wordmark { color: var(--white); }
.foot-brand .wordmark .hospital { color: var(--red-bright); }
.foot-tagline {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 8px;
}
.foot-brand p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  max-width: 36ch;
  line-height: 1.6;
}
.foot-social {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.foot-social a {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color .15s, color .15s, transform .15s;
}
.foot-social a:hover {
  border-color: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
}
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a, .foot-col li { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); transition: color .15s; }
.foot-col a:hover { color: var(--green-light); }
.foot-col li.addr { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.foot-col li.addr svg { flex-shrink: 0; margin-top: 3px; color: var(--green-light); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}
.foot-credits { color: rgba(255, 255, 255, 0.75); font-weight: 600; }

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
}
@media (max-width: 500px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
