/* ==========================================================================
   ONE TO ONE DENTAL CLINIC – 80 HARLEY STREET, LONDON
   Production Stylesheet | Modern Luxury Medical Architecture
   WCAG AA Compliant | Mobile-First Responsive Framework
   ========================================================================== */

/* --- CSS Custom Properties & Design Tokens --- */
:root {
  /* Brand Color Palette */
  --navy-950: #08121c;
  --navy-900: #0c1926;
  --navy-850: #102133;
  --navy-800: #14283d;
  --navy-700: #1e3a58;
  --navy-600: #2b4f73;
  
  /* Harley Street Champagne Gold */
  --gold-300: #e8dcc6;
  --gold-400: #d7be9a;
  --gold-500: #c5a880;
  --gold-600: #b09166;
  --gold-700: #8f724d;
  --gold-glow: rgba(197, 168, 128, 0.22);
  --gold-subtle: rgba(197, 168, 128, 0.12);

  /* Light Canvas & Surfaces */
  --canvas: #fcfbfa;
  --surface-white: #ffffff;
  --surface-alt: #f5f7f9;
  --surface-cream: #faf7f2;
  --surface-elevated: #ffffff;

  /* Typography & High-Contrast Ink (WCAG AA/AAA Compliant) */
  --ink-primary: #0f172a;       /* Contrast > 12:1 on canvas */
  --ink-secondary: #334155;     /* Contrast > 7:1 on canvas */
  --ink-muted: #596780;         /* Contrast > 4.6:1 on canvas */
  --ink-inverse: #f8fafc;
  --ink-inverse-muted: #cbd5e1;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: rgba(197, 168, 128, 0.28);
  --border-gold: #c5a880;

  /* Status Colors */
  --success: #166534;
  --success-bg: #f0fdf4;
  --emergency: #991b1b;
  --emergency-bg: #fef2f2;
  --info: #075985;
  --info-bg: #f0f9ff;

  /* Spacing Tokens */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout Wrapper */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(12, 25, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 25, 38, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 25, 38, 0.12);
  --shadow-gold: 0 8px 24px rgba(197, 168, 128, 0.2);

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

  /* Typography Stacks */
  --font-serif: "Playfair Display", "Gloock", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid Typography (clamp) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-md: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.375rem);
  --text-3xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --text-4xl: clamp(2.75rem, 2.3rem + 2.2vw, 4rem);

  /* Transition Curves */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Strict Mobile-First & Sticky Preservation:
   NEVER set overflow: hidden / auto on html or body to prevent disabling sticky */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-secondary);
  background-color: var(--canvas);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* High-Contrast Focus Visible Ring (Accessibility WCAG AA) */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink-primary);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  word-wrap: break-word;
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-md); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
h5 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
h6 { font-size: var(--text-md); margin-bottom: var(--space-xs); }

p {
  margin-bottom: var(--space-md);
  color: var(--ink-secondary);
}

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

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

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.site-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION (STICKY PINNED & GLASSMORPHISM)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(12, 25, 38, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.25);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: rgba(10, 20, 31, 0.98);
}

/* Top Utility Bar */
.top-utility-bar {
  background-color: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: var(--ink-inverse-muted);
  padding-block: 0.45rem;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.util-icon {
  width: 14px;
  height: 14px;
  fill: var(--gold-400);
  flex-shrink: 0;
}

.phone-link {
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.02em;
}

.phone-link:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.opening-badge {
  display: none;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .opening-badge {
    display: inline-block;
  }
}

.utility-cta-link {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Main Navigation Bar */
.main-nav-bar {
  padding-block: 0.85rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo at start of header - Home link */
.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--surface-white);
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo .logo-svg-wrap {
  width: 52px;
  height: auto;
  display: flex;
  align-items: center;
}

.header-logo svg {
  width: 100%;
  height: auto;
  fill: var(--gold-400);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--surface-white);
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Desktop Menu (Hidden on Mobile) */
.desktop-nav {
  display: none;
}

@media (min-width: 1040px) {
  .desktop-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #e2e8f0;
  padding: 0.4rem 0.2rem;
  position: relative;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-500);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--gold-400);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold-400);
  font-weight: 600;
}

/* Nav Actions (CTA + Mobile Hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

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

/* Hamburger Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

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

.menu-toggle:hover {
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--gold-400);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gold-300);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: -100%;
  width: min(85vw, 380px);
  height: 100vh;
  background: var(--navy-900);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  z-index: 1050;
  overflow-y: auto;
  transition: inset-inline-end var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid rgba(197, 168, 128, 0.3);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--gold-400);
}

.drawer-close {
  width: 44px;
  height: 44px;
  font-size: 2rem;
  background: transparent;
  color: var(--ink-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.drawer-close:hover {
  color: var(--gold-400);
}

.drawer-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

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

.drawer-link {
  display: block;
  padding: 0.85rem 1rem;
  font-size: var(--text-md);
  font-weight: 500;
  color: #f1f5f9;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold-400);
}

.drawer-link.highlight {
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

.drawer-link.highlight:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

.drawer-contact {
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 168, 128, 0.2);
  font-size: var(--text-sm);
  color: var(--ink-inverse-muted);
}

.drawer-contact-title {
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
}

.drawer-contact p {
  margin-bottom: 0.4rem;
  color: var(--ink-inverse-muted);
}

.drawer-contact a {
  color: var(--surface-white);
}

/* Backdrop for Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   BUTTONS & CALL TO ACTION COMPONENTS
   ========================================================================== */
