/* ==========================================================================
   Park House Surgery — Design System (Green & Cream, Editorial)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Design tokens — NHS Blue, GRH-aligned editorial */
:root {
  --primary: #005EB8;          /* NHS Blue */
  --primary-dark: #003D7A;     /* Deep navy */
  --primary-darker: #001F3F;   /* Very deep navy */
  --primary-light: #E8F1FB;    /* Pale blue tint */
  --primary-mid: #1E5F9E;
  --bright-blue: #2C8FD7;
  --accent: #BE185D;           /* Deep rose pink — confident, NHS-friendly */
  --accent-warm: #9D174D;
  --accent-light: #FCE7F3;
  --green: #007F3B;
  --green-light: #E5F4EC;
  --emergency: #DA291C;
  --emergency-light: #FCEAE9;
  --pink: #AE2573;
  --bg: #FFFFFF;
  --bg-tint: #F4F8FC;          /* Very pale blue */
  --surface: #FFFFFF;
  --surface-alt: #EDF3FA;
  --text: #0B1E2E;             /* Deep navy-black */
  --text-body: #3D4F5C;
  --text-muted: #6F7B85;
  --border: #DDE5EC;
  --border-strong: #B0BCC8;
  --focus: #BE185D;
  --shadow-sm: 0 1px 2px rgba(11, 30, 46, 0.06);
  --shadow: 0 8px 28px rgba(0, 61, 122, 0.10);
  --shadow-lg: 0 28px 72px rgba(0, 61, 122, 0.18);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --container: 1200px;
  --header-h: 76px;
}

/* Welsh language toggle button (header) */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Machine-translation notice (top of page, when Welsh active) */
.translate-notice {
  background: var(--accent-light);
  color: var(--text);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}
.translate-notice a {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--primary-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; color: white; }

/* Typography — confident sans throughout */
h1, h2, h3, h4 {
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); margin-top: 1.5em; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: 1.375rem; margin-top: 1.25em; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 0.75rem; margin-top: 1em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
p { margin: 0 0 1em; color: var(--text-body); }
strong { color: var(--text); font-weight: 700; }
ul, ol { color: var(--text-body); padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Emergency banner */
.emergency-bar {
  background: var(--primary-dark);
  color: white;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 4px solid var(--emergency);
}
.emergency-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.emergency-bar a { color: white; font-weight: 600; }
.emergency-bar strong { color: white; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 6px;
  background: var(--primary);
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(0, 61, 122, 0.32);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name strong { font-size: 1.125rem; font-weight: 700; }
.brand-name span { font-size: 0.8125rem; color: var(--text-muted); }

/* Nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.primary-nav a:hover { background: var(--surface-alt); color: var(--primary-dark); }
.primary-nav a.is-active {
  background: var(--primary);
  color: white;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.125rem;
  }
  .primary-nav a { padding: 0.85rem 1rem; }
}

/* Hero — big NHS blue */
.hero {
  background:
    radial-gradient(ellipse at 80% -10%, rgba(65, 182, 230, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse at -10% 90%, rgba(190, 24, 93, 0.24) 0%, transparent 50%),
    linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: white;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.06)'/></svg>");
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1, .hero h2, .hero h3 { color: white; }
.hero p { color: rgba(255,255,255,0.92); }
.hero .lede {
  font-size: 1.1875rem;
  max-width: 56ch;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.005em;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

/* Hero photo (right side) */
.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 31, 63, 0.44), 0 0 0 1px rgba(255,255,255,0.08);
  aspect-ratio: 4 / 3;
  background: var(--primary-darker);
  margin: 0;
  transform: rotate(0.3deg);
  transition: transform 0.45s ease;
}
.hero-photo:hover { transform: rotate(0deg) scale(1.005); }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 31, 63, 0.88);
  color: white;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

/* Hero meta stat strip */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta strong {
  display: block;
  font-weight: 800;
  font-size: 1.875rem;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-meta span {
  font-size: 0.7125rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.80);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Section eyebrow (used above h2) */
.section-eyebrow {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.7em;
}

/* Section title with decorative rule underneath */
.section-title-rule {
  position: relative;
  margin-bottom: 0.5em;
}
.section-title-rule::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.55em;
  border-radius: 2px;
}

/* Locations strip — cleaner card treatment */
.locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .locations { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.locations .surgery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 61, 122, 0.08);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.locations .surgery:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(0, 61, 122, 0.14);
}
.locations .surgery.branch { border-top-color: var(--accent); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.16);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.28);
}
.hero h1 { margin-bottom: 0.4em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.30);
}
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: 0 6px 18px rgba(0, 61, 122, 0.38); }
.btn-secondary {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}
.btn-secondary:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary-light); }
.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.34);
}
.btn-accent:hover { background: var(--accent-warm); color: white; box-shadow: 0 8px 24px rgba(157, 23, 77, 0.40); }
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: white; border-color: white; }
.btn-ghost {
  color: var(--primary-dark);
  background: transparent;
}
.btn-ghost:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-lg { padding: 1.1rem 1.75rem; font-size: 1rem; }

