/* ==========================================================================
   RUPAM HOSPITAL - CORE DESIGN SYSTEM & STYLESHEET
   Tagline: Your Health, Our Priority
   Brand Colors: Medical Blue (#0c4ea2), Green (#3bb346), Red (#dc2626)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0c4ea2;
  --primary-hover: #093c7d;
  --primary-light: #eff6ff;
  --primary-subtle: #dbeafe;
  
  --secondary: #3bb346;
  --secondary-hover: #2e8d38;
  --secondary-light: #f0fdf4;
  
  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-red-light: #fef2f2;
  
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP INFORMATION BAR
   ========================================================================== */
.top-bar {
  background: var(--bg-dark);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.top-phone-btn {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.top-phone-btn:hover {
  background: var(--accent-red-hover);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 56px;
  width: auto;
  object-contain: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--text-main);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-header {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 6px 16px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.btn-header-cta {
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(12, 78, 162, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #09346f 0%, #0c4ea2 50%, #061d40 100%);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #bae6fd;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.hero-title span {
  color: #7dd3fc;
}

.hero-desc {
  font-size: 1.0625rem;
  color: #e0f2fe;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.hero-feat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.hero-feat-card strong {
  display: block;
  font-size: 0.8125rem;
  color: #34d399;
  text-transform: uppercase;
}

.hero-feat-card span {
  font-size: 0.75rem;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-emergency {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-emergency:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
}

.btn-hero-book {
  background: #fff;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-hero-book:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-media-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-media-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  padding: 24px;
  color: #fff;
}

.hero-media-overlay strong {
  color: #34d399;
  font-size: 0.75rem;
  text-transform: uppercase;
  display: block;
}

.hero-media-overlay p {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* ==========================================================================
   QUICK ACCESS CARDS
   ========================================================================== */
.quick-access-section {
  position: relative;
  margin-top: -45px;
  z-index: 20;
  margin-bottom: 60px;
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.quick-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.quick-card-icon.red { background: #fee2e2; color: #dc2626; }
.quick-card-icon.blue { background: #dbeafe; color: #0c4ea2; }
.quick-card-icon.green { background: #dcfce7; color: #16a34a; }
.quick-card-icon.purple { background: #ede9fe; color: #7c3aed; }

.quick-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.quick-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.quick-card-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-card-link.red { color: var(--accent-red); }

/* ==========================================================================
   SECTIONS & HEADINGS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES & CARDS GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #e2e8f0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

.service-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-card-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.service-card-procedures {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-bottom: 20px;
}

.procedure-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.procedure-item span.bullet {
  color: var(--secondary);
  font-weight: bold;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.btn-link-action {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-subtle-cta {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.btn-subtle-cta:hover {
  background: var(--primary-subtle);
}

/* ==========================================================================
   DOCTORS ROSTER
   ========================================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doctor-media {
  height: 220px;
  background: #f1f5f9;
  position: relative;
}

.doctor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Doctor photos vary between square and portrait source images; "top"
     cropped straight from the bottom and cut off chins on wide/mobile
     cards. A slight bias above center keeps headroom without losing the
     lower half of the face. */
  object-position: center 25%;
}

.doctor-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fde047;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.doctor-body {
  padding: 20px;
}

.doctor-dept {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.doctor-name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.doctor-qual {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.doctor-timing-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.doctor-timing-box strong {
  display: block;
  color: var(--text-main);
  font-size: 0.6875rem;
}

/* ==========================================================================
   FORMS & APPOINTMENT ENQUIRY
   ========================================================================== */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: var(--bg-page);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 78, 162, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(12, 78, 162, 0.25);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.alert-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ==========================================================================
   ACCORDIONS
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  background: var(--bg-white);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
}

.faq-trigger:hover {
  background: var(--bg-page);
}

.faq-content {
  padding: 0 22px 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-content {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-brand-box {
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand-box img {
  height: 48px;
  width: auto;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 20px 0;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
}

/* ==========================================================================
   STICKY BOTTOM-RIGHT CALL + WHATSAPP FLOATING BUTTONS (all devices)
   Rounded circular icon buttons, stacked tight bottom-right
   ========================================================================== */
.floating-contact-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #fff;
}

.float-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.float-btn svg {
  flex-shrink: 0;
}

.float-call {
  background: #0f172a;
  color: #fff;
}

.float-wa {
  background: #22c55e;
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE SPLIT LAYOUTS (replace fixed inline grids)
   All two/three-column content splits collapse to one column on tablets/phones.
   ========================================================================== */
.split-2, .split-12-8, .split-11-9, .split-1-12, .split-13-7 {
  display: grid;
  align-items: start;
}

.split-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
.split-12-8 { grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
.split-11-9 { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.split-1-12 { grid-template-columns: 1fr 1.2fr; gap: 40px; }
.split-13-7 { grid-template-columns: 1.3fr 0.7fr; gap: 36px; }

.split-2.align-center, .split-12-8.align-center, .split-11-9.align-center,
.split-1-12.align-center, .split-13-7.align-center {
  align-items: center;
}

/* Small 2-up chip grids (procedures, specializations, features) */
.chips-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 3-up grids (gallery) */
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Wrapping CTA button rows */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Alternating facility feature rows */
.facility-row {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.facility-media {
  height: 360px;
  overflow: hidden;
  position: relative;
}

.facility-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-body {
  padding: 40px;
}

/* Detail-page hero images */
.dept-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.article-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

/* Gallery thumbnails */
.gallery-thumb {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Embedded Google Maps */
.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

.map-frame.tall {
  height: 380px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .top-bar { display: none; }
  .nav-menu, .btn-header-cta { display: none; }
  .hamburger-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .quick-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* Floating Call/WhatsApp buttons are visible on all devices — no body offset needed */
  /* Collapse content splits + facility rows on tablets */
  .split-2, .split-12-8, .split-11-9, .split-1-12, .split-13-7 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .trio-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-row { grid-template-columns: 1fr; }
  .facility-media { order: 1 !important; height: 260px; }
  .facility-body { order: 2 !important; padding: 28px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .quick-cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-emergency, .btn-hero-book { width: 100%; justify-content: center; }
  /* Phone-size refinements */
  .section { padding: 56px 0; }
  .section-title { font-size: 1.625rem; }
  .hero-section { padding: 48px 0 64px; }
  .quick-access-section { margin-bottom: 40px; }
  .form-card { padding: 22px; }
  .chips-2 { grid-template-columns: 1fr; }
  .trio-grid { grid-template-columns: 1fr; }
  .top-bar-location { display: none; }
  .dept-hero-img { height: 220px; }
  .article-hero-img { height: 220px; }
  .gallery-thumb { height: 200px; }
  .map-frame { height: 280px; }
  .map-frame.tall { height: 300px; }
  .facility-media { height: 220px; }
  .facility-body { padding: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .floating-contact-wrap { right: 12px; bottom: 12px; gap: 10px; }
  .float-btn { width: 52px; height: 52px; }
}