.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.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  min-height: 48px; /* Touch target size requirement */
  text-align: center;
  white-space: nowrap;
}

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

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: var(--text-base);
  min-height: 52px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.45);
  color: var(--navy-950);
}

.btn-navy {
  background-color: var(--navy-900);
  color: var(--surface-white);
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.btn-navy:hover {
  background-color: var(--navy-800);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
}

.btn-outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}

.btn-outline-navy:hover {
  background: var(--navy-900);
  color: var(--surface-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-850) 100%);
  color: var(--surface-white);
  padding-block: clamp(3rem, 7vw, 6.5rem);
  border-bottom: 1px solid rgba(197, 168, 128, 0.3);
  overflow: clip;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.hero-tagline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 168, 128, 0.14);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.hero-tagline-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.hero-title {
  color: var(--surface-white);
  font-size: var(--text-4xl);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-title .highlight-gold {
  color: var(--gold-400);
  font-style: italic;
}

.hero-lead {
  font-size: var(--text-md);
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: #e2e8f0;
}

.feature-check-icon {
  width: 18px;
  height: 18px;
  fill: var(--gold-400);
  flex-shrink: 0;
}

/* Hero Media Wrapper (CLS Prevention) */
.hero-media-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(197, 168, 128, 0.25);
  aspect-ratio: 16 / 11;
  background-color: var(--navy-800);
}

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

.hero-media-wrap:hover .hero-img {
  transform: scale(1.02);
}

.hero-badge-overlay {
  position: absolute;
  bottom: var(--space-md);
  inset-inline-start: var(--space-md);
  background: rgba(12, 25, 38, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 168, 128, 0.35);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-text-primary {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gold-400);
}

.badge-text-sub {
  font-size: var(--text-xs);
  color: var(--ink-inverse-muted);
}

/* ==========================================================================
   ACCREDITATION & TRUST TICKER
   ========================================================================== */
.trust-bar {
  background-color: var(--navy-900);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  padding-block: var(--space-lg);
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.trust-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  font-weight: 600;
  text-align: center;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.trust-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trust-logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.4);
}

.trust-badge-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.1);
}

/* ==========================================================================
   PAGE SECTIONS & GENERAL CONTENT
   ========================================================================== */
.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

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

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

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

.section-navy h2, .section-navy h3, .section-navy h4 {
  color: var(--surface-white);
}

.section-navy p {
  color: #cbd5e1;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-600);
  margin-bottom: var(--space-xs);
}

.section-navy .section-eyebrow {
  color: var(--gold-400);
}

.section-desc {
  font-size: var(--text-md);
  color: var(--ink-muted);
  line-height: 1.7;
}

.section-navy .section-desc {
  color: #94a3b8;
}

/* ==========================================================================
   SERVICE & PILLAR CARDS (HOMEPAGE & SERVICES)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

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

@media (min-width: 1040px) {
  .cards-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  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: var(--gold-400);
}

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

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

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

.card-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(12, 25, 38, 0.85);
  color: var(--gold-300);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--navy-900);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-bullets {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.bullet-icon {
  width: 14px;
  height: 14px;
  fill: var(--gold-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-900);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

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

.card-link:hover {
  color: var(--gold-600);
}

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

/* ==========================================================================
   FEE GUIDE & INTERACTIVE PRICING TABLES
   ========================================================================== */
.fee-guide-section {
  background-color: var(--surface-white);
}

.fee-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}

.fee-tab-btn {
  padding: 0.75rem 1.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--surface-alt);
  color: var(--navy-900);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.fee-tab-btn:hover {
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--gold-400);
}

.fee-tab-btn.active {
  background: var(--navy-900);
  color: var(--gold-300);
  border-color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(12, 25, 38, 0.15);
}

.fee-tab-panel {
  display: none;
}

.fee-tab-panel.active {
  display: block;
  animation: fadeIn 300ms ease;
}

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

/* Responsive Table Wrapper (Fixing Mobile Clipping and WCAG semantics) */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

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

.fee-table thead {
  background-color: var(--navy-900);
  color: var(--gold-300);
}

.fee-table th {
  padding: 1.1rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  border-bottom: 2px solid var(--gold-500);
}

.fee-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-secondary);
  vertical-align: middle;
}

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

.fee-table tbody tr:hover {
  background-color: rgba(197, 168, 128, 0.05);
}

.fee-service-name {
  font-weight: 600;
  color: var(--navy-900);
  font-size: var(--text-base);
}

.fee-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--surface-alt);
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.fee-amount {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gold-700);
  white-space: nowrap;
}

