/* =========================================================
   ExpertHousing — Main Stylesheet
   Professional · Accessible · Responsive
   ========================================================= */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Brand colours (never change between themes) */
  --clr-primary:       #0B7A4F;
  --clr-primary-dark:  #085C3A;
  --clr-primary-light: #E6F4EE;
  --clr-accent:        #F5A623;
  --clr-accent-dark:   #D4891A;
  --clr-navy:          #1C2B3A;
  --clr-navy-light:    #2C3E50;

  /* Neutrals — light theme defaults */
  --clr-white:         #FFFFFF;
  --clr-off-white:     #F8FAFB;
  --clr-gray-100:      #F1F5F9;
  --clr-gray-200:      #E2E8F0;
  --clr-gray-400:      #94A3B8;
  --clr-gray-500:      #64748B;
  --clr-gray-700:      #334155;
  --clr-gray-900:      #0F172A;
  --color-scheme:      light;
}

/* =========================================================
   DARK MODE — automatic via OS preference, OR explicit toggle.
   We override the neutral palette only (brand colours stay
   on-brand). Body bg becomes dark, text inverts, cards lift
   into a slightly higher elevation. No content/markup changes.
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --clr-white:       #0F1A26;   /* base surface */
    --clr-off-white:   #16243A;   /* alt section bg */
    --clr-gray-100:    #1A2C44;   /* subtle bg */
    --clr-gray-200:    #2C3E50;   /* borders */
    --clr-gray-400:    #94A3B8;   /* muted text */
    --clr-gray-500:    #B8C3D2;   /* secondary text — lifted from #64748B for contrast */
    --clr-gray-700:    #E2E8F0;   /* primary text — was dark, now light */
    --clr-gray-900:    #F1F5F9;
    --clr-navy:        #F1F5F9;   /* headings */
    --clr-navy-light:  #CBD5E1;
    --clr-primary-light: #133527; /* primary tint stays on-brand but darker */
    --color-scheme:    dark;
  }
}
[data-theme="dark"] {
  --clr-white:       #0F1A26;
  --clr-off-white:   #16243A;
  --clr-gray-100:    #1A2C44;
  --clr-gray-200:    #2C3E50;
  --clr-gray-400:    #94A3B8;
  --clr-gray-500:    #B8C3D2;
  --clr-gray-700:    #E2E8F0;
  --clr-gray-900:    #F1F5F9;
  --clr-navy:        #F1F5F9;
  --clr-navy-light:  #CBD5E1;
  --clr-primary-light: #133527;
  --color-scheme:    dark;
}
:root { color-scheme: var(--color-scheme); }

/* Reopen :root for the remaining tokens that don't change between themes */
:root {
  /* Status */
  --clr-success:       #16A34A;
  --clr-error:         #DC2626;
  --clr-warning:       #D97706;

  /* Typography */
  --font-heading:      'Poppins', sans-serif;
  --font-body:         'Inter', sans-serif;

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

  /* Border */
  --radius-sm:  0.25rem;
  --radius-md:  0.5rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.15);

  /* Transitions */
  --trans-fast:   150ms ease;
  --trans-normal: 250ms ease;
  --trans-slow:   400ms ease;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 80px;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Base size for the whole site. Everything else is in rem, so nudging this
     scales all text + rem-based spacing uniformly. Bumped 16px -> 17px for
     a light, site-wide legibility lift. */
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--clr-gray-700);
  background-color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Accessibility — visible focus ring */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-navy);
  line-height: 1.25;
  font-weight: 700;
}

/* ─── Skip-to-content (accessibility) ───────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--clr-primary);
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--trans-fast);
}
.skip-link:focus {
  top: 0;
}

/* ─── Utility classes ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.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;
}

.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }
.text-accent  { color: var(--clr-accent); }
.text-white   { color: #ffffff; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.075rem;
  color: var(--clr-gray-500);
  max-width: 600px;
  line-height: 1.75;
}
.text-center .section-subtitle { margin-inline: auto; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans-normal);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline-offset: 4px; }

.btn-primary {
  background: var(--clr-primary);
  color: #ffffff;
  border-color: var(--clr-primary);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,122,79,.35);
}

.btn-accent {
  background: var(--clr-accent);
  color: var(--clr-navy);
  border-color: var(--clr-accent);
}
.btn-accent:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,.35);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #ffffff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ─── Top Contact Bar ────────────────────────────────────── */
.top-bar {
  background: var(--clr-navy);
  color: #ffffff;
  padding: 0.6rem var(--space-xl);
  padding-top: calc(var(--nav-height) + 0.6rem);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2xl);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 999;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  transition: color var(--trans-fast);
}

.top-bar a:hover {
  color: var(--clr-accent);
}

.top-bar i {
  color: var(--clr-accent);
  font-size: 0.9rem;
}

/* ─── Trust Strip — Smart Energie-style band ─────────────── */
.trust-strip {
  background: var(--clr-off-white);
  border-bottom: 1px solid var(--clr-gray-200);
  /* Push content below the fixed navbar (navbar is position: fixed; top: 0) */
  margin-top: var(--nav-height);
  padding: var(--space-lg) var(--space-xl);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--clr-gray-700);
}

.trust-item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(11, 122, 79, 0.08);
}

.trust-item-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--clr-navy);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  .trust-item:nth-child(4),
  .trust-item:nth-child(5) {
    grid-column: span 1;
  }
}
@media (max-width: 720px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-md) var(--space-lg);
  }
  .trust-item-text { font-size: 0.8rem; }
  .trust-item-icon { width: 40px; height: 40px; font-size: 1.05rem; }
}
@media (max-width: 460px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-gray-200);
  z-index: 1000;
  transition: box-shadow var(--trans-normal);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
  max-width: 100%;
  padding-inline: 2.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  max-width: none;
  overflow: visible;
}

/* The logo PNG has a black "Expert" wordmark that vanishes on dark surfaces.
   On dark backgrounds (dark-mode nav, dark page heroes, the footer) render the
   whole logo solid white so it stays legible. */
[data-theme="dark"] .nav-logo img,
.logo-on-dark {
  filter: brightness(0) invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo img { filter: brightness(0) invert(1); }
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--clr-gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
  flex-shrink: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-gray-700);
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: all var(--trans-fast);
}
.nav-link:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
}
.nav-link.active {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-phone,
.nav-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-navy);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--trans-fast);
}
.nav-actions .btn { flex-shrink: 0; white-space: nowrap; }
.nav-phone i,
.nav-email i {
  color: var(--clr-primary);
}
.nav-phone:hover,
.nav-email:hover {
  color: var(--clr-primary);
}
/* Hide email + phone on narrower screens to keep nav single-row.
   The links + actions block is now slightly larger, so we drop the
   secondary contact items sooner to keep the primary CTA button intact. */
@media (max-width: 1500px) {
  .nav-email { display: none; }
}
@media (max-width: 1280px) {
  .nav-phone { display: none; }
}
@media (max-width: 1100px) and (min-width: 881px) {
  /* Tighten the inner gaps so 7 links + button still fit comfortably. */
  .nav-inner { gap: 0.75rem; padding-inline: 1.5rem; }
  .nav-link { padding: 0.55rem 0.85rem; font-size: 0.9rem; }
  .nav-links { gap: 0.15rem; }
  .nav-actions { gap: 0.75rem; }
}

/* Hamburger button — hidden on desktop, shown on mobile via media query */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  /* Standard marketing-site hero: tall enough to dominate the fold,
     but not the entire viewport like before (was 100vh). */
  min-height: auto;
  padding-top: var(--space-xl);
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0D3B2A 50%, var(--clr-primary-dark) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(11,122,79,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245,166,35,.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  /* Was --space-4xl (6rem) top + bottom — too much for a marketing hero.
     Now ~3rem each side, hero feels in proportion with the rest of the page. */
  padding-block: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(245,166,35,.2);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--clr-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-title {
  /* Was clamp(2.25rem, 5vw, 3.75rem) — max 60px felt overwhelming.
     Now caps at 48px on big screens, still bold but proportionate. */
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}
.hero-title .highlight {
  color: var(--clr-accent);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,.75);
  font-size: 0.85rem;
}
.hero-trust-item i {
  color: var(--clr-accent);
  font-size: 1rem;
}

/* Hero card */
.hero-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 420px;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.hero-card-title i { color: var(--clr-accent); }

.quick-check-form .form-group {
  margin-bottom: var(--space-md);
}
.quick-check-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--space-xs);
}
.quick-check-form select,
.quick-check-form input[type="text"] {
  width: 100%;
  padding: 0.65rem var(--space-md);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color var(--trans-fast), background var(--trans-fast);
}
.quick-check-form select:focus,
.quick-check-form input[type="text"]:focus {
  border-color: var(--clr-accent);
  background: rgba(255,255,255,.15);
  outline: none;
}
.quick-check-form select option { background: var(--clr-navy); }
.quick-check-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.quick-check-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
}
.quick-check-form .checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.eligibility-result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.eligibility-result.show { display: block; }
.eligibility-result.success {
  background: rgba(22,163,74,.2);
  border: 1px solid rgba(22,163,74,.4);
  color: #86efac;
}
.eligibility-result.info {
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  color: #fcd34d;
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--clr-primary);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ─── Sections (shared) ──────────────────────────────────── */
.section {
  padding-block: var(--space-4xl);
  background: var(--clr-white);
  transition: background var(--trans-normal);
}
.section:nth-child(odd) {
  background: var(--clr-white);
}
.section:nth-child(even) {
  background: var(--clr-off-white);
}
.section-alt {
  background: var(--clr-off-white);
}

/* ─── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

/* When a services grid has exactly 4 cards rendered as 3 columns,
   the 4th card wraps to a new row and aligns to the left edge.
   Center it on its row by spanning the full row and capping its
   width to a single column. */
@media (min-width: 880px) and (max-width: 1215px) {
  .services-grid > .service-card:nth-child(4):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - var(--space-xl) * 2) / 3);
  }
}

.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--trans-normal);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transition: transform var(--trans-normal);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--clr-primary);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

/* Featured dark service card — keep text white */
.service-card[style*="clr-navy"] h3,
.service-card[style*="clr-navy"] p,
.service-card[style*="clr-navy"] li {
  color: #fff;
}

.service-card p {
  color: var(--clr-gray-500);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-tag {
  display: inline-block;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--clr-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: var(--space-md);
  transition: gap var(--trans-fast);
}
.service-link:hover { gap: var(--space-sm); }

/* ─── How It Works ───────────────────────────────────────── */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
}
.steps-wrap::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 36px);
  right: calc(12.5% + 36px);
  height: 2px;
  background: linear-gradient(to right, var(--clr-primary), var(--clr-accent));
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px; height: 72px;
  background: var(--clr-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform var(--trans-normal);
}
.step:hover .step-number { transform: scale(1.1); }

.step h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}
.step p {
  font-size: 0.88rem;
  color: var(--clr-gray-500);
  line-height: 1.65;
}

/* ─── Schemes ────────────────────────────────────────────── */
.schemes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.scheme-grant {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: var(--space-sm);
}

.scheme-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.scheme-closed-label {
  display: block;
  color: #dc2626;
  font-size: 1rem;
  font-weight: 600;
}

/* --- Scheme Cards (light bg default) --- */
.scheme-card {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  display: flex;
  flex-direction: column;
}

/* All cards use the same clean light style */
.scheme-card--featured,
.scheme-card--dark,
.scheme-card--closed {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
}
.scheme-card--dark h3,
.scheme-card--dark .scheme-feature { color: var(--clr-navy); }
.scheme-card--dark p { color: var(--clr-gray-700); }
.scheme-card--dark .scheme-badge {
  background: var(--clr-primary-light);
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary);
}

.scheme-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--clr-primary-light);
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.scheme-badge--red {
  background: #FEF2F2;
  border-color: #dc2626;
  color: #dc2626;
}

.scheme-card h3 {
  color: var(--clr-navy);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.scheme-card p {
  color: var(--clr-gray-700);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.scheme-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.scheme-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--clr-gray-700);
}
.scheme-feature i {
  color: var(--clr-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.scheme-feature i.fa-times {
  color: #dc2626;
}

/* ─── Eligibility Section ────────────────────────────────── */
.eligibility-section {
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0D3B2A 100%) !important;
  position: relative;
  overflow: hidden;
}
.eligibility-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(11,122,79,.25) 0%, transparent 60%);
}

