/* ==========================================================================
   Horizon Dental Clinics (عيادات هورايزن لطب الأسنان)
   Production-Grade Stylesheet - Modern Medical UI / RTL Native
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  /* Color Palette - WCAG AA Compliant */
  --primary: #0b7270;         /* Primary Medical Teal (5.2:1 against white) */
  --primary-hover: #085453;
  --primary-light: #e6f7f6;
  --primary-glow: rgba(11, 114, 112, 0.15);
  --primary-dark: #053b3a;

  --secondary: #0e273c;       /* Deep Slate Navy */
  --secondary-light: #1e3a54;
  --secondary-hover: #081724;

  --accent-gold: #d97706;     /* Amber Gold for Ratings/Stars */
  --accent-gold-light: #fef3c7;
  --accent-blue: #0284c7;
  --accent-emerald: #059669;

  --text-main: #1a2a36;       /* High Contrast Dark */
  --text-muted: #475569;      /* Slate 600 - Accessible contrast */
  --text-subtle: #64748b;     /* Slate 500 */
  --text-inverse: #ffffff;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-soft: #f8fbfb;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-primary: rgba(11, 114, 112, 0.3);

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

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-base: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
  --line-height-normal: 1.65;
  --line-height-tight: 1.25;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

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

html {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: var(--line-height-normal);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Strictly avoid overflow: hidden or overflow: auto on html or body to keep position: sticky functional */
body {
  direction: rtl;
  text-align: start;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* clips horizontal overflow without disabling sticky */
  position: relative;
}

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  background: var(--secondary);
  color: var(--text-inverse);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent-gold);
}

/* Accessibility: Focus visible outline */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* --- Top Utility Bar --- */
.topbar {
  background: var(--secondary);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

.topbar-item svg {
  width: 15px;
  height: 15px;
  fill: var(--primary-light);
  flex-shrink: 0;
}

.topbar-item a {
  color: inherit;
  transition: color var(--transition-fast);
}

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

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-badge {
  background: rgba(11, 114, 112, 0.35);
  color: #99f6e4;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(153, 246, 228, 0.2);
}

/* --- Sticky Glassmorphism Header --- */
/* Direct child of body, pinned at every scroll position */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

@media (max-width: 480px) {
  .brand-logo img {
    height: 42px;
  }
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

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

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

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
  }

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

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

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    inset-inline: 0.95rem;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
  }
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-search-trigger {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-search-trigger:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-search-trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(11, 114, 112, 0.25);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary-hover);
  color: var(--text-inverse);
  box-shadow: 0 6px 16px rgba(11, 114, 112, 0.35);
  transform: translateY(-1px);
}

.header-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hamburger Toggle Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--primary-light);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

/* Mobile Offcanvas Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: -340px;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: inset-inline-end var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer-overlay.is-active .mobile-drawer {
  inset-inline-end: 0;
}

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

.drawer-header img {
  height: 44px;
  width: auto;
}

.drawer-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.drawer-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.drawer-nav {
  padding: 1.5rem;
  flex: 1;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(11, 114, 112, 0.2);
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.drawer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
  min-height: 40px;
}

/* --- Standard Button Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(11, 114, 112, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-inverse);
  box-shadow: 0 6px 20px rgba(11, 114, 112, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(14, 39, 60, 0.25);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: var(--text-inverse);
  box-shadow: 0 6px 20px rgba(14, 39, 60, 0.35);
  transform: translateY(-2px);
}

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

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

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--secondary);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebc59;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Section Formatting --- */
.section {
  padding: 4.5rem 0;
  position: relative;
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }
}

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

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: var(--line-height-normal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0fbfb 60%, #e6f7f6 100%);
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--accent-gold);
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rating-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-title {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-tagline {
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: var(--line-height-normal);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Hero Stats Row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  direction: ltr;
  text-align: start;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Hero Visual Media */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-surface);
  border: 4px solid #ffffff;
}

.hero-media-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1392 / 1536;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-start: -1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

@media (max-width: 767px) {
  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.floating-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
}

.floating-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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

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

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-icon-box img, .service-icon-box svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: var(--line-height-normal);
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition-fast);
  min-height: 40px;
}