/* Hero card stack */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 540px) { .hero-cards { grid-template-columns: 1fr 1fr; } }
.hero-card {
  background: white;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
}
.hero-card.branch::before { background: var(--accent); }
.hero-card h3 { margin: 0.25rem 0 0.15em; font-size: 1.125rem; color: var(--text); }
.hero-card address {
  font-style: normal;
  color: var(--text-body);
  font-size: 0.9375rem;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.hero-card .tel {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.01em;
}
.hero-card .tel:hover { color: var(--primary); }
.hero-card .tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.hero-card.branch .tag { background: var(--accent-light); color: var(--accent-warm); }

/* Page header (for non-home pages) */
.page-header {
  background:
    radial-gradient(ellipse at 95% 0%, rgba(65, 182, 230, 0.32) 0%, transparent 60%),
    linear-gradient(170deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: white;
  padding: 3rem 0 2.75rem;
}
.page-header h1, .page-header h2 { color: white; margin-bottom: 0.25em; }
.page-header p { color: rgba(255,255,255,0.92); max-width: 64ch; margin: 0; font-size: 1.0625rem; }
.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.85rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: white; text-decoration: underline; }

/* Section spacing */
section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }
section.bg-tint { background: var(--bg-tint); }
section.bg-blue { background: var(--primary-dark); color: white; }
section.bg-blue h2, section.bg-blue h3 { color: white; }
section.bg-blue p { color: rgba(255,255,255,0.92); }
.section-title { margin-top: 0; }

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }

/* Grid */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Surgery (location) card */
.surgery {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.surgery-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary-dark);
  position: relative;
}
.surgery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.surgery:hover .surgery-photo img { transform: scale(1.03); }
.surgery-body { padding: 1.75rem; }
.surgery-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.surgery-tag.main { background: var(--primary-light); color: var(--primary-dark); }
.surgery-tag.branch { background: var(--accent-light); color: var(--accent-warm); }
.surgery h3 { margin: 0 0 0.25em; font-size: 1.5rem; }
.surgery address {
  font-style: normal;
  color: var(--text-body);
  margin-bottom: 1rem;
}
.surgery-tel {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.surgery-tel:hover { color: var(--primary); }
.surgery-hours { font-size: 0.9375rem; }
.surgery-hours dt {
  font-weight: 700;
  color: var(--text);
}
.surgery-hours dd {
  margin: 0 0 0.5em;
  color: var(--text-body);
}
.surgery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Quick actions — Clarence-style */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 540px) { .quick-actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .quick-actions { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.qa-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.qa-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  color: var(--text);
}
.qa-card:hover::before { transform: scaleX(1); }
.qa-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.qa-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.25em;
  color: var(--text);
}
.qa-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  flex: 1;
}
.qa-card .arrow {
  display: inline-block;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.875rem;
}
.qa-card .arrow::after { content: " →"; transition: transform 0.2s ease; display: inline-block; }
.qa-card:hover .arrow::after { transform: translateX(4px); }

/* Triage CTA banner */
.triage-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bright-blue) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 720px) {
  .triage-banner { grid-template-columns: 1fr auto; gap: 2rem; padding: 2.25rem 2.5rem; }
}
.triage-banner h2 {
  color: white;
  margin: 0 0 0.4em;
  font-size: 1.625rem;
}
.triage-banner p { color: rgba(255,255,255,0.95); margin: 0; }

/* Callout — default is a saturated branded card (primary-light is typically
   a mid-tone, not a pale tint), so text needs to be light. The variant
   classes use pale tints, so their text falls back to dark. */
