/* ============================================
   BASE VARIABLES
   ============================================ */
/* cache-bust marker — touched 2026-08-15 to ship the rabies stats-bar icon alignment fix */
:root {
  --brand-purple: #2F6B4E;
  --brand-light: #E4EDE6;
  --brand-dark: #234F3A;
  --brand-accent: #6E9583;
  /* Wordmark ink. Deep bronze from the shopfront gold family, 5.74:1 on
     white. Set to var(--brand-dark) to revert the header to site green. */
  --brand-wordmark-ink: #7E6224;
  /* Wordmark face. Cinzel, because it ships 400-900 — Marcellus is a single
     400 weight, so a wordmark set in it cannot be made heavier at all. */
  --font-wordmark: 'Cinzel', Georgia, serif;
  --text-dark: #1E2A23;
  --text-gray: #5B655E;
  --text-slate: #5B655E;
  --white: #ffffff;
  --cream: #F7F2E8;
  /* Footer ground. Also painted on the browser canvas so overscroll past the
     end of the page continues the footer instead of showing bare page colour. */
  --footer-ink: #0f0b1f;
  --border: #E6DFD0;
  --font-primary: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-accent: 'Syne', sans-serif;

  /* Warm accent palette */
  --terracotta: #C2714C;
  --terracotta-soft: #D08A6A;
  --terracotta-dark: #A85D3C;
  --trust-green: #6E9583;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* Space for fixed navigation */
}

/* WordPress admin bar: push fixed nav below admin bar */
body.admin-bar .mega-menu-nav {
  top: 32px;
}

body.admin-bar .mega-menu-list {
  top: 112px; /* 80px nav + 32px admin bar */
  height: calc(100vh - 112px);
  height: calc(100dvh - 112px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .mega-menu-nav {
    top: 46px; /* WP admin bar is taller on mobile */
  }
  body.admin-bar .mega-menu-list {
    top: 126px; /* 80px nav + 46px admin bar */
    height: calc(100vh - 126px);
    height: calc(100dvh - 126px);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

html {
  scroll-behavior: smooth;

  /*
   * Overscroll colour.
   *
   * body carries --cream, and an element with no background of its own lets
   * its child body's background propagate to the browser canvas, so
   * rubber-banding past either end of the document revealed cream: above the
   * white nav on the way up, and below the dark footer at the bottom.
   *
   * Giving html its own background stops that propagation. The canvas is the
   * footer ground, so overscrolling at the end of the page simply continues
   * the footer.
   */
  background-color: var(--footer-ink, #0f0b1f);

  /*
   * And in browsers that support it, there is no overscroll to reveal
   * anything at all — which also covers the top of the page, where the
   * footer colour would otherwise flash above the nav.
   *
   * Note this also disables pull-to-refresh on Android Chrome and the iOS
   * bounce. Remove this declaration to get both back; the background-color
   * above still handles the bottom of the page on its own.
   */
  overscroll-behavior-y: none;
}

/* ============================================
   UTILITY CLASSES (the only non-semantic classes allowed in HTML)
   ============================================ */
    .gradient-text {
      background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-purple) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: inline-block;
      padding-bottom: 0.1em;
      margin-bottom: -0.1em;
    }

    .hero-accent-text {
      font-family: var(--font-heading);
      font-weight: 400;
      font-style: italic;
      color: var(--text-dark);
      display: block;
      font-size: 0.9em; /* Slightly smaller for elegance */
      margin: 0.1em 0;
    }

.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

.icon-small {
  font-size: 0.65rem;
}

.text-purple {
  color: var(--brand-purple);
}

.text-gray {
  color: var(--text-gray);
}

@media (min-width: 1024px) {
  .desktop-only { display: inline-flex; }
  .mobile-only { display: none; }
}

/* ============================================
   SHARED: SECTION CONTAINER
   ============================================ */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ============================================
   SHARED: CTA BUTTONS
   ============================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.primary-cta {
  background: linear-gradient(to right, var(--brand-purple), var(--brand-dark));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.primary-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.secondary-cta {
  background: var(--white);
  color: var(--brand-dark);
  border: 1px solid rgba(47, 107, 78, 0.2);
  box-shadow: var(--shadow-lg);
}

.secondary-cta:hover {
  border-color: var(--brand-purple);
  transform: scale(1.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   REVOLUTION SLIDER PLACEHOLDER
   ============================================ */
.revslider-section {
  width: 100%;
  height: 800px;
  position: relative;
  overflow: hidden;
  background: var(--brand-light);
}

.revslider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.revslider-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.revslider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 78, 124, 0.7), rgba(125, 111, 163, 0.6));
  z-index: 1;
  pointer-events: none;
}

.revslider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.revslider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 2.5rem;
}

.revslider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.revslider-badge {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: rgba(154, 227, 216, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(154, 227, 216, 0.3);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.revslider-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

.revslider-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

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

.revslider-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: #9ae3d8;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.0625rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 48px rgba(154, 227, 216, 0.3);
  border: none;
}

.revslider-btn-primary:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 80px rgba(154, 227, 216, 0.5);
  background: #85d9cc;
}

.revslider-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.0625rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.revslider-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-6px) scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .revslider-section {
    height: 600px;
  }

  .revslider-title {
    font-size: 2.5rem;
  }

  .revslider-subtitle {
    font-size: 1.0625rem;
  }

  .revslider-cta {
    flex-direction: column;
    width: 100%;
  }

  .revslider-btn-primary,
  .revslider-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1.125rem 2rem;
    font-size: 1rem;
  }
}

/* ============================================
   MEGA MENU NAVIGATION
   Premium design with icon dropdowns
   ============================================ */
.mega-menu-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 9999;
  transition: all 0.3s ease;
}

/* Glass background via pseudo-element to prevent clipping children */
.mega-menu-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(47, 107, 78, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: -1;
  transition: all 0.3s ease;
}

.mega-menu-nav.scrolled::before {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.mega-menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  /*
   * A minimum separation, not a suggestion.
   *
   * justify-content: space-between distributes whatever free space is left
   * and gives nothing when there is none. At six top-level labels the bar's
   * content came to roughly 1431px inside a 1400px container, so there was
   * no free space and the last item -- About -- ended up against the phone
   * pill with no gap at all. A gap is a floor space-between cannot consume.
   *
   * 1rem rather than more, because every pixel spent here has to be recovered
   * elsewhere -- the bar is at its width limit with six labels.
   */
  gap: 1rem;
}

    /* Logo */
.mega-menu-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: 3rem;
}

.mega-menu-logo:hover {
  transform: scale(1.05);
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--brand-dark);
}

/* ---------------------------------------------------------------------------
   HEADER WORDMARK

   Same letterforms as the footer — Marcellus capitals, matching the cut
   lettering on the shopfront — so the two read as one identity.

   The colour cannot be. Gold on the white header measures 2.25:1 and fails
   outright; --brand-wordmark-ink is a deep bronze from the same family at
   5.74:1, which keeps the gold identity and stays legible. Set it to
   var(--brand-dark) to go back to the site green — it is the only line that
   needs changing.
   --------------------------------------------------------------------------- */
.brand-name {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--brand-wordmark-ink);
}

.brand-descriptor {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  /* Was --brand-purple, which left a green word under a bronze one. Same ink
     as the wordmark above it, 5.74:1 on white. */
  color: var(--brand-wordmark-ink);
  margin-top: 0.5rem;
  padding-left: 0.1rem;
  /* Trailing letter-space gap, pulled back so both lines align flush left. */
  margin-right: -0.36em;
}

@media (max-width: 640px) {
  .brand-name { font-size: 1.375rem; }
  .brand-descriptor { font-size: 0.625rem; letter-spacing: 0.28em; margin-top: 0.25rem; }
}

.logo-image {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Footer Logo Specifics */
.footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------------
   FOOTER WORDMARK

   Live text, not an image. Set in Marcellus — flared humanist capitals, the
   nearest free match to the cut lettering on the shopfront — and filled with a
   gold gradient rather than a photograph of it, so it stays crisp at every
   size and never gets downsampled.

   Stacked rather than on one line: "CAXTON PHARMACY" set across at this size
   runs past 400px, which is wider than the footer's brand column.
   --------------------------------------------------------------------------- */
.footer-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.footer-wordmark-name {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;

  /* Solid gold first. If background-clip:text is unavailable — or the webfont
     never arrives — the wordmark is still visible in a real colour rather than
     transparent-on-dark, which is what a naked gradient fill degrades to. */
  color: #D9BE72;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .footer-wordmark-name {
    background: linear-gradient(176deg, #F2E2A8 0%, #D9BE72 26%, #B8933F 52%, #E8D293 74%, #A8873F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.footer-wordmark-descriptor {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.65rem;
  /* Letter-spacing adds a trailing gap; pull it back so the block sits flush
     left against the wordmark above it. */
  margin-right: -0.46em;
}

.footer-logo:hover .footer-wordmark-descriptor,
.footer-logo:focus-visible .footer-wordmark-descriptor {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .footer-wordmark-name { font-size: 1.9375rem; }
}

/* Menu List */
.mega-menu-list {
  display: none;
  align-items: center;
  gap: 1.5rem; /* Increased gap for cleaner look */
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .mega-menu-list {
    display: flex;
    /* 1.5rem down to 1rem. Pure whitespace between items, so this takes
       nothing out of any link's own padding or tap target, and recovers
       ~40px -- more than the container gap above costs. */
    gap: 1rem;
    pointer-events: none; /* Prevent the oversized list bounding box from blocking page content beneath the nav */
  }
}

.mega-menu-item {
  position: relative;
  flex-shrink: 0; /* Prevent items from shrinking */
  pointer-events: auto; /* Re-enable on each nav item so links remain clickable */
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  /* 0.375rem horizontal, down from 0.5rem. With the list's 1rem gap that is
     still 28px between adjacent labels, and the 0.75rem vertical padding
     keeps the hover area a comfortable height. Recovers ~24px across the bar. */
  padding: 0.75rem 0.375rem;
  font-size: 1rem; /* Slightly larger text */
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap; /* Force single line text */
}

.mega-menu-link i:first-child {
  font-size: 1rem;
  color: var(--brand-purple);
  transition: transform 0.3s ease;
}

.mega-menu-link:hover {
  background: rgba(47, 107, 78, 0.1);
  color: var(--brand-dark);
}

.mega-menu-link:hover i:first-child {
  transform: scale(1.1);
}

.mega-menu-arrow {
  font-size: 0.625rem !important;
  color: #9ca3af !important;
  transition: transform 0.3s ease !important;
  margin-left: 0.25rem;
}

/* Hidden on desktop — desktop uses hover intent, no separate button needed */
.mega-menu-mobile-chevron {
  display: none;
}

/* Desktop dropdown caret — signals a top-level item opens a menu (rotates when open) */
.mega-menu-has-dropdown > .mega-menu-link::after {
  content: '\25BE';
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  line-height: 1;
  color: #9ca3af;
  transition: transform 0.3s ease;
}
.mega-menu-has-dropdown.dropdown-open > .mega-menu-link::after {
  transform: rotate(180deg);
}

/* Arrow rotation handled by .dropdown-open class below, not :hover */

/* Dropdown */
.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  padding-top: 1rem;
  background: transparent;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  min-width: 500px;
  z-index: 100;
}

.mega-menu-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  background: transparent;
}

