/* ==========================================================================
   Lasting Smile Dental Clinics (عيادات البسمة الدائمة)
   Modern Design System & Responsive Stylesheet
   Direction: RTL (Arabic First)
   WCAG 2.1 AA Compliant | Mobile-First Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette - Contrast Validated for WCAG AA (>4.6:1) */
  --color-primary-navy: #0b2545;     /* Dark Navy - Headings, Heavy Accents */
  --color-primary: #0e638b;          /* Darkened Brand Blue (4.78:1 contrast on white) */
  --color-primary-hover: #0a4a68;    /* Deep Hover Blue */
  --color-accent: #0284c7;           /* Vibrant Medical Cyan */
  --color-accent-light: #e0f2fe;     /* Soft Cyan Tint */
  --color-teal: #0d9488;             /* Medical Teal */
  --color-teal-light: #ccfbf1;       /* Soft Teal Tint */
  --color-gold: #d97706;             /* Warm Gold for Ratings & Badges */
  --color-gold-light: #fef3c7;       /* Soft Gold Tint */
  --color-success: #16a34a;          /* Success Green */
  --color-success-light: #dcfce7;
  --color-danger: #dc2626;           /* Emergency / Error Red */
  --color-danger-light: #fee2e2;

  /* Surfaces & Backgrounds */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #f1f7fa;
  --bg-surface-elevated: #ffffff;
  --bg-navy-gradient: linear-gradient(135deg, #0b2545 0%, #134e6f 100%);
  --bg-hero-gradient: linear-gradient(135deg, #f0f7fb 0%, #ffffff 50%, #e6f2f8 100%);

  /* Typography Colors */
  --text-primary: #0f172a;           /* Dark Slate 900 */
  --text-secondary: #334155;         /* Slate 700 */
  --text-muted: #64748b;             /* Slate 500 (Contrast >= 4.5:1 on light) */
  --text-inverse: #ffffff;           /* White for Dark Backgrounds */
  --text-inverse-muted: #cbd5e1;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-primary-tint: #b9e0f2;

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

  /* Shadows (Fluid & Layered) */
  --shadow-xs: 0 1px 2px 0 rgba(11, 37, 69, 0.05);
  --shadow-sm: 0 2px 6px -1px rgba(11, 37, 69, 0.07), 0 1px 4px -1px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(11, 37, 69, 0.09), 0 2px 6px -1px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(11, 37, 69, 0.12), 0 6px 12px -2px rgba(11, 37, 69, 0.06);
  --shadow-xl: 0 24px 44px -8px rgba(11, 37, 69, 0.15), 0 10px 18px -4px rgba(11, 37, 69, 0.08);

  /* Typography Scale */
  --font-family: 'Alexandria', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Containers */
  --container-max: 1280px;
  --header-height: 84px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography (Strict RTL, Mobile-First)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-body);
  color: var(--text-primary);
  direction: rtl;
  text-align: start;
}

/* Strictly avoid overflow: hidden on html/body as it breaks sticky header */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
  font-weight: 400;
  overflow-x: clip; /* Clean non-breaking clipping without disabling sticky */
}

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

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent);
}

/* Keyboard Accessible Focus Visible */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Media Elements */
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Headings Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-navy);
  line-height: var(--line-height-tight);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 4vw + 1rem, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.4rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.3rem, 1.6rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-secondary);
  line-height: var(--line-height-loose);
  text-wrap: pretty;
}

/* Section Tag / Subtitle Badges */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.section-tag.light {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-inverse);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header.start {
  text-align: start;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

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

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  min-height: 48px;
  min-width: 48px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.975rem;
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border: 1px solid var(--color-primary);
}

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

.btn-secondary {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  border: 1px solid var(--border-primary-tint);
}

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

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

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

.btn-white {
  background-color: #ffffff;
  color: var(--color-primary-navy);
  border: 1px solid #ffffff;
}

.btn-white:hover {
  background-color: #f1f5f9;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-emergency {
  background-color: var(--color-danger);
  color: var(--text-inverse);
  border: 1px solid var(--color-danger);
}

.btn-emergency:hover {
  background-color: #b91c1c;
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border: 1px solid #25d366;
}

.btn-whatsapp:hover {
  background-color: #1ebd5b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

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

/* --------------------------------------------------------------------------
   4. Header & Sticky Glassmorphism Navigation
   -------------------------------------------------------------------------- */
/* Top Information Bar */
.top-bar {
  background-color: var(--color-primary-navy);
  color: var(--text-inverse);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-inverse-muted);
}

.top-bar-item a {
  color: var(--text-inverse);
  font-weight: 500;
}

.top-bar-item a:hover {
  color: var(--color-accent-light);
}

.top-bar-badge {
  background-color: rgba(2, 132, 199, 0.3);
  color: #7dd3fc;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Main Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

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

/* Brand Logo (Starts at the right in RTL, is the Home link) */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 48px;
  min-width: 48px;
}