.callout {
  background: var(--primary-light);
  color: var(--paper);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout h2, .callout h3, .callout h4 { color: var(--paper); margin-top: 0; }
.callout p, .callout li { color: rgba(255, 255, 255, 0.92); }
.callout a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.callout a:hover { color: var(--paper); opacity: 0.85; }
.callout.warning {
  background: var(--emergency-light);
  border-left-color: var(--emergency);
  color: var(--ink);
}
.callout.info {
  background: var(--accent-light);
  border-left-color: var(--accent-warm);
  color: var(--ink);
}
.callout.success {
  background: var(--green-light);
  border-left-color: var(--green);
  color: var(--ink);
}
.callout.warning h2, .callout.warning h3, .callout.warning h4,
.callout.info h2, .callout.info h3, .callout.info h4,
.callout.success h2, .callout.success h3, .callout.success h4 { color: var(--ink); }
.callout.warning p, .callout.warning li,
.callout.info p, .callout.info li,
.callout.success p, .callout.success li { color: var(--ink); opacity: 0.85; }
.callout.warning a, .callout.info a, .callout.success a { color: var(--primary); }
.callout p:last-child { margin-bottom: 0; }

/* Activity data dashboard */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.stat .value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.2em;
}
.stat .label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* News (collapsible notices) */
.notice {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.notice summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  transition: background 0.15s ease;
}
.notice summary:hover { background: #DCEAF7; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 400;
}
.notice[open] summary::after { content: "−"; }
.notice-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.notice-body p:last-child { margin-bottom: 0; }

/* Article layout */
.article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}
@media (min-width: 960px) {
  .article { grid-template-columns: minmax(0, 1fr) 280px; }
}
.article h2:first-child { margin-top: 0; }
.article-body { min-width: 0; }
.article-body > section { padding: 0; margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.article-body > section:last-child { margin-bottom: 0; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
}
.sidebar h4 {
  margin: 0 0 0.5em;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}
.sidebar ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.sidebar li { margin: 0; }
.sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.9375rem;
}
.sidebar a:hover { background: white; color: var(--primary-dark); }
.sidebar a.is-active {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
  padding-left: calc(0.75rem - 3px);
}

/* Staff cards */
.staff-group { margin-bottom: 2.5rem; }
.staff-group h2 { margin-top: 0; }
.staff-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) { .staff-list { grid-template-columns: 1fr 1fr; } }
.staff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  background: var(--bg);
  border-left: 3px solid var(--primary);
  transition: box-shadow 0.18s ease, transform 0.08s ease;
}
.staff-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.staff-card .name {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25em;
  font-size: 1rem;
}
.staff-card .quals {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.staff-card .role {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Map */
.map-embed {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Contact list */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-top: 4px solid var(--primary);
}
.contact-item h3 { margin-top: 0; font-size: 1.125rem; }
.contact-item .big { font-size: 1.375rem; font-weight: 700; color: var(--primary-dark); text-decoration: none; word-break: break-word; }
.contact-item .big:hover { color: var(--primary); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.data-table th {
  background: var(--primary);
  color: white;
  font-weight: 700;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:nth-child(even) td { background: var(--surface); }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: white;
  margin: 0 0 0.85em;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.site-footer .brand-name strong { color: white; }
.site-footer .brand-name span { color: rgba(255,255,255,0.75); }
.site-footer .brand-mark { background: white; color: var(--primary-dark); }
.site-footer p { color: rgba(255, 255, 255, 0.85); }
.site-footer strong { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-grid a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-grid a:hover { color: white; text-decoration: underline; }
.footer-grid strong { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.85); }

/* Chatbot widget */
.chat-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 61, 122, 0.42);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.chat-fab:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 61, 122, 0.52); }
.chat-fab svg { width: 20px; height: 20px; }
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: min(380px, calc(100vw - 2.5rem));
  max-height: 70vh;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.is-open { display: flex; }
.chat-head {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-head strong { color: white; display: block; font-size: 1rem; }
.chat-head span { font-size: 0.8125rem; color: rgba(255,255,255,0.85); }
.chat-close {
  background: transparent;
  border: 0;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chat-iconbtn {
  background: transparent;
  border: 0;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 6px;
  margin-left: 0.25rem;
  transition: background 0.15s ease;
  font-family: inherit;
}
.chat-iconbtn:hover, .chat-iconbtn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
.chat-head { gap: 0.25rem; }
.chat-head > div { flex: 1; }
.chat-body {
  padding: 1rem 1rem 0.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 240px;
  max-height: 50vh;
  background: var(--surface);
}
.chat-body p { margin: 0 0 0.5em; font-size: 0.9375rem; line-height: 1.5; }
.chat-body p:last-child { margin-bottom: 0; }
.chat-body a { color: var(--primary-dark); }

/* Message bubbles */
.chat-messages .msg {
  display: flex;
  margin-bottom: 0.85rem;
}
.chat-messages .msg-user { justify-content: flex-end; }
.chat-messages .msg-bot { justify-content: flex-start; }
.chat-messages .bubble {
  max-width: 86%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(33,43,50,0.08);
}
.chat-messages .msg-user .bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-messages .msg-user .bubble a { color: white; text-decoration: underline; }
.chat-messages .msg-bot .bubble {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-messages .bubble.error {
  background: var(--emergency-light);
  border-color: #F4C7C4;
  color: var(--text);
}
.chat-messages .bubble ul, .chat-messages .bubble ol {
  margin: 0.4em 0 0.4em 1.1em;
  padding: 0;
}
.chat-messages .bubble li { margin-bottom: 0.15em; }
.chat-messages .bubble code {
  background: rgba(0,0,0,0.06);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.875em;
}

/* Greeting chips */
.chat-messages .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.chat-messages .chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-body);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chat-messages .chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.chat-messages .muted-small {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0.25rem;
}

/* Typing indicator */
.chat-messages .bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 1.5em;
}
.chat-messages .bubble.typing span {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: chatDot 1.3s infinite ease-in-out;
}
.chat-messages .bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-messages .bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Input form */
.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  background: white;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.chat-input input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.20);
}
.chat-input input:disabled { opacity: 0.6; cursor: wait; }
.chat-input button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.06s ease;
}
.chat-input button:hover { background: var(--primary-dark); }
.chat-input button:disabled { background: var(--border-strong); cursor: wait; }
.chat-input button svg { width: 18px; height: 18px; }