.mega-menu-dropdown-wide {
  min-width: 750px;
}

/* Dropdown visibility is JS-controlled only via .dropdown-open class.
   CSS :hover was removed because fast mouse passes across the nav
   would instantly show the dropdown (z-index: 9999), blocking hero
   CTAs underneath. JS adds an open delay so only intentional hovers trigger. */
.mega-menu-has-dropdown.dropdown-open .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  /*
   * Hit-testable ONLY while open.
   *
   * This wrapper carries the 1rem gap between the nav item and the panel. With
   * pointer-events: none it was transparent to hit-testing, so crossing that
   * gap made the browser resolve the pointer to the page BEHIND the menu —
   * outside the <li> — which fires mouseleave on the item and starts the 300ms
   * close timer. Reach the panel in time and it is cancelled; pause, move
   * diagonally, or travel to an item near the bottom of a long column and the
   * menu shuts under the cursor. That was the intermittent dead click.
   *
   * Closed, it stays none (and visibility: hidden already removes it), so the
   * original concern — an invisible panel swallowing hero CTAs — still holds.
   */
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Also add the dropdown arrow rotation for JS-managed state */
.mega-menu-has-dropdown.dropdown-open .mega-menu-arrow {
  transform: rotate(180deg);
}

/* Bridge no longer needs pointer-events — JS handles the hover gap with a timeout */
.mega-menu-dropdown::before {
  pointer-events: none;
}

.mega-menu-dropdown-inner {
  pointer-events: none; /* Only interactive when dropdown is open */
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(47, 107, 78, 0.15);
}

.mega-menu-has-dropdown.dropdown-open .mega-menu-dropdown-inner {
  pointer-events: auto; /* Enable clicks only when dropdown is intentionally open */
}

.mega-menu-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.mega-menu-travel .mega-menu-dropdown-inner {
  grid-template-columns: 1fr 1fr 1.2fr;
}

/*
 * Services is two columns now -- NHS services and the Pharmacy First
 * conditions -- which is exactly the base .mega-menu-dropdown-inner rule, so
 * it no longer needs an override at all. The third column was Private
 * Services, which has moved to its own top-level dropdown: an NHS-badged menu
 * should not contain paid services.
 */

/*
 * Private Services: a single column, so the two-column base would leave an
 * empty half. It uses the narrow .mega-menu-dropdown rather than the wide
 * panel, since there is only one list in it.
 */
.mega-menu-private .mega-menu-dropdown-inner {
  grid-template-columns: 1fr;
}

/*
 * Desktop only, and that matters. The mobile block resets .mega-menu-dropdown
 * to min-width: 100%, but that is a single-class rule inside a media query --
 * a two-class rule out here beats it and would force a 300px panel inside a
 * ~272px phone container, overflowing the viewport. Same trap the travel and
 * services grids fell into. Scoped so it cannot happen.
 */
@media (min-width: 1024px) {
  .mega-menu-private .mega-menu-dropdown {
    min-width: 300px;
  }
}

/*
 * NHS chip on the Services trigger.
 *
 * Nothing in the top-level bar said this is an NHS pharmacy — the NHS services
 * were reachable only after opening the dropdown. This marks it at a glance
 * without costing a seventh nav slot, which would not fit.
 *
 * A plain text chip, NOT a reproduction of the NHS lozenge — that identity is
 * licensed and must not be recreated in CSS. The colour is NHS blue at the
 * client's instruction and with their sign-off.
 */
.mega-menu-nhs-chip {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15em 0.45em;
  border-radius: 0.35rem;
  /* NHS blue, signed off by the client. White label measures 6.4:1 on it, and
     the chip 6.4:1 against the white nav — a shade better than the green it
     replaces. */
  background: #005EB8;
  color: var(--white, #fff);
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

/* The conditions are a plain list — no icons, because seven repeated glyphs
   would out-shout the two columns either side of it. */
/*
 * The padding-left: 0 that used to sit here pulled the condition labels flush
 * with the column edge, because they had no icon to align to. They do now, so
 * the override goes and this column shares the exact indent, gap and hover
 * nudge as every other dropdown list.
 */

/* Dropdown Sections */
.mega-menu-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-menu-section-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(47, 107, 78, 0.2);
}

.mega-menu-section-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-section-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mega-menu-section-links a i {
  font-size: 0.875rem;
  color: var(--brand-purple);
  width: 1.25rem;
  flex-shrink: 0;
}

.mega-menu-section-links a:hover {
  background: rgba(47, 107, 78, 0.1);
  color: var(--brand-dark);
  padding-left: 1rem;
}

/* Destinations Grid */
.mega-menu-destinations {
  border-left: 2px solid rgba(47, 107, 78, 0.15);
  padding-left: 2rem;
}

.mega-menu-destinations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-destination-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(47, 107, 78, 0.05);
  border: 2px solid rgba(47, 107, 78, 0.15);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mega-menu-destination-card:hover {
  background: rgba(47, 107, 78, 0.15);
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 107, 78, 0.2);
}

.mega-menu-flag {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mega-menu-destination-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #374151;
}

.mega-menu-destination-card:hover .mega-menu-destination-name {
  color: var(--brand-dark);
}

/* CTA Buttons */
    .mega-menu-cta {
  display: none;
  align-items: center;
  gap: 0.75rem; /* Tighter gap */
  flex-shrink: 0; /* Prevent shrinking */
}

@media (min-width: 1024px) {
  .mega-menu-cta {
    display: flex;
  }
}

.mega-menu-cta-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem; /* Compact padding */
  background: rgba(47, 107, 78, 0.1);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap; /* Force single line */
}

/*
 * The phone number costs ~154px, and the bar cannot afford it below 1366px.
 *
 * Measured, with five top-level labels: the bar needs ~1327px with the number
 * shown and ~1173px with it reduced to an icon. So the number fits from
 * 1366px up and the icon carries every width below that. It remains a tap
 * target and a tel: link either way.
 *
 * Threshold was 1200px while the bar had six labels; recalculated when About
 * came out rather than left at a number that no longer matched the content.
 */
@media (max-width: 1365px) {
  .mega-menu-cta-phone .desktop-only {
    display: none;
  }

  .mega-menu-cta-phone {
    padding: 0.75rem;
  }
}

.mega-menu-cta-phone:hover {
  background: rgba(47, 107, 78, 0.2);
  border-color: var(--brand-purple);
}

.mega-menu-cta-phone i {
  font-size: 0.875rem;
}

.mega-menu-cta-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(to right, var(--brand-purple), var(--brand-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(47, 107, 78, 0.3);
  transition: all 0.3s ease;
}

.mega-menu-cta-book:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(47, 107, 78, 0.4);
}

/* Mobile Toggle */
.mega-menu-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

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

.mega-menu-mobile-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mega-menu-mobile-toggle:hover span {
  background: var(--brand-purple);
}

    /* Mobile Menu - Premium Redesign */
@media (max-width: 1023px) {
  .mega-menu-list {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 8rem; /* Extra padding for bottom actions */
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(47, 107, 78, 0.1);
    z-index: 9998;
    pointer-events: none; /* Prevent hidden menu from blocking page interactions */
  }

  .mega-menu-list.mobile-open {
    transform: translateX(0);
    pointer-events: auto; /* Re-enable interactions when menu is open */
  }

  .mega-menu-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  /*
   * Link row: link takes remaining space, chevron button sits right.
   *
   * The rules around this one were all written for a flex row — flex: 1 on the
   * link, flex-basis: 100% on the dropdown so it wraps underneath — but the
   * container was never actually given display: flex. Without it none of them
   * apply, so the chevron dropped onto its own line beneath every parent item
   * instead of sitting beside it.
   */
  .mega-menu-has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  /*
   * One affordance each.
   *
   * The desktop caret lives inside the link, so on mobile a parent item showed
   * two downward arrows: a small one in the label and the round button beside
   * it. The small one looks like an expander but navigates to the parent page,
   * which is the confusing half. Hidden here, leaving the label to navigate
   * and the button to expand.
   */
  .mega-menu-has-dropdown > .mega-menu-link::after {
    content: none;
  }

  .mega-menu-link {
    flex: 1;
    padding: 1.25rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
  }

  .mega-menu-link:hover,
  .mega-menu-has-dropdown.mobile-dropdown-open > .mega-menu-link {
    color: var(--brand-purple);
    background: transparent;
    padding-left: 1rem;
  }

  /* Chevron button — visible on mobile only */
  .mega-menu-mobile-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 44px — the minimum comfortable tap target; it was 40. */
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    background: rgba(47, 107, 78, 0.09);
    border: 1px solid rgba(47, 107, 78, 0.16);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    color: var(--brand-purple);
    flex-shrink: 0;
    align-self: center;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  /* Open state reads as pressed, so the arrow is not the only signal. */
  .mega-menu-has-dropdown.mobile-dropdown-open .mega-menu-mobile-chevron {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    color: var(--white);
  }

  .mega-menu-mobile-chevron:hover {
    background: rgba(47, 107, 78, 0.25);
  }

  .mega-menu-mobile-chevron .mega-menu-arrow {
    font-size: 0.875rem !important;
    margin-left: 0;
    transition: transform 0.25s ease;
  }

  .mega-menu-has-dropdown.mobile-dropdown-open .mega-menu-mobile-chevron .mega-menu-arrow {
    transform: rotate(180deg);
  }

  /* Dropdown spans full width below the link + chevron row */
  .mega-menu-has-dropdown .mega-menu-dropdown {
    flex-basis: 100%;
  }

  /* Mobile Dropdown Styling */
  .mega-menu-dropdown {
    position: static;
    transform: none;
    margin-top: 0;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    background: #E4EDE6; /* Subtle contrast background */
    border-radius: 1rem;
    margin-bottom: 1rem;
  }

  .mega-menu-has-dropdown.mobile-dropdown-open .mega-menu-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .mega-menu-dropdown-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border: none;
    box-shadow: none;
    background: transparent;
    pointer-events: auto; /* Safe on mobile — parent uses display:none to hide */
  }

  .mega-menu-section-title {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
  }

  .mega-menu-section-links a {
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 0.75rem;
  }

  /* Travel sets its own column count outside this media query, at a
     specificity the plain .mega-menu-dropdown-inner rule above cannot beat, so
     it needs collapsing back to one column here by name. Without it the
     columns are forced side by side on a phone and overflow the viewport.
     Services no longer needs listing here -- it has no desktop override any
     more -- and Private Services is a single column at every width. */
  .mega-menu-travel .mega-menu-dropdown-inner {
    grid-template-columns: 1fr;
  }

  .mega-menu-destinations {
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .mega-menu-destinations-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Actions (Book & Call) */
  .mobile-nav-actions {
    margin-top: 2rem;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
  }
  
  .mobile-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.125rem;
  }
}