.eligibility-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.eligibility-content { color: #ffffff; }
.eligibility-content .section-label {
  background: rgba(245,166,35,.2);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--clr-accent);
}
.eligibility-content .section-title { color: #ffffff; }
.eligibility-content .section-subtitle { color: rgba(255,255,255,.75); }

.eligibility-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.eligibility-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: rgba(255,255,255,.85);
}
.eligibility-list li i {
  color: var(--clr-accent);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Full eligibility form */
.eligibility-form-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
}

.eligibility-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}
.eligibility-form-card > p {
  font-size: 0.88rem;
  color: var(--clr-gray-500);
  margin-bottom: var(--space-xl);
}

/* ─── Forms (shared) ─────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-gray-700);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--clr-gray-900);
  background: var(--clr-white);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(11,122,79,.12);
  outline: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--clr-error);
}

.form-error {
  font-size: 0.8rem;
  color: var(--clr-error);
  margin-top: var(--space-xs);
  display: none;
}
.form-error.show { display: block; }

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--clr-gray-500);
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-result {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-result.show { display: block; }
.form-result.success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #15803D;
}
.form-result.error {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
}
.form-result.info {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #B45309;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.testimonial-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--trans-normal);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--clr-accent);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clr-navy);
}
.testimonial-location {
  font-size: 0.8rem;
  color: var(--clr-gray-400);
}
.testimonial-scheme {
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: var(--space-3xl) auto 0;
}

.faq-item {
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: box-shadow var(--trans-normal);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--clr-white);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-navy);
  transition: background var(--trans-fast);
}
.faq-question:hover { background: var(--clr-gray-100); }
.faq-question[aria-expanded="true"] { background: var(--clr-primary-light); color: var(--clr-primary); }

.faq-icon {
  width: 28px; height: 28px;
  background: var(--clr-gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--trans-normal);
  font-size: 0.8rem;
  color: var(--clr-gray-500);
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--clr-primary);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-slow) ease;
}
.faq-answer.open { max-height: 500px; }
.faq-answer-inner {
  padding: var(--space-md) var(--space-xl) var(--space-lg);
  font-size: 0.92rem;
  color: var(--clr-gray-500);
  line-height: 1.75;
  border-top: 1px solid var(--clr-gray-200);
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  padding-block: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(245,166,35,.15) 0%, transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}
.cta-banner p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  margin-inline: auto;
}
.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,.75);
  padding-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin: var(--space-md) 0 var(--space-xl);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  transition: all var(--trans-fast);
}
.footer-social a:hover {
  background: var(--clr-primary);
  color: #ffffff;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.footer-links a:hover { color: #ffffff; }
.footer-links a i { font-size: 0.7rem; color: var(--clr-primary); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.88rem;
}
.footer-contact-item i {
  color: var(--clr-primary);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-item a { color: rgba(255,255,255,.75); }
.footer-contact-item a:hover { color: #ffffff; }

.footer-accreditations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.footer-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.04em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a {
  color: rgba(255,255,255,.55);
  transition: color var(--trans-fast);
}
.footer-bottom a:hover { color: #ffffff; }
.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0D3B2A 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(11,122,79,.3) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #ffffff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-top: var(--space-md);
  max-width: 560px;
  margin-inline: auto;
}

/* Hero variant with the brand logo on the left, copy on the right. */
.page-hero--with-logo .page-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
  text-align: left;
}
.page-hero-logo img { width: 260px; max-width: 38vw; height: auto; }
.page-hero--with-logo .breadcrumb { justify-content: flex-start; }
.page-hero--with-logo .page-hero p { margin-inline: 0; }
@media (max-width: 768px) {
  .page-hero--with-logo .page-hero-inner { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .page-hero-logo { display: flex; justify-content: center; }
  .page-hero-logo img { width: 200px; max-width: 60vw; }
  .page-hero--with-logo .breadcrumb { justify-content: center; }
  .page-hero--with-logo .page-hero p { margin-inline: auto; }
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--space-lg);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #ffffff; }

/* ─── Contact Page ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info-card {
  background: var(--clr-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  color: #ffffff;
}
.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}
.contact-info-card > p {
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  margin-bottom: var(--space-2xl);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-detail-text a,
.contact-detail-text p {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
}
.contact-detail-text a:hover { color: #ffffff; }

.contact-hours {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-hours h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: var(--space-sm);
}
.contact-hours h4 i { color: var(--clr-accent); }
.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: rgba(255,255,255,.75);
}
.hours-row span:last-child { font-weight: 600; color: #ffffff; }

.contact-form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}
.contact-form-card > p {
  font-size: 0.88rem;
  color: var(--clr-gray-500);
  margin-bottom: var(--space-xl);
}

/* ─── About page ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.team-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--trans-normal);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin: 0 auto var(--space-lg);
}

.team-card h3 { font-size: 1.05rem; margin-bottom: var(--space-xs); }
.team-card .role {
  font-size: 0.82rem;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.team-card p { font-size: 0.87rem; color: var(--clr-gray-500); line-height: 1.65; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}
.value-card {
  text-align: center;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
}
.value-icon {
  width: 64px; height: 64px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-primary);
  margin: 0 auto var(--space-lg);
}
.value-card h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); }
.value-card p { font-size: 0.88rem; color: var(--clr-gray-500); }

/* ─── Services page detail ───────────────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-4xl);
}
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

/* Image is a large, naturally-proportioned 4:3 panel (not stretched to fill
   the column, which produced tall slivers). It's pinned (sticky) so it stays
   in view beside long copy instead of leaving the column looking empty. */
.service-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  font-size: 5rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  align-self: start;
  box-shadow: var(--shadow-md);
}
.service-detail-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}
.service-detail-content p {
  color: var(--clr-gray-500);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 62ch;        /* readable line length — long lines read as unpolished */
}
.service-detail-content > :last-child { margin-bottom: 0; }

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.93rem;
  color: var(--clr-gray-700);
}
.benefit-item i { color: var(--clr-primary); }

/* ─── Scroll animation ───────────────────────────────────── */
/* Fade-up only hides content once JS has signalled it can animate.
   Without JS (or before JS runs), content is fully visible — no FOUC. */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-ready .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Loader / spinner ───────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.spinner.show { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Scroll Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delay for multiple fade-up elements */
.fade-up:nth-child(2).visible {
  transition-delay: 100ms;
}

.fade-up:nth-child(3).visible {
  transition-delay: 200ms;
}

.fade-up:nth-child(4).visible {
  transition-delay: 300ms;
}

.fade-up:nth-child(5).visible {
  transition-delay: 400ms;
}

/* ─── Enhanced Card Hover Effects ────────────────────────── */
.service-card {
  transition: all var(--trans-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.value-card {
  transition: all var(--trans-normal);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.scheme-card {
  transition: all var(--trans-normal);
}

.scheme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ─── Service Cards with Pastel Colors ───────────────────── */
.service-card:nth-child(1) .service-icon {
  background: #E8F5E9;
  color: #2E7D32;
}

.service-card:nth-child(2) .service-icon {
  background: #E3F2FD;
  color: #1565C0;
}

.service-card:nth-child(3) .service-icon {
  background: #FFF3E0;
  color: #E65100;
}

.service-card:nth-child(4) .service-icon {
  background: #F3E5F5;
  color: #6A1B9A;
}

.service-card:nth-child(5) .service-icon {
  background: #FCE4EC;
  color: #C2185B;
}

.service-card:nth-child(6) .service-icon {
  background: #E0F2F1;
  color: #00796B;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .hero-card-wrap { justify-content: flex-start; }
  .hero-card { max-width: 480px; }
  .steps-wrap { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .schemes-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  /* Single column on tablet/mobile: images stop being pinned (they'd jump). */
  .service-detail-image,
  .service-detail-image-pair {
    position: static;
    align-self: auto;
  }
  .service-detail-image { aspect-ratio: 16 / 10; }
  .eligibility-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-4xl: 4rem; --space-3xl: 2.5rem; --nav-height: auto; }
  .container { padding-inline: var(--space-lg); }

  /* Top bar hide phone link, show email */
  .top-bar {
    gap: var(--space-lg);
    padding: 0.5rem var(--space-lg);
  }
  .top-bar a span:last-of-type {
    display: none;
  }
  .top-bar a {
    gap: 0.3rem;
    font-size: 0.75rem;
  }

  /* Two-row navbar: logo row + links row */
  .navbar {
    height: auto;
    padding-bottom: 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0;
    gap: 0;
  }
  .nav-logo {
    flex: 1;
  }
  .nav-logo img {
    height: 36px;
  }
  .nav-actions {
    flex-shrink: 0;
  }
  .nav-actions .btn { display: none; }
  .nav-phone { display: none; }

  /* Links row: full width below logo, horizontally scrollable */
  .nav-links {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0 0.4rem 0;
    gap: 0;
    border-top: 1px solid var(--clr-gray-200);
    margin-top: 0.4rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
  }

  /* Trust strip responsive */
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
  }
  .trust-item {
    font-size: 0.8rem;
  }
  .trust-item i {
    font-size: 1rem;
  }

  /* Hero spacing on mobile */
  .hero {
    padding-top: var(--space-2xl);
  }
  .hero-grid { padding-block: var(--space-2xl); }
  .hero-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .schemes-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .quick-check-form .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; }
  .section-title { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  /* Stack trust items on smallest screens */
  .trust-strip {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }
  .trust-item {
    font-size: 0.75rem;
  }
  .top-bar {
    gap: var(--space-md);
    padding: 0.4rem var(--space-md);
    font-size: 0.7rem;
  }
}

/* ─── Testimonials / Reviews ─────────────────────────────── */
.reviews-section {
  padding: var(--space-4xl) 0;
  background: var(--clr-off-white);
}
.reviews-section .section-label,
.reviews-section .section-title,
.reviews-section .section-subtitle {
  text-align: center;
}
.reviews-section .section-subtitle {
  max-width: 600px;
  margin-inline: auto;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}
.review-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-200);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card .review-quote-icon {
  position: absolute;
  top: -1rem;
  left: var(--space-xl);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--clr-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}
.review-text {
  font-size: 0.9rem;
  color: var(--clr-gray-700);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--space-lg);
  flex: 1;
}
.review-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--clr-gray-200);
}
.review-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.review-avatar.alt {
  background: var(--clr-navy);
}
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.review-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-navy);
}
.review-location {
  font-size: 0.78rem;
  color: var(--clr-gray-400);
}
.review-scheme {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.25rem 0.75rem;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  align-self: flex-start;
}

/* Responsive testimonials */
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   New utility & component classes (extracted from inline styles)
   ========================================================= */