.fee-note-box {
  background: var(--surface-cream);
  border-inline-start: 4px solid var(--gold-500);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: var(--space-md);
}

/* ==========================================================================
   CLINICIAN LEADERSHIP & TEAM SPOTLIGHT
   ========================================================================== */
.clinicians-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

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

.clinician-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.clinician-portrait-wrap {
  aspect-ratio: 1 / 1;
  background-color: var(--navy-850);
  overflow: hidden;
}

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

.clinician-card:hover .clinician-portrait {
  transform: scale(1.04);
}

.clinician-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.clinician-name {
  font-size: var(--text-xl);
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.clinician-role {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-700);
  margin-bottom: var(--space-sm);
}

.clinician-bio {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.clinician-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.clinician-tag {
  font-size: 0.725rem;
  padding: 0.2rem 0.55rem;
  background: var(--surface-alt);
  color: var(--navy-800);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ==========================================================================
   PATIENT TESTIMONIALS (VERIFIED HARLEY STREET REVIEWS)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

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

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

.testimonial-card {
  background: var(--surface-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-quote-icon {
  width: 32px;
  height: 32px;
  fill: var(--gold-400);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.testimonial-quote {
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-primary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.testimonial-author {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy-900);
}

.testimonial-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--gold-subtle);
  color: var(--gold-700);
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-accordion {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.faq-item:hover {
  border-color: var(--gold-400);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  fill: var(--gold-600);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

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

.faq-panel {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-secondary);
}

.faq-item.open .faq-panel {
  display: block;
}

/* ==========================================================================
   SPLIT CONTENT LAYOUTS (IMAGE + COPY)
   ========================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
  }
  .split-layout.reversed {
    direction: rtl;
  }
  .split-layout.reversed > * {
    direction: ltr;
  }
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background-color: var(--surface-alt);
}

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

/* Medical Infographic Cards (e.g. 8 Systemic Links & Vitamin D) */
.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

@media (min-width: 1040px) {
  .info-cards-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  background: var(--surface-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.info-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.info-card-icon {
  width: 22px;
  height: 22px;
  fill: var(--gold-700);
}

.info-card-title {
  font-size: var(--text-base);
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.info-card-desc {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CONSULTATION BOOKING & CONTACT FORMS
   ========================================================================== */
.booking-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--surface-white);
  border-top: 1px solid rgba(197, 168, 128, 0.3);
  position: relative;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 960px) {
  .booking-grid {
    grid-template-columns: 1.05fr 1.15fr;
  }
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.booking-info h2 {
  color: var(--surface-white);
}

.booking-info p {
  color: #cbd5e1;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(197, 168, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon {
  width: 20px;
  height: 20px;
  fill: var(--gold-400);
}

.channel-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.channel-value {
  font-size: var(--text-base);
  color: var(--surface-white);
  font-weight: 500;
}

.booking-form-card {
  background: var(--surface-white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--ink-primary);
}

.form-title {
  font-size: var(--text-xl);
  color: var(--navy-900);
  margin-bottom: var(--space-xs);
}

.form-subtitle {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 580px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy-900);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-white);
  color: var(--ink-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 46px;
}

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

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

.form-status-alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
  margin-bottom: var(--space-md);
}

.form-status-alert.success {
  display: block;
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   GLOBAL FOOTER & COMPLIANCE ARCHITECTURE
   ========================================================================== */
.site-footer {
  background-color: var(--navy-950);
  color: #94a3b8;
  border-top: 1px solid rgba(197, 168, 128, 0.25);
  padding-top: clamp(3rem, 6vw, 5rem);
  font-size: var(--text-sm);
}

.footer-top-banner {
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

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

.footer-banner-title {
  color: var(--surface-white);
  font-size: var(--text-2xl);
  margin-bottom: 0.35rem;
}

.footer-banner-desc {
  color: #cbd5e1;
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--surface-white);
}

.footer-logo-svg {
  width: 44px;
  height: auto;
  fill: var(--gold-400);
}

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

.footer-links-list a {
  color: #94a3b8;
  transition: color var(--transition-fast), padding-inline-start var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--gold-300);
  padding-inline-start: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.6;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  fill: var(--gold-400);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-accreditations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-xs);
}

.footer-badge-item {
  height: 36px;
  width: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* Bottom Legal Bar */
.footer-bottom-bar {
  padding-block: var(--space-lg);
  font-size: var(--text-xs);
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  text-align: center;
}

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

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.legal-links a:hover {
  color: var(--gold-400);
  text-decoration: underline;
}

/* ==========================================================================
   BACK-TO-TOP BUTTON (WCAG Compliant >= 48px Touch Target)
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background-color: var(--navy-900);
  color: var(--gold-400);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background var(--transition-fast);
}

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

.back-to-top:hover {
  background-color: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.45);
}

.back-to-top-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   INTERACTIVE MODAL DIALOG (E.G. EMERGENCY & CLINICAL PROTOCOLS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 28, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.modal-card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--surface-alt);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
}

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