/* Hide mobile actions on desktop */
@media (min-width: 1024px) {
  .mobile-nav-actions {
    display: none;
  }
}

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

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(194, 113, 76, 0.12);
  border-radius: 9999px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(194, 113, 76, 0.10), 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: default;
}

.pulse-dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.pulse-dot span:first-child {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand-purple);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot span:last-child {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-purple);
}

.hero-badge-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-slate);
  transition: color 0.3s ease;
}

.hero-badge:hover .hero-badge-text {
  color: var(--brand-purple);
}

    /* Title */
    .hero-title {
      font-size: 3rem;
      font-weight: 800; /* Extra bold for authority */
      color: #1E2A23; /* Richer black/navy */
      margin-bottom: 1.5rem;
      letter-spacing: -0.05em; /* Tighter, editorial tracking */
      line-height: 1.05; /* Compact leading for a solid block feel */
    }

    .hero-title br {
      display: block; /* Force stacking on all screens for impact */
    }

    @media (min-width: 768px) {
      .hero-title {
        font-size: 4.5rem;
      }
    }

    @media (min-width: 1024px) {
      .hero-title {
        font-size: 5.5rem; /* Massive scale for desktop */
        line-height: 1;
      }
    }

/*
 * The whole 50/50 homepage hero lived here and is gone. Its replacement is
 * hero-masthead.css.
 *
 * An earlier note in this spot claimed .hero-section, .hero-content,
 * .hero-actions and friends were "shared by 27-44 other templates". That was
 * wrong, and wrong in a way worth recording so nobody re-derives it:
 *
 *   grep -rE 'class="[^"]*\bhero-section\b'   ->  41 files
 *   files actually emitting class="hero-section" ->  0
 *
 * A regex word boundary matches after a hyphen, so \bhero-section\b matches
 * inside svc-hero-section. The service and travel templates use their own
 * prefixed classes -- .svc-hero-section, .svc-hero-content -- styled in
 * service-pages.css, and never touched these. The only way to audit class
 * usage in this codebase is to extract class="..." attributes and compare
 * whole space-separated tokens; substring and \b greps both lie.
 *
 * What survives here is what markup genuinely still emits: .hero-title and
 * .hero-badge (seven travel templates), .hero-visual (page-weight-loss.php),
 * .pulse-dot (47 files), .gradient-text, and the rating/result badges.
 */
.author-name {
  font-weight: 700;
  color: #1E2A23;
  font-size: 1rem;
}

.star-row {
  display: flex;
  gap: 0.25rem;
  color: #F4B400;
  font-size: 0.875rem;
}

.result-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-purple);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  transition: background 0.3s;
}

.hero-testimonial-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--brand-purple);
  border-radius: 0 0 1rem 1rem;
}

/* ============================================
   HERO VISUAL (right column)
   ============================================ */
.hero-visual {
  display: none;
  position: relative;
  height: 600px;
  align-items: center;
  justify-content: center;
}

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

/* ============================================
   GOOGLE RATING BADGE
   ============================================ */
.rating-badge {
  position: absolute;
  bottom: 3rem;
  right: -2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-width: 260px;
  z-index: 30;
  transition: transform 0.5s ease;
}

.rating-badge:hover {
  transform: translateY(-4px);
}

.rating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.rating-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.google-icon-wrapper {
  width: 2rem;
  height: 2rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
}

.google-icon-wrapper i {
  font-size: 1rem;
  background: linear-gradient(135deg, #4285F4 0%, #DB4437 33%, #F4B400 66%, #0F9D58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-label > span {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1E2A23;
}

.badge-success {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #f0fdf4;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid #dcfce7;
}

.badge-success i {
  font-size: 0.625rem;
  color: #16a34a;
}

.badge-success span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-score {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.score-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1;
  color: #1E2A23;
  letter-spacing: -0.02em;
}

.rating-score-detail {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.375rem;
}

.rating-score .star-row {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.rating-count {
  font-size: 0.6875rem;
  color: #9ca3af;
  font-weight: 500;
}

.rating-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.rating-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.rating-location i {
  font-size: 0.75rem;
  color: var(--brand-purple);
}

.rating-location span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.rating-link {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--brand-purple);
}

.rating-link:hover {
  text-decoration: underline;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-section {
  position: relative;
  padding: 0;
  margin-top: -3rem;
  z-index: 20;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  box-shadow:
    0 20px 60px -15px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(194, 113, 76, 0.05);
  transition: box-shadow 0.3s ease;
}

.stats-bar:hover {
  box-shadow:
    0 25px 70px -15px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(194, 113, 76, 0.1);
}

/* Individual stat */
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(194, 113, 76, 0.15), rgba(168, 93, 60, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 1.125rem;
  color: var(--terracotta);
  transition: color 0.3s ease;
}

.stat-item:hover .stat-icon {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
}

.stat-item:hover .stat-icon i {
  color: var(--white);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #1E2A23;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-slate);
  letter-spacing: 0.01em;
}

/* Vertical dividers */
.stat-divider {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(194, 113, 76, 0.2), transparent);
  flex-shrink: 0;
}

/* ---- Responsive ---- */

/* Tablet: 2 rows */
@media (max-width: 1023px) {
  .stats-section {
    margin-top: -2rem;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 2rem 0;
    padding: 2rem;
    border-radius: 1.25rem;
  }

  .stat-item {
    flex: 0 0 calc(50% - 1rem);
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .stat-divider {
    display: none;
  }

  /* Centre the 5th item on its own row */
  .stat-item:last-of-type {
    flex: 0 0 100%;
    justify-content: center;
  }
}

/* Mobile: Premium Grid Layout */
@media (max-width: 639px) {
  .stats-section {
    margin-top: -1.5rem;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem; /* Tighter vertical gap */
    padding: 2rem 1.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.85); /* Slightly more opaque for contrast */
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    justify-content: flex-start;
    width: auto;
    padding: 0;
  }

  .stat-icon {
    margin: 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    box-shadow: 0 4px 12px rgba(194, 113, 76, 0.12);
    background: linear-gradient(135deg, #E4EDE6, #ffffff);
    border: 1px solid rgba(194, 113, 76, 0.1);
  }

  .stat-content {
    align-items: center;
    gap: 0.125rem;
  }

  .stat-number {
    font-size: 1.375rem; /* Slightly refined size */
    color: var(--brand-dark); /* Richer color */
  }
  
  .stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
  }

  /*
   * Full-width feature treatment for the LAST stat.
   *
   * This exists to rescue an odd-numbered list: with five stats the fifth is
   * stranded alone in a two-column grid, so it is promoted to a full-width
   * card instead. With an EVEN count it does the opposite — it pulls the last
   * item out of the grid and strands the second-to-last one. That is the gap
   * next to "No Appointment Needed" on Pharmacy First (4 stats) and the same
   * fault on ear wax removal (6).
   *
   * So it is opt-in now. Add stats-bar-feature-last only where the count is
   * odd; everything else gets a clean grid.
   */
  .stats-bar-feature-last .stat-item:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(254, 246, 244, 0.9));
    border: 1px solid rgba(194, 113, 76, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 4px 15px rgba(194, 113, 76, 0.08);
    gap: 1rem;
  }

  .stats-bar-feature-last .stat-item:last-child .stat-icon {
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(194, 113, 76, 0.08);
    color: var(--terracotta);
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
  }

  .stats-bar-feature-last .stat-item:last-child:hover .stat-icon {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    color: var(--white);
  }

  .stats-bar-feature-last .stat-item:last-child .stat-content {
    align-items: flex-start;
    text-align: left;
    gap: 0;
  }
  
  .stats-bar-feature-last .stat-item:last-child .stat-number {
    font-size: 1.25rem;
  }

  .stat-divider {
    display: none;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   3-step process with timeline connector
   ============================================ */
.how-it-works-section {
  background: var(--white);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: rgba(194, 113, 76, 0.04);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* Header */
.how-it-works-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-it-works-header .section-badge {
  margin-bottom: 1.5rem;
}

.how-it-works-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .how-it-works-title {
    font-size: 3rem;
  }
}

.how-it-works-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

@media (min-width: 768px) {
  .how-it-works-description {
    font-size: 1.25rem;
  }
}

/* Steps container */
.how-it-works-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

@media (min-width: 1024px) {
  .how-it-works-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

/* Individual step */
.how-it-works-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how-it-works-step-card {
  position: relative;
  background: var(--white);
  border: 2px solid rgba(194, 113, 76, 0.12);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(194, 113, 76, 0.08);
  width: 100%;
  max-width: 400px;
  z-index: 2;
}

.how-it-works-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(194, 113, 76, 0.18);
  border-color: var(--terracotta-soft);
}

@media (min-width: 768px) {
  .how-it-works-step-card {
    padding: 3rem 2.5rem;
  }
}

/* Step number badge */
.how-it-works-step-number {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(194, 113, 76, 0.3);
  z-index: 10;
}

.how-it-works-step-number span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
}

/* Icon */
.how-it-works-step-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, rgba(194, 113, 76, 0.10), rgba(168, 93, 60, 0.06));
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.how-it-works-step-card:hover .how-it-works-step-icon {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  transform: scale(1.1) rotate(5deg);
}

.how-it-works-step-icon i {
  font-size: 2rem;
  color: var(--terracotta);
  transition: color 0.4s ease;
}

.how-it-works-step-card:hover .how-it-works-step-icon i {
  color: var(--white);
}

/* Title */
.how-it-works-step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E2A23;
  margin-bottom: 1rem;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.how-it-works-step-card:hover .how-it-works-step-title {
  color: var(--terracotta);
}

@media (min-width: 768px) {
  .how-it-works-step-title {
    font-size: 1.75rem;
  }
}

/* Description */
.how-it-works-step-desc {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .how-it-works-step-desc {
    font-size: 1.0625rem;
  }
}

/* Time badge */
.how-it-works-step-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(194, 113, 76, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(194, 113, 76, 0.15);
  transition: all 0.3s ease;
}