/* Alert banner (GBIS closed notice) */
.alert-banner {
  background: #7f1d1d;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.alert-banner i { margin-right: 0.4rem; }
.alert-banner a { color: #fca5a5; text-decoration: underline; margin-left: 0.5rem; font-weight: 700; }

.alert-banner-positive {
  background: linear-gradient(90deg, var(--clr-primary-dark) 0%, var(--clr-primary) 60%, #0d9b65 100%);
}
.alert-banner-positive a { color: var(--clr-accent); }
.alert-banner-positive a:hover { color: #fff; }

/* Hero variant for BUS page */
.hero-bus {
  background-image: linear-gradient(135deg, rgba(11,40,68,0.92) 0%, rgba(11,122,79,0.80) 100%),
                    url('/images/services/serviceimages/heat-source-pump/heatsrcpump.jpg');
  background-size: cover;
  background-position: center right;
}
.hero-badge-accent {
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.5);
  color: var(--clr-accent);
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-pill {
  background: rgba(11,122,79,0.25);
  border: 1px solid rgba(11,122,79,0.5);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-pill i { color: #4ade80; }

.hero-card-tag {
  background: var(--clr-accent);
  color: var(--clr-navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}
.hero-card-foot {
  font-size: 0.78rem;
  color: var(--clr-gray-400);
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.btn-block { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* Stat number variants */
.stat-number-accent { color: var(--clr-accent); }
.stat-number-sm { font-size: 1.6rem !important; }

/* Two-column grid (about intro, image+text) */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

/* Lead paragraph */
.lead {
  color: var(--clr-gray-500);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 64ch;        /* readable line length for body copy */
}

/* Callout (quote/highlight) blocks */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}
.callout-primary {
  background: var(--clr-primary-light);
  border-left: 4px solid var(--clr-primary);
  color: var(--clr-primary-dark);
}
.callout-navy {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.85);
  border-left: 4px solid var(--clr-accent);
}
.callout-navy strong { color: var(--clr-accent); display: block; margin-bottom: 0.5rem; font-style: normal; }

/* Image with floating badge */
.image-with-badge { position: relative; }
.image-with-badge > img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--clr-accent);
  color: var(--clr-navy);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-family: var(--font-heading);
}
.image-badge-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.image-badge-label { font-size: 0.8rem; font-weight: 600; margin-top: 0.25rem; }

/* Logo tile variant — replaces the team photo with a centred ExpertHousing
   logo on a clean branded panel, while keeping the floating "10+ Years"
   badge in the same position so the layout doesn't shift. */
.image-with-badge--logo .logo-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 30% 25%, rgba(11, 122, 79, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #F0FAF5 0%, #FFFFFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--clr-gray-100);
}
.image-with-badge--logo .logo-tile img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(11, 35, 55, 0.08));
}
@media (max-width: 600px) {
  .image-with-badge--logo .logo-tile { aspect-ratio: 3 / 2; }
  .image-with-badge--logo .logo-tile img { max-width: 220px; }
}

/* Featured service card (full-width on home) */
.service-card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0d4030 100%);
  color: #fff;
  border: 2px solid var(--clr-primary);
  padding: var(--space-2xl);
}
@media (max-width: 860px) {
  .service-card-feature { grid-template-columns: 1fr; padding: var(--space-xl); }
}
.service-card-feature-tags { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.service-card-feature-title { color: #fff !important; font-size: 1.6rem; margin-bottom: 0.75rem; line-height: 1.25; }
.service-card-feature-title span { color: var(--clr-accent) !important; }
.service-card-feature-body { color: rgba(255,255,255,0.82); margin-bottom: 1.25rem; line-height: 1.8; }
.service-card-feature-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.service-card-feature-img { text-align: center; }
.service-card-feature-img > img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Feature pills (inside dark feature card) */
.feature-pills {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.feature-pills li {
  background: rgba(11,122,79,0.3);
  border: 1px solid rgba(11,122,79,0.5);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  color: #fff;
}
.feature-pills i { color: #4ade80; margin-right: 0.3rem; }

/* Service tag colour variants */
.service-tag-accent { background: var(--clr-accent); color: var(--clr-navy); font-weight: 800; }
.service-tag-grant {
  background: rgba(11,122,79,0.3);
  border: 1px solid rgba(11,122,79,0.6);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.service-tag-warm { background: #FFF3E0; color: #E65100; }

/* Service card with image at top or paired images */
.service-card-img-top { padding: 0; overflow: hidden; }
.service-card-img-top > img { width: 100%; height: 180px; object-fit: cover; }
.service-card-img-top .service-card-body { padding: 1.5rem; }

.service-card-img-pair { padding: 0; overflow: hidden; }
.service-card-img-pair .service-card-imgs { display: grid; grid-template-columns: 1fr 1fr; height: 180px; }
.service-card-img-pair .service-card-imgs img { width: 100%; height: 100%; object-fit: cover; }
.service-card-img-pair .service-card-body { padding: 1.5rem; }

/* Grant callout (inside featured card image side) */
.grant-callout {
  margin-top: 1rem;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 10px;
  padding: 1rem;
}
.grant-callout-num { font-size: 2.5rem; font-weight: 800; color: var(--clr-accent); line-height: 1; font-family: var(--font-heading); }
.grant-callout-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 0.25rem; }

/* Section intro spacing */
.section-intro { margin-bottom: 3rem; }

/* Scheme grant emphasis */
.scheme-grant {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clr-accent);
  margin: 0 0 0.5rem 0 !important;
}

/* Section label / subtitle variants */
.section-label-accent {
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--clr-accent);
}
.section-subtitle-light { color: rgba(255,255,255,0.75); }

/* Accreditation row — shared utility */
.accred-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}
.accred-row img {
  object-fit: contain;
  width: 90px;
  height: 90px;
}

/* Brand row */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}
.brand-row img {
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-200);
  padding: 1.25rem;
  background: white;
  width: 240px;
  height: 240px;
}
@media (max-width: 600px) {
  .brand-row img { width: 150px; height: 150px; padding: 0.85rem; }
}

/* Inline link helper */
.link-primary { color: var(--clr-primary); font-weight: 600; }
.link-primary:hover { text-decoration: underline; }

/* Footer logo treatment & helpers */
.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-link-feature { font-weight: 700; color: var(--clr-accent); }
.footer-contact-note { font-size: 0.78rem; color: rgba(255,255,255,.4); }

/* =========================================================
   Mobile nav — hamburger toggle + collapsing menu
   ========================================================= */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--clr-white);
    /* No borders/shadow while closed — they render outside the 0-height
       box and leak as a faint horizontal line above the trust strip. */
    border-top: 0;
    border-bottom: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.open {
    max-height: 600px;
    border-top: 1px solid var(--clr-gray-200);
    border-bottom: 1px solid var(--clr-gray-200);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
  }
  .nav-links li { width: 100%; }
  .nav-link {
    display: block;
    padding: 0.85rem var(--space-xl);
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    width: 100%;
  }
  .nav-link.active {
    background: var(--clr-primary-light);
    border-left-color: var(--clr-primary);
  }
  .navbar { position: relative; height: var(--nav-height); }
  .nav-inner {
    flex-wrap: nowrap;
    height: 100%;
    padding-block: 0;
    position: relative;
  }
  .site-header { position: relative; }
}

/* Trust strip needs container width on its own (since it's not wrapped) */
.trust-strip > .trust-item:first-child { padding-left: var(--space-xl); }
.trust-strip > .trust-item:last-child { padding-right: var(--space-xl); }
@media (max-width: 768px) {
  .trust-strip > .trust-item:first-child,
  .trust-strip > .trust-item:last-child { padding-left: var(--space-lg); padding-right: var(--space-lg); }
}

/* =========================================================
   Cookie banner (id="cookie-banner")
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  max-width: 560px;
  margin-inline: auto;
  background: var(--clr-navy);
  color: #ffffff;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  z-index: 9000;
  font-size: 0.9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 220px; line-height: 1.55; }
.cookie-banner a { color: var(--clr-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-sm); }
.btn-cookie-accept,
.btn-cookie-decline {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}
.btn-cookie-accept { background: var(--clr-primary); color: #fff; }
.btn-cookie-accept:hover { background: var(--clr-primary-dark); transform: translateY(-1px); }
.btn-cookie-decline { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.35); }
.btn-cookie-decline:hover { background: rgba(255,255,255,0.08); }

/* =========================================================
   ABOUT PAGE — core values grid, full-width banner
   ========================================================= */
.full-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
}
.full-banner img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .full-banner { padding: var(--space-md) var(--space-sm); }
  .full-banner img { border-radius: var(--radius-md); }
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.core-value {
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.core-value-primary { background: var(--clr-primary); }
.core-value-navy { background: var(--clr-navy); }
.core-value > i {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
  display: block;
}
.core-value h3 { color: #fff; margin-bottom: 0.75rem; }
.core-value p { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.65; }

/* =========================================================
   SERVICES PAGE — service-detail layout, page hero variants
   ========================================================= */
.page-hero-services {
  background: linear-gradient(135deg, rgba(11,40,68,0.94) 0%, rgba(11,122,79,0.85) 100%),
              url('/images/services/serviceimages/heat-source-pump/heatsrcpump.jpg') center/cover no-repeat;
}
.page-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
/* Hero buttons inside a page-hero are always centered (matches the centered hero copy) */
.page-hero .page-hero-actions { justify-content: center; }
.services-hero-actions {
  justify-content: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.services-hero-actions .btn {
  flex: 0 1 auto;
}

.section-narrow { max-width: 860px; margin: 0 auto; }
.section-narrow.center { text-align: left; }
.section-navy {
  background: var(--clr-navy);
  color: #fff;
}
.section-navy h2 { color: #fff; }

.service-detail-image,
.service-detail-image-pair {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clr-primary-light);
}
.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Two photos side by side as one balanced, pinned block. */
.service-detail-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: transparent;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.service-detail-image-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.service-detail-h3 {
  font-size: 1.2rem;
  margin-top: 1.85rem;
  margin-bottom: 0.6rem;
  color: var(--clr-primary);
}
.service-detail-h4 {
  font-size: 1.02rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--clr-gray-700);
}
/* First in-content heading shouldn't add a big gap under the h2/intro. */
.service-detail-content h2 + .service-detail-h3 { margin-top: 0.5rem; }

.safe-hands-banner {
  background: var(--clr-primary);
  padding: 3rem 0;
  color: #fff;
}
.safe-hands-banner h3 { color: #fff; font-size: 1.75rem; margin-bottom: 1rem; }
.safe-hands-banner p { color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 1.25rem; }
.safe-hands-banner img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; }

/* Logo card variant — show the ExpertHousing brand on a clean white panel so
   the green wordmark/icon don't blend into the green banner background. */
.safe-hands-logo {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.safe-hands-logo img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-hero {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 60%, #0d9b65 100%);
  color: #ffffff;
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/services/serviceimages/cavitywall/cavity-wall-insulation.webp') center/cover no-repeat;
  opacity: 0.08;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--space-md); color: #fff; }
.contact-hero p { font-size: 1.15rem; opacity: 0.9; max-width: 560px; margin: 0 auto; }

.contact-main {
  padding: var(--space-4xl) 0;
  background: var(--clr-off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card,
.contact-form-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.contact-info-card h2,
.contact-form-card h2 {
  font-size: 1.5rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-xl);
}
.contact-form-card .form-subtitle {
  color: var(--clr-gray-500);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.info-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--clr-gray-200);
}
.info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.1rem;
}
.info-content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.info-content a, .info-content p {
  color: var(--clr-navy);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.6;
}
.info-content a:hover { color: var(--clr-primary); text-decoration: underline; }
.info-meta {
  font-size: 0.85rem !important;
  color: var(--clr-gray-500) !important;
  margin-top: 4px;
  font-weight: 400 !important;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--space-sm); }
.hours-table tr td { padding: 4px 0; font-size: 0.95rem; color: var(--clr-navy); }
.hours-table tr td:last-child { text-align: right; font-weight: 500; }
.hours-table .closed { color: var(--clr-error); }

/* Contact form fields */
.contact-form-card .form-group { margin-bottom: var(--space-lg); }
.contact-form-card .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 6px;
}
.contact-form-card .form-group label .req { color: var(--clr-error); margin-left: 2px; }
.contact-form-card .form-group input,
.contact-form-card .form-group select,
.contact-form-card .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-navy);
  background: var(--clr-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-card .form-group input:focus,
.contact-form-card .form-group select:focus,
.contact-form-card .form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(11,122,79,0.15);
}
.contact-form-card .form-group input.error,
.contact-form-card .form-group select.error,
.contact-form-card .form-group textarea.error { border-color: var(--clr-error); }
.contact-form-card .form-group textarea { resize: vertical; min-height: 130px; }
.contact-form-card .field-error {
  display: none;
  color: var(--clr-error);
  font-size: 0.8rem;
  margin-top: 4px;
}
.contact-form-card .field-error.show { display: block; }
.uppercase { text-transform: uppercase; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-consent {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--clr-primary);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.form-consent label {
  font-size: 0.875rem;
  color: var(--clr-gray-500);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent label a { color: var(--clr-primary); }

.form-result {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-result.show { display: block; }
.form-result.success { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.form-result.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.form-result.info { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

.map-section {
  padding: var(--space-4xl) 0;
  background: var(--clr-white);
}
.map-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-xl);
}
.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  height: 400px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

.contact-faq {
  padding: var(--space-4xl) 0;
  background: var(--clr-gray-100);
}
.contact-faq h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-3xl);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.faq-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border-left: 4px solid var(--clr-primary);
}
.faq-card h3 { font-size: 1rem; color: var(--clr-navy); margin-bottom: var(--space-sm); }
.faq-card p { font-size: 0.9rem; color: var(--clr-gray-500); line-height: 1.65; }

.contact-cta {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  color: #ffffff;
  padding: var(--space-4xl) 0;
  text-align: center;
}
.contact-cta h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-md); color: #fff; }
.contact-cta p { opacity: 0.8; margin-bottom: var(--space-xl); font-size: 1.1rem; }
.cta-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
  text-decoration: none;
  font-family: var(--font-heading);
}
.cta-phone-link:hover { color: #fff; }

/* =========================================================
   ECO4 PAGE
   ========================================================= */
.eco4-hero {
  background: linear-gradient(135deg, #1a3a5c 0%, var(--clr-navy) 55%, #2c4a6a 100%);
  color: #ffffff;
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.eco4-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/services/serviceimages/cavitywall/cavity-wall-insulation.webp') center/cover no-repeat;
  opacity: 0.07;
}
.eco4-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
@media (max-width: 860px) { .eco4-hero .container { grid-template-columns: 1fr; } }

.eco4-badge {
  display: inline-block;
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--clr-accent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.eco4-hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: #fff;
}
.eco4-hero-text p { font-size: 1.1rem; opacity: 0.9; line-height: 1.7; margin-bottom: var(--space-xl); }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.eco4-hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.eco4-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.eco4-stat .num {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--clr-accent);
}
.eco4-stat .label {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.what-eco4 {
  padding: var(--space-4xl) 0;
  background: var(--clr-white);
}
.what-eco4 .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
@media (max-width: 860px) { .what-eco4 .container { grid-template-columns: 1fr; } }
.section-tag {
  display: inline-block;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.section-tag-accent { background: #FEF3C7; color: #92400E; }
.what-eco4 h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--clr-navy);
  margin-bottom: var(--space-lg);
  line-height: 1.25;
}
.what-eco4 p { color: var(--clr-gray-500); line-height: 1.8; margin-bottom: var(--space-md); }
.what-eco4 img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.highlight-box {
  background: var(--clr-primary-light);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
}
.highlight-box p { color: var(--clr-primary-dark); font-weight: 500; margin: 0; font-size: 0.95rem; line-height: 1.7; }

.eco4-eligibility {
  padding: var(--space-4xl) 0;
  background: var(--clr-gray-100);
}
.eco4-eligibility h2,
.eco4-measures h2,
.eco4-process h2,
.eco4-benefits h2,
.eco4-faq h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--clr-navy);
  margin-bottom: var(--space-sm);
}
.eco4-process h2 { color: #fff; }
.section-sub {
  text-align: center;
  color: var(--clr-gray-500);
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.7;
}
.eco4-process .section-sub { color: rgba(255,255,255,0.8); }
.elig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
@media (max-width: 768px) { .elig-grid { grid-template-columns: 1fr; } }
.elig-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.elig-card h3 {
  font-size: 1.15rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--clr-primary-light);
}
.elig-list { list-style: none; padding: 0; margin: 0; }
.elig-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  border-bottom: 1px solid var(--clr-gray-100);
  line-height: 1.5;
}
.elig-list li:last-child { border-bottom: none; }
.elig-list li .tick { color: var(--clr-primary); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.elig-note {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--clr-gray-100);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--clr-gray-500);
  line-height: 1.6;
}

