/* ==========================================================================
   Isle Wight Dentist - islewightdentist.co.uk
   Ultra-Clean, High-Contrast Modern British Healthcare Design System
   100% Crisp, Clear, Legible & Distinct Visual Identity
   ========================================================================== */

:root {
  /* Ultra-Clear Modern Medical Palette */
  --primary: #0a2540;          /* Deep Royal Obsidian Navy - High Contrast */
  --primary-deep: #06182a;
  --primary-light: #163d66;
  --primary-surface: #f0f7ff;
  
  /* Luminous High-Visibility Action Colors */
  --brand-blue: #0066ee;       /* Vibrant Medical Azure CTA */
  --brand-blue-hover: #0052be;
  --brand-blue-soft: #eff6ff;
  --brand-blue-border: #bfdbfe;
  
  /* Official Clinical NHS Identity */
  --nhs-blue: #005eb8;        /* Official NHS England Blue */
  --nhs-blue-dark: #004b93;
  --nhs-light: #eff6ff;
  --nhs-border: #bfdbfe;
  
  /* Urgent / Emergency Care */
  --emergency-red: #dc2626;   /* Crisp Clinical Red */
  --emergency-hover: #b91c1c;
  --emergency-soft: #fef2f2;
  --emergency-border: #fecaca;
  
  /* Ratings & Trust */
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  
  /* High-Contrast Typography & Surface Colors */
  --ink: #0a192f;             /* 100% sharp headings */
  --ink-body: #334155;        /* Crisp readable body */
  --muted: #64748b;           /* Legible secondary text */
  --border: #e2e8f0;          /* Clean subtle borders */
  --border-strong: #cbd5e1;
  
  /* Clean Surfaces */
  --white: #ffffff;
  --surface-light: #f8fafc;
  --surface-card: #ffffff;
  --surface-alt: #f1f5f9;
  
  /* Modern Clean Shadows (No muddy glows) */
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(10, 37, 64, 0.08), 0 2px 6px -1px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 14px 34px -4px rgba(10, 37, 64, 0.12), 0 4px 12px -2px rgba(10, 37, 64, 0.05);
  --shadow-blue: 0 8px 24px -4px rgba(0, 102, 238, 0.35);
  
  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Map legacy variables so all subpages render seamlessly with high clarity */
  --navy: #0a2540;
  --navy-deep: #06182a;
  --navy-soft: #163d66;
  --navy-card: #0f2d4d;
  --teal: #0066ee;
  --teal-hover: #0052be;
  --teal-glow: rgba(0, 102, 238, 0.25);
  --teal-soft: #eff6ff;
  --gold: #0066ee;
  --gold-hover: #0052be;
  --gold-bright: #0284c7;
  --gold-soft: #eff6ff;
  --gold-border: #bfdbfe;
  --coral: #0066ee;
  --coral-hover: #0052be;
  --coral-soft: #eff6ff;
  --coral-border: #bfdbfe;
  --sage-light: #f1f5f9;
  --sage-border: #cbd5e1;
  --surface: #f8fafc;
  --ivory: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.18;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.hero-grid > *,
.split-grid > *,
.treatments-grid > *,
.nhs-bands-grid > *,
.team-grid > *,
.footer-grid > *,
.trust-grid > *,
.gallery-grid > *,
.quick-convert-grid > *,
.form-row-2 > * {
  min-width: 0;
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding: 4rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-sm {
  padding: 2.75rem 0;
}

section[id],
article[id] {
  scroll-margin-top: 100px;
}

.bg-surface { background-color: var(--surface-light); }
.bg-white { background-color: var(--white); }
.bg-navy { background-color: var(--primary); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

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

.section-header.left {
  margin-left: 0;
  text-align: left;
}

/* Eyebrows & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--brand-blue-soft);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.eyebrow.nhs {
  background: var(--nhs-light);
  border-color: var(--nhs-border);
  color: var(--nhs-blue);
}

.eyebrow.danger,
.eyebrow.urgent {
  background: var(--emergency-soft);
  border-color: var(--emergency-border);
  color: var(--emergency-red);
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.95rem;
  color: var(--primary);
}

.section-title .accent {
  color: var(--brand-blue);
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-body);
  line-height: 1.7;
}

/* Modern High-Contrast Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

.btn:active { transform: scale(0.98); }

/* Primary High-Visibility Action (Vibrant Royal Azure) */
.btn-primary,
.btn-blue,
.btn-gold,
.btn-coral {
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  border-color: var(--brand-blue);
}

.btn-primary:hover,
.btn-blue:hover,
.btn-gold:hover,
.btn-coral:hover {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 102, 238, 0.45);
}

/* Authoritative Deep Navy Action */
.btn-navy,
.btn-teal,
.btn-spruce {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.btn-navy:hover,
.btn-teal:hover,
.btn-spruce:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Clean Emergency Button */
.btn-emergency {
  background: var(--emergency-red);
  color: var(--white);
  border-color: var(--emergency-red);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-emergency:hover {
  background: var(--emergency-hover);
  border-color: var(--emergency-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Clean Modern Outlines */
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline-light:hover {
  background: var(--surface-light);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

/* ==========================================================================
   EXECUTIVE TWO-TIER HEALTHCARE HEADER (Crystal Clear & Authoritative)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.05);
  transition: all 0.2s ease;
}

/* Utility Strip - Disabled as requested by user */
.header-utility-bar {
  display: none !important;
}

/* Tier 2: Main Brand & Navigation Bar (Sleek Compact Height & High Visibility) */
.header-main-bar {
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 64px;
  width: 100%;
  max-width: 100%;
}

/* Distinct Brand Lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: transparent;
}

.brand-logo-frame img {
  height: 42px;
  max-height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.12;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  color: #005eb8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
  white-space: nowrap;
}

/* Navigation Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #005eb8;
  background: #f0f7ff;
}

.nav-link.active {
  color: #005eb8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 800;
}

.nav-link.emergency {
  color: #dc2626;
  font-weight: 800;
}

.nav-link.emergency:hover {
  background: var(--emergency-soft);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 110;
}

.nav-dropdown.mega {
  min-width: 460px;
  max-width: 90vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dd-heading {
  grid-column: 1 / -1;
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.nav-dd-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}

.nav-dd-link:hover {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  transform: translateX(3px);
}

.nav-dd-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--surface-light);
  color: var(--muted);
}

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

.header-phone-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border-radius: 6px;
  background: var(--surface-light);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.header-phone-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

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

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  color: var(--primary);
}

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

@media (max-width: 1039px) {
  .desktop-nav { display: none; }
  .header-phone-btn { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* Mobile Slide-Down Drawer */
.mobile-drawer {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--brand-blue);
  padding: 1.25rem;
  color: var(--ink);
}

.mobile-drawer.open { display: block; }

.mobile-drawer-links {
  display: grid;
  gap: 0.45rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--surface-light);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-body);
}

.mobile-drawer-link:hover {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

/* ==========================================================================
   BRAND NEW HERO SECTION (Full-Width Asymmetric Medical Showcase)
   ========================================================================== */
.hero-medical,
.hero-dark,
.hero-light {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 102, 238, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink-body);
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-medical,
  .hero-dark,
  .hero-light {
    padding: 4.5rem 0 5.25rem;
  }
}

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

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

.hero-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--brand-blue-soft);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.hero-medical-title,
.hero-dark-title {
  color: var(--primary);
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-medical-title .accent,
.hero-dark-title .accent,
.hero-dark-title .gold,
.hero-dark-title .mint,
.hero-dark-title .coral {
  color: var(--brand-blue);
}

.hero-medical-copy,
.hero-dark-copy {
  font-size: 1.08rem;
  color: var(--ink-body);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

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

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 700;
}

.hero-trust-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Right Column Hero Visual Card */
.hero-photo-wrap {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.hero-photo-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .hero-photo-frame img { height: 440px; }
}

.hero-floating-nhs-card {
  position: absolute;
  bottom: -18px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   QUICK CONVERT STRIP (Crisp 4-Card Action Grid)
   ========================================================================== */
.quick-convert-strip {
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

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

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

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

.quick-convert-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.quick-convert-tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.quick-convert-tile strong {
  display: block;
  font-size: 0.98rem;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.quick-convert-tile span {
  font-size: 0.83rem;
  color: var(--muted);
}

.tile-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quick-convert-tile:hover .tile-arrow {
  background: var(--brand-blue);
  color: var(--white);
  transform: translateX(3px);
}

/* ==========================================================================
   TREATMENTS & SERVICES GRID (High Clarity Cards)
   ========================================================================== */
.cat-tabs-wrap {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.5rem;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
}

.cat-tabs-wrap::-webkit-scrollbar { display: none; }

@media (min-width: 769px) {
  .cat-tabs-wrap {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
  }
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab-btn:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--border);
}

.cat-tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.service-card.hidden-card {
  display: none !important;
}

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

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

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

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-light);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-full);
  background: rgba(10, 37, 64, 0.88);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-card-body {
  padding: 1.4rem 1.5rem 1rem;
}

.service-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.55rem;
  font-family: 'Outfit', sans-serif;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--ink-body);
  line-height: 1.6;
}

.service-card-footer {
  padding: 1rem 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-light);
  gap: 0.75rem;
}

.service-card-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-blue);
}