.how-it-works-step-card:hover .how-it-works-step-time {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.how-it-works-step-time i {
  font-size: 0.875rem;
  color: var(--terracotta);
  transition: color 0.3s ease;
}

.how-it-works-step-card:hover .how-it-works-step-time i {
  color: var(--white);
}

.how-it-works-step-time span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  transition: color 0.3s ease;
}

.how-it-works-step-card:hover .how-it-works-step-time span {
  color: var(--white);
}

/* Timeline connector (desktop only) */
.how-it-works-connector {
  display: none;
}

@media (min-width: 1024px) {
  .how-it-works-connector {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--terracotta-soft), var(--terracotta-dark));
    z-index: 1;
  }

  .how-it-works-step:last-child .how-it-works-connector {
    display: none;
  }

  /* Animated dots on connector */
  .how-it-works-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--terracotta-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(194, 113, 76, 0.2);
  }
}

/* CTA section */
.how-it-works-cta {
  text-align: center;
  margin-top: 3rem;
}

.how-it-works-cta .cta-button {
  margin-bottom: 0;
}

/* Trust badges in How It Works */
.how-it-works-trust-badges {
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(194, 113, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  line-height: 0;
}

.how-it-works-trust-badges img {
  height: 70px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  display: block;
  margin: 0;
}

.how-it-works-trust-badges img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@media (max-width: 767px) {
  .how-it-works-trust-badges {
    gap: 2.5rem;
    padding-top: 1.25rem;
    padding-bottom: 0;
    margin-top: 1.5rem;
  }

  .how-it-works-trust-badges img {
    height: 60px;
  }
}

@media (max-width: 479px) {
  .how-it-works-trust-badges {
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 0;
  }

  .how-it-works-trust-badges img {
    height: 50px;
  }
}

/* ============================================
   TREATMENTS SECTION
   ============================================ */
.treatments-section {
  padding: 5rem 0 6rem;
  background: #ffffff;
}

/* Section header */
.treatments-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(194, 113, 76, 0.12);
  border-radius: 9999px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(194, 113, 76, 0.10), 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: default;
}

.section-badge-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-slate);
  transition: color 0.3s ease;
}

.section-badge:hover .section-badge-text {
  color: var(--brand-dark);
}

.treatments-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .treatments-title {
    font-size: 3rem;
  }
}

.treatments-description {
  font-size: 1.0625rem;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Card grid */
/*
 * Two up on a phone.
 *
 * Single column with a 4/5 portrait card meant each card was ~409px tall at a
 * 375px viewport. Eight cards plus gaps came to roughly 3,440px — about nine
 * phone screens to scroll one section. Two columns takes that to ~830px and
 * gives eight cards four tidy rows with nothing orphaned. The card design is
 * unchanged; it just is not full-bleed any more.
 *
 * Below 360px it stays single column — at that width two cards are too narrow
 * for the title to sit properly over the image.
 */
.treatments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

@media (min-width: 1024px) {
  .treatments-grid {
    grid-template-columns: repeat(4, 1fr); /* 8 treatment cards → even 4 + 4 rows */
  }
}

/* Individual card */
.treatment-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.5s ease, transform 0.3s ease;
}

.treatment-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-0.5rem);
}

.treatment-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
}

/* Image */
.treatment-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.treatment-card:hover .treatment-card-image {
  transform: scale(1.1);
}

/* Dark gradient overlay — bottom scrim only, no colour tint */
.treatment-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 70%);
  transition: opacity 0.3s ease;
}

.treatment-card:hover .treatment-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
}

/* Hover button */
.treatment-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.treatment-card:hover .treatment-card-hover {
  opacity: 1;
}

.treatment-card-button {
  background: var(--white);
  color: var(--brand-purple);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(1rem);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.treatment-card:hover .treatment-card-button {
  transform: translateY(0);
  box-shadow: var(--shadow-xl);
}

/* Bottom label */
.treatment-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 10;
}

@media (min-width: 640px) {
  .treatment-card-label {
    padding: 1.5rem;
  }
}

.treatment-card-title {
  font-family: var(--font-primary);
  color: var(--white);
  /* Two up on a phone the card is ~155px wide, so the full size overflows. */
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .treatment-card-title {
    font-size: 1.375rem;
  }
}

.treatment-card:hover .treatment-card-title {
  transform: translateY(-0.5rem);
}

/*
 * The "View Details" overlay is revealed on :hover. A touch device has no
 * hover, so it either never appears or sticks visible after a tap — which is
 * why it was sitting mid-card on the ear piercing tile. Hidden where there is
 * no hover to trigger it; the whole card is a link regardless.
 */
@media (hover: none) {
  .treatment-card-hover {
    display: none;
  }
}

/* Expanding line on hover */
.treatment-card-line {
  height: 4px;
  width: 0;
  background: var(--white);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transition: width 0.5s ease;
}

.treatment-card:hover .treatment-card-line {
  width: 100%;
}

/* ============================================
   PHARMACIST SECTION
   ============================================ */
.pharmacist-section {
  position: relative;
  background: var(--brand-light);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .pharmacist-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

/* Image column */
.pharmacist-image-wrapper {
  position: relative;
}

.pharmacist-image-glow {
  position: absolute;
  inset: 0;
  background: rgba(194, 113, 76, 0.15);
  border-radius: 2.5rem;
  transform: rotate(3deg) scale(1.05);
  filter: blur(20px);
}

.pharmacist-image-card {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(194, 113, 76, 0.18);
  border: 4px solid var(--white);
  cursor: pointer;
}

.pharmacist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

/* Video play overlay */
.pharmacist-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.pharmacist-image-card:hover .pharmacist-video-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-button {
  position: relative;
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.pharmacist-image-card:hover .play-button {
  transform: scale(1.1);
}

.play-button i {
  color: var(--brand-purple);
  font-size: 1.5rem;
  margin-left: 0.25rem;
  position: relative;
  z-index: 10;
}

.play-button-ping {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* Video label on hover */
.pharmacist-video-label {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.3s ease;
}

.pharmacist-image-card:hover .pharmacist-video-label {
  opacity: 1;
  transform: translateY(0);
}

.pharmacist-video-label span {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

/* Experience badge */
.pharmacist-experience-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid #f3f4f6;
  animation: float 6s ease-in-out infinite;
}

.pharmacist-experience-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #C2714C;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.pharmacist-experience-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1023px) {
  .pharmacist-experience-badge {
    bottom: -1rem;
    right: 1rem;
    padding: 1rem;
  }

  .pharmacist-experience-number {
    font-size: 1.75rem;
  }

  .pharmacist-experience-label {
    font-size: 0.6875rem;
  }
}

@media (max-width: 767px) {
  .pharmacist-image-wrapper {
    max-width: 400px;
    margin: 0 auto 1.5rem;
  }

  .pharmacist-image-card {
    border-radius: 1.5rem;
    border-width: 3px;
  }

  .pharmacist-video-label {
    bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
  }

  .pharmacist-experience-badge {
    bottom: -0.75rem;
    right: -0.25rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
  }

  .pharmacist-experience-number {
    font-size: 1.5rem;
    margin-bottom: 0.125rem;
  }

  .pharmacist-experience-label {
    font-size: 0.625rem;
  }

  .play-button {
    width: 3.5rem;
    height: 3.5rem;
  }

  .play-button i {
    font-size: 1.125rem;
  }
}

/* Content column */
.pharmacist-content {
  padding-top: 1rem;
}

.pharmacist-content .section-badge {
  margin-bottom: 1.5rem;
}

.pharmacist-name {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .pharmacist-name {
    font-size: 3rem;
  }
}

.pharmacist-role {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: #C2714C;
  margin-bottom: 1.5rem;
}

.pharmacist-bio {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .pharmacist-bio {
    font-size: 1.25rem;
  }
}

.pharmacist-quote {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .pharmacist-quote {
    font-size: 1.25rem;
  }
}

/* Credentials */
.pharmacist-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pharmacist-credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
}

@media (max-width: 767px) {
  .pharmacist-credentials,
  .pharmacist-cta {
    justify-content: center;
  }
}

.pharmacist-credential i {
  color: #6E9583;
  font-size: 1rem;
}

.pharmacist-credential span {
  font-weight: 700;
  color: #374151;
  font-size: 0.9375rem;
}

/* CTA */
/*
 * These two buttons are inline-flex anchors and this was not a flex container,
 * so they sat as inline boxes with nothing between them. Side by side they
 * touched; wrapped onto separate lines on a phone they overlapped, because a
 * pill with 1rem vertical padding is taller than the line box it sits in.
 */
.pharmacist-cta {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.pharmacist-cta .primary-cta {
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  box-shadow: 0 10px 25px -3px rgba(194, 113, 76, 0.35);
}

/* ============================================
   SWITCHING PROVIDER SECTION v3
   Premium packaging showcase
   ============================================ */
.switching-section {
  position: relative;
  background: #ffffff;
  padding: 6rem 0;
  overflow: hidden;
}

.switching-bg {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

/* Centred header */
.switching-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.switching-header .section-badge {
  margin-bottom: 1.5rem;
}

/* Strong badge variant */
.switching-badge-strong {
  background: linear-gradient(135deg, rgba(47, 107, 78, 0.15), rgba(47, 107, 78, 0.1)) !important;
  border: 2px solid var(--brand-purple) !important;
  padding: 0.875rem 2rem !important;
  box-shadow: 0 8px 30px rgba(47, 107, 78, 0.2), 0 2px 8px rgba(47, 107, 78, 0.15) !important;
}

.switching-badge-strong .section-badge-text {
  color: var(--brand-dark) !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
}

.switching-badge-strong .pulse-dot span:first-child,
.switching-badge-strong .pulse-dot span:last-child {
  background: var(--brand-dark) !important;
}

.switching-title {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: #1E2A23;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .switching-title {
    font-size: 3rem;
  }
}

.switching-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 500;
}

@media (min-width: 768px) {
  .switching-description {
    font-size: 1.25rem;
  }
}

/* 3-card grid */
.switching-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

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

.switching-card {
  background: var(--white);
  border: 2px solid rgba(194, 113, 76, 0.12);
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(194, 113, 76, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.switching-card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 113, 76, 0.3);
  box-shadow: 0 25px 60px rgba(194, 113, 76, 0.18);
}

/* Featured card (first card) */
.switching-card-featured {
  border-color: rgba(194, 113, 76, 0.25);
  box-shadow: 0 15px 50px rgba(194, 113, 76, 0.12);
}

/* --- Image-led card layout --- */
.switching-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.switching-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Gradient overlay on image bottom */
.switching-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 42, 35, 0.4) 0%, transparent 50%);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
}

