/* ==========================================================================
   SUNCITY POLYCLINIC - MODERN PRODUCTION STYLESHEET
   Location: Batha, Riyadh, Kingdom of Saudi Arabia
   Design System: Healthcare Fluid Responsive Architecture (WCAG 2.1 AA Compliant)
   ========================================================================== */

/* --- CSS Custom Properties & Design Tokens --- */
:root {
  /* Brand Palette */
  --primary: #1d4ed8;            /* Trust & Medical Clinical Blue */
  --primary-dark: #1e3a8a;       /* Deep Navy for headings and accents */
  --primary-light: #eff6ff;      /* Soft ice blue tint for backgrounds */
  --primary-hover: #1e40af;      /* Hover state */
  --primary-alpha10: rgba(29, 78, 216, 0.1);
  --primary-alpha20: rgba(29, 78, 216, 0.2);

  --secondary: #0d9488;          /* Vitality Teal / Clinical Hygiene */
  --secondary-dark: #115e59;
  --secondary-light: #f0fdfa;
  
  --accent-gold: #d97706;        /* Sun City Warm Amber Gold */
  --accent-gold-light: #fef3c7;
  
  --emergency: #dc2626;          /* Medical Emergency Red */
  --emergency-hover: #b91c1c;
  --emergency-bg: #fef2f2;
  --emergency-border: #fca5a5;

  --success: #15803d;
  --success-bg: #f0fdf4;
  
  /* Neutral Palette */
  --text-main: #0f172a;          /* Slate 900 for high-contrast body */
  --text-muted: #475569;         /* Slate 600 for secondary copy */
  --text-light: #64748b;         /* Slate 500 for captions and subtle labels */
  --text-inverse: #ffffff;

  --bg-page: #f8fafc;            /* Clean Slate 50 backdrop */
  --bg-surface: #ffffff;         /* Pure White card/section surfaces */
  --bg-subtle: #f1f5f9;          /* Slate 100 for secondary modules */
  --bg-dark: #0f172a;            /* Dark surface for footer */
  --bg-dark-surface: #1e293b;

  --border-subtle: #e2e8f0;      /* Slate 200 */
  --border-medium: #cbd5e1;      /* Slate 300 */
  --border-focus: #3b82f6;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevations & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 32px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Spacing */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 40px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* strict overflow rule: never use overflow: hidden or auto */
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw + 0.5rem, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

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

/* Prevent layout shift container */
.img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
}

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

/* Touch target minimum */
button, input, select, textarea, .btn, a.btn {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

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

/* --- Container & Grid Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section-subtle {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid var(--primary-alpha20);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
}

/* --- Buttons & Interactive Controls --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-inverse);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text-inverse);
}

.btn-outline-white:hover {
  background-color: var(--text-inverse);
  color: var(--primary-dark);
  border-color: var(--text-inverse);
}

.btn-emergency {
  background-color: var(--emergency);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-emergency:hover {
  background-color: var(--emergency-hover);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

/* --- Top Announcement & Emergency Bar --- */
.top-bar {
  background-color: #0b192c;
  color: #e2e8f0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.top-bar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: #ffffff;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.top-bar-multilingual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.lang-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-pill {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* --- Sticky Modern Header & Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.975rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: 44px;
}

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

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background-color: var(--bg-subtle);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: -100%;
  width: min(360px, 85vw);
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  transition: inset-inline-end 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  inset-inline-end: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-md);
  min-height: 48px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

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

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Emergency Banner Strip --- */
.emergency-strip {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #ffffff;
  padding-block: 0.75rem;
}

.emergency-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.emergency-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.emergency-pulse-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.emergency-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.emergency-subtitle {
  font-size: 0.85rem;
  color: #fecaca;
  margin: 0;
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.emergency-call-btn {
  background: #ffffff;
  color: var(--emergency);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.emergency-call-btn:hover {
  background: #fff5f5;
  color: var(--emergency-hover);
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-color: #0b192c;
  background-image: linear-gradient(135deg, rgba(11, 25, 44, 0.92) 0%, rgba(15, 23, 42, 0.82) 100%), url('./assets/frontend/images/bg_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding-block: clamp(4rem, 8vw, 7.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(29, 78, 216, 0.3);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-title .text-accent {
  color: #60a5fa;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.hero-highlight-text strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
}

.hero-highlight-text span {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Hero Schedule Card (Unified, High-Contrast Accessible Card) */
.hero-schedule-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
}

.schedule-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.schedule-slider-container {
  position: relative;
  min-height: 220px;
}

.schedule-slide {
  display: none;
  animation: fadeIn 0.4s ease;
}

.schedule-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.schedule-doctor-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.schedule-doctor-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-light);
  background-color: var(--bg-subtle);
  flex-shrink: 0;
}

.schedule-doctor-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.schedule-doctor-dept {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

.schedule-timing-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-inline-start: 4px solid var(--primary);
}

.timing-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.timing-row:last-child {
  margin-bottom: 0;
}

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

.timing-value {
  font-weight: 600;
  color: var(--text-main);
}

.schedule-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.schedule-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.schedule-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: #ffffff;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.schedule-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.schedule-status-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Features & Services Grid --- */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 680px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Feature & Service Cards */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-xs);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-alpha20);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08);
  background-color: var(--primary);
  color: var(--text-inverse);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.feature-card .card-action {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Department Media Card */
.dept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-alpha20);
}

.dept-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.dept-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dept-card:hover .dept-media img {
  transform: scale(1.06);
}

.dept-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.dept-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.dept-body p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.dept-specialists {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-light);
}

.dept-specialists strong {
  color: var(--text-main);
}

/* --- Dentacare Spotlight Section --- */
.dentacare-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.dentacare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .dentacare-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.dentacare-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.dentacare-title {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.dentacare-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.dentacare-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .dentacare-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.denta-feat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.denta-feat-item h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.denta-feat-item p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

/* --- Doctor Directory Card --- */
.doctor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-alpha20);
}

.doctor-avatar-wrap {
  aspect-ratio: 1 / 1;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.doctor-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-avatar-wrap img {
  transform: scale(1.05);
}

.doctor-badge {
  position: absolute;
  bottom: 0.75rem;
  inset-inline-start: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.doctor-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-name {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.doctor-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.doctor-qualifications {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.doctor-schedule-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  border-inline-start: 3px solid var(--accent-gold);
}

.doctor-card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

/* --- Achievements Counter Section --- */
.achievements-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Health Packages & Pricing --- */
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.pricing-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-light);
}

.pricing-tests-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-tests-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.pricing-check-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Insurance Networks Grid --- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.insurance-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.insurance-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-alpha20);
}

.insurance-item img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter var(--transition-fast);
}

.insurance-item:hover img {
  filter: grayscale(0%);
}

/* --- Patient Reviews & Testimonials --- */
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

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

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #eab308;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--bg-subtle);
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin: 0;
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Forms & Inputs --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha20);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

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

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Modals (Accessible Dialogs) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-dialog-lg {
  max-width: 900px;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  margin: 0;
  color: var(--primary-dark);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-subtle);
}

.modal-body {
  padding: 1.5rem;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  inset-inline-end: 1.75rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* --- Multi-Column Footer --- */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-brand h2 {
  margin-bottom: 1.25rem;
}

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

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: #cbd5e1;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Social Icon Row */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Toast Notification for form submissions */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  border-inline-start: 4px solid var(--success);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Accessibility screen reader utility */
.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;
}