.header-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.header-logo:hover .header-logo-img {
  transform: scale(1.02);
}

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

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
}

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

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

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

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

.header-phone-quick {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary-navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  min-height: 48px;
}

@media (min-width: 1200px) {
  .header-phone-quick {
    display: inline-flex;
  }
}

.header-cta-btn {
  display: none;
}

@media (min-width: 640px) {
  .header-cta-btn {
    display: inline-flex;
  }
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  color: var(--color-primary-navy);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
}

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

.hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Mobile Drawer (Accessible off-canvas menu) */
.mobile-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-body);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

[dir="rtl"] .mobile-drawer {
  transform: translateX(100%);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 37, 69, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

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

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--color-primary-navy);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

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

.mobile-drawer-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.mobile-drawer-footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: var(--bg-hero-gradient);
  padding: 3rem 0 4rem;
  overflow: clip;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 4.5rem 0 5.5rem;
  }
}

.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-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: #ffffff;
  border: 1px solid var(--border-primary-tint);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--color-primary-navy);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.2vw + 0.3rem, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: var(--line-height-loose);
  max-width: 600px;
}

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

/* Google Reviews Card in Hero */
.hero-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
}

.hero-reviews-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--color-gold);
}

.hero-reviews-text {
  display: flex;
  flex-direction: column;
}

.hero-reviews-title {
  font-weight: 700;
  color: var(--color-primary-navy);
  font-size: 0.925rem;
}

.hero-reviews-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Visual Composition */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background-color: #ffffff;
  width: 100%;
  max-width: 500px;
}

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

/* Floating Badges on Hero Visual */
.hero-floating-card {
  position: absolute;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.hero-floating-card.start-bottom {
  bottom: -15px;
  inset-inline-start: -10px;
}

.hero-floating-card.end-top {
  top: 20px;
  inset-inline-end: -10px;
  animation-delay: 2s;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

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

.hero-floating-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.hero-floating-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   6. Key Metrics & Statistics Bar
   -------------------------------------------------------------------------- */
.stats-section {
  position: relative;
  background-color: #ffffff;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.stat-card {
  text-align: center;
  padding: 1.25rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.stat-number {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-navy);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   7. Featured Services Grid
   -------------------------------------------------------------------------- */
.services-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.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(3, 1fr);
    gap: 2rem;
  }
}

.service-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon-box {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-primary);
  margin-top: auto;
}

.service-link svg {
  transition: transform var(--transition-fast);
}

[dir="rtl"] .service-link svg {
  transform: rotate(180deg);
}

.service-link:hover svg {
  transform: translateX(-4px) rotate(180deg);
}

/* --------------------------------------------------------------------------
   8. Clinic Environment & Virtual Tour
   -------------------------------------------------------------------------- */
.clinic-tour-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.clinic-tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .clinic-tour-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.clinic-gallery-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.clinic-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.clinic-photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.clinic-photo-card:hover img {
  transform: scale(1.05);
}