/* Icon badge floating on image */
.switching-card-icon-badge {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C2714C;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.switching-card:hover .switching-card-icon-badge {
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(194, 113, 76, 0.4);
}

/* --- Icon-only fallback (no image uploaded) --- */
.switching-card-icon-only {
  padding: 2rem 2rem 0;
}

.switching-card-icon {
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, rgba(194, 113, 76, 0.12), rgba(194, 113, 76, 0.05));
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #C2714C;
  font-size: 1.75rem;
  transition: all 0.4s ease;
}

.switching-card:hover .switching-card-icon {
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(194, 113, 76, 0.35);
}

/* Card content area */
.switching-card-content {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.switching-card-title {
  font-family: var(--font-primary);
  font-size: 1.375rem;
  font-weight: 800;
  color: #1E2A23;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.switching-card:hover .switching-card-title {
  color: #C2714C;
}

.switching-card-desc {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.switching-card-highlight {
  display: inline-block;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(194, 113, 76, 0.3);
  align-self: flex-start;
}

/* CTAs — centred */
.switching-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .switching-actions {
    flex-direction: row;
  }
}

@media (max-width: 639px) {
  .switching-card-content {
    padding: 1.25rem 1.5rem 1.75rem;
  }
  .switching-card-image {
    height: 180px;
  }
}

/* ============================================
   SAFE & SECURE SECTION
   ============================================ */
.safe-section {
  position: relative;
  background: #faf8f5;
  padding: 6rem 0;
  overflow: hidden;
}

.safe-bg-shape-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: rgba(194, 113, 76, 0.05);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.safe-bg-shape-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(208, 138, 106, 0.04);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

/* Header */
.safe-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 10;
}

.safe-header .section-badge {
  margin-bottom: 1.5rem;
}

.safe-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .safe-title {
    font-size: 3rem;
  }
}

.safe-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

@media (min-width: 768px) {
  .safe-description {
    font-size: 1.25rem;
  }
}

/* ---- 3-card horizontal trust grid ---- */
.safe-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

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

.safe-trust-card {
  background: var(--white);
  border: 2px solid rgba(194, 113, 76, 0.1);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(194, 113, 76, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.safe-trust-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, #C2714C, #D08A6A);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.safe-trust-card:hover {
  transform: translateY(-6px);
  border-color: rgba(194, 113, 76, 0.25);
  box-shadow: 0 20px 50px rgba(194, 113, 76, 0.14);
}

.safe-trust-card:hover::before {
  opacity: 1;
}

.safe-trust-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(194, 113, 76, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #C2714C;
  font-size: 1.5rem;
  transition: all 0.4s ease;
}

.safe-trust-card:hover .safe-trust-icon {
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(194, 113, 76, 0.3);
}

.safe-trust-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E2A23;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.safe-trust-card:hover .safe-trust-title {
  color: #C2714C;
}

.safe-trust-desc {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.65;
  font-weight: 500;
  margin: 0;
}

/* ---- GPhC credential strip ---- */
.safe-credential-strip {
  position: relative;
  z-index: 10;
}

.safe-credential-inner {
  background: var(--white);
  border: 2px solid rgba(194, 113, 76, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(194, 113, 76, 0.06);
}

.safe-credential-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .safe-credential-items {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

.safe-credential {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

@media (min-width: 768px) {
  .safe-credential {
    padding: 0 2rem;
  }

  .safe-credential:first-child {
    padding-left: 0;
  }

  .safe-credential:last-child {
    padding-right: 0;
  }
}

.safe-credential-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(194, 113, 76, 0.08);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C2714C;
  font-size: 1.125rem;
}

.safe-credential-text {
  display: flex;
  flex-direction: column;
}

.safe-credential-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-slate);
  margin-bottom: 0.25rem;
}

.safe-credential-value {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  color: #1E2A23;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.safe-credential-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #C2714C;
  margin-top: 0.25rem;
}

/* Vertical dividers (desktop) */
.safe-credential-divider {
  display: none;
}

@media (min-width: 768px) {
  .safe-credential-divider {
    display: block;
    width: 2px;
    align-self: stretch;
    background: rgba(194, 113, 76, 0.12);
    border-radius: 1px;
    flex-shrink: 0;
  }
}

/* Horizontal divider (mobile) */
@media (max-width: 767px) {
  .safe-credential + .safe-credential-divider + .safe-credential {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(194, 113, 76, 0.08);
  }
}

/* Footer: verify link + note */
.safe-credential-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(194, 113, 76, 0.08);
  text-align: center;
}

.safe-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #C2714C;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: 2px solid rgba(194, 113, 76, 0.25);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.safe-verify-link:hover {
  background: rgba(194, 113, 76, 0.06);
  border-color: #C2714C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 113, 76, 0.15);
}

.safe-verify-note {
  font-size: 0.75rem;
  color: var(--text-slate);
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .safe-trust-card {
    padding: 1.75rem 1.5rem;
  }

  .safe-credential-inner {
    padding: 2rem 1.5rem;
  }

  .safe-credential {
    align-items: center;
  }

  .safe-credential-value {
    font-size: 1.25rem;
  }
}

/* ============================================
   FOOTER SECTION
   Billion-pound premium design with depth and contrast
   ============================================ */
.footer-section {
  position: relative;
  background: var(--footer-ink, #0f0b1f);
  color: var(--white);
  padding: 5rem 0 0;
  overflow: hidden;
}

.footer-gradient-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(47, 107, 78, 0.15), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(47, 107, 78, 0.12), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(110, 149, 131, 0.05), transparent 60%);
  pointer-events: none;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(47, 107, 78, 0.5), transparent);
}

.footer-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(47, 107, 78, 0.08), transparent);
  pointer-events: none;
}

/* Main footer grid */
.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(47, 107, 78, 0.2);
  position: relative;
  z-index: 10;
}

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

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

/* Footer column */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Brand column */
.footer-brand {
  max-width: 420px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(47, 107, 78, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
}

.footer-logo-icon i {
  font-size: 1.75rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Social links */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(47, 107, 78, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(47, 107, 78, 0.3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social-link i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  border-color: var(--brand-purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(47, 107, 78, 0.4);
}

.footer-social-link:hover::before {
  opacity: 1;
}

.footer-social-link:hover i {
  color: var(--white);
  transform: scale(1.1);
}

/* Column titles */
.footer-column-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(to right, var(--brand-purple), transparent);
  border-radius: 9999px;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0;
}

.footer-link::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--brand-purple);
  font-weight: 700;
}

.footer-link:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact items */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.footer-contact-item:hover {
  transform: translateX(4px);
}

.footer-contact-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, rgba(47, 107, 78, 0.15), rgba(47, 107, 78, 0.1));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(47, 107, 78, 0.3);
  transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  border-color: var(--brand-purple);
  box-shadow: 0 8px 20px rgba(47, 107, 78, 0.3);
}

.footer-contact-icon i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon i {
  transform: scale(1.1);
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.375rem;
}

.footer-contact-text span,
.footer-contact-text a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  line-height: 1.6;
}

.footer-contact-text a {
  transition: color 0.3s ease;
}

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

/* Certifications bar */
.footer-certifications {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(47, 107, 78, 0.2);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.footer-cert-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem;
  background: rgba(47, 107, 78, 0.08);
  border: 1px solid rgba(47, 107, 78, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.footer-cert-item:hover {
  background: rgba(47, 107, 78, 0.12);
  border-color: rgba(47, 107, 78, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 107, 78, 0.15);
}

.footer-cert-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(47, 107, 78, 0.3);
  position: relative;
  overflow: hidden;
}

.footer-cert-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
}

.footer-cert-icon i {
  font-size: 1.375rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.footer-cert-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-cert-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

/*
 * Registration numbers are data, not headlines.
 *
 * These were set in Playfair Display — a high-contrast display serif whose
 * numeral hairlines disappear at 18px on a dark ground — and then given a
 * gradient text fill that faded them further. "1032622" and "03805055" read
 * as mush. Syne is the accent face already loaded for the site: a geometric
 * grotesque that holds its weight small, with tabular figures so the numbers
 * align like an official register entry rather than a headline.
 */
.footer-cert-number {
  font-family: var(--font-accent);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.footer-cert-divider {
  display: none;
}

@media (max-width: 767px) {
  .footer-certifications {
    gap: 1rem;
    flex-direction: column;
  }

  .footer-cert-item {
    width: 100%;
  }

  .footer-cert-divider {
    display: none;
  }
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Agency credit — its own row under the legal bar, separated by a hairline so
   it reads as a signature rather than another footer link. Measured on the
   #0f0b1f footer: lead-in 7.7:1, wordmark 19.3:1. */
.footer-credit {
  padding: 1.5rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 10;
}

.footer-credit-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

.footer-credit-brand {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.3s ease;
}

.footer-credit-link:hover .footer-credit-brand {
  color: #FFFFFF;
}

/* Raised and reduced, the way a trademark mark should sit. */
.footer-credit-tm {
  font-size: 0.62em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.06em;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .footer-credit {
    padding: 1.25rem 0 1.75rem;
  }

  .footer-credit-link {
    font-size: 0.8125rem;
  }
}

.footer-legal-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

/*
 * The cookie settings control is a <button>, because it performs an action
 * rather than navigating. UA button styling would otherwise give it a grey
 * box, a border and a different font from the three links beside it, so it
 * is reset back to matching them. Colour is inherited from
 * .footer-legal-link above; only the button chrome is undone here.
 */
button.footer-legal-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.footer-legal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-purple);
  transition: width 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--white);
}

.footer-legal-link:hover::after {
  width: 100%;
}

.footer-legal-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-bottom-right {
    width: 100%;
  }
}

/* ============================================
   HEALTH HUB SECTION
   On-brand with purple accents and light background
   ============================================ */
.healthhub-section {
  background: var(--brand-light);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.healthhub-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: rgba(194, 113, 76, 0.06);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.healthhub-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(110, 149, 131, 0.06);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

.healthhub-section .section-container {
  position: relative;
  z-index: 2;
}

/* Header row */
.healthhub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.healthhub-header-text {
  flex: 1;
}

.healthhub-header .section-badge {
  margin-bottom: 1.5rem;
}

.healthhub-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  line-height: 1.15;
  text-align: left;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .healthhub-title {
    font-size: 3rem;
  }
}

.healthhub-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--brand-dark);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(194, 113, 76, 0.15);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.healthhub-view-all:hover {
  border-color: var(--terracotta);
  transform: scale(1.05);
}

.healthhub-view-all i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.healthhub-view-all:hover i {
  transform: translateX(4px);
}