.eco4-measures { padding: var(--space-4xl) 0; background: var(--clr-white); }
.measures-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.measure-tab {
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.measure-tab:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 16px rgba(11,122,79,0.1);
}
.measure-tab-img img { width: 100%; height: 150px; object-fit: cover; }
.measure-tab-body { padding: 1.25rem; }
.measure-tab h3 { font-size: 1rem; color: var(--clr-navy); margin-bottom: var(--space-sm); }
.measure-tab p { font-size: 0.875rem; color: var(--clr-gray-500); line-height: 1.65; }

.eco4-process {
  padding: var(--space-4xl) 0;
  background: var(--clr-navy);
  color: #ffffff;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
}
.process-step { text-align: center; }
.process-step-num {
  width: 60px;
  height: 60px;
  border: 3px solid var(--clr-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--clr-accent);
  margin: 0 auto var(--space-md);
}
.process-step h3 { font-size: 1rem; margin-bottom: var(--space-sm); color: #fff; }
.process-step p { font-size: 0.875rem; opacity: 0.75; line-height: 1.65; }

.london-section {
  padding: var(--space-4xl) 0;
  background: var(--clr-off-white);
}
.london-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
@media (max-width: 860px) { .london-section .container { grid-template-columns: 1fr; } }
.london-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--clr-navy); margin-bottom: var(--space-lg); }
.london-section p { color: var(--clr-gray-500); line-height: 1.8; margin-bottom: var(--space-md); }
.boroughs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.borough-chip {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.3;
}

.eco4-benefits { padding: var(--space-4xl) 0; background: var(--clr-white); }
.benefits-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}
.benefit-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--clr-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: var(--font-heading);
}
.eco4-benefits .benefit-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.eco4-benefits .benefit-item h3 { font-size: 0.95rem; color: var(--clr-navy); margin-bottom: 4px; }
.eco4-benefits .benefit-item p { font-size: 0.875rem; color: var(--clr-gray-500); line-height: 1.65; }

.eco4-faq { padding: var(--space-4xl) 0; background: var(--clr-gray-100); }
.eco4-faq-list { max-width: 800px; margin: 0 auto; }

/* =========================================================
   GBIS PAGE
   ========================================================= */
.gbis-hero {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  color: #ffffff;
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gbis-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/services/serviceimages/cavitywall/cavity-wall-insulation.webp') center/cover no-repeat;
  opacity: 0.08;
}
.gbis-hero .container { position: relative; z-index: 1; max-width: 780px; }
.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-lg);
}
.gbis-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  color: #fff;
}
.gbis-hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.still-available {
  padding: var(--space-4xl) 0;
  background: var(--clr-white);
}
.still-available h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--clr-navy);
  margin-bottom: var(--space-sm);
}
.still-available .sub {
  text-align: center;
  color: var(--clr-gray-500);
  max-width: 620px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.75;
}
.gbis-intro-block { margin: var(--space-3xl) 0; }
.gbis-intro-lead {
  font-size: 1.05rem;
  color: var(--clr-navy);
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.gbis-intro-block p {
  color: var(--clr-gray-500);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}
.available-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.avail-card {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1.5px solid var(--clr-gray-200);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.avail-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-3px); }
.avail-card.primary-card { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.avail-card.accent-card { border-color: var(--clr-accent-dark); background: #FFFBEB; }
.avail-card.navy-card { border-color: var(--clr-navy); background: #F0F4F8; }
.card-icon { font-size: 2.5rem; margin-bottom: var(--space-md); display: block; }
.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.primary-card .card-tag { background: var(--clr-primary); color: white; }
.accent-card .card-tag { background: var(--clr-accent-dark); color: white; }
.navy-card .card-tag { background: var(--clr-navy); color: white; }
.avail-card h3 { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.primary-card h3 { color: var(--clr-primary-dark); }
.accent-card h3 { color: #92400E; }
.navy-card h3 { color: var(--clr-navy); }
.avail-card p { font-size: 0.9rem; line-height: 1.7; color: var(--clr-gray-500); margin-bottom: var(--space-lg); }
.avail-card .grant-pill {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: var(--space-md);
}
.primary-card .grant-pill { color: var(--clr-primary); }
.accent-card .grant-pill { color: #92400E; }
.navy-card .grant-pill { color: var(--clr-navy); }
.btn-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-avail:hover { opacity: 0.9; transform: translateY(-1px); }
.primary-card .btn-avail { background: var(--clr-primary); color: white; }
.accent-card .btn-avail { background: var(--clr-accent-dark); color: white; }
.navy-card .btn-avail { background: var(--clr-navy); color: white; }

.gbis-history {
  padding: var(--space-4xl) 0;
  background: var(--clr-gray-100);
}
.gbis-history .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 860px) { .gbis-history .container { grid-template-columns: 1fr; } }
.gbis-history h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--clr-navy); margin-bottom: var(--space-lg); }
.gbis-history p { color: var(--clr-gray-500); line-height: 1.8; margin-bottom: var(--space-md); }
.gbis-history img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  filter: grayscale(0.3);
}
.eligibility-route { margin: var(--space-2xl) 0 var(--space-xl); }
.eligibility-route h3 {
  font-size: 1.1rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-md);
  font-weight: 700;
}
.route-list { list-style: none; padding: 0; margin: 0; }
.route-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-gray-100);
  font-size: 0.9rem;
  color: var(--clr-gray-700);
  line-height: 1.5;
}
.route-list li:last-child { border-bottom: none; }
.route-tick { color: var(--clr-primary); font-weight: 800; flex-shrink: 0; }

.was-covered { margin-top: var(--space-xl); }
.was-covered h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-gray-400);
  margin-bottom: var(--space-md);
}
.measure-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.measure-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--clr-gray-500);
}

.gbis-faq-block {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.gbis-faq-block h3 {
  font-size: 1rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-md);
}
.gbis-faq-stack { display: flex; flex-direction: column; gap: var(--space-lg); }
.gbis-faq-q + .gbis-faq-q { border-top: 1px solid var(--clr-gray-100); padding-top: var(--space-lg); }
.gbis-faq-q h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
}
.gbis-faq-q p { font-size: 0.9rem; color: var(--clr-gray-500); margin: 0; }

.gbis-benefits-trust {
  padding: var(--space-4xl) 0;
  background: var(--clr-gray-100);
}
.gbis-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.gbis-info-card {
  background: var(--clr-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.gbis-info-card h3 { font-size: 1.1rem; color: var(--clr-navy); margin-bottom: var(--space-sm); font-weight: 700; }
.gbis-info-card p { font-size: 0.95rem; color: var(--clr-gray-500); line-height: 1.7; margin: 0; }
.gbis-funding-card {
  background: var(--clr-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3xl);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.gbis-funding-card h3 { font-size: 1.2rem; color: var(--clr-navy); margin-bottom: var(--space-md); font-weight: 700; }
.gbis-funding-card p { font-size: 0.95rem; color: var(--clr-gray-500); line-height: 1.7; margin-bottom: var(--space-md); }

.gbis-trust-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}
.gbis-trust-tile {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid;
}
.gbis-trust-tile-blue {
  background: linear-gradient(135deg, var(--clr-primary-light) 0%, rgba(59,130,246,0.05) 100%);
  border-color: var(--clr-primary-light);
}
.gbis-trust-tile-amber {
  background: linear-gradient(135deg, #FEF3C7 0%, rgba(251,191,36,0.05) 100%);
  border-color: #FEF3C7;
}
.gbis-trust-tile-indigo {
  background: linear-gradient(135deg, #E0E7FF 0%, rgba(99,102,241,0.05) 100%);
  border-color: #E0E7FF;
}
.gbis-trust-tile h4 {
  font-size: 1.05rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gbis-trust-tile-blue h4 i { color: var(--clr-primary); }
.gbis-trust-tile-amber h4 i { color: #F59E0B; }
.gbis-trust-tile-indigo h4 i { color: #6366F1; }
.gbis-trust-tile p { font-size: 0.9rem; color: var(--clr-gray-500); margin: 0; line-height: 1.6; }

/* =========================================================
   HEAT-PUMPS PAGE
   ========================================================= */
.hp-hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-navy);
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/services/serviceimages/heat-source-pump/heatsrcpump.jpg') center right / contain no-repeat;
  opacity: 0.18;
}
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(11,35,55,0.97) 0%,
    rgba(11,35,55,0.85) 45%,
    rgba(11,35,55,0.3) 75%,
    transparent 100%);
}
.hp-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}
@media (max-width: 860px) {
  .hp-hero .container { grid-template-columns: 1fr; }
  .hp-hero-right { display: none; }
}
.hp-hero-left { color: #ffffff; }
.hp-scheme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,166,35,0.15);
  border: 1.5px solid var(--clr-accent);
  color: var(--clr-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-lg);
}
.hp-hero-left h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  font-weight: 800;
  color: #fff;
}
.hp-highlight { color: var(--clr-accent); display: block; }
.hp-hero-left p {
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}
.hp-hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}
.hp-grant-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;          /* span the full hero column so it reads horizontal, not a small box */
}
.hp-grant-amount {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--clr-accent);
  font-family: var(--font-heading);
  line-height: 1;
  white-space: nowrap;
}
.hp-grant-text { font-size: 1.02rem; opacity: 0.9; line-height: 1.55; color: #fff; }
.hp-grant-text strong { color: var(--clr-accent); font-size: 1.1rem; }

.hp-hero-right { display: flex; justify-content: center; align-items: center; }
.hp-pump-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(6px);
}
.hp-pump-card img,
.hp-pump-video {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  display: block;
  background: #0b2337;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hp-pump-video img { width: 100%; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  /* Replace the video with the still poster for users who prefer reduced motion */
  .hp-pump-video {
    background-image: url('/images/services/serviceimages/heat-source-pump/heatsrcpump.jpg');
    background-size: cover;
    background-position: center;
  }
  .hp-pump-video > source { display: none; }
}
.hp-pump-card-label {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-top: var(--space-md);
  font-weight: 500;
}
.hp-pump-card-tag {
  background: var(--clr-primary);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.4rem;
}

