/* ==========================================================================
   REVIVE DENTAL CLINIC – DUBAI HEALTHCARE CITY
   Modern, Ultra-Responsive, High-Performance Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Luxury Palette derived from original assets */
  --color-primary: #2D261E;          /* Deep Espresso / Rich Charcoal */
  --color-primary-light: #463C32;
  --color-primary-dark: #1A1612;
  --color-secondary: #748467;        /* Calming Medical Sage */
  --color-secondary-soft: #F0F4ED;
  --color-secondary-dark: #58664D;
  --color-accent: #C5A059;           /* Refined Champagne Gold */
  --color-accent-light: #E2C78E;
  --color-accent-dark: #A5823D;
  --color-accent-subtle: #FDF9F0;
  
  /* Neutral & Background Tones */
  --color-bg-base: #FAF8F5;          /* Warm Porcelain Cream */
  --color-bg-surface: #FFFFFF;       /* Pure Crisp White */
  --color-bg-subtle: #F3EFEA;        /* Sand / Taupe Tint */
  --color-bg-dark: #221D17;          /* Midnight Mocha for Footers */
  --color-bg-dark-surface: #2E2721;
  
  /* Text Tones (WCAG AA Compliant contrast ratios) */
  --color-text-main: #24201B;
  --color-text-muted: #61574D;
  --color-text-subtle: #877D72;
  --color-text-on-dark: #FAF8F5;
  --color-text-on-dark-muted: #C8BFB5;
  --color-text-gold: #B88E3E;
  
  /* Functional Colors */
  --color-border: rgba(45, 38, 30, 0.12);
  --color-border-subtle: rgba(45, 38, 30, 0.06);
  --color-border-focus: #C5A059;
  --color-success: #2B7A4B;
  --color-info: #2B6E8C;
  --color-error: #B33A3A;

  /* Typography */
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Fluid Typographic Scale using clamp() */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);    /* 12px - 13px */
  --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);   /* 14px - 15px */
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);      /* 16px - 17px */
  --text-lg: clamp(1.125rem, 1.06rem + 0.35vw, 1.25rem);     /* 18px - 20px */
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);        /* 20px - 24px */
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);     /* 24px - 30px */
  --text-3xl: clamp(1.875rem, 1.65rem + 1.15vw, 2.375rem);   /* 30px - 38px */
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);         /* 36px - 48px */
  --text-5xl: clamp(2.75rem, 2.25rem + 2.5vw, 3.85rem);      /* 44px - 62px */

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 3px rgba(45, 38, 30, 0.05);
  --shadow-sm: 0 3px 8px rgba(45, 38, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 38, 30, 0.09);
  --shadow-lg: 0 16px 40px rgba(45, 38, 30, 0.12);
  --shadow-gold: 0 8px 24px rgba(197, 160, 89, 0.22);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Layout Dimensions */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-pad: clamp(1rem, 4vw, 2.25rem);
  --header-height: 82px;
  --topbar-height: 40px;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. MODERN CSS RESET & GLOBAL SETUP
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal scroll cleanly without breaking sticky */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & HEADINGS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.22;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1.15;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 500;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

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

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  background-color: var(--color-secondary-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.section-eyebrow.gold {
  color: var(--color-text-gold);
  background-color: var(--color-accent-subtle);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.text-center .section-eyebrow,
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTAINERS & GRID UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-spacing {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.section-spacing-sm {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

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

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

.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-text-on-dark);
}

.bg-dark p {
  color: var(--color-text-on-dark-muted);
}

/* Responsive Grids */
.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

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

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

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

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

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

/* --------------------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS (>= 48px touch targets)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  min-height: 48px;
  max-width: 100%;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  text-align: center;
  word-break: normal;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
}

.btn-gold {
  background-color: var(--color-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background-color: var(--color-accent-dark);
  color: #FFFFFF;
}

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

.btn-secondary:hover {
  background-color: var(--color-bg-subtle);
  border-color: var(--color-primary);
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: var(--color-accent-subtle);
  color: var(--color-accent-dark);
}

.btn-sm {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  min-height: 54px;
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

.btn-icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   6. TOP INFO BAR & STICKY HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none; /* hidden on small mobile, shown on tablet+ */
}

@media (min-width: 840px) {
  .top-bar {
    display: block;
  }
}

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

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

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}

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

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}

.top-bar-badge {
  background-color: rgba(197, 160, 89, 0.18);
  color: var(--color-accent-light);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* STICKY HEADER – Pinned permanently without sliding away */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.97);
}

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

/* Logo sits at the start and acts as the home link */
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0.25rem 0;
}

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

