/* ============================================================
   APOLLO DIAGNOSTIC CENTRE — STYLESHEET
   Implements Stage 3 Sections C (Global Design System) and D (Typography)
   ============================================================ */

:root {
  /* C1: Colour */
  --primary: #2E1B87;
  --primary-hover: #24166B;
  --primary-active: #1B1055;
  --tint-fill: #F1EFFA;
  --tint-pressed: #E3DEF7;
  --bg: #FFFFFF;
  --surface-alt: #F7F6FB;
  --text: #17142B;
  --muted: #57536F;
  --border: #DCD8EE;
  --control-border: #7A7699;
  --whatsapp: #0A6B43;
  --whatsapp-hover: #085A38;
  --whatsapp-active: #064A2E;
  --whatsapp-tonal-fill: #E8F6EE;
  --whatsapp-tonal-text: #0A5C3A;
  --success-text: #0B6B3F;
  --success-fill: #E8F6EE;
  --error-text: #B42318;
  --error-fill: #FEECEB;
  --footer-fill: #17142B;
  --footer-muted: #C9C5E0;

  /* C5: Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* D2: Type scale */
h1, .h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
h3, .h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
.lead { font-size: 18px; line-height: 28px; font-weight: 400; }
p, body { font-size: 16px; line-height: 26px; }
.small { font-size: 14px; line-height: 20px; }
.label { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.01em; }

@media (min-width: 1024px) {
  h1, .h1 { font-size: 44px; line-height: 52px; }
  h2, .h2 { font-size: 32px; line-height: 40px; }
  h3, .h3 { font-size: 20px; line-height: 28px; }
  .lead { font-size: 20px; line-height: 30px; }
  p, body { font-size: 17px; line-height: 28px; }
}

.muted { color: var(--muted); }
.max-measure { max-width: 65ch; }

/* Skip link (P2) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Focus ring (P2, C3) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--primary);
}

/* Layout container (C6) */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 390px) { .wrap { padding: 0 20px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

section { padding: 40px 0; }
@media (min-width: 1024px) { section { padding: 72px 0; } }
.surface-alt { background: var(--surface-alt); }

.section-head { max-width: 65ch; margin-bottom: 16px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 24px; } }
.section-head .sub { color: var(--muted); font-size: 16px; margin-top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- C2/C3: Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.btn > span { min-width: 0; }
.btn-label-full { white-space: nowrap; }
.btn-compact { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* Responsive dual labels — long label (e.g. a phone number) on wide screens, short label on narrow.
   Rules further down (header-right) tighten the boundary to 1280 for the header buttons only, so the
   nav has room at 1024–1279. */
.btn-label-full { display: inline; }
.btn-label-short { display: none; }
@media (max-width: 767px) {
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}
.btn-wa:hover { background: var(--whatsapp-hover); }
.btn-wa:active { background: var(--whatsapp-active); }

.btn-wa-tonal {
  background: var(--whatsapp-tonal-fill);
  color: var(--whatsapp-tonal-text);
  border-color: var(--whatsapp);
}
.btn-wa-tonal:hover { background: #DCF1E5; }

.btn-wa-dark {
  background: #fff;
  color: var(--whatsapp-tonal-text);
}
.btn-wa-dark:hover { background: #F0F0F0; }

.btn-call {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  border-width: 2px;
}
.btn-call:hover { background: var(--tint-fill); }
.btn-call:active { background: var(--tint-pressed); }

.btn-nav {
  background: var(--primary);
  color: #fff;
}
.btn-nav:hover { background: var(--primary-hover); }
.btn-nav:active { background: var(--primary-active); }

/* ---- Global pop-up + glow on Call and WhatsApp buttons (site-wide) ----
   Small 2 px lift + a colored halo that matches the button's own semantic colour:
   green for WhatsApp variants, brand purple for Call. On dark backgrounds (hero, footer)
   the Call glow flips to a soft white so it stays visible. Gated on hover-capable
   pointers ≥768 px so touch users never get a stuck state. */
.btn-wa, .btn-wa-tonal, .btn-wa-dark, .btn-call {
  will-change: transform;
  transition: background 150ms ease, border-color 150ms ease,
              transform 200ms ease, box-shadow 200ms ease;
}
@media (hover: hover) and (min-width: 768px) {
  .btn-wa:hover, .btn-wa-tonal:hover, .btn-wa-dark:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 24px -10px rgba(10, 107, 67, 0.55),
      0 4px 8px -3px rgba(10, 107, 67, 0.25);
  }
  .btn-call:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 24px -10px rgba(46, 27, 135, 0.5),
      0 4px 8px -3px rgba(46, 27, 135, 0.25);
  }
  /* Call button on dark surfaces (branded hero, dark footer) → white glow instead of purple */
  .hero .btn-call:hover, footer.site .btn-call:hover {
    box-shadow:
      0 10px 24px -10px rgba(255, 255, 255, 0.45),
      0 4px 8px -3px rgba(255, 255, 255, 0.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-wa, .btn-wa:hover,
  .btn-wa-tonal, .btn-wa-tonal:hover,
  .btn-wa-dark, .btn-wa-dark:hover,
  .btn-call, .btn-call:hover { transition: none; transform: none; }
}

.text-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}
.text-link:hover { color: var(--primary-hover); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
@media (min-width: 1024px) { .card { padding: 24px; } }

/* ---------- Badge (C10) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--tint-fill);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ---------- Inputs ---------- */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.field-input:focus {
  border-color: var(--primary);
  outline: none;
}
.field-error .field-input { border-color: var(--error-text); }
.field-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--error-text);
  font-size: 13px;
  margin-top: 6px;
}
.field-help { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; }
.icon-chip {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--tint-fill);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Header (Section E) ---------- */
header.site {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  height: 68px;
  color: var(--text);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 10px; height: 52px; flex-shrink: 0; }
.header-logo img { height: 52px; width: auto; }
.header-logo .biz-name { font-weight: 700; font-size: 15px; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-nav { display: none; }
.header-call-desktop { display: none; }
.menu-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--primary);
}
.menu-btn:hover { background: var(--tint-pressed); }

@media (min-width: 768px) {
  header.site { height: 80px; }
  .header-logo, .header-logo img { height: 60px; }
}
@media (min-width: 1024px) {
  header.site {
    height: 92px;
    position: sticky;
    top: 0;
    z-index: 40;
    transition: box-shadow 150ms ease;
  }
  .header-logo, .header-logo img { height: 68px; }
  header.site.scrolled { box-shadow: 0 4px 16px -8px rgba(46,27,135,0.2); }
  .header-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
    margin: 0 12px;
  }
  .header-nav a {
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    color: var(--text);
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  /* Header buttons on 1024–1279 stay compact-icon+"Call"/"WhatsApp" to leave room for the nav.
     At 1280+ we surface the full phone number. */
  .header-right .btn .btn-label-full { display: none; }
  .header-right .btn .btn-label-short { display: inline; }
  .header-nav a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    border-bottom-color: rgba(46, 27, 135, 0.35);
  }
  .header-nav a[aria-current="page"] {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
  }
  .header-call-desktop { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header-nav a, .header-nav a:hover { transition: none; transform: none; }
}

/* Mid-desktop (1280+): give the nav a bit more breathing room now that the
   wrap has grown to 1280 and there's actual space for it. Header buttons
   stay icon+short label — the full phone number only unlocks at 1500+. */
/* Mid-desktop (1200+): give the nav breathing room and un-compact the header
   buttons back toward their pre-Ultrasound size. This tier catches typical
   1280-window laptops (whose effective viewport is ~1263 after the vertical
   scrollbar) so they don't fall back to the 1024 tight-fit rule. */
@media (min-width: 1200px) {
  .header-inner {
    justify-content: center;
    gap: 24px;
  }
  .header-nav { gap: 18px; margin: 0; flex-shrink: 0; }
  .header-nav a { font-size: 15px; }
  .header-right { gap: 12px; }
  .header-right .btn.btn-compact {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* Wide desktop (1320+): the three header groups get a bit more space between
   them and slightly larger nav labels. Full 1280 wrap is now in play. */
@media (min-width: 1320px) {
  .header-inner { gap: 32px; }
  .header-nav { gap: 24px; }
  .header-nav a { font-size: 16px; }
}

/* Widest desktops (1500+) surface the phone number on the Call button only.
   Nav gap/font stay at the 1320+ values — this rule only toggles the label. */
@media (min-width: 1500px) {
  .header-right .btn-call .btn-label-full { display: inline; }
  .header-right .btn-call .btn-label-short { display: none; }
}

/* Menu sheet (Section E) */
.menu-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(23,20,43,0.4);
  z-index: 50;
}
.menu-backdrop.open { display: block; }
.menu-sheet {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: 0 20px 50px -20px rgba(23,20,43,0.4);
  z-index: 51;
  transform: translateY(-100%);
  transition: transform 200ms ease;
  max-height: 90vh;
  overflow-y: auto;
}
.menu-sheet.open { transform: translateY(0); }
.menu-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px; border-bottom: 1px solid var(--border);
}
.menu-sheet-list { list-style: none; }
.menu-sheet-list li a {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.menu-sheet-list li a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.menu-sheet-ctas { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.menu-sheet-directions { padding: 0 20px 20px; }
@media (min-width: 1024px) {
  .menu-backdrop, .menu-sheet { display: none !important; }
}

/* ---------- Mobile sticky CTA (Section F) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -12px rgba(23,20,43,0.18);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  z-index: 30;
  transition: transform 150ms ease;
}
.sticky-cta.hidden { transform: translateY(100%); }
.sticky-cta .btn { flex: 1; min-height: 48px; }
.sticky-cta .btn-wa { flex: 1.5; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Hero (G2) ---------- */
.hero {
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg-video-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s linear;
}
.hero-bg-video.is-active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 45, 0.78) 0%, rgba(10, 20, 45, 0.55) 55%, rgba(10, 20, 45, 0.25) 100%);
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
  .hero { background: linear-gradient(90deg, rgba(10,20,45,0.78), rgba(10,20,45,0.25)), url("hero-bg.jpg") center/cover no-repeat, var(--primary); }
}
.hero-bg-dna-wrap { display: none; }
@media (min-width: 1024px) { .hero { border-radius: 0; padding: 56px 0; } }
.hero > .wrap { position: relative; z-index: 1; }

/* Decorative DNA in the hero background — vertical helix laid horizontally,
   spinning gently around its own long axis so it looks like a living molecule
   rather than a static picture. Kept at low opacity so hero text stays 4.5:1+ contrast. */
.hero-bg-dna-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-bg-dna {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.09;
  transform-origin: center center;
  /* Vertical helix rotated 90° so it lies horizontally, stretched edge-to-edge in the hero.
     Aspect ratio preserved (height: auto). Kept very light so text and cards stay legible. */
  transform: rotate(90deg);
}
@media (min-width: 768px) { .hero-bg-dna { opacity: 0.11; } }

/* Diagnostic-monitor pulse line along the bottom edge of the hero:
   a thin faint base line + a cyan gradient blip that continuously traces left→right,
   evoking a lab signal line to reinforce the medical/diagnostic identity. */
.hero-pulse {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(95, 212, 232, 0) 0%,
    rgba(95, 212, 232, 0) 42%,
    rgba(95, 212, 232, 0.95) 50%,
    rgba(255, 255, 255, 1) 51%,
    rgba(95, 212, 232, 0.95) 52%,
    rgba(95, 212, 232, 0) 58%,
    rgba(95, 212, 232, 0) 100%
  );
  transform: translateX(-100%);
  animation: heroPulseTrace 3.5s linear infinite;
  filter: drop-shadow(0 0 4px rgba(95, 212, 232, 0.6));
}
@keyframes heroPulseTrace {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pulse::after { animation: none; opacity: 0; }
}
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; }
}
.hero h1 { margin-bottom: 12px; max-width: 22ch; color: #fff; }
.hero .hero-tagline {
  display: block;
  margin-top: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,0.85);
}
.hero .lead { color: rgba(255,255,255,0.9); margin-bottom: 20px; max-width: 50ch; }
.hero-ctas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hero-ctas .btn { width: 100%; }
@media (min-width: 480px) { .hero-ctas { flex-direction: row; } .hero-ctas .btn { width: auto; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.hero-fact { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.8); }
/* .btn-call inside the branded hero: swap to a light outline treatment so a white-on-white button doesn't disappear */
.hero .btn-call { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-call:hover { background: rgba(255,255,255,0.12); }

.hero-packages-panel {
  position: relative;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  /* Layered gold glow — matches the golden halo used on the package cards' hover state,
     so the panel reads as gently lit from behind on the purple hero. */
  box-shadow:
    0 0 22px rgba(198, 161, 62, 0.45),
    0 0 60px rgba(198, 161, 62, 0.2);
}

/* Border-beam: a soft cyan→gold light traces the panel perimeter continuously.
   Pure CSS — no motion library. Uses @property for smooth angle interpolation and
   the classic mask-composite trick to paint only the border ring. */
@property --panel-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.hero-packages-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    var(--panel-beam-angle),
    transparent 0%,
    transparent 35%,
    #E6C575 50%,
    #C9A46B 65%,
    transparent 80%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: panelBeamSpin 12s linear infinite;
  pointer-events: none;
}
@keyframes panelBeamSpin {
  from { --panel-beam-angle: 0deg; }
  to   { --panel-beam-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-packages-panel::before { animation: none; }
}
.hero-packages-panel h2 { font-size: 16px; margin-bottom: 12px; }
.hpp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px;
  margin: 0 -10px;
  border-top: 1px solid var(--border);
  border-radius: 10px;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.hpp-row:first-of-type { border-top: none; }
.hpp-row .name { font-weight: 600; font-size: 15px; }
.hpp-row .price { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.hpp-row .price .icon { transition: transform 200ms ease; }

@media (hover: hover) and (min-width: 768px) {
  .hpp-row:hover {
    background-color: rgba(198, 161, 62, 0.09);
    box-shadow: 0 8px 20px -12px rgba(198, 161, 62, 0.4);
    transform: translateY(-1px);
  }
  .hpp-row:hover .price { color: var(--primary); }
  .hpp-row:hover .price .icon { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hpp-row, .hpp-row:hover, .hpp-row .price .icon { transition: none; transform: none; }
}

/* ---------- Quick nav (G3) ---------- */
.quicknav { padding: 28px 0; background: #fff; }
@media (min-width: 1024px) { .quicknav { padding: 40px 0; } }
.quicknav-search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 560px; }
.quicknav-search .field-input { flex: 1; }
.quicknav-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1024px) { .quicknav-tiles { grid-template-columns: repeat(4, 1fr); } }
.quicknav-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-height: 56px; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  will-change: transform;
}
@media (hover: hover) and (min-width: 768px) {
  .quicknav-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 161, 62, 0.55);
    box-shadow:
      0 12px 26px -14px rgba(198, 161, 62, 0.35),
      0 3px 8px -3px rgba(23, 20, 43, 0.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .quicknav-tile, .quicknav-tile:hover { transition: none; transform: none; }
}

/* ---------- Package cards (G4) ---------- */
.package-grid { display: grid; gap: 12px; }
@media (min-width: 1024px) { .package-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
/* Section-wide cursor-follow spotlight — a broad warm glow tracks the pointer anywhere
   inside the Health Packages section, complementing the tighter per-card spotlight. */
#packages {
  position: relative;
  overflow: hidden;
  --sx: 50%;
  --sy: 50%;
}
#packages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 520px at var(--sx) var(--sy),
    rgba(198, 161, 62, 0.11),
    rgba(198, 161, 62, 0.04) 32%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 0;
}
#packages > * { position: relative; z-index: 1; }
@media (hover: hover) and (min-width: 768px) {
  #packages:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #packages::before { display: none; }
}

.package-card {
  position: relative;
  overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  will-change: transform;
  --pcx: 50%;
  --pcy: 50%;
}
/* Cursor-follow spotlight: a soft warm radial highlight tracks the pointer inside the card.
   Position updated live via CSS custom properties from a pointermove listener on the grid. */
.package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 220px at var(--pcx) var(--pcy),
    rgba(198, 161, 62, 0.14),
    rgba(198, 161, 62, 0.04) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
  z-index: 0;
}
.package-card > * { position: relative; z-index: 1; }
@media (min-width: 1024px) { .package-card { padding: 24px; } }
@media (hover: hover) and (min-width: 768px) {
  .package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 161, 62, 0.55);
    box-shadow:
      0 14px 32px -14px rgba(198, 161, 62, 0.35),
      0 4px 10px -4px rgba(23, 20, 43, 0.08);
  }
  .package-card:hover::before { opacity: 1; }
}
/* Small chevron on the "View Package" CTA that slides right when the card is hovered */
.package-card-ctas .btn-nav::after {
  content: "→";
  display: inline-block;
  margin-left: 5px;
  opacity: 0.8;
  transition: transform 200ms ease, opacity 200ms ease;
}
@media (hover: hover) and (min-width: 768px) {
  .package-card:hover .btn-nav::after { transform: translateX(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .package-card, .package-card:hover { transition: none; transform: none; }
  .package-card::before { display: none; }
  .package-card-ctas .btn-nav::after { transition: none; }
}
.package-card .test-count { color: var(--muted); font-size: 14px; }
.package-card .price-line { font-size: 32px; font-weight: 700; margin: 4px 0; }
.package-card .price-line.unverified { font-size: 18px; font-weight: 600; color: var(--text); }
.package-card .indiv-total { color: var(--muted); font-size: 14px; }
.package-card .difference { color: var(--success-text); font-size: 14px; font-weight: 600; }
.package-card-ctas { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.package-card-ctas .btn { flex: 1; }

/* ---------- Test cards (G5, H4) ---------- */
.test-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .test-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.test-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  will-change: transform;
}
@media (hover: hover) and (min-width: 768px) {
  .test-card:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 161, 62, 0.55);
    box-shadow:
      0 12px 26px -14px rgba(198, 161, 62, 0.35),
      0 3px 8px -3px rgba(23, 20, 43, 0.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .test-card, .test-card:hover { transition: none; transform: none; }
}
.test-card .name { font-size: 16px; font-weight: 600; line-height: 22px; }
.test-card .info-note { color: var(--muted); font-size: 14px; }
.test-card .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.test-card .bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; flex-wrap: nowrap; }
.test-card .price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.test-card .price.on-request { font-size: 14px; font-weight: 500; color: var(--muted); }
.test-card .btn-compact { white-space: nowrap; flex-shrink: 0; }
/* Stage 3 H4: button label shortens to "Book" only if it would otherwise wrap (below ~360px) */
.test-card .btn-compact .label-full { display: inline; }
.test-card .btn-compact .label-short { display: none; }
@media (max-width: 359px) {
  .test-card .btn-compact .label-full { display: none; }
  .test-card .btn-compact .label-short { display: inline; }
}

/* ---------- Home collection panel (G6) ---------- */
.info-panel {
  background: var(--tint-fill); border-radius: var(--radius-lg); padding: 20px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  will-change: transform;
  border: 1px solid transparent;
}
@media (min-width: 1024px) { .info-panel { padding: 28px; display: flex; align-items: center; gap: 32px; } }
@media (hover: hover) and (min-width: 768px) {
  .info-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 161, 62, 0.55);
    box-shadow:
      0 14px 32px -14px rgba(198, 161, 62, 0.35),
      0 4px 10px -4px rgba(23, 20, 43, 0.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .info-panel, .info-panel:hover { transition: none; transform: none; }
}
.info-panel-content { flex: 1; }
.info-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.info-panel dl { margin-top: 12px; }
.info-panel .drow { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(46,27,135,0.12); font-size: 14px; }
.info-panel .drow:first-child { border-top: none; }
.info-panel .drow dt { color: var(--muted); }
.info-panel .drow dd { font-weight: 500; }
.info-panel .cta-wrap { margin-top: 16px; }
@media (min-width: 1024px) { .info-panel .cta-wrap { margin-top: 0; flex-shrink: 0; } }

/* ---------- Trust strip (G7) ---------- */
.trust-strip { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.trust-strip-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .trust-strip-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  padding: 16px; min-height: 64px;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.trust-item:nth-child(-n+2) { border-top: none; }
.trust-item:nth-child(odd) { border-left: none; }
@media (min-width: 1024px) {
  .trust-item:nth-child(-n+4) { border-top: none; }
  .trust-item:nth-child(odd) { border-left: 1px solid var(--border); }
  .trust-item:first-child { border-left: none; }
}
.trust-item .t-label { font-size: 13px; color: var(--muted); }
.trust-item .t-value { font-size: 16px; font-weight: 600; }

/* ---------- Testimonials (G8) ---------- */
.testi-grid { display: grid; gap: 12px; }
@media (min-width: 1024px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card .quote { font-size: 16px; margin-bottom: 12px; }
.testi-card .attribution { color: var(--muted); font-size: 14px; }

/* ---------- Location (G9) ---------- */
.location-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .location-grid { grid-template-columns: 1fr 1fr; } }
.loc-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.loc-row:first-child { border-top: none; }
.maps-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 10px; text-align: center; min-height: 220px;
  /* Layer: dark gradient at the bottom so the "Open in Google Maps" text stays readable,
     over a real OSM screenshot of the address (purple pin marks the exact spot). */
  background:
    linear-gradient(180deg, rgba(23,20,43,0) 45%, rgba(23,20,43,0.78) 100%),
    url('map-preview.png') center/cover no-repeat;
  color: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  will-change: transform;
  border: 1px solid transparent;
}
.maps-card .icon-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
}
@media (hover: hover) and (min-width: 768px) {
  .maps-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 161, 62, 0.55);
    box-shadow:
      0 14px 32px -14px rgba(198, 161, 62, 0.35),
      0 4px 10px -4px rgba(23, 20, 43, 0.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .maps-card, .maps-card:hover { transition: none; transform: none; }
}
.location-mobile-ctas { display: flex; gap: 10px; margin-top: 14px; }
.location-mobile-ctas .btn { flex: 1; }