.hp-stat-banner {
  background: var(--clr-primary);
  padding: var(--space-xl) 0;
}
.hp-stat-banner .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.hp-stat-item { text-align: center; color: #ffffff; }
.hp-stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hp-stat-item .lbl {
  font-size: 0.8rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--clr-navy);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}
.section-lead {
  color: var(--clr-gray-500);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}
.bus-points { list-style: none; padding: 0; margin: var(--space-xl) 0 0; }
.bus-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--clr-gray-200);
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  line-height: 1.5;
}
.bus-points li:last-child { border-bottom: none; }
.bus-points .tick {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--clr-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--clr-primary);
  font-weight: 800;
  margin-top: 1px;
}
.hp-faq-list { max-width: 860px; margin: 0 auto; }

.cta-banner-primary {
  background: var(--clr-primary);
  color: #ffffff;
}
.cta-banner-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
  justify-content: center;
}

/* =========================================================
   HEAT-PUMPS PAGE — extra components (May 2026 update)
   ========================================================= */

/* HOW IT WORKS — flow diagram */
.hp-how-works {
  padding: var(--space-4xl) 0;
  background: var(--clr-white);
}
.hp-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: var(--space-md);
  align-items: stretch;
  margin: var(--space-3xl) 0 var(--space-2xl);
}
@media (max-width: 880px) {
  .hp-flow { grid-template-columns: 1fr; }
  .hp-flow-arrow { transform: rotate(90deg); justify-self: center; }
}
.hp-flow-step {
  position: relative;
  background: var(--clr-off-white);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
}
.hp-flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,122,79,0.12);
  border-color: var(--clr-primary);
}
.hp-flow-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11,122,79,0.35);
}
.hp-flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto var(--space-md);
}
.hp-flow-step h3 { font-size: 1rem; color: var(--clr-navy); margin-bottom: 0.4rem; }
.hp-flow-step p { font-size: 0.85rem; color: var(--clr-gray-500); line-height: 1.6; margin: 0; }
.hp-flow-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--clr-primary);
  font-weight: 700;
}

.hp-cop-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0d4030 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
@media (max-width: 720px) { .hp-cop-card { grid-template-columns: 1fr; text-align: center; } }
.hp-cop-stat { text-align: center; }
.hp-cop-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--clr-accent);
}
.hp-cop-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}
.hp-cop-card p { color: rgba(255,255,255,0.88); line-height: 1.7; margin: 0; }
.hp-cop-card strong { color: var(--clr-accent); }

/* £9,000 OIL/LPG UPLIFT */
.hp-uplift {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--clr-off-white) 0%, var(--clr-white) 100%);
}
.hp-uplift-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 920px) { .hp-uplift-grid { grid-template-columns: 1fr; } }
.hp-uplift-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(90deg, var(--clr-accent) 0%, #ff8a00 100%);
  color: var(--clr-navy);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}
.hp-uplift h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--clr-navy);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}
.hp-uplift-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
}
.hp-uplift-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--clr-gray-200);
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  line-height: 1.5;
}
.hp-uplift-list li:last-child { border-bottom: none; }
.hp-uplift-list i { flex-shrink: 0; margin-top: 3px; color: var(--clr-primary); }
.hp-uplift-list i.hp-warn { color: var(--clr-warning); }
.hp-uplift-list i.hp-no   { color: var(--clr-error); }
.hp-uplift-note {
  background: var(--clr-primary-light);
  border-left: 4px solid var(--clr-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.92rem;
  color: var(--clr-primary-dark);
  line-height: 1.65;
  margin: var(--space-lg) 0;
}
.hp-uplift-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); }

.hp-uplift-summary {
  background: #fff;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}
.hp-uplift-summary h3 {
  font-size: 1rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hp-grant-table { width: 100%; border-collapse: collapse; }
.hp-grant-table th,
.hp-grant-table td { padding: 0.65rem 0.5rem; font-size: 0.9rem; text-align: left; border-bottom: 1px solid var(--clr-gray-100); }
.hp-grant-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-gray-500); }
.hp-grant-table tbody tr:last-child td { border-bottom: none; }
.hp-grant-table td:last-child { text-align: right; }
.hp-grant-uplift { color: var(--clr-primary); font-weight: 800; }
.hp-grant-source { font-size: 0.78rem; color: var(--clr-gray-500); margin-top: var(--space-md); line-height: 1.5; }
.hp-grant-source a { color: var(--clr-primary); }

/* WIZARD */
.hp-wizard-section {
  padding: var(--space-4xl) 0;
  background: var(--clr-gray-100);
}
.wizard-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border: 1px solid var(--clr-gray-200);
}
.wizard-progress {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
  gap: 0;
  align-items: center;
  justify-content: center;
}
.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-gray-200);
  color: var(--clr-gray-500);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background var(--trans-normal), color var(--trans-normal);
}
.wizard-step-dot:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 2px;
  background: var(--clr-gray-200);
  margin-left: 4px;
  margin-right: 4px;
}
.wizard-step-dot.active {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11,122,79,0.35);
}
.wizard-step-dot.done {
  background: var(--clr-primary);
  color: #fff;
}
.wizard-step-dot.done:not(:last-child)::after,
.wizard-step-dot.active:not(:last-child)::after {
  background: var(--clr-primary);
}
.wizard-step-dot--result { width: 36px; height: 36px; }

.wizard-step h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
  text-align: center;
}
.wizard-help {
  color: var(--clr-gray-500);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: var(--space-xl);
}
.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}
.wizard-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-lg) var(--space-md);
  background: var(--clr-off-white);
  border: 2px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-navy);
  cursor: pointer;
  transition: transform var(--trans-fast), border-color var(--trans-fast), background var(--trans-fast), box-shadow var(--trans-fast);
}
.wizard-option i {
  font-size: 1.5rem;
  color: var(--clr-primary);
}
.wizard-option:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,122,79,0.12);
}
.wizard-option.selected {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  box-shadow: 0 0 0 4px rgba(11,122,79,0.18);
}
.wizard-option:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

.wizard-nav { margin-top: var(--space-xl); display: flex; justify-content: flex-start; }
.wizard-back {
  background: none;
  border: none;
  color: var(--clr-gray-500);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
}
.wizard-back:hover { color: var(--clr-primary); background: var(--clr-primary-light); }

/* Wizard result */
.wizard-result { text-align: center; }
.wizard-result-headline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-gray-500);
  margin-bottom: 0.5rem;
}
.wizard-result-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--clr-primary);
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d9b65 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}
.wizard-result-body {
  color: var(--clr-gray-700);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}
.wizard-result-checks {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) auto;
  max-width: 480px;
  text-align: left;
}
.wizard-result-checks li {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--clr-gray-700);
  line-height: 1.5;
}
.wizard-result-checks i { flex-shrink: 0; margin-top: 3px; }
.wizard-check-ok i { color: var(--clr-primary); }
.wizard-check-no i { color: var(--clr-error); }
.wizard-result-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* RUNNING COSTS — bar chart */
.cost-compare {
  max-width: 880px;
  margin: var(--space-3xl) auto 0;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  border: 1px solid var(--clr-gray-200);
}
.cost-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--clr-gray-100);
}
.cost-row:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .cost-row { grid-template-columns: 1fr; gap: var(--space-sm); }
}
.cost-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
  color: var(--clr-navy);
  position: relative;
}
.cost-label i {
  position: absolute;
  left: -2.2rem;
  top: 0.15rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-gray-100);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.cost-label strong { font-weight: 700; }
.cost-label span { font-size: 0.78rem; color: var(--clr-gray-500); }
.cost-bar {
  background: var(--clr-gray-100);
  border-radius: 50px;
  height: 36px;
  overflow: hidden;
  position: relative;
}
.cost-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--clr-warning) 0%, #b45309 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-md);
  white-space: nowrap;
  width: 0;
  animation: costBarFill 1.2s ease-out forwards;
}
.cost-row--heat-pump .cost-bar-fill { background: linear-gradient(90deg, var(--clr-primary) 0%, #0d9b65 100%); }
.cost-bar-fill[data-pct="55"]  { animation: cb55 1.2s ease-out forwards; }
.cost-bar-fill[data-pct="58"]  { animation: cb58 1.2s ease-out forwards; }
.cost-bar-fill[data-pct="78"]  { animation: cb78 1.2s ease-out forwards; }
.cost-bar-fill[data-pct="92"]  { animation: cb92 1.2s ease-out forwards; }
.cost-bar-fill[data-pct="100"] { animation: cb100 1.2s ease-out forwards; }
@keyframes cb55  { to { width: 55%;  } }
@keyframes cb58  { to { width: 58%;  } }
@keyframes cb78  { to { width: 78%;  } }
@keyframes cb92  { to { width: 92%;  } }
@keyframes cb100 { to { width: 100%; } }
.cost-disclaimer { font-size: 0.78rem; color: var(--clr-gray-500); text-align: center; margin-top: var(--space-lg); max-width: 700px; margin-left: auto; margin-right: auto; }

/* SUITABILITY GRID */
.suit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}
@media (max-width: 760px) { .suit-grid { grid-template-columns: 1fr; } }
.suit-card {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1.5px solid;
}
.suit-card-good { background: var(--clr-primary-light); border-color: var(--clr-primary); }
.suit-card-warn { background: #FEF9EE; border-color: var(--clr-warning); }
.suit-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.suit-card-good h3 { color: var(--clr-primary-dark); }
.suit-card-good h3 i { color: var(--clr-primary); }
.suit-card-warn h3 { color: #92400E; }
.suit-card-warn h3 i { color: var(--clr-warning); }
.suit-card ul { list-style: none; padding: 0; margin: 0; }
.suit-card li {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--clr-gray-700);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.suit-card li:last-child { border-bottom: none; }
.suit-card-good li i { color: var(--clr-primary); flex-shrink: 0; margin-top: 3px; }
.suit-card-warn li i { color: var(--clr-warning); flex-shrink: 0; margin-top: 3px; }

/* INSTALLATION PROCESS — horizontal stepper */
.hp-process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  position: relative;
}
@media (max-width: 1024px) { .hp-process-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .hp-process-row { grid-template-columns: 1fr; } }
.hp-process-step {
  background: #fff;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
}
.hp-process-step:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: 0 12px 32px rgba(11,122,79,0.12);
}
.hp-process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 0 6px 16px rgba(11,122,79,0.3);
}
.hp-process-step h3 { font-size: 1rem; color: var(--clr-navy); margin-bottom: 0.4rem; }
.hp-process-step p { font-size: 0.85rem; color: var(--clr-gray-500); line-height: 1.6; margin-bottom: var(--space-md); }
.hp-process-time {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

/* QUICK FACTS GRID */
.hp-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}
.hp-fact {
  background: #fff;
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}
.hp-fact:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.hp-fact > i {
  font-size: 1.5rem;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.hp-fact h3 { font-size: 1rem; color: var(--clr-navy); margin-bottom: 0.5rem; }
.hp-fact p { font-size: 0.9rem; color: var(--clr-gray-500); line-height: 1.65; margin: 0; }

/* =========================================================
   LANDLORD EPC C UPGRADE — section on home page
   ========================================================= */
.landlord-section {
  background: linear-gradient(180deg, var(--clr-off-white) 0%, var(--clr-white) 100%);
  padding: var(--space-4xl) 0;
}
.landlord-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 920px) { .landlord-grid { grid-template-columns: 1fr; } }