.chat-foot {
  padding: 0.6rem 1rem;
  background: white;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.chat-foot a { color: var(--text-muted); }

/* Utilities */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.125rem; color: var(--text-body); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

/* ==========================================================================
   Scrollytelling — reveal animations, counters, scroll progress, marquee
   ========================================================================== */

/* Thin gradient bar at top of viewport that fills as you scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 60;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Reveal-on-scroll base */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.94); opacity: 0; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="100"] { transition-delay: 0.10s; }
.reveal[data-delay="200"] { transition-delay: 0.20s; }
.reveal[data-delay="300"] { transition-delay: 0.30s; }
.reveal[data-delay="400"] { transition-delay: 0.40s; }
.reveal[data-delay="500"] { transition-delay: 0.50s; }
.reveal[data-delay="600"] { transition-delay: 0.60s; }

/* Marquee band — slow, elegant, between sections */
.marquee {
  background: var(--primary-darker);
  color: white;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--primary-darker) 0%, transparent 100%); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--primary-darker) 0%, transparent 100%); }
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 60s linear infinite;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee-track > span {
  flex-shrink: 0;
  padding: 0 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}
.marquee-track .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Mouse-following glow inside hero */
.hero { isolation: isolate; }
.hero-glow {
  position: absolute;
  pointer-events: none;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190,24,93,0.18) 0%, rgba(190,24,93,0) 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 0;
  filter: blur(8px);
}
.hero:hover .hero-glow { opacity: 1; }

/* Hero photo gentle float (subtle, not gimmicky) */
.hero-photo {
  animation: hero-float 9s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: rotate(0.3deg) translateY(0); }
  50%      { transform: rotate(-0.2deg) translateY(-8px); }
}

/* More expressive card hover */
.qa-card, .feature, .step, .surgery, .stat-item {
  transition:
    transform 0.32s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.32s ease,
    border-color 0.25s ease;
}
.qa-card:hover { transform: translateY(-5px) scale(1.01); }
.feature:hover { transform: translateY(-4px); }