/* ---------- Footer (G10) ---------- */
footer.site { background: var(--footer-fill); color: #fff; padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: 20px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
footer.site h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; color: #fff; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site a { color: var(--footer-muted); font-size: 14px; }
footer.site a:hover, footer.site a:focus { color: #fff; text-decoration: underline; }
footer.site .btn { font-size: 14px; text-decoration: none; }
footer.site .btn-wa-dark,
footer.site .btn-wa-dark:hover,
footer.site .btn-wa-dark:focus { color: var(--whatsapp-tonal-text); text-decoration: none; }
/* Footer Call button: outlined on the dark footer bg — transparent fill so the white text/icon show. */
footer.site .btn-call,
footer.site .btn-call:hover,
footer.site .btn-call:focus {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
footer.site .btn-call:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.footer-logo { display: inline-flex; align-items: center; background: #fff; padding: 8px 14px; border-radius: var(--radius-md); margin-bottom: 14px; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-ctas { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.footer-notice { color: var(--footer-muted); font-size: 13px; margin-bottom: 12px; }
.footer-bottom { color: var(--footer-muted); font-size: 12.5px; }

/* ---------- Search page (H) ---------- */
.search-field-wrap { position: relative; }
.search-field-wrap .field-input { padding-left: 42px; }
.search-field-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field-wrap .clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 6px; color: var(--muted); }
.sticky-search {
  position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border);
  padding: 8px 16px; margin: 0 -16px 16px;
}
@media (min-width: 390px) { .sticky-search { padding: 8px 20px; margin: 0 -20px 16px; } }
@media (min-width: 1024px) { .sticky-search { position: static; padding: 8px 0; margin: 0 0 16px; } }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--border);
  background: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--tint-fill); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.results-count { color: var(--muted); font-size: 14px; margin: 16px 0; }