/* Responsive header */
@media (max-width: 767px) {
  .healthhub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* Articles grid */
.healthhub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

/* Article card */
.healthhub-card {
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 2px solid #f3f4f6;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.healthhub-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(194, 113, 76, 0.2);
}

/* Card image */
.healthhub-card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.healthhub-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.healthhub-card:hover .healthhub-card-image img {
  transform: scale(1.08);
}

.healthhub-card-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--brand-purple);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

/* Card content */
.healthhub-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.healthhub-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E2A23;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.healthhub-card:hover .healthhub-card-title {
  color: var(--brand-purple);
}

.healthhub-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.6;
  flex: 1;
}

.healthhub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-purple);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  width: fit-content;
}

.healthhub-card:hover .healthhub-card-link {
  border-bottom-color: var(--brand-purple);
  gap: 0.75rem;
}

.healthhub-card-link i {
  font-size: 0.625rem;
  transition: transform 0.3s ease;
}

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

/* ============================================
   LOCATION SECTION
   Full-width map with floating info card
   ============================================ */
.location-section {
  position: relative;
  background: #ffffff;
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Full-width map */
.location-map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.location-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-map-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--brand-light) 100%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .location-map-wrapper {
    height: 300px;
  }
}

/* Floating card */
.location-card {
  position: relative;
  margin-top: -8rem;
  background: var(--white);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.15);
  border: 2px solid #f3f4f6;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
  transition: box-shadow 0.3s ease;
}

.location-card:hover {
  box-shadow: 0 30px 100px -15px rgba(194, 113, 76, 0.15);
}

@media (max-width: 767px) {
  .location-card {
    margin-top: -4rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    overflow: hidden;
  }

  .location-card-header {
    margin-bottom: 1.5rem;
  }

  .location-detail {
    gap: 0.75rem;
  }

  .location-detail-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
  }

  .location-detail-icon i {
    font-size: 0.875rem;
  }

  .location-detail-value {
    font-size: 0.875rem;
  }

  .location-contact-link {
    font-size: 0.875rem;
    word-break: break-all;
  }

  .location-hours-row {
    max-width: 100%;
  }

  .location-hours-day,
  .location-hours-time {
    font-size: 0.8125rem;
  }

  .location-details {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Header */
.location-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.location-card-header .section-badge {
  margin-bottom: 1rem;
}

.location-card-title {
  font-size: 2rem;
  font-weight: 900;
  color: #1E2A23;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .location-card-title {
    font-size: 2.5rem;
  }
}

/* Details grid */
.location-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .location-details {
    grid-template-columns: 1fr 1fr;
  }
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.location-detail-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(47, 107, 78, 0.25);
  transition: all 0.3s ease;
}

.location-detail:hover .location-detail-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(47, 107, 78, 0.35);
}

.location-detail-icon i {
  color: var(--white);
  font-size: 1.125rem;
}

.location-detail-text {
  flex: 1;
}

.location-detail-label {
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-slate);
  margin-bottom: 0.5rem;
}

.location-detail-value {
  font-size: 1rem;
  color: #1E2A23;
  line-height: 1.6;
  font-weight: 500;
}

/* Directions link */
.location-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-purple);
  transition: all 0.3s ease;
}

.location-directions-link:hover {
  color: var(--brand-dark);
  gap: 0.75rem;
}

.location-directions-link i {
  font-size: 0.75rem;
}

/* Opening hours */
.location-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 260px;
}

.location-hours-day {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-gray);
}

.location-hours-time {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1E2A23;
}

.location-hours-closed {
  color: #ef4444;
}

/* Contact links */
.location-contact-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1E2A23;
  transition: color 0.3s ease;
  margin-bottom: 0.25rem;
}

.location-contact-link:hover {
  color: var(--brand-purple);
}

/* Pharmacy image */
.location-pharmacy-image {
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 2px solid #f3f4f6;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.location-pharmacy-image:hover {
  box-shadow: var(--shadow-xl);
}

.location-pharmacy-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.location-pharmacy-image:hover img {
  transform: scale(1.05);
}

/* CTA row */
.location-card-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .location-card-cta {
    flex-direction: row;
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  padding: 5rem 0 6rem;
  background: #E4EDE6;
  position: relative;
  overflow: hidden;
}

/* Decorative blob for testimonials */
.testimonials-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: rgba(194, 113, 76, 0.05);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(110, 149, 131, 0.05);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* Header */
.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-header .section-badge {
  margin-bottom: 1.5rem;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .testimonials-title {
    font-size: 3rem;
  }
}

.testimonials-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .testimonials-description {
    font-size: 1.25rem;
  }
}

.testimonials-disclaimer {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--brand-light);
  border: 1px solid rgba(194, 113, 76, 0.15);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  max-width: 640px;
  text-align: left;
}

.testimonials-disclaimer i {
  color: var(--brand-purple);
  font-size: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.testimonials-disclaimer p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-dark);
  line-height: 1.5;
}

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

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

/* Shared card styles */
.testimonial-card {
  position: relative;
  border-radius: 2rem;
  padding: 2rem;
  overflow: hidden;
  transition: all 0.5s ease;
}

.testimonial-card-body {
  position: relative;
  z-index: 10;
}

/* Verified badge */
.testimonial-verified {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--brand-purple);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

.testimonial-verified i {
  font-size: 0.625rem;
}

/* Star rows */
.star-row-large {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.testimonials-section .star-row {
  margin-bottom: 1.5rem;
}

.star-row-small {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

/* Quote text */
.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: #1E2A23;
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.testimonial-quote-large {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .testimonial-quote-large {
    font-size: 1.5rem;
  }
}

.testimonial-highlight {
  color: var(--brand-purple);
  font-weight: 700;
  font-style: normal;
}

/* Author row */
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
}

.testimonial-avatar-large {
  width: 5rem;
  height: 5rem;
  font-size: 1.875rem;
  box-shadow: var(--shadow-xl);
}

.testimonial-service {
  display: inline-block;
  background: rgba(47, 107, 78, 0.1);
  color: var(--brand-dark);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.testimonial-author-name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: #1E2A23;
  font-size: 1.25rem;
  margin-bottom: 0.125rem;
}

.testimonial-author-name-large {
  font-size: 1.5rem;
}

.testimonial-author-status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-purple);
}

/* Highlights row (card 1) */
.testimonial-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #E6DFD0;
}

.testimonial-highlight-item {
  text-align: center;
}

.testimonial-highlight-item i {
  font-size: 1.5rem;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.testimonial-highlight-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-slate);
}

@media (max-width: 639px) {
  .testimonial-highlight-item i {
    font-size: 1.25rem;
  }
  .testimonial-highlight-item span {
    font-size: 0.75rem;
  }
}

/* Checklist (cards 2 & 3) */
.testimonial-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E6DFD0;
}

.testimonial-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-check i {
  color: var(--brand-purple);
  font-size: 1rem;
}

.testimonial-check span {
  font-size: 1rem;
  font-weight: 600;
  color: #1E2A23;
}

/* ---- Card sizes ---- */

/* Large card (7 col) */
.testimonial-card-large {
  background: linear-gradient(135deg, var(--white), rgba(254, 246, 244, 0.5), var(--white));
  border: 2px solid #f3f4f6;
  padding: 2rem;
}

.testimonial-card-large:hover {
  border-color: rgba(194, 113, 76, 0.2);
  box-shadow: var(--shadow-2xl);
}

@media (min-width: 768px) {
  .testimonial-card-large {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-card-large {
    grid-column: span 7;
  }
}

/* Medium card (5 col) */
.testimonial-card-medium {
  background: linear-gradient(135deg, var(--white), var(--white));
  border: 2px solid #f3f4f6;
}

.testimonial-card-medium:hover {
  border-color: rgba(194, 113, 76, 0.2);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
  .testimonial-card-medium {
    grid-column: span 5;
  }
}

/* CTA card (7 col, purple) */
.testimonial-card-cta {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark));
  box-shadow: var(--shadow-2xl);
  padding: 2.5rem;
}

@media (min-width: 1024px) {
  .testimonial-card-cta {
    grid-column: span 7;
  }
}

.testimonial-cta-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.testimonial-cta-body {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .testimonial-cta-body {
    flex-direction: row;
    justify-content: space-between;
  }
}

.testimonial-cta-content {
  flex: 1;
}

.testimonial-cta-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .testimonial-cta-title {
    font-size: 2.25rem;
  }
}

.testimonial-cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Rating card inside CTA */
.testimonial-cta-rating {
  flex-shrink: 0;
}

.testimonial-cta-rating-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
}

.testimonial-cta-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.testimonial-cta-rating-card .star-row-small {
  margin-bottom: 0.5rem;
}

.testimonial-cta-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   QUICK BOOK SECTION (homepage)
   Two-column: headline + trust left, card right
   ============================================ */
.qb-section {
  position: relative;
  padding: 6rem 0;
  background: #E4EDE6;
  overflow: hidden;
}

.qb-blob-1 {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 600px;
  height: 600px;
  background: rgba(194, 113, 76, 0.06);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.qb-blob-2 {
  position: absolute;
  bottom: -10%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: rgba(208, 138, 106, 0.05);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.qb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

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

/* ---- Left Column ---- */
.qb-left {
  text-align: center;
}

@media (min-width: 1024px) {
  .qb-left {
    text-align: left;
  }
}

.qb-section .section-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(194, 113, 76, 0.12);
  box-shadow: 0 8px 30px rgba(194, 113, 76, 0.10);
  margin-bottom: 2rem;
}

.qb-section .section-badge-text {
  color: #1E2A23;
}

.qb-section .pulse-dot span:first-child {
  background: #234F3A;
}

.qb-section .pulse-dot span:last-child {
  background: #234F3A;
}

.qb-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E2A23;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.qb-title span {
  display: block;
}

@media (min-width: 768px) {
  .qb-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .qb-title {
    font-size: 3.5rem;
  }
}

.qb-description {
  font-size: 1.125rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

@media (max-width: 1023px) {
  .qb-description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Trust checks */
.qb-trust-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1023px) {
  .qb-trust-list {
    align-items: center;
  }
}

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

.qb-trust-item i {
  color: #6E9583;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.qb-trust-item span {
  font-size: 1rem;
  font-weight: 600;
  color: #1E2A23;
}

/* Left CTA */
.qb-left-cta {
  color: #234F3A;
  border: 2px solid rgba(194, 113, 76, 0.25);
  background: transparent;
}

.qb-left-cta:hover {
  border-color: #C2714C;
  color: #C2714C;
}

/* ---- Right Column ---- */
.qb-right {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---- Quick Book Card ---- */
.qb-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 2rem;
  border: 1px solid rgba(194, 113, 76, 0.12);
  box-shadow: 0 30px 80px -10px rgba(194, 113, 76, 0.22),
              0 8px 20px -4px rgba(194, 113, 76, 0.08);
  padding: 2.5rem;
  transform: rotate(-1deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  z-index: 10;
}

.qb-card:hover {
  transform: rotate(0deg);
  box-shadow: 0 35px 90px -10px rgba(194, 113, 76, 0.28),
              0 12px 25px -4px rgba(194, 113, 76, 0.12);
}

/* Terracotta accent bar at top */
.qb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: linear-gradient(90deg, #C2714C, #D08A6A, #C2714C);
  border-radius: 0 0 4px 4px;
}

/* ---- Card Header ---- */
.qb-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qb-card-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(194, 113, 76, 0.35);
}

.qb-card-heading {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: #1E2A23;
  line-height: 1.2;
  margin: 0;
}

.qb-card-available {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.qb-card-available .pulse-dot span:first-child {
  background: #6E9583;
}

.qb-card-available .pulse-dot span:last-child {
  background: #6E9583;
}

.qb-card-available > span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6E9583;
}

/* ---- Card Divider ---- */
.qb-card-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(194, 113, 76, 0.2), transparent);
  margin-bottom: 1.5rem;
}