.landlord-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--clr-navy);
  color: var(--clr-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  box-shadow: 0 6px 20px rgba(28, 43, 58, 0.25);
}

.landlord-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--clr-navy);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}
.landlord-highlight {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d9b65 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.landlord-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
}
.landlord-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--clr-gray-200);
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  line-height: 1.55;
}
.landlord-list li:last-child { border-bottom: none; }
.landlord-list i {
  flex-shrink: 0;
  color: var(--clr-primary);
  margin-top: 4px;
}

.landlord-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-xl) 0 var(--space-lg);
}

.landlord-sources {
  font-size: 0.78rem;
  color: var(--clr-gray-500);
  line-height: 1.7;
  border-top: 1px solid var(--clr-gray-200);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}
.landlord-sources strong { color: var(--clr-navy); }
.landlord-sources a { color: var(--clr-primary); text-decoration: underline; }
.landlord-sources a:hover { color: var(--clr-primary-dark); }

/* Sticky summary card */
.landlord-summary {
  background: #fff;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}
.landlord-summary h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-navy);
  margin-bottom: var(--space-md);
}
.landlord-table { width: 100%; border-collapse: collapse; }
.landlord-table td {
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--clr-gray-100);
  color: var(--clr-gray-700);
}
.landlord-table tbody tr:last-child td { border-bottom: none; }
.landlord-table td:last-child { text-align: right; color: var(--clr-navy); }
.landlord-c { color: var(--clr-primary); font-weight: 800; }

.landlord-warning {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 0.82rem;
  color: #92400E;
  line-height: 1.55;
  margin-top: var(--space-md);
}
.landlord-warning i { flex-shrink: 0; margin-top: 3px; color: #B45309; }

/* =========================================================
   /landlords PAGE
   ========================================================= */
.page-hero-landlords {
  background:
    linear-gradient(135deg, rgba(11, 35, 55, 0.97) 0%, rgba(11, 122, 79, 0.88) 100%),
    url('/images/our_team/team_picture.jpg') center/cover no-repeat;
}
.ll-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 166, 35, 0.18);
  border: 1.5px solid rgba(245, 166, 35, 0.5);
  color: var(--clr-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
/* EPC C is always shown in primary green across the site, this matches the MEES table and home-page section */
.ll-hero-highlight {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* WHY IT MATTERS */
.ll-why { padding: var(--space-4xl) 0; background: var(--clr-white); }
.ll-why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 920px) { .ll-why-grid { grid-template-columns: 1fr; } }
.ll-why h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--clr-navy); margin-bottom: var(--space-lg); line-height: 1.2; }
.ll-source-line {
  font-size: 0.78rem;
  color: var(--clr-gray-500);
  line-height: 1.7;
  border-top: 1px solid var(--clr-gray-200);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
}
.ll-source-line strong { color: var(--clr-navy); font-weight: 700; }
.ll-source-line a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }
.ll-source-line a:hover { color: var(--clr-primary-dark); }

/* GRANTS GRID — single BUS card, centered */
.ll-grants { background: var(--clr-off-white); }
.ll-grants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ll-grant-card {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
}
.ll-grant-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: 0 16px 40px rgba(11, 122, 79, 0.12);
}

.ll-grant-card-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.ll-grant-card-tag {
  display: inline-block;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  align-self: flex-start;
}
.ll-grant-card h3 {
  font-size: 1.2rem;
  color: var(--clr-navy);
  margin: 0.25rem 0 0;
  line-height: 1.25;
}
.ll-grant-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.ll-grant-amount span { font-size: 1.4rem; opacity: 0.65; font-weight: 700; }

.ll-grant-card > p {
  color: var(--clr-gray-700);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}
.ll-grant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.ll-grant-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--clr-gray-700);
  border-bottom: 1px dashed var(--clr-gray-200);
}
.ll-grant-list li:last-child { border-bottom: none; }
.ll-grant-list i { flex-shrink: 0; margin-top: 4px; color: var(--clr-primary); }
.ll-grant-list i.fa-times { color: var(--clr-error); }
.ll-grant-list i.fa-circle-exclamation { color: var(--clr-warning); }
.ll-grant-list i.fa-circle-info { color: var(--clr-primary); }
.ll-grant-list strong { color: var(--clr-navy); font-weight: 700; }

.ll-grant-card .btn { align-self: flex-start; }
.ll-grant-source {
  font-size: 0.74rem !important;
  color: var(--clr-gray-500);
  margin-top: 0.25rem !important;
  border-top: 1px solid var(--clr-gray-100);
  padding-top: 0.7rem;
  line-height: 1.4;
}
.ll-grant-source a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }
.ll-grant-source a:hover { color: var(--clr-primary-dark); }

/* MEASURES (heat pump, cwi, loft, boiler, solar) */
.ll-measures { background: var(--clr-off-white); }
.ll-measure-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.ll-measure {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-xl);
  background: #fff;
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  align-items: start;
  box-shadow: 0 4px 20px rgba(11, 35, 55, 0.06);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
}
.ll-measure:hover {
  transform: translateY(-3px);
  border-color: var(--clr-primary);
  box-shadow: 0 16px 40px rgba(11, 122, 79, 0.12);
}
@media (max-width: 720px) {
  .ll-measure { grid-template-columns: 1fr; gap: var(--space-md); padding: var(--space-xl); }
}
.ll-measure-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d9b65 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(11, 122, 79, 0.28);
}
.ll-measure-body h3 {
  font-size: 1.35rem;
  color: var(--clr-navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.ll-measure-body > p {
  color: var(--clr-gray-700);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ll-measure-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}
@media (max-width: 720px) { .ll-measure-routes { grid-template-columns: 1fr; } }
.ll-route {
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  border-left: 4px solid;
  color: var(--clr-gray-700);
}
.ll-route-grant {
  background: rgba(11, 122, 79, 0.07);
  border-color: var(--clr-primary);
}
.ll-route-private {
  background: rgba(245, 166, 35, 0.10);
  border-color: var(--clr-accent-dark);
}
.ll-route strong { color: var(--clr-navy); }

.ll-route-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  color: #fff;
}
.ll-route-grant   .ll-route-tag { background: var(--clr-primary); }
.ll-route-private .ll-route-tag { background: var(--clr-accent-dark); }
.ll-route-tag i { color: #fff; }

/* Benefits — two columns, brand-colored bullet, easier to scan */
.ll-measure-benefits {
  list-style: none;
  padding: 1.1rem 1.25rem;
  margin: var(--space-md) 0 0;
  background: var(--clr-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.5rem;
}
@media (max-width: 720px) {
  .ll-measure-benefits { grid-template-columns: 1fr; }
}
.ll-measure-benefits li {
  font-size: 0.92rem;
  color: var(--clr-gray-700);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.15rem 0;
  border: none;
}
.ll-measure-benefits li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  margin-top: 9px;
  box-shadow: 0 0 0 3px rgba(11, 122, 79, 0.15);
}
.ll-measure-benefits strong { color: var(--clr-navy); font-weight: 700; }

/* NO-GRANT SECTION */
.ll-no-grant-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 920px) { .ll-no-grant-grid { grid-template-columns: 1fr; } }
.ll-no-grant h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--clr-navy); margin-bottom: var(--space-md); line-height: 1.2; }
.ll-no-grant-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}
.ll-no-grant-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--clr-gray-200);
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  line-height: 1.6;
}
.ll-no-grant-list li:last-child { border-bottom: none; }
.ll-no-grant-list li > i { flex-shrink: 0; margin-top: 5px; color: var(--clr-primary); }
.ll-no-grant-list li > span { flex: 1; }
.ll-no-grant-list strong { color: var(--clr-navy); font-weight: 700; display: inline; }

.ll-process-card {
  background: #fff;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}
.ll-process-card h3 {
  font-size: 0.85rem;
  color: var(--clr-navy);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ll-process-list { list-style: none; padding: 0; margin: 0; }
.ll-process-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--clr-gray-100);
  align-items: flex-start;
}
.ll-process-list li:last-child { border-bottom: none; }
.ll-process-list strong { color: var(--clr-navy); font-size: 0.92rem; display: block; }
.ll-process-list span { font-size: 0.82rem; color: var(--clr-gray-500); display: block; line-height: 1.5; }
.ll-process-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* =========================================================
   /contact — phone + email panels (no form)
   ========================================================= */
.contact-direct { padding: var(--space-4xl) 0; background: var(--clr-off-white); }
.contact-direct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 760px) { .contact-direct-grid { grid-template-columns: 1fr; max-width: 540px; } }

.contact-method-card {
  background: #fff;
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  box-shadow: 0 4px 20px rgba(11, 35, 55, 0.06);
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
}
.contact-method-card:hover {
  transform: translateY(-3px);
  border-color: var(--clr-primary);
  box-shadow: 0 16px 40px rgba(11, 122, 79, 0.12);
}
.contact-method-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d9b65 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 18px rgba(11, 122, 79, 0.28);
}
.contact-method-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-gray-500);
}
.contact-method-card h2 { font-size: 1.5rem; color: var(--clr-navy); margin: 0; }
.contact-method-big {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--clr-primary);
  text-decoration: none;
  word-break: break-word;
  letter-spacing: -0.01em;
}
.contact-method-big:hover { color: var(--clr-primary-dark); text-decoration: underline; }
.contact-method-sub {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-gray-700);
  text-decoration: none;
  margin-top: 0.35rem;
}
.contact-method-sub:hover { color: var(--clr-primary); text-decoration: underline; }
.contact-method-meta { color: var(--clr-gray-500); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.btn-block { width: 100%; justify-content: center; }

/* Visit / hours / company strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  background: #fff;
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
}
@media (max-width: 920px) { .contact-strip { grid-template-columns: 1fr; gap: var(--space-lg); } }
.contact-strip-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.contact-strip-item > i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-strip-item h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-gray-500);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-strip-item p {
  font-size: 0.95rem;
  color: var(--clr-navy);
  line-height: 1.55;
  margin: 0;
}
.contact-strip-item .hours-table { margin: 0; }

/* =========================================================
   Legal pages — Privacy / Cookies prose layout
   ========================================================= */
.legal-page { padding: var(--space-4xl) 0; background: #fff; }
.legal-container { max-width: 820px; }

.legal-meta {
  font-size: 0.85rem;
  color: var(--clr-gray-500);
  border-bottom: 1px solid var(--clr-gray-200);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
}
.legal-meta strong { color: var(--clr-navy); }

.legal-lead {
  font-size: 1.05rem;
  color: var(--clr-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.legal-toc {
  background: var(--clr-off-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.legal-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-gray-500);
  margin: 0 0 var(--space-sm);
  border: none;
  padding: 0;
}
.legal-toc ol {
  margin: 0;
  padding-left: var(--space-lg);
  columns: 2;
  column-gap: var(--space-2xl);
  font-size: 0.92rem;
}
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-toc li { padding: 0.2rem 0; }
.legal-toc a {
  color: var(--clr-primary);
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

.legal-page h2 {
  font-size: 1.4rem;
  color: var(--clr-navy);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--clr-primary-light);
  letter-spacing: -0.01em;
}
.legal-page h3 {
  font-size: 1.05rem;
  color: var(--clr-navy);
  margin: var(--space-lg) 0 var(--space-sm);
  font-weight: 700;
}
.legal-page p {
  color: var(--clr-gray-700);
  line-height: 1.75;
  font-size: 0.96rem;
  margin: var(--space-md) 0;
}
.legal-page p strong { color: var(--clr-navy); }
.legal-page a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--clr-primary-dark); }

.legal-list, .legal-fact-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}
.legal-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem var(--space-lg);
  font-size: 0.96rem;
  color: var(--clr-gray-700);
  line-height: 1.65;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(11, 122, 79, 0.15);
}
.legal-list li strong { color: var(--clr-navy); }