.show-more-btn { width: 100%; margin-top: 16px; }
.help-band { background: var(--tint-fill); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-top: 32px; }
.help-band .btn { margin: 6px; }
.no-results { text-align: center; padding: 40px 20px; }

/* ---------- Package page (I) ---------- */
.pkg-hero { background: var(--tint-fill); padding: 32px 0; }
@media (min-width: 1024px) { .pkg-hero { padding: 56px 0; } }
.pkg-hero-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .pkg-hero-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }
.breadcrumb { display: none; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
@media (min-width: 1024px) { .breadcrumb { display: block; } }
.breadcrumb a { color: var(--primary); }
.pkg-subline { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pkg-descriptor { margin-bottom: 20px; max-width: 50ch; }
.pkg-hero-ctas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pkg-hero-ctas .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14.5px;
}
@media (min-width: 480px) {
  .pkg-hero-ctas { flex-direction: row; }
  .pkg-hero-ctas .btn { width: auto; }
}

.price-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
@media (min-width: 1024px) { .price-block { padding: 24px; } }
.price-block .pb-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.price-block .pb-amount { font-size: 44px; line-height: 48px; font-weight: 700; }
@media (min-width: 1024px) { .price-block .pb-amount { font-size: 56px; line-height: 60px; } }
.price-block .pb-currency { font-size: 60%; vertical-align: top; margin-right: 4px; }
.price-block .pb-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.price-block .pb-count { font-size: 14px; margin-top: 8px; }
.price-block .pb-unverified { font-size: 20px; font-weight: 600; }
.price-compare { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.price-compare .pc-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.price-compare .pc-row.total { font-weight: 600; }
.price-compare .pc-diff { color: var(--success-text); font-weight: 600; font-size: 14px; margin-top: 8px; }

.included-list { list-style: none; }
.included-row {
  display: flex; align-items: flex-start; gap: 10px;
  min-height: 48px; padding: 12px 0; border-top: 1px solid var(--border);
}
.included-row:first-child { border-top: none; }
.included-row .check-icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.included-row .t-name { font-weight: 500; flex: 1; }
.included-row .t-note { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.included-row .t-price { font-weight: 600; white-space: nowrap; }
.duplicate-note { background: var(--tint-fill); color: var(--text); border-left: 3px solid var(--primary); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; margin-top: 12px; }

.cta-band { background: var(--tint-fill); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
@media (min-width: 1024px) { .cta-band { max-width: 720px; margin: 0 auto; } }
.cta-band .price-line { font-weight: 700; font-size: 18px; margin: 8px 0; }
.cta-band-ctas { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
@media (min-width: 480px) { .cta-band-ctas { flex-direction: row; justify-content: center; } .cta-band-ctas .btn { min-width: 200px; } }

.enquiry-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 16px; font-weight: 600; cursor: pointer; }
.enquiry-form-wrap { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.enquiry-form-wrap.open { max-height: 900px; }
.enquiry-form { max-width: 560px; padding-top: 16px; }
.form-row { margin-bottom: 16px; }
.form-row-2col { display: grid; gap: 16px; }
@media (min-width: 768px) { .form-row-2col { grid-template-columns: 1fr 1fr; } }
.error-summary { background: var(--error-fill); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; }
.error-summary h3 { font-size: 15px; color: var(--error-text); margin-bottom: 8px; }
.error-summary ul { list-style: none; }
.error-summary a { color: var(--error-text); text-decoration: underline; font-size: 14px; }
.success-panel { background: var(--success-fill); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.success-panel .check { color: var(--success-text); }
.success-panel h3 { color: var(--success-text); margin-bottom: 8px; }

.other-packages { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .other-packages { grid-template-columns: 1fr 1fr; } }
.other-pkg-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.other-pkg-card .name { font-weight: 600; margin-bottom: 4px; }
.other-pkg-card .price { color: var(--muted); font-size: 14px; }

/* ---------- Ultrasound page ---------- */
.us-offer {
  background: linear-gradient(135deg, var(--primary), #4a35c7);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(46,27,135,0.18);
}
@media (min-width: 1024px) { .us-offer { padding: 40px 32px; } }
.us-offer .us-offer-badge {
  display: inline-block;
  background: var(--accent, #c6a13e);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.us-offer h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 8px;
}
@media (min-width: 1024px) { .us-offer h2 { font-size: 44px; } }
.us-offer .us-offer-time {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: #fff;
}
@media (min-width: 1024px) { .us-offer .us-offer-time { font-size: 26px; } }
.us-offer .us-offer-freq {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 16px;
}
.us-offer .us-offer-desc {
  max-width: 60ch;
  margin: 0 auto 20px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}
.us-offer .us-offer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  max-width: 320px;
}
@media (min-width: 520px) {
  .us-offer .us-offer-ctas {
    flex-direction: row;
    max-width: none;
    align-items: center;
  }
  .us-offer .us-offer-ctas .btn { min-width: 200px; }
}
.us-offer .us-offer-ctas .btn {
  height: 48px;
  padding: 0 20px;
  font-weight: 600;
  justify-content: center;
}
/* Call button on dark purple: solid white for high contrast, primary text */
.us-offer .btn-call {
  background: #fff;
  color: var(--primary);
  border: 1px solid #fff;
}
.us-offer .btn-call:hover { background: rgba(255,255,255,0.9); }

.us-group { margin-top: 28px; }
.us-price-list {
  display: grid;
  gap: 10px;
}
.us-price-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.us-price-name {
  font-weight: 600;
  font-size: 16px;
  flex: 1 1 200px;
  min-width: 0;
}
.us-price-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.us-price-value {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}
.us-price-row .btn-compact { white-space: nowrap; flex-shrink: 0; }
.us-price-row .btn-compact .label-full { display: inline; }
.us-price-row .btn-compact .label-short { display: none; }
@media (max-width: 480px) {
  .us-price-row .btn-compact .label-full { display: none; }
  .us-price-row .btn-compact .label-short { display: inline; }
}

.us-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md, 10px);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