/* ---- Card Services Label ---- */
.qb-card-services-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1E2A23;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ---- Card Service Grid ---- */
.qb-card-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Referral-only services sit outside the booking grid (see section-quick-book). */
.qb-card-aside {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: -0.75rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(228, 237, 230, 0.55);
  border: 1px solid rgba(110, 149, 131, 0.28);
  font-size: 0.86rem;
  line-height: 1.55;
  color: #3B4A42;
}

.qb-card-aside i.fa-circle-info {
  color: var(--brand-purple, #2F6B4E);
  margin-top: 0.2rem;
  flex: none;
}

.qb-card-aside a {
  color: var(--brand-purple, #2F6B4E);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.qb-card-aside a i {
  font-size: 0.7em;
  margin-left: 0.3em;
}

.qb-card-service {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(194, 113, 76, 0.12);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-primary);
}

.qb-card-service:hover {
  border-color: #C2714C;
  background: rgba(194, 113, 76, 0.04);
  box-shadow: 0 6px 20px rgba(194, 113, 76, 0.15);
  transform: translateY(-2px);
}

.qb-card-service-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, rgba(194, 113, 76, 0.12), rgba(194, 113, 76, 0.05));
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #234F3A;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.qb-card-service:hover .qb-card-service-icon {
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  color: var(--white);
}

.qb-card-service > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E2A23;
  line-height: 1.3;
}

/* ---- Card Main CTA ---- */
.qb-card-cta {
  width: 100%;
  padding: 1.125rem 2rem;
  font-size: 1.0625rem;
  background: linear-gradient(135deg, #C2714C, #A85D3C);
  box-shadow: 0 10px 25px -3px rgba(194, 113, 76, 0.4),
              0 4px 10px -2px rgba(194, 113, 76, 0.15);
  margin-bottom: 1.5rem;
}

.qb-card-cta:hover {
  background: linear-gradient(135deg, #D08A6A, #C2714C);
  box-shadow: 0 15px 35px -5px rgba(194, 113, 76, 0.5),
              0 8px 15px -3px rgba(194, 113, 76, 0.2);
}

/* ---- Card Footer ---- */
.qb-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.qb-card-footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qb-card-footer-item i {
  color: #6E9583;
  font-size: 0.875rem;
}

.qb-card-footer-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a5568;
}

/* ---- Floating Trust Badge ---- */
.qb-floating-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(194, 113, 76, 0.12);
  box-shadow: 0 12px 35px rgba(194, 113, 76, 0.18);
  z-index: 20;
  transition: transform 0.4s ease;
  animation: float 5s ease-in-out infinite;
}

.qb-floating-badge:hover {
  transform: translateY(-3px);
}

.qb-floating-badge i {
  color: #6E9583;
  font-size: 1.125rem;
}

.qb-floating-badge span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1E2A23;
}

/* ---- Quick Book Responsive ---- */
@media (max-width: 1023px) {
  .qb-card {
    transform: rotate(0deg);
    max-width: 500px;
  }

  .qb-floating-badge {
    display: none;
  }
}