.clinic-photo-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.85) 0%, transparent 100%);
  color: #ffffff;
  padding: 1.25rem 0.85rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.clinic-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.clinic-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.clinic-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.clinic-feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.clinic-feature-text p {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   9. Why Choose Us (Dark Navy Section for High Contrast)
   -------------------------------------------------------------------------- */
.why-us-section {
  padding: 5rem 0;
  background: var(--bg-navy-gradient);
  color: var(--text-inverse);
  position: relative;
  overflow: clip;
}

.why-us-section .section-header h2 {
  color: #ffffff;
}

.why-us-section .section-header p {
  color: var(--text-inverse-muted);
}

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

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

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

.why-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.why-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background-color: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.why-card p {
  color: var(--text-inverse-muted);
  font-size: 0.925rem;
}

/* --------------------------------------------------------------------------
   10. Patient Journey (3 Clear Steps)
   -------------------------------------------------------------------------- */
.journey-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

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

@media (min-width: 992px) {
  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.journey-card {
  position: relative;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.journey-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.journey-step-number {
  position: absolute;
  top: -20px;
  inset-inline-start: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.journey-card h3 {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  font-size: 1.3rem;
}

.journey-card p {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   11. Interactive Before/After Smile Transformation Slider
   -------------------------------------------------------------------------- */
.transform-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.transform-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .transform-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

/* Custom Interactive Before/After Component */
.before-after-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid #ffffff;
  user-select: none;
  touch-action: pan-y;
  aspect-ratio: 16 / 10;
}

.before-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-after-layer {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
}

.before-after-layer.after-layer {
  overflow: hidden;
  width: 50%;
  border-inline-end: 3px solid #ffffff;
}

.before-after-layer.after-layer img {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Badges for Before / After */
.ba-badge {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(11, 37, 69, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: 5;
}

.ba-badge.before {
  inset-inline-end: 1rem;
}

.ba-badge.after {
  inset-inline-start: 1rem;
}

/* Slider Handle */
.ba-handle {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  color: var(--color-primary-navy);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  pointer-events: none;
}

/* Accessible Range Input */
.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 15;
  margin: 0;
}

/* Mini Smile Cases Grid */
.mini-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-case-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.mini-case-item:hover {
  transform: scale(1.03);
}

.mini-case-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   12. Doctors & Consultants Team Section
   -------------------------------------------------------------------------- */
.doctors-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

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

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

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

.doctor-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.doctor-img-box {
  position: relative;
  width: 100%;
  background-color: var(--bg-surface);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.doctor-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

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

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

.doctor-specialty {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.doctor-name {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--color-primary-navy);
}

.doctor-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.doctor-book-btn {
  width: 100%;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   13. Patient Reviews & Testimonials Carousel
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.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-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

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

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: var(--line-height-loose);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: normal;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.975rem;
  color: var(--color-primary-navy);
}

.testimonial-info span {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. Educational Health Insights (Blog Section)
   -------------------------------------------------------------------------- */
.blog-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

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

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

.blog-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

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

.blog-img-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-category-tag {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  line-height: var(--line-height-tight);
}

.blog-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-top: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.blog-read-more-btn:hover {
  color: var(--color-primary-hover);
}

/* --------------------------------------------------------------------------
   15. Appointment Booking & Contact Section / Page
   -------------------------------------------------------------------------- */
.booking-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}

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

@media (min-width: 992px) {
  .booking-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.booking-form-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-primary-navy);
}

.form-field label span.required {
  color: var(--color-danger);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 99, 139, 0.15);
}

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

/* Contact Info Sidebar Cards */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

.contact-method-text h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-method-text a,
.contact-method-text p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

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

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.schedule-table tr {
  border-bottom: 1px solid var(--border-light);
}

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

.schedule-table td {
  padding: 0.75rem 0.25rem;
  font-size: 0.925rem;
}

.schedule-table td.day {
  font-weight: 600;
  color: var(--color-primary-navy);
}

.schedule-table td.hours {
  text-align: end;
  color: var(--text-secondary);
}

.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-live-pill.open {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-live-pill.closed {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   16. FAQ Accordion Component
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: #ffffff;
  transition: all var(--transition-base);
}

.faq-item.is-active {
  border-color: var(--border-primary-tint);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  min-height: 56px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.faq-icon-chevron {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.is-active .faq-icon-chevron {
  transform: rotate(180deg);
  background-color: var(--color-primary);
  color: #ffffff;
}

.faq-answer-panel {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: var(--line-height-loose);
  font-size: 0.975rem;
  display: none;
}

.faq-item.is-active .faq-answer-panel {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   17. Page Hero & Breadcrumbs (for Subpages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-navy-gradient);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: var(--text-inverse-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.breadcrumb-nav a {
  color: var(--color-accent-light);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   18. Comprehensive Multi-Column Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-navy);
  color: var(--text-inverse);
  padding-top: 5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 3rem;
  }
}

.footer-brand p {
  color: var(--text-inverse-muted);
  font-size: 0.925rem;
  margin: 1.25rem 0 1.5rem;
  line-height: var(--line-height-loose);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

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

.footer-links-list a {
  color: var(--text-inverse-muted);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-inverse-muted);
  font-size: 0.925rem;
}

.footer-contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

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

.footer-contact-item a:hover {
  color: var(--color-accent-light);
}

.footer-bottom-bar {
  padding: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer-legal-links button {
  color: var(--text-inverse-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.footer-legal-links button:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   19. Back-to-Top Button & Floating Quick Actions
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-navy);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition-base);
}

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

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

/* Floating Quick Actions (Mobile Ergonomics) */
.floating-actions-bar {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 990;
}

.floating-action-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  transition: transform var(--transition-fast);
}

.floating-action-btn:hover {
  transform: scale(1.1);
}

.floating-action-btn.whatsapp {
  background-color: #25d366;
}

.floating-action-btn.phone {
  background-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   20. Accessible Modal Dialogs
   -------------------------------------------------------------------------- */
.accessible-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 37, 69, 0.7);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.accessible-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.accessible-modal.is-open .modal-content-card {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--color-primary-navy);
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: var(--line-height-loose);
  color: var(--text-secondary);
}

.modal-body h4 {
  color: var(--color-primary-navy);
  margin: 1.5rem 0 0.5rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   21. Utilities & Responsive Tweaks
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-primary { color: var(--color-primary); }
.text-navy { color: var(--color-primary-navy); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

/* Grid Gallery on Doctors / Smiles Page */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.filter-tab-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

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

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

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

.gallery-item-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  transition: all var(--transition-base);
}

.gallery-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.gallery-item-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item-info {
  padding: 1rem 1.25rem;
}

.gallery-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.gallery-item-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
}