/* ==========================================================================
   NHS BANDS & PRICING GRIDS
   ========================================================================== */
.nhs-bands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* Split Grids & Layouts */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.split-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Trust & Feature Grids */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

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

.feature-row {
  display: flex;
  gap: 1rem;
}

.feature-check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* Card Boxes */
.card-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* Hours List */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Page Hero */
.page-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 102, 238, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink-body);
  padding: 3.5rem 0 3.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--primary);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--ink-body);
  max-width: 680px;
  margin: 0 auto;
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-light);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 102, 238, 0.15);
}

/* ==========================================================================
   AUTHORITATIVE SITE FOOTER (Deep Navy & Pure Crisp Typography)
   ========================================================================== */
.site-footer {
  background: #081a2f;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

.footer-heading {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.15rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

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

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

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

.compliance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.compliance-links a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.compliance-links a:hover {
  color: #38bdf8;
}

/* Floating Emergency Call Action Button */
.fcall {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 102, 238, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fcall:hover {
  transform: scale(1.08) translateY(-2px);
  background: var(--brand-blue-hover);
  box-shadow: 0 12px 28px rgba(0, 102, 238, 0.55);
}

.fcall-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.fcall:hover .fcall-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Mobile Bottom Sticky Navigation (Portsmouth Healthcare Standard) */
.mbn { display: none; }

@media (max-width: 1023px) {
  body { padding-bottom: 74px; }

  .fcall {
    right: 14px;
    bottom: calc(64px + 12px);
    width: 48px;
    height: 48px;
  }

  .fcall-tooltip { display: none; }

  .mbn {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 64px;
    background: rgba(11, 31, 58, 0.98);
    border-top: 1.5px solid rgba(217, 119, 6, 0.45);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  }

  .mbn::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: 8%;
    right: 8%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #005eb8, #d97706, #fbbf24, transparent);
    opacity: 0.95;
  }

  .mbni {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
  }

  .mbnit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.25rem 0.15rem;
    color: #94a3b8;
    background: none;
    border: none;
    flex: 1;
    min-width: 0;
    min-height: 46px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease;
    text-decoration: none;
    cursor: pointer;
  }

  .mbnit::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d97706;
    box-shadow: 0 0 8px #fbbf24;
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .mbnit.active::before,
  .mbnit:hover::before { opacity: 1; }

  .mbnit.active,
  .mbnit:hover { color: #ffffff; }

  .mbnico {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .mbnico svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }

  .mbnlbl {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* ==========================================================================
   MODAL & SLIDE-UP SERVICES SHEET (Lead Callback, Enquiry, Mobile Sheet)
   ========================================================================== */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100010 !important;
  background: rgba(11, 31, 58, 0.78) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

.modal-overlay.open {
  display: flex !important;
}

.modal-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  max-width: 540px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 1.85rem !important;
  position: relative !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid #e2e8f0 !important;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalPop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.modal-close:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

/* Mobile Slide-Up Services Sheet */
.sheet-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  background: rgba(11, 31, 58, 0.78) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: none !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.sheet-backdrop.open {
  display: flex !important;
}

.services-sheet {
  width: 100% !important;
  max-width: 580px !important;
  max-height: 84vh !important;
  background: #ffffff !important;
  border-radius: 24px 24px 0 0 !important;
  padding: 1.35rem 1.35rem 1.85rem !important;
  overflow-y: auto !important;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.25) !important;
  animation: sheetUp 0.22s ease-out !important;
}

@media (min-width: 769px) {
  .sheet-backdrop.open { align-items: center !important; }
  .services-sheet { border-radius: 24px !important; }
}

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

.sheet-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.55rem !important;
  margin-top: 1rem !important;
}

@media (min-width: 460px) {
  .sheet-grid { grid-template-columns: 1fr 1fr !important; }
}

.sheet-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  padding: 0.75rem 0.95rem !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.sheet-item:hover {
  border-color: var(--gold) !important;
  background: #fffbeb !important;
  color: #b45309 !important;
}