@media (max-width: 639px) {
  .qb-card {
    padding: 1.75rem;
  }

  .qb-card-service-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VIDEO MODAL
   Fullscreen overlay for Vimeo video playback
   ============================================ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-modal-container {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.video-modal.is-active .video-modal-container {
  transform: scale(1) translateY(0);
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .video-modal-container {
    width: 95vw;
    border-radius: 0.75rem;
  }

  .video-modal-close {
    top: -2.5rem;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS (Home Page)
   Elements start hidden and animate in when
   they enter the viewport via IntersectionObserver
   ============================================ */

/* Base hidden state — applied by JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Visible state — toggled by JS */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays for child items */
.reveal-stagger-1 { transition-delay: 0.08s; }
.reveal-stagger-2 { transition-delay: 0.16s; }
.reveal-stagger-3 { transition-delay: 0.24s; }
.reveal-stagger-4 { transition-delay: 0.32s; }
.reveal-stagger-5 { transition-delay: 0.40s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 5rem 0 6rem;
  background: var(--cream);
}

.faq-container {
  max-width: 780px;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.faq-description {
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  color: var(--text-slate);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--brand-accent);
  box-shadow: 0 6px 20px -8px rgba(35, 79, 58, 0.15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question-text {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-chevron i {
  font-size: 0.75rem;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand-dark);
  color: var(--brand-light);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .faq-section { padding: 3.5rem 0 4rem; }
  .faq-question { padding: 1rem 1.125rem; }
  .faq-answer { padding: 0 1.125rem 1.125rem; }
}

/* ============================================
   REUSABLE BOOKING EMBED
   template-parts/section-booking-embed.php — a pre-filtered Amelia form
   dropped onto service pages. Lives in globals.css because it appears on
   pages with several different per-page stylesheets.
   ============================================ */

.ep-booking-embed {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, rgba(110, 149, 131, 0.07), rgba(194, 113, 76, 0.05));
}

.ep-booking-embed-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.ep-booking-embed-title {
  font-family: var(--font-accent, 'Syne', sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--text-dark, #1E2A23);
  margin: 1rem 0 0.75rem;
  line-height: 1.2;
}

.ep-booking-embed-subtitle {
  font-size: 1rem;
  color: var(--text-gray, #5B655E);
  line-height: 1.65;
  margin: 0;
}

.ep-booking-embed-frame {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(194, 113, 76, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  padding: 1.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ep-booking-embed-frame { padding: 2rem; }
}

/* Amelia ships its own layout; just stop it overflowing the card on mobile */
.ep-booking-embed-frame .amelia-v2-booking {
  max-width: 100%;
}

/* Page-supplied note above the fallback line. Same treatment, so the two read
   as one block rather than competing. */
.ep-booking-embed-note {
  margin: 1.75rem auto 0;
  max-width: 44rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #3F4A44;
}

.ep-booking-embed-note a {
  color: var(--brand-purple, #2F6B4E);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 78, 0.32);
  padding-bottom: 1px;
}

.ep-booking-embed-note a:hover,
.ep-booking-embed-note a:focus-visible {
  border-bottom-color: var(--brand-purple, #2F6B4E);
}

/* With a note above it, the fallback is the second line of the same block. */
.ep-booking-embed-note + .ep-booking-embed-fallback {
  margin-top: 0.6rem;
}

.ep-booking-embed-fallback {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #3F4A44;
}

.ep-booking-embed-fallback a {
  /* Was --brand-accent (#6E9583), which measures 3.04:1 on this bar and fails
     AA — the phone number was the weakest thing in the section despite being
     the fallback call to action. --brand-purple is 5.73:1. */
  color: var(--brand-purple, #2F6B4E);
  font-weight: 700;
  text-decoration: none;
  /* Colour alone was carrying the link affordance. */
  border-bottom: 1px solid rgba(47, 107, 78, 0.32);
  padding-bottom: 1px;
  /* B8: stop the phone number breaking across two lines mid-number */
  white-space: nowrap;
}

.ep-booking-embed-fallback a:hover,
.ep-booking-embed-fallback a:focus-visible {
  border-bottom-color: var(--brand-purple, #2F6B4E);
}

/* ============================================
   REUSABLE IMAGE BAND
   template-parts/section-image-band.php — a supporting visual for long
   text-heavy pages. In globals.css because it appears on pages using
   several different per-page stylesheets.
   ============================================ */

.ep-image-band {
  padding: 3rem 0;
}

.ep-image-band-figure {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: rgba(110, 149, 131, 0.06);
}

.ep-image-band-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .ep-image-band { padding: 4rem 0; }
}

.ep-image-band-caption {
  padding: 1.125rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-dark, #1E2A23);
  text-align: center;
  background: #fff;
}

/* ============================================
   PHARMACY FIRST — condition cards
   .treatment-card is a fixed 4:5 overflow:hidden image tile. The wrapper
   .pf-condition is the grid item, so the description can sit BELOW the
   tile instead of being clipped inside it.
   ============================================ */

/* Seven conditions + one "ask us" tile = a complete 4x2 block at desktop and
   2x4 at tablet. An auto-fit grid gave 5 across and left an orphan row of 2. */
.pf-conditions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 900px) {
  .pf-conditions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pf-condition {
  display: flex;
  flex-direction: column;
}

/* Eighth tile — same 4:5 footprint as a condition card, but a prompt rather
   than a condition, so the grid completes instead of trailing off. */
.pf-condition-ask {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  aspect-ratio: 4 / 5;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: var(--brand-dark, #234F3A);
  color: var(--cream, #F7F2E8);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-condition-ask:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(35, 79, 58, 0.5);
}

.pf-condition-ask-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.125rem;
}

.pf-condition-ask-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pf-condition-ask-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.pf-condition-ask-cta {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: #F4C542;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* these tiles aren't links — drop the pointer affordance, keep the tile shape */
.pf-condition-card {
  cursor: default;
}

.pf-condition-age {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 11;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1E2A23;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pf-condition-desc {
  margin: 1rem 0 0;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-gray, #5B655E);
}

.pf-conditions-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(110, 149, 131, 0.09);
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-gray, #5B655E);
}

.pf-conditions-note i {
  color: var(--brand-accent, #6E9583);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* --------------------------------------------
   Pharmacy First — stats bar bridge

   .stats-section floats its glass bar over the HOMEPAGE hero: margin-top
   -3rem, padding 0, and no background of its own. Dropped onto this page
   the body cream (--cream #F7F2E8) showed through beneath the bar, and the
   white conditions section then began flush against that strip.

   Keep the overlap — it's the effect that makes the bar work — but fill
   everything below it with white so the bar reads as sitting on top of the
   next section rather than on a stray beige band.
   -------------------------------------------- */

.pf-stats-section {
  padding-bottom: 3.5rem;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 3rem,
    #ffffff 3rem,
    #ffffff 100%
  );
}

/* the conditions section now continues that white, so it needs less lead-in */
.pf-stats-section + .treatments-section {
  padding-top: 2.5rem;
}

/* ============================================
   SHARED SOCIAL-PROOF STRIP
   ============================================ */
.ep-proof-strip {
  padding: 1.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ep-proof-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.ep-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--text-gray);
}

.ep-proof-item strong {
  color: var(--text-dark);
}

.ep-proof-item a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ep-proof-item > i {
  color: var(--brand-dark);
  font-size: 1rem;
}

.ep-proof-stars {
  display: inline-flex;
  gap: 0.15rem;
}

.ep-proof-stars i {
  color: #F4B400;
  font-size: 0.8125rem;
}

.ep-proof-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
}

@media (max-width: 640px) {
  .ep-proof-divider { display: none; }
  .ep-proof-strip-inner { flex-direction: column; gap: 0.75rem; }
}

/* ============================================
   PHARMACY FIRST — cost / exemptions panel
   Sits between the How It Works steps and the CTA, where the cost
   question actually lands for a visitor.
   ============================================ */
.pf-cost-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 3.5rem auto 0;
  padding: 2.25rem;
  background: var(--cream, #F7F2E8);
  border: 1px solid var(--border, #E6DFD0);
  border-radius: 1.5rem;
}

@media (min-width: 860px) {
  .pf-cost-panel {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    padding: 2.75rem;
  }
}

.pf-cost-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-purple, #2F6B4E);
  margin-bottom: 0.85rem;
}

.pf-cost-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-dark, #234F3A);
  margin-bottom: 0.9rem;
}

.pf-cost-text {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark, #1E2A23);
  margin-bottom: 1rem;
}

.pf-cost-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-gray, #5B655E);
}

.pf-cost-note i {
  margin-top: 0.2rem;
  color: var(--brand-purple, #2F6B4E);
  flex-shrink: 0;
}

.pf-cost-exempt {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border, #E6DFD0);
}

.pf-cost-exempt-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brand-dark, #234F3A);
  margin-bottom: 1rem;
}

.pf-cost-exempt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pf-cost-exempt-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-dark, #1E2A23);
}

.pf-cost-exempt-list li i {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--brand-purple, #2F6B4E);
  flex-shrink: 0;
}

/* ============================================
   NHS NATIONAL BOOKING NOTICE  (amends C9)
   Deliberately high-contrast — its job is to stop an NHS patient
   booking a private slot by mistake, so it has to interrupt.
   ============================================ */

.ep-nhs-notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #EAF3FB;
  border: 1px solid #B6D4EC;
  border-left: 5px solid #005EB8; /* NHS blue */
}

.ep-nhs-notice-icon {
  color: #005EB8;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ep-nhs-notice-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #003B6F;
}

.ep-nhs-notice-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #234;
}

.ep-nhs-notice-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #005EB8;
  text-decoration: underline;
}

.ep-nhs-notice-link i {
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

.ep-nhs-notice-link:hover { color: #003B6F; }

/* wrapper so it can sit between full-width sections */
.ep-nhs-notice-band { padding: 2rem 0; }

/* ---------------------------------------------------------------------------
   Footer — Yellow Fever Vaccination Centre strip
   One accreditation row at the top of the footer, framed in the same card
   language as the certification badges below it. Hidden until a logo is set.
   --------------------------------------------------------------------------- */

.footer-yfvc {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 0;
  margin-bottom: 2.5rem;
}

/* Same tokens as .footer-cert-item, so the strip reads as footer furniture. */
.footer-yfvc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.25rem;
  padding: 2rem 2.5rem;
  background: rgba(47, 107, 78, 0.08);
  border: 1px solid rgba(47, 107, 78, 0.2);
  border-radius: 1.25rem;
}

.footer-yfvc-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: none;
}

/*
 * Per-mark heights, matched optically rather than numerically: the NaTHNaC
 * wordmark is wide and horizontal, the YFZ mark is a roundel, and equal pixel
 * heights would make the roundel dominate. The roundel also carries small
 * text inside it, so it needs the larger of the two to stay legible.
 */
.footer-yfvc-logo {
  width: auto;
  object-fit: contain;
}

/* Soft lift off the card — presence without adding a single pixel of size.
   The NaTHNaC slot currently holds a dark-tile image, so it gets rounded
   corners; harmless if a transparent version is swapped in later. */
.footer-yfvc-logo--nathnac {
  height: 96px;
  border-radius: 0.9rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.footer-yfvc-logo--yfz {
  height: 106px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}

.footer-yfvc-copy {
  flex: 1 1 22rem;
  min-width: 0;
  text-align: left;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 2.25rem;
}

.footer-yfvc-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.footer-yfvc-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 44rem;
}

/* The site's pill-button language, ghosted — visible without shouting. */
.footer-yfvc-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-yfvc-link i { font-size: 0.75em; }

.footer-yfvc-link:hover,
.footer-yfvc-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/*
 * Combined lockup: one image carrying both marks. Rounded so that if the
 * file has a flat background baked in (it may be a JPG), the rectangle
 * reads as a deliberate tile rather than a pasted box.
 */
.footer-yfvc-logo--lockup {
  height: 112px;
  width: auto;
  max-width: 100%;
  border-radius: 1rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
  .footer-yfvc-row {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.15rem;
    text-align: center;
  }

  .footer-yfvc-logos {
    gap: 1.25rem;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-yfvc-logo--lockup {
    height: auto;
    width: 100%;
    max-width: 320px;
  }

  .footer-yfvc-copy {
    /* The desktop rule's flex-basis of 22rem sets WIDTH in the row layout,
       but once this stacks to a column the same basis becomes HEIGHT —
       forcing the text block ~352px tall and opening a huge gap above the
       button. Reset to auto so the block is only as tall as its text. */
    flex: 0 0 auto;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.15rem;
    text-align: center;
  }

  .footer-yfvc-text { margin: 0 auto; }
  .footer-yfvc-logo--nathnac { height: 72px; }
  .footer-yfvc-logo--yfz     { height: 80px; }
}

/* =========================================================================
   CONTENT HUB
   Health Hub articles surfaced on a service page, labelled by the question
   each one answers. Lives in globals so the partial can be dropped onto any
   template without a per-page stylesheet.

   Two named variants, set from the template, never a raw colour from a caller:
     --light / --dark        the section surface
     --accent-brand / -gold  the highlight colour
   ========================================================================= */

.content-hub-section {
  --hub-accent: var(--brand-purple, #2F6B4E);
  --hub-title: var(--text-dark, #1E2A23);
  --hub-body: #3F4A44;
  --hub-rule: rgba(110, 149, 131, 0.28);

  padding: 5.5rem 0;
  background: var(--brand-light, #E4EDE6);
}

/* Dark band. The service pages run several pale sections in a row, so the hub
   needs its own surface or it reads as a continuation of the FAQ above it. */
.content-hub-section--dark {
  --hub-title: #FFFFFF;
  --hub-body: rgba(255, 255, 255, 0.82);
  --hub-rule: rgba(255, 255, 255, 0.18);

  background:
    radial-gradient(circle at 18% 0%, rgba(110, 149, 131, 0.35), transparent 55%),
    linear-gradient(150deg, #1E4632 0%, #17382A 100%);
}

.content-hub-section--accent-gold { --hub-accent: #F5C518; }

.content-hub-header {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.content-hub-header .section-badge {
  margin: 0 auto 1.25rem;
}

/* The shared badge is built for pale backgrounds; on the dark band it needs
   its own treatment or it disappears. */
.content-hub-section--dark .section-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  /* The shared badge carries a warm light-background shadow; on the dark band
     it does nothing but muddy the edge. */
  box-shadow: none;
}

.content-hub-section--dark .section-badge-text {
  color: rgba(255, 255, 255, 0.92);
}

.content-hub-section--dark .pulse-dot span {
  background: var(--hub-accent);
}

.content-hub-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.18;
  color: var(--hub-title);
  margin: 0 0 0.85rem;
}

.content-hub-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--hub-body);
  margin: 0;
}

.content-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

/* Explicit column counts so six cards make a clean 3x2 instead of 4 + an
   orphaned pair. Only applied once there is room for them. */
@media (min-width: 62rem) {
  .content-hub-section--cols-3 .content-hub-grid { grid-template-columns: repeat(3, 1fr); }
  .content-hub-section--cols-2 .content-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

.content-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: #FFFFFF;
  border: 1px solid rgba(110, 149, 131, 0.28);
  border-radius: 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Accent edge, drawn in on hover rather than sitting there on all six at once. */
.content-hub-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--hub-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.content-hub-section--dark .content-hub-card {
  border-color: rgba(255, 255, 255, 0.14);
}

.content-hub-card:hover,
.content-hub-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--hub-accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.content-hub-card:hover::before,
.content-hub-card:focus-visible::before {
  transform: scaleY(1);
}

.content-hub-card-tag {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #78350F;
  background: #FEF3C7;
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
}

/* On the brand accent the chip follows the green, not the gold. */
.content-hub-section--accent-brand .content-hub-card-tag {
  color: var(--brand-dark, #234F3A);
  background: rgba(110, 149, 131, 0.18);
}

/* The question is the headline — it is what the reader is scanning for. */
.content-hub-card-question {
  font-family: var(--font-accent, 'Syne', sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark, #1E2A23);
  margin: 0;
}

/* Not a teaser. The card answers the question, then earns the click. */
.content-hub-card-answer {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4A554F;
  margin: 0;
  flex: 1 1 auto;
}

.content-hub-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(110, 149, 131, 0.2);
}

.content-hub-card-read {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-purple, #2F6B4E);
}

.content-hub-card-read i {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.content-hub-card:hover .content-hub-card-read i {
  transform: translateX(4px);
}

.content-hub-card-time {
  font-size: 0.8125rem;
  color: #6B7770;
  white-space: nowrap;
}

.content-hub-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.content-hub-footer-link {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hub-title);
  text-decoration: none;
  border-bottom: 1px solid var(--hub-accent);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}

.content-hub-footer-link:hover {
  opacity: 0.75;
}

.content-hub-footer-link i {
  margin-left: 0.35rem;
  font-size: 0.8125rem;
  color: var(--hub-accent);
}

@media (max-width: 640px) {
  .content-hub-section { padding: 3.75rem 0; }
  .content-hub-header  { margin-bottom: 2.25rem; }
}