/* Slight zoom on the hero photo wrapper image on hover */
.hero-photo:hover { animation-play-state: paused; }
.hero-photo img { transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.hero-photo:hover img { transform: scale(1.04); }

/* Reduced-motion overrides — strictly respect user preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
  .hero-photo { animation: none !important; }
  .scroll-progress { display: none !important; }
  .qa-card:hover, .feature:hover, .surgery:hover { transform: none !important; }
  .hero-glow { display: none !important; }
}

/* ==========================================================================
   GRH-style components: stats strip, feature trio, numbered steps, pull quote
   ========================================================================== */

/* Stats strip — clean horizontal band below hero */
.stats-strip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  box-shadow: var(--shadow);
  position: relative;
  margin-top: -3rem;
  z-index: 2;
}
@media (min-width: 640px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .stats-strip { grid-template-columns: repeat(4, 1fr); padding: 2.25rem 2.75rem; } }
.stats-strip .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: none;
  padding-left: 0;
}
@media (min-width: 880px) {
  .stats-strip .stat-item + .stat-item {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
  }
}
.stats-strip .stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.stats-strip .stat-label {
  font-size: 0.875rem;
  color: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Feature trio — 3 confident feature cards */
.feature-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .feature-trio { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
}
.feature:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.feature .feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.feature h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
.feature p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin: 0 0 0.85em;
  line-height: 1.55;
}
.feature .feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* Numbered steps — for "How to register" / process flows */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: stepCount;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
  counter-increment: stepCount;
}
.step::before {
  content: counter(stepCount);
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.step h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5em;
}
.step p {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--text-body);
}

/* Pull quote — italic blockquote with rule above */
.pull-quote {
  margin: 0;
  padding: 2.5rem 0 2rem;
  text-align: left;
  position: relative;
  max-width: 64ch;
}
.pull-quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.pull-quote blockquote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.pull-quote blockquote::before { content: "\201C"; color: var(--accent); margin-right: 0.05em; }
.pull-quote blockquote::after  { content: "\201D"; color: var(--accent); margin-left: 0.05em; }
.pull-quote cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: 0.02em;
}
.pull-quote cite span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.2em;
  font-size: 0.875rem;
}

/* CTA banner — bottom-of-page conversion strip */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(190, 24, 93, 0.28) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  color: white;
  margin: 0 0 0.5em;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}
.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Section header with eyebrow + title combined */
.section-header {
  margin-bottom: 2.5rem;
  max-width: 60ch;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin: 0 0 0.4em; }
.section-header .lead { margin: 0; max-width: 100%; }

/* ==========================================================================
   App promo — NHS Wales App QR code section on homepage
   ========================================================================== */
.app-promo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.app-promo::before {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(65,182,230,0.30) 0%, transparent 60%);
  pointer-events: none;
}
@media (min-width: 720px) {
  .app-promo { grid-template-columns: 1.5fr 1fr; padding: 3rem 3rem; }
}
.app-promo > * { position: relative; z-index: 1; }
.app-promo h2 { color: white; margin: 0 0 0.4em; }
.app-promo p { color: rgba(255,255,255,0.94); margin-bottom: 0.85em; }
.app-promo .app-promo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 540px) { .app-promo .app-promo-features { grid-template-columns: 1fr 1fr; } }
.app-promo .app-promo-features li {
  list-style: none;
  padding-left: 1.5em;
  position: relative;
  color: rgba(255,255,255,0.95);
  font-size: 0.9375rem;
  margin: 0;
}
.app-promo .app-promo-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.app-promo-qr {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  justify-self: center;
  max-width: 240px;
}
.app-promo-qr img { width: 180px; height: 180px; display: block; }
.app-promo-qr .qr-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer legal links bar */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-legal a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-legal a:hover { color: white; text-decoration: underline; }

/* ==========================================================================
   Forms — used by the questionnaire page
   ========================================================================== */
.questionnaire {
  max-width: 760px;
  margin: 0 auto;
}
.form-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-section > legend, .form-section > .form-section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 0;
  margin: 0 0 0.4em;
  letter-spacing: -0.015em;
}
.form-section > p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin: 0 0 1.25em;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group:last-child { margin-bottom: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4em;
  letter-spacing: -0.005em;
}
.form-label .req {
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.15em;
}
.form-help {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35em;
  line-height: 1.4;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-textarea {
  min-height: 4.5em;
  resize: vertical;
  line-height: 1.5;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 0;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.18);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233D4F5C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}