.service-link:hover {
  gap: 0.7rem;
  color: var(--primary-hover);
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: scaleX(-1); /* RTL arrow flip */
}

/* Service Detail Block for services.html */
.service-detail-item {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

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

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-soft);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid var(--border-subtle);
}

.feature-pill svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* --- About Preview & Pillars --- */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

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

.pillar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.pillar-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: var(--line-height-normal);
}

/* Video Showcase Box */
.video-showcase {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg-surface);
  position: relative;
  background: var(--secondary);
}

.video-showcase video {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* --- Medical Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.team-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.team-card-img {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: #f1f5f9;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.team-card:hover .team-card-img img {
  transform: scale(1.04);
}

.team-card-body {
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

.team-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.team-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.35rem;
}

/* --- Patient Testimonials --- */
.testimonials-section {
  background: linear-gradient(180deg, var(--bg-surface-alt) 0%, #ffffff 100%);
}

.rating-summary-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.rating-overall {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.rating-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}

.rating-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rating-details .stars svg {
  width: 20px;
  height: 20px;
}

.rating-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.google-badge img {
  height: 40px;
  width: auto;
}

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

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

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

.testimonial-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.patient-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
}

.patient-meta span {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.testimonial-quote {
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: normal;
  flex: 1;
}

.doctor-mentioned {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-alt);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- Clinic Comparison Matrix (Fixes SEO-06) --- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  min-width: 600px;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-surface-soft);
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.95rem;
}

.comparison-table th.highlight, .comparison-table td.highlight {
  background: rgba(11, 114, 112, 0.05);
  color: var(--primary);
  font-weight: 700;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

.cross-icon {
  color: #ef4444;
  font-weight: bold;
}

/* --- Gallery & Lightbox --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 39, 60, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  inset-inline-end: 0;
  color: #ffffff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
  text-align: start;
  gap: 1rem;
  min-height: 52px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background: var(--bg-surface-soft);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
}

/* --- Call to Action Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #153852 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset-inline-end: -100px;
  top: -100px;
  width: 300px;
  height: 300px;
  background: rgba(11, 114, 112, 0.2);
  border-radius: var(--radius-full);
  filter: blur(50px);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-inline: auto;
}

.cta-banner-title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-banner-text {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: var(--line-height-normal);
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Forms & Inputs (Booking & Contact) --- */
.form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .form-card {
    padding: 1.75rem 1.25rem;
  }
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

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

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

.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--bg-surface-alt);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  min-height: 48px;
  transition: all var(--transition-fast);
}

.radio-label input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.radio-label:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  display: none;
}

.form-alert.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Contact Page Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-text strong {
  display: block;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

/* Map Card */
.map-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-top: 2rem;
}

.map-placeholder {
  background: #e2e8f0;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  position: relative;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--primary);
  margin-bottom: 1rem;
}

/* --- Search Modal --- */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

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

.search-dialog {
  background: var(--bg-surface);
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.search-dialog-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.search-dialog-header svg {
  width: 22px;
  height: 22px;
  fill: var(--text-subtle);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  font-size: 1.1rem;
  color: var(--text-main);
}

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.search-result-item {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--primary-light);
}

.search-result-item strong {
  display: block;
  color: var(--secondary);
  font-size: 0.95rem;
}

.search-result-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Floating Quick Action Bar & Back to Top --- */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-float {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.btn-float.whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-float.whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.btn-float.phone {
  background: var(--primary);
  color: #ffffff;
}

.btn-float.phone svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

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

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

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Comprehensive Multi-Column Footer --- */
.site-footer {
  background: var(--secondary);
  color: #e2e8f0;
  padding-top: 4.5rem;
  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 img {
  height: 52px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-about {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 35px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: #cbd5e1;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
}

.footer-link:hover {
  color: #ffffff;
  inset-inline-start: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: inherit;
}

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

/* Newsletter in Footer */
.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-newsletter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  flex: 1;
}

.footer-newsletter-input:focus {
  border-color: var(--primary);
}

.footer-newsletter-btn {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 48px;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.footer-newsletter-btn:hover {
  background: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Responsive Helpers & Micro-Adjustments --- */
@media (max-width: 480px) {
  .hero-ctas .btn {
    width: 100%;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }
}