.legal-fact-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--clr-gray-100);
  font-size: 0.95rem;
  color: var(--clr-gray-700);
}
.legal-fact-list li:last-child { border-bottom: none; }
.legal-fact-list li strong { color: var(--clr-navy); display: inline-block; min-width: 200px; }
@media (max-width: 600px) { .legal-fact-list li strong { display: block; min-width: 0; } }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.92rem;
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-gray-200);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table thead th {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table tbody tr:nth-child(even) { background: var(--clr-off-white); }

.legal-callout {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  border: 1.5px solid;
}
.legal-callout-good {
  background: rgba(11, 122, 79, 0.06);
  border-color: var(--clr-primary);
}
.legal-callout h2 {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  color: var(--clr-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-callout p { margin: 0; }

.legal-page code {
  background: var(--clr-gray-100);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--clr-navy);
}

.legal-back-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--clr-gray-200);
}

/* =========================================================
   MOBILE FIXES (≤ 600px) — overrides for genuine phone widths
   These come last so they win over the older 768px / 480px blocks.
   ========================================================= */
@media (max-width: 600px) {
  /* Container / spacing */
  .container { padding-inline: 1rem; }

  /* Trust strip — single tidy column on phones so each credential reads
     as one clear row instead of a misaligned 2-col grid. */
  .trust-strip {
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.25rem 1rem;
  }
  .trust-strip > .trust-item:first-child,
  .trust-strip > .trust-item:last-child { padding-left: 0; padding-right: 0; }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0 !important;
    min-height: 44px;
    border-bottom: 1px solid var(--clr-gray-100);
  }
  .trust-item:last-child { border-bottom: none; }
  .trust-item-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .trust-item-text {
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 500;
  }
  /* The "for over 15 years" / "to fund your switch" line breaks inside
     trust-item-text were sized for the desktop 5-column layout. On a tidy
     single-column phone layout we want one line per credential. (The EJS
     markup includes a space before each <br>, so hiding the <br> here
     leaves a clean single-line credential.) */
  .trust-item-text br { display: none; }

  /* Alert banner — tighter, wraps cleanly */
  .alert-banner { font-size: 0.72rem; padding: 0.45rem 0.65rem; line-height: 1.4; }
  .alert-banner i { font-size: 0.78rem; }
  .alert-banner a { display: inline-block; margin-left: 0.25rem; }

  /* Home hero — tight + proportionate on phones */
  .hero { min-height: auto; padding: 1rem 0; align-items: stretch; }
  .hero-grid { padding-block: 0.75rem; gap: 1rem; }
  .hero-content { width: 100%; }
  .hero-badge,
  .hero-badge-accent {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.7rem;
  }
  .hero-title { font-size: 1.5rem !important; line-height: 1.2; margin-bottom: 0.65rem; }
  .hero-subtitle { font-size: 0.88rem; line-height: 1.5; margin-bottom: 1rem; max-width: none; }
  .hero-pills { gap: 0.4rem; margin-bottom: 1rem; }
  .hero-pill { font-size: 0.72rem; padding: 0.35rem 0.65rem; }
  .hero-pill i { font-size: 0.78rem; }
  .hero-cta { gap: 0.6rem; margin-bottom: 1.25rem; flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 0.85rem 1rem; }
  .hero-trust { gap: 0.5rem 1rem; flex-wrap: wrap; }
  .hero-trust-item { font-size: 0.75rem; }

  /* Hero card (BUS quick-check) */
  .hero-card { padding: 1.1rem; max-width: 100%; }
  .hero-card-tag { font-size: 0.68rem; padding: 0.3rem 0.6rem; }
  .hero-card-title { font-size: 1.05rem; }
  .quick-check-form .form-group label { font-size: 0.82rem; }
  .quick-check-form select { font-size: 0.9rem; padding: 0.55rem 0.7rem; }

  /* Stats bar */
  .stats-bar { padding: 1.5rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.75rem; }

  /* Section spacing — much tighter on mobile */
  .section { padding: 2.25rem 0; }
  .section-alt { padding: 2.25rem 0; }
  .section-title { font-size: 1.35rem !important; line-height: 1.25; }
  .section-h2 { font-size: 1.35rem !important; line-height: 1.25; }
  .section-subtitle, .section-lead { font-size: 0.9rem; line-height: 1.65; }

  /* Two-column generic grids → single column */
  .two-col-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .image-with-badge .image-badge {
    bottom: -1rem; right: -1rem;
    padding: 0.85rem 1.1rem;
  }
  .image-badge-num { font-size: 1.5rem; }

  /* Page hero (about / services / contact / heat-pumps / landlords / privacy) */
  .page-hero { padding: 1.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.65rem !important; line-height: 1.2; }
  .page-hero p { font-size: 0.95rem; line-height: 1.55; }
  .page-hero-actions { gap: 0.5rem; flex-direction: column; }
  .page-hero-actions .btn { width: 100%; justify-content: center; }

  /* Heat-pumps page hero */
  .hp-hero { min-height: auto; }
  .hp-hero .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hp-hero-left h1 { font-size: 1.6rem !important; line-height: 1.18; }
  .hp-hero-left p { font-size: 0.92rem; }
  .hp-scheme-badge { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
  .hp-grant-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
    max-width: 100%;
  }
  .hp-grant-amount { font-size: 1.85rem; }
  .hp-grant-text { font-size: 0.82rem; }
  .hp-hero-ctas { flex-direction: column; }
  .hp-hero-ctas .btn { width: 100%; justify-content: center; }

  .hp-stat-banner { padding: 1.25rem 0; }
  .hp-stat-banner .container { gap: 1rem; flex-wrap: wrap; }
  .hp-stat-item .num { font-size: 1.4rem; }
  .hp-stat-item .lbl { font-size: 0.7rem; }

  .hp-flow { gap: 0.6rem; }
  .hp-flow-step { padding: 1rem 0.85rem 0.85rem; }
  .hp-flow-step h3 { font-size: 0.92rem; }
  .hp-flow-step p { font-size: 0.78rem; }
  .hp-cop-card { padding: 1.25rem; gap: 1rem; text-align: center; }

  /* Landlords page */
  .ll-hero-tag { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
  .ll-why-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ll-grant-card { padding: 1.5rem; }
  .ll-grant-amount { font-size: 1.85rem; }
  .ll-measure { grid-template-columns: 1fr; padding: 1.25rem; }
  .ll-measure-icon { width: 56px; height: 56px; font-size: 1.4rem; }
  .ll-measure-routes { grid-template-columns: 1fr; }
  .ll-measure-benefits { grid-template-columns: 1fr; }
  .ll-no-grant-grid { grid-template-columns: 1fr; }

  /* Contact page method cards */
  .contact-direct-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-method-card { padding: 1.5rem 1.25rem; }
  .contact-method-big { font-size: 1.4rem; }
  .contact-strip { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }

  /* CTA banner */
  .cta-banner { padding: 2rem 0; }
  .cta-banner-inner h2 { font-size: 1.4rem !important; line-height: 1.25; }
  .cta-banner-inner p { font-size: 0.92rem; }
  .cta-banner-actions { flex-direction: column; gap: 0.6rem; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }

  /* Schemes / services / values / steps grids */
  .schemes-grid { grid-template-columns: 1fr; gap: 1rem; }
  .scheme-card { padding: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card-feature { grid-template-columns: 1fr; padding: 1.5rem; }
  .service-card-feature-title { font-size: 1.2rem; }
  .values-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; gap: 1rem; }

  /* Service detail (services page) */
  .service-detail { grid-template-columns: 1fr; gap: 1rem; }
  .service-detail-content h2 { font-size: 1.3rem; }

  /* Wizard */
  .wizard-card { padding: 1.25rem; }
  .wizard-options { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .wizard-option { padding: 0.85rem 0.65rem; font-size: 0.78rem; }
  .wizard-option i { font-size: 1.1rem; }
  .wizard-result-amount { font-size: 2rem; }

  /* Cost compare bars */
  .cost-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 0.75rem 0; }
  .cost-bar { height: 28px; }
  .cost-bar-fill { font-size: 0.75rem; }
  .cost-label { padding-left: 2.2rem; }

  /* Suitability cards */
  .suit-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .suit-card { padding: 1.25rem; }

  /* Process row */
  .hp-process-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .hp-process-step { padding: 1.25rem 1rem; }

  /* Facts grid */
  .hp-facts-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .hp-fact { padding: 1.25rem; }

  /* Legal pages prose */
  .legal-page { padding: 2rem 0; }
  .legal-page h2 { font-size: 1.15rem; }
  .legal-page h3 { font-size: 0.98rem; }
  .legal-toc ol { columns: 1; }
  .legal-table th, .legal-table td { padding: 0.55rem 0.7rem; font-size: 0.85rem; }

  /* Footer */
  .footer { padding: 2rem 0 1.25rem; }
  .footer h4 { font-size: 0.95rem; }
  .footer-bottom { font-size: 0.78rem; gap: 0.5rem; }

  /* Sticky cards — don't stick on tiny screens (looks weird floating mid-scroll) */
  .landlord-summary,
  .ll-process-card,
  .hp-uplift-summary { position: static !important; }

  /* Map / iframe */
  .map-wrapper { height: 280px; }

  /* Eligibility wizard form on home */
  .eligibility-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .eligibility-form-card { padding: 1.25rem; }
}

/* Tighter still on very small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 1.45rem !important; }
  .page-hero h1 { font-size: 1.45rem !important; }
  .hp-hero-left h1 { font-size: 1.4rem !important; }
  .container { padding-inline: 0.85rem; }
  .trust-strip { grid-template-columns: 1fr; }
}

/* =========================================================
   DARK MODE — surface polish for things that hardcoded #fff
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Lift card surfaces above the body in dark mode */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 16px rgba(0,0,0,.55);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.65);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.75);
  }
}
[data-theme="dark"] {
  --shadow-sm: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,.55);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.65);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.75);
}

/* Dark-mode adjustments where the original CSS hard-coded #fff/rgba(255…) */
html.theme-dark {} /* placeholder for any rare overrides */