.form-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 540px) {
  .form-options.inline { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.form-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.form-option:hover { border-color: var(--primary-mid); }
.form-option input[type="radio"],
.form-option input[type="checkbox"] {
  margin: 0.2rem 0 0;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.form-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}
.form-success,
.form-error {
  display: none;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.form-success {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  color: var(--text);
}
.form-success.is-visible { display: block; }
.form-success h3 { margin-top: 0; color: var(--text); }
.form-success p:last-child { margin-bottom: 0; }
.form-error.is-visible { display: block; }
.form-error {
  background: var(--emergency-light);
  border-left: 4px solid var(--emergency);
}

/* Print */
@media print {
  .site-header, .site-footer, .emergency-bar, .hero-actions, .sidebar, .surgery-actions, .chat-fab, .chat-panel { display: none; }
  a { color: black; text-decoration: underline; }
  body { color: black; }
  .hero, .page-header { background: white; color: black; }
  .hero h1, .page-header h1 { color: black; }
}

/* ------------------------------------------------------------------ */
/* Hero video — short looping clip, with poster + reduced-motion       */
/* fallback so users who prefer less motion see the still image only.  */
/* ------------------------------------------------------------------ */
.hero-photo.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.hero-photo.hero-video figcaption {
  /* same styling as the static-image variant — inherits from base */
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo.hero-video video {
    /* Hide motion; the poster image stays visible because the video
     * element still renders its poster attribute when paused. */
    animation: none !important;
  }
  .hero-photo.hero-video video::-webkit-media-controls { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* Language switcher — sits in the site header alongside primary nav. */
/* Always visible (desktop and mobile), horizontal pill chips, the    */
/* current locale highlighted in primary blue.                         */
/* ------------------------------------------------------------------ */
.lang-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-switcher .lang-link {
  display: inline-block;
  padding: 0.32em 0.68em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.lang-switcher .lang-link:hover,
.lang-switcher .lang-link:focus-visible {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* Active locale chip — match by current document <html lang=""> */
html[lang="en-GB"] .lang-switcher .lang-link[lang="en"],
html[lang="cy"]    .lang-switcher .lang-link[lang="cy"],
html[lang="pl"]    .lang-switcher .lang-link[lang="pl"],
html[lang="ro"]    .lang-switcher .lang-link[lang="ro"],
html[lang="pa"]    .lang-switcher .lang-link[lang="pa"],
html[lang="ur"]    .lang-switcher .lang-link[lang="ur"] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Mobile — still visible (it's outside the collapsible nav now).
 * Drops to a slightly smaller chip size so all 6 fit on a single line. */
@media (max-width: 1080px) {
  .lang-switcher {
    order: 3;       /* after brand, before hamburger */
    flex-basis: 100%;
    justify-content: center;
    padding: 0.4rem 0 0.1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
  }
  .lang-switcher .lang-link {
    font-size: 0.72rem;
    padding: 0.28em 0.55em;
  }
  /* Header container needs to allow the lang-switcher row */
  .site-header .container { flex-wrap: wrap; }
}

/* RTL handling — keep chips left-to-right since the codes themselves
 * read LTR. Just nudge horizontal-margin direction. */
html[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: auto; }

/* ============================================================================
 * HERO LAYOUT VARIANTS
 * ============================================================================
 * Three alternative homepage hero patterns selectable via theme.homepage_variant
 * ("fullbleed-video", "magazine", "card-stack"). The historical .hero (without
 * a modifier) is the "split-photo" default and is untouched.
 * ============================================================================ */

/* ----------------------------- FULLBLEED-VIDEO ---------------------------- */
.hero.hero-fb {
  position: relative;
  min-height: 88vh;
  padding-block: clamp(7rem, 14vw, 12rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--primary-darker, #0a0a0a);
  isolation: isolate;
}
.hero.hero-fb::before { content: none; } /* defeat the default angle stripe */
.hero-fb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-fb-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.78) 100%),
    linear-gradient(115deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero-fb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 880px;
  color: #fff;
}
.hero-fb-eyebrow {
  color: var(--accent, #f26c2f) !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-fb-title {
  font-size: clamp(3rem, 8vw, 6.4rem) !important;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff !important;
  margin: 0;
  text-wrap: balance;
}
.hero-fb-lede {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: rgba(255,255,255,0.92);
  max-width: 60ch;
  margin: 0;
}
.hero-fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.hero-fb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid rgba(255,255,255,0.2);
  width: 100%;
  max-width: 720px;
}
.hero-fb-stats > div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-fb-stats strong {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-fb-stats span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --------------------------------- MAGAZINE ------------------------------- */
.hero.hero-mag {
  background: var(--paper, #fdfaf5);
  color: var(--ink, #1a1a1a);
  padding-block: clamp(4rem, 8vw, 7rem) 0;
}
.hero.hero-mag::before { content: none; }
.hero.hero-mag .hero-mag-inner { display: block; }
.hero-mag-text {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.hero-mag-eyebrow {
  display: inline-block;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent, var(--primary, #0a0a0a)) !important;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.hero-mag-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(2.6rem, 7.2vw, 6rem) !important;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink, #1a1a1a) !important;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  text-wrap: balance;
}
.hero-mag-lede {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft, #4a4a4a);
  max-width: 56ch;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}
.hero-mag-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-mag-photo {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-mag-photo img,
.hero-mag-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-mag-rule {
  border-top: 1px solid var(--rule, rgba(0,0,0,0.12));
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(1.25rem, 2vw, 1.75rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero-mag-rule-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.92rem;
  color: var(--ink-soft, #4a4a4a);
  text-align: center;
}
.hero-mag-rule-stats strong {
  color: var(--ink, #1a1a1a);
  font-weight: 700;
}

/* -------------------------------- CARD-STACK ------------------------------ */
.hero.hero-cs {
  background: var(--paper, #fdfaf5);
  color: var(--ink, #1a1a1a);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.hero.hero-cs::before { content: none; }
.hero-cs-inner { padding-inline: clamp(1rem, 3vw, 2rem); }
.hero-cs-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.hero-cs-card {
  background: #fff;
  border: 1px solid var(--rule, rgba(0,0,0,0.08));
  border-radius: var(--radius-card, 18px);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  position: relative;
}
.hero-cs-card--name {
  grid-column: span 7;
  grid-row: span 2;
  background: var(--primary, #0a0a0a);
  color: #fff;
  border: 0;
}
.hero-cs-card--name h1,
.hero-cs-card--name .hero-cs-title { color: #fff; }
.hero-cs-card--name .hero-cs-lede { color: rgba(255,255,255,0.9); }
.hero-cs-card--photo {
  grid-column: span 5;
  grid-row: span 2;
  background-color: var(--primary-dark, #111);
  background-size: cover;
  background-position: center;
  border: 0;
  padding: 0;
  min-height: 320px;
}
.hero-cs-card--photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-cs-card--photo .hero-cs-card-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-cs-card--services { grid-column: span 7; }
.hero-cs-card--find     { grid-column: span 5; }
.hero-cs-card--services ul {
  list-style: none;
  margin: 0.3rem 0 0.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.5rem;
}
.hero-cs-card--services li a {
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  border-bottom: 1px solid var(--rule, rgba(0,0,0,0.12));
  padding-block: 0.45rem;
  display: block;
  font-weight: 500;
}
.hero-cs-card--services li a:hover { color: var(--primary, #0a0a0a); }
.hero-cs-card--find address {
  font-style: normal;
  line-height: 1.55;
  color: var(--ink-soft, #4a4a4a);
}
.hero-cs-tel {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary, #0a0a0a);
  text-decoration: none;
  margin-top: 0.4rem;
  display: inline-block;
}
.hero-cs-card-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, var(--primary, #0a0a0a));
}
.hero-cs-eyebrow {
  display: inline-block;
  color: var(--accent, #fff) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-cs-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0.2rem 0 0.6rem;
}
.hero-cs-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  margin: 0;
}
.hero-cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

@media (max-width: 900px) {
  .hero-cs-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-cs-card--name     { grid-column: span 6; grid-row: span 1; }
  .hero-cs-card--photo    { grid-column: span 6; grid-row: span 1; min-height: 240px; }
  .hero-cs-card--services { grid-column: span 6; }
  .hero-cs-card--find     { grid-column: span 6; }
  .hero-cs-card--services ul { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero.hero-fb { min-height: 78vh; padding-block: clamp(5rem, 14vw, 8rem); }
  .hero-fb-stats { gap: 1.25rem; }
  .hero-mag-photo { aspect-ratio: 16 / 10; }
}


/* Theme variables — generated by customer-builder/build.js. Do not edit by hand. */
:root {
  --color-primary: #1F4938;
  --color-primary-dark: #122E22;
  --color-primary-light: #C9DCC8;
  --color-accent: #B8843D;
  --color-accent-dark: #8E6422;
  --color-ink: #162320;
  --color-ink-soft: #516862;
  --color-paper: #FBF6EB;
  --color-paper-alt: #F1E9D2;
  --color-paper-warm: #E4D6B4;
  --color-success: #2F6F4E;
  --color-warning: #B8843D;
  --color-danger: #A2392F;
  --color-rule: rgba(31, 73, 56, 0.12);
  --color-rule-strong: rgba(31, 73, 56, 0.28);
  --color-focus: rgba(184, 132, 61, 0.45);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-h1: clamp(3rem, 7vw, 5.8rem);
  --fs-h2: clamp(2.1rem, 3.6vw, 3.4rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 1.95rem);
  --fs-body: 1.06rem;
  --fs-small: 0.93rem;
  --line-height: 1.65;
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --container-max: 1200px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 18px rgba(31, 73, 56, 0.08);
  --shadow-raised: 0 18px 50px rgba(31, 73, 56, 0.16);
}
/* Legacy-variable aliases — override the hardcoded NHS-blue defaults in template/css/site.css */
:root {
  --primary: #1F4938;
  --primary-dark: #122E22;
  --primary-darker: #122E22;
  --primary-light: #C9DCC8;
  --primary-mid: #C9DCC8;
  --accent: #B8843D;
  --accent-warm: #8E6422;
  --accent-light: #E4D6B4;
  --text: #162320;
  --text-body: #516862;
  --text-muted: #516862;
  --bg: #FBF6EB;
  --bg-tint: #F1E9D2;
  --surface: #FBF6EB;
  --surface-alt: #F1E9D2;
  --paper: #FBF6EB;
  --paper-alt: #F1E9D2;
  --paper-warm: #E4D6B4;
  --ink: #162320;
  --ink-soft: #516862;
  --accent-dark: #8E6422;
  --border: rgba(31, 73, 56, 0.12);
  --border-strong: rgba(31, 73, 56, 0.28);
  --focus: rgba(184, 132, 61, 0.45);
}
/* Apply theme fonts to all headings, overriding the template defaults */
h1, h2, h3, h4, h5, h6, .display, .h1, .h2 { font-family: var(--font-display) !important; }
body { font-family: var(--font-body); }
/* Theme-supplied extra rules (large structural overrides) */
body { background: var(--paper) !important; } .site-header, header.site-header { background: var(--paper) !important; border-bottom: 1px solid var(--rule); } .hero-fb { background: var(--primary-dark) !important; } .hero-fb-overlay { background: linear-gradient(180deg, rgba(18, 46, 34, 0.18) 0%, rgba(18, 46, 34, 0.55) 60%, rgba(18, 46, 34, 0.82) 100%), linear-gradient(108deg, rgba(18, 46, 34, 0.58) 0%, rgba(18, 46, 34, 0.12) 60%, rgba(18, 46, 34, 0.05) 100%) !important; } .hero-fb-eyebrow { color: var(--accent) !important; letter-spacing: 0.26em !important; font-family: var(--font-body) !important; font-size: 0.78rem !important; } .hero-fb-title { font-family: var(--font-display) !important; font-weight: 600 !important; font-style: italic; letter-spacing: -0.005em; line-height: 1.05 !important; } .hero-fb-lede { font-family: var(--font-body); } .btn, .btn-primary, button.btn { border-radius: 18px !important; padding: 0.95rem 1.85rem !important; font-weight: 600 !important; letter-spacing: 0.01em; } .btn-primary { background: var(--accent) !important; color: var(--paper) !important; border: 0 !important; } .btn-primary:hover { background: var(--accent-dark) !important; color: var(--paper) !important; } .btn-secondary { background: transparent !important; color: var(--paper) !important; border: 1.5px solid rgba(251, 246, 235, 0.6) !important; border-radius: 18px !important; } .card, .service-card, .info-card { background: var(--paper) !important; border: 1px solid var(--rule) !important; border-radius: 20px !important; box-shadow: var(--shadow-card) !important; } .section h2, .section .h2, h2.section-title { font-family: var(--font-display) !important; font-weight: 600 !important; } .section .eyebrow, .eyebrow-accent { color: var(--accent-dark) !important; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; } .section-alt, .bg-tint { background: var(--paper-alt) !important; } a { color: var(--primary) !important; } a:hover { color: var(--accent-dark) !important; } .footer, footer.site-footer { background: var(--primary-dark) !important; color: var(--paper) !important; } .footer a, footer.site-footer a { color: var(--paper) !important; } .display, .h1, h1 { font-family: var(--font-display) !important; letter-spacing: -0.005em; line-height: 1.05 !important; font-weight: 600; }

/* per-customer overrides */