/* Desktop Navigation (NO "Home" menu item) */
.nav-desktop {
  display: none;
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent-dark);
  background-color: rgba(197, 160, 89, 0.08);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background-color: rgba(45, 38, 30, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

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

.header-cta {
  display: none;
}

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

/* Mobile Hamburger Toggle (>= 48px touch target) */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

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

.mobile-toggle:hover {
  background-color: rgba(197, 160, 89, 0.15);
}

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

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Hamburger active open state */
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7.75px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7.75px) rotate(-45deg);
}

/* Mobile Drawer (No "Home" link, accessible drawer) */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 22, 18, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background-color: var(--color-bg-surface);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

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

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

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-subtle);
  color: var(--color-primary);
  transition: background-color var(--transition-fast);
}

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

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

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

.drawer-nav-link:hover,
.drawer-nav-link.active {
  background-color: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  font-weight: 600;
}

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

.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.drawer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION & KEY METRICS
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #FAF8F5 0%, #F5EFE6 50%, #ECE5DA 100%);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

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

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent-dark);
  font-family: var(--font-serif);
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-subtle);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-badge-floating {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: calc(100% - 2.5rem);
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-text-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.floating-text-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Trust Bar / Fast Facts */
.trust-bar {
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.trust-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.trust-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. CARD COMPONENTS & FEATURE GRIDS
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 160, 89, 0.4);
}

/* Service Card with Media */
.service-card {
  overflow: hidden;
  padding: 0;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

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

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

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

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

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.service-card-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary-dark);
  margin-bottom: 0.35rem;
}

.service-card-title {
  font-size: var(--text-xl);
  margin-bottom: 0.65rem;
  color: var(--color-primary);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-dark);
}

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

.service-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

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

/* Doctor Specialist Profile Card */
.doctor-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.doctor-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #EFEBE5;
}

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

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

.doctor-badge-overlay {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: rgba(45, 38, 30, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.doctor-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.doctor-role {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.doctor-name {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.doctor-creds {
  font-size: var(--text-xs);
  color: var(--color-secondary-dark);
  font-weight: 600;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.doctor-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.tag-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-xs);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

/* Technology Highlight Cards */
.tech-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.tech-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tech-icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.tech-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.65rem;
}

.tech-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. SMILE GALLERY / BEFORE & AFTER CARDS
   -------------------------------------------------------------------------- */
.gallery-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

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

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

.gallery-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(45, 38, 30, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.gallery-content {
  padding: 1.25rem;
}

.gallery-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.25rem;
}

.gallery-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.gallery-notes {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Gallery Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  color: var(--color-text-main);
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   10. TESTIMONIALS & REVIEWS
   -------------------------------------------------------------------------- */
.review-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

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

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  flex: 1 0 auto;
}

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

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
}

.review-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.review-source {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   11. ACCORDION FAQ COMPONENT (ARIA Compliant)
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

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

.faq-item.is-open {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  min-height: 48px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--color-accent-dark);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base), background-color var(--transition-fast);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background-color: var(--color-accent);
}

.faq-item.is-open .faq-icon svg {
  fill: #FFFFFF;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.faq-item.is-open .faq-content {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
  padding: 0 1.5rem;
}

.faq-item.is-open .faq-inner {
  padding-bottom: 1.25rem;
}

.faq-inner p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. BOOKING & INQUIRY FORM
   -------------------------------------------------------------------------- */
.form-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}

.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: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  background-color: #FFFFFF;
}

.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: var(--text-sm);
}

.form-feedback.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #E8F5E9;
  color: var(--color-success);
  border: 1px solid #C8E6C9;
}

/* --------------------------------------------------------------------------
   13. MULTI-COLUMN FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  font-size: var(--text-sm);
}

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

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

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.85fr 1fr 1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 1.25rem;
  display: inline-block;
}

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

.footer-desc {
  color: var(--color-text-on-dark-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-accent);
}

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

.footer-link {
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-accent-light);
  transform: translateX(3px);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-on-dark-muted);
  line-height: 1.45;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: start;
  }
}

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

.footer-legal-links a:hover {
  color: var(--color-accent-light);
}

/* --------------------------------------------------------------------------
   14. BACK-TO-TOP BUTTON (Fixed, >= 48px)
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(197, 160, 89, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background-color var(--transition-fast);
}

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

.back-to-top:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-lg);
}

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

/* --------------------------------------------------------------------------
   15. HELPER CLASSES & ACCESSIBILITY
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--color-accent-dark);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* Comparison Table for Services */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  box-shadow: var(--shadow-xs);
  margin-top: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: var(--text-sm);
}

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

.comparison-table th {
  background-color: var(--color-bg-subtle);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

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

.comparison-table tr:hover td {
  background-color: rgba(197, 160, 89, 0.04);
}