/* Theme toggle button (top-right of navbar) */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--clr-gray-200);
  color: var(--clr-navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
}
.theme-toggle:hover { background: var(--clr-primary-light); border-color: var(--clr-primary); color: var(--clr-primary); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* In dark mode: all surfaces that hard-coded white(#fff) need explicit treatment.
   Group them together so both `prefers-color-scheme: dark` and `[data-theme=dark]` apply. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-card,
  :root:not([data-theme="light"]) .contact-method-card,
  :root:not([data-theme="light"]) .contact-info-card,
  :root:not([data-theme="light"]) .contact-form-card,
  :root:not([data-theme="light"]) .ll-grant-card,
  :root:not([data-theme="light"]) .scheme-card,
  :root:not([data-theme="light"]) .service-card,
  :root:not([data-theme="light"]) .hp-process-step,
  :root:not([data-theme="light"]) .hp-fact,
  :root:not([data-theme="light"]) .ll-measure,
  :root:not([data-theme="light"]) .ll-process-card,
  :root:not([data-theme="light"]) .landlord-summary,
  :root:not([data-theme="light"]) .hp-uplift-summary,
  :root:not([data-theme="light"]) .wizard-card,
  :root:not([data-theme="light"]) .review-card,
  :root:not([data-theme="light"]) .faq-card,
  :root:not([data-theme="light"]) .contact-strip,
  :root:not([data-theme="light"]) .gbis-info-card,
  :root:not([data-theme="light"]) .gbis-funding-card,
  :root:not([data-theme="light"]) .gbis-faq-block,
  :root:not([data-theme="light"]) .elig-card,
  :root:not([data-theme="light"]) .measure-tab,
  :root:not([data-theme="light"]) .hp-flow-step,
  :root:not([data-theme="light"]) .value-card,
  :root:not([data-theme="light"]) .stat-item,
  :root:not([data-theme="light"]) .step,
  :root:not([data-theme="light"]) .navbar,
  :root:not([data-theme="light"]) .legal-page,
  :root:not([data-theme="light"]) .map-section {
    background: var(--clr-off-white);
    color: var(--clr-gray-700);
  }
  :root:not([data-theme="light"]) body { background: var(--clr-white); color: var(--clr-gray-700); }
  :root:not([data-theme="light"]) .nav-link { color: var(--clr-gray-700); }
  :root:not([data-theme="light"]) .navbar { background: rgba(15, 26, 38, 0.95); border-bottom-color: var(--clr-gray-200); }
  :root:not([data-theme="light"]) .nav-logo-text { color: var(--clr-gray-700); }
  :root:not([data-theme="light"]) .trust-strip { background: var(--clr-off-white); }
  :root:not([data-theme="light"]) .trust-item-icon { background: var(--clr-gray-100); border-color: var(--clr-gray-200); }
  :root:not([data-theme="light"]) .trust-item-text { color: var(--clr-gray-700); }
  :root:not([data-theme="light"]) .theme-toggle { color: var(--clr-gray-700); border-color: var(--clr-gray-200); }
}
[data-theme="dark"] .hero-card,
[data-theme="dark"] .contact-method-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .ll-grant-card,
[data-theme="dark"] .scheme-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .hp-process-step,
[data-theme="dark"] .hp-fact,
[data-theme="dark"] .ll-measure,
[data-theme="dark"] .ll-process-card,
[data-theme="dark"] .landlord-summary,
[data-theme="dark"] .hp-uplift-summary,
[data-theme="dark"] .wizard-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .faq-card,
[data-theme="dark"] .contact-strip,
[data-theme="dark"] .gbis-info-card,
[data-theme="dark"] .gbis-funding-card,
[data-theme="dark"] .gbis-faq-block,
[data-theme="dark"] .elig-card,
[data-theme="dark"] .measure-tab,
[data-theme="dark"] .hp-flow-step,
[data-theme="dark"] .value-card,
[data-theme="dark"] .legal-page,
[data-theme="dark"] .map-section {
  background: var(--clr-off-white);
  color: var(--clr-gray-700);
}
[data-theme="dark"] body { background: var(--clr-white); color: var(--clr-gray-700); }
[data-theme="dark"] .navbar { background: rgba(15, 26, 38, 0.95); border-bottom-color: var(--clr-gray-200); }
[data-theme="dark"] .nav-link { color: var(--clr-gray-700); }
[data-theme="dark"] .nav-logo-text { color: var(--clr-gray-700); }
[data-theme="dark"] .trust-strip { background: var(--clr-off-white); }
[data-theme="dark"] .trust-item-icon { background: var(--clr-gray-100); border-color: var(--clr-gray-200); }
[data-theme="dark"] .trust-item-text { color: var(--clr-gray-700); }
[data-theme="dark"] .theme-toggle { color: var(--clr-gray-700); border-color: var(--clr-gray-200); }

/* Dark-mode patches for callouts, warnings, and amber/yellow accents that
   carry hard-coded light backgrounds. Lift the surface to dark navy and
   keep the accent edge so the message stays visually anchored. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout-primary {
    background: rgba(11, 122, 79, 0.18);
    color: var(--clr-gray-700);
    border-left-color: var(--clr-primary);
  }
  :root:not([data-theme="light"]) .landlord-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FCD34D;
  }
  :root:not([data-theme="light"]) .landlord-warning i { color: #FCD34D; }
  :root:not([data-theme="light"]) .avail-card.accent-card {
    background: rgba(245, 166, 35, 0.10);
    border-color: rgba(245, 166, 35, 0.35);
  }
  :root:not([data-theme="light"]) .hp-fact { background: var(--clr-off-white); border-color: var(--clr-gray-200); }
  :root:not([data-theme="light"]) .section-tag-accent { background: rgba(245, 158, 11, 0.18); color: #FCD34D; }
}
[data-theme="dark"] .callout-primary {
  background: rgba(11, 122, 79, 0.18);
  color: var(--clr-gray-700);
  border-left-color: var(--clr-primary);
}
[data-theme="dark"] .landlord-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
}
[data-theme="dark"] .landlord-warning i { color: #FCD34D; }
[data-theme="dark"] .avail-card.accent-card {
  background: rgba(245, 166, 35, 0.10);
  border-color: rgba(245, 166, 35, 0.35);
}
[data-theme="dark"] .hp-fact { background: var(--clr-off-white); border-color: var(--clr-gray-200); }
[data-theme="dark"] .section-tag-accent { background: rgba(245, 158, 11, 0.18); color: #FCD34D; }

/* Logo-tile dark variant: lift the surface, keep brand glow, drop the harsh white. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .image-with-badge--logo .logo-tile {
    background:
      radial-gradient(circle at 30% 25%, rgba(11, 122, 79, 0.22) 0%, transparent 55%),
      radial-gradient(circle at 75% 80%, rgba(245, 166, 35, 0.14) 0%, transparent 50%),
      linear-gradient(135deg, #16243A 0%, #1A2C44 100%);
    border-color: var(--clr-gray-200);
  }
  :root:not([data-theme="light"]) .image-with-badge--logo .logo-tile img {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
  }
}
[data-theme="dark"] .image-with-badge--logo .logo-tile {
  background:
    radial-gradient(circle at 30% 25%, rgba(11, 122, 79, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(245, 166, 35, 0.14) 0%, transparent 50%),
    linear-gradient(135deg, #16243A 0%, #1A2C44 100%);
  border-color: var(--clr-gray-200);
}
[data-theme="dark"] .image-with-badge--logo .logo-tile img {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

/* Footer in dark mode — the base rule uses `background: var(--clr-navy)`,
   but in dark mode --clr-navy is re-purposed for light heading text, which
   would turn the footer pale and hide the white-on-navy copy. Pin the
   footer to a fixed dark surface so it stays readable in both themes. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer {
    background: #0A1622;
    color: rgba(255,255,255,.75);
  }
  :root:not([data-theme="light"]) .footer-col h4,
  :root:not([data-theme="light"]) .footer-bottom a:hover,
  :root:not([data-theme="light"]) .footer-links a:hover,
  :root:not([data-theme="light"]) .footer-contact-item a:hover { color: #ffffff; }
}
[data-theme="dark"] .footer {
  background: #0A1622;
  color: rgba(255,255,255,.75);
}
[data-theme="dark"] .footer-col h4,
[data-theme="dark"] .footer-bottom a:hover,
[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-contact-item a:hover { color: #ffffff; }

/* =========================================================
   MOBILE ACCESSIBILITY PASS (≤ 880px)
   Ensures the site is fully usable on every phone, with
   WCAG-compliant touch targets and no iOS-Safari zoom-on-input.
   ========================================================= */
@media (max-width: 880px) {
  /* Prevent ALL inputs from triggering iOS zoom-on-focus.
     iOS only zooms when font-size < 16px on a focused input. */
  input, select, textarea {
    font-size: 16px !important;
    min-height: 44px;
  }

  /* WCAG 2.5.5 — minimum 44x44 touch target on all interactive elements */
  .btn { min-height: 44px; padding-block: 0.75rem; }
  .btn-sm { min-height: 40px; }
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .wizard-option { min-height: 56px; }
  .footer-links a {
    display: inline-block;
    min-height: 32px;
    padding-block: 0.4rem;
  }
  .faq-question { min-height: 52px; padding-block: 0.85rem; }

  /* Hamburger button — make it unmistakably visible and tappable */
  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--clr-primary-light);
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(11,122,79,0.18);
  }
  .nav-toggle[aria-expanded="true"] {
    background: var(--clr-primary);
  }
  .nav-toggle[aria-expanded="true"] span { background: #fff; }

  /* Mobile menu: ensure it stays collapsed when closed, fully opaque
     when open, and sits ABOVE everything (trust strip, alert banner). */
  .nav-links {
    /* Override the older 768px "horizontal scroll" rule that conflicts
       with the modern hamburger-collapse layout. */
    order: 0 !important;
    flex-basis: auto !important;
    background: var(--clr-white) !important;
    z-index: 1100 !important;
    /* DO NOT set overflow: visible here — collapsing uses overflow: hidden + max-height */
  }
  .nav-links.open {
    box-shadow: 0 12px 30px rgba(11, 35, 55, 0.18);
  }
}

/* =========================================================
   PHONE FINE-TUNE (≤ 600px) — stats grids + minor polish
   ========================================================= */
@media (max-width: 600px) {
  /* Stats grids — 2 columns with proper spacing, not cramped */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.5rem !important;
    padding: 0.5rem;
  }
  .stat-item {
    padding: 0.75rem 0.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
  }
  .stat-item::after { display: none !important; }
  .stat-number { font-size: 1.35rem !important; line-height: 1.1; }
  .stat-label { font-size: 0.7rem; line-height: 1.3; opacity: 0.85; }
  .stat-number-sm { font-size: 1.05rem !important; }

  /* Heat-pump stat banner */
  .hp-stat-banner .container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem 0.4rem;
  }
  .hp-stat-item {
    padding: 0.6rem 0.4rem;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
  }
  .hp-stat-item .num { font-size: 1.15rem !important; }
  .hp-stat-item .lbl { font-size: 0.65rem; line-height: 1.3; }

  /* Sticky asides become non-sticky on small screens to avoid
     mid-scroll floats that obscure content */
  .landlord-summary,
  .ll-process-card,
  .hp-uplift-summary { position: static !important; top: auto !important; }

  /* Tables become scrollable instead of squashed (legal pages, MEES summary) */
  .legal-table,
  .landlord-table,
  .hp-grant-table { font-size: 0.8rem; }
  .legal-table th, .legal-table td,
  .landlord-table td,
  .hp-grant-table th, .hp-grant-table td { padding: 0.4rem 0.5rem; }

  /* Map iframe — fixed height stops viewport scroll fighting */
  .map-wrapper { height: 260px; }
  .map-wrapper iframe { border: 0; }

  /* CTA banner buttons full-width */
  .cta-banner-actions .btn,
  .hero-cta .btn,
  .hp-hero-ctas .btn,
  .hp-uplift-cta .btn,
  .page-hero-actions .btn,
  .landlord-cta .btn,
  .ll-uplift-cta .btn { width: 100%; justify-content: center; }

  /* Eligibility list rows on home page */
  .eligibility-list li { font-size: 0.9rem; padding: 0.4rem 0; }

  /* Service cards — proper spacing on phone */
  .service-card-feature-actions .btn,
  .scheme-card-actions .btn { width: 100%; justify-content: center; }
  .service-card-feature h3 { font-size: 1.1rem !important; }

  /* About page core values & values grid */
  .core-values-grid { grid-template-columns: 1fr !important; }

  /* GBIS available cards */
  .available-cards { grid-template-columns: 1fr; }
  .avail-card { padding: 1.3rem; }
  .gbis-trust-tiles { grid-template-columns: 1fr; gap: 0.75rem; }

  /* ECO4 measure tabs */
  .measures-tabs { grid-template-columns: 1fr; }
  .measure-tab-img img { height: 130px; }

  /* Process steps */
  .process-steps { grid-template-columns: 1fr !important; gap: 1rem; }
  .hp-process-row .hp-process-step h3 { font-size: 0.95rem; }

  /* Boroughs grid */
  .boroughs-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 4px; }
  .borough-chip { font-size: 0.72rem; padding: 0.3rem 0.4rem; }

  /* Reviews / testimonials */
  .reviews-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================
   VERY SMALL PHONES (iPhone SE-class, ≤ 380px)
   ========================================================= */
@media (max-width: 380px) {
  .stats-grid { gap: 0.5rem 0.4rem !important; }
  .stat-number { font-size: 1.15rem !important; }
  .hp-stat-item .num { font-size: 1rem !important; }

  .container { padding-inline: 0.75rem; }

  .hero-card { padding: 1rem 0.85rem; }
  .hero-card-title { font-size: 1rem; }

  .nav-logo img { height: 32px; }

  /* Boroughs go to 2-col */
  .boroughs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* =========================================================
   GLOBAL ACCESSIBILITY (all viewports)
   ========================================================= */
/* Respect user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* Better focus visible state — meets WCAG 2.4.7 */
*:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Anchored sections account for fixed navbar offset */
@media (max-width: 880px) {
  [id]:not(html):not(body) { scroll-margin-top: 80px; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .navbar, .hero-card-wrap, .cta-banner, .footer { display: none; }
  body { color: #000; font-size: 12pt; }
}
