/* ============================================================
   UK Energi — homepage styles
   ============================================================ */

:root {
  /* Brand blues: Dark Blue #112265 and Light Blue #5199b1. */
  --navy-800: #112265;   /* Dark Blue: hero panel, dark sections */
  --navy-900: #112265;   /* Dark Blue: header and footer */
  --blue-400: #5199b1;   /* Light Blue: accents on dark blue (4.5:1 there) */
  --blue-600: #112265;   /* Dark Blue again: links, icons and focus on white/grey (Light Blue is
                            only 3.2:1 on white, under the 4.5:1 text needs) */
  --orange-500: #f08a1d; /* CTA */
  --orange-600: #dd7a10;
  --surface: #eef2f7;    /* page section background */
  --card: #ffffff;
  --ink-900: #112265;    /* Dark Blue: headings and body text */
  --ink-600: #45506b;
  --tp-green: #00b67a;

  --font: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1240px;
  --radius: 10px;
  --shadow-card: 0 6px 24px rgba(17, 34, 101, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  padding: 14px 24px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn .arrow { width: 18px; height: 11px; }

.btn-primary {
  background: var(--orange-500);
  color: #fff;
}

.btn-primary:hover { background: var(--orange-600); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.link-cta .arrow { width: 18px; height: 11px; }

.link-cta:hover { border-bottom-color: #fff; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy-900);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 86px;
}

.logo { display: block; line-height: 0; }
.logo img { display: block; height: 50px; width: auto; }
.header-cta { white-space: nowrap; }
@media (max-width: 480px) {
  .logo img { height: 40px; }
}

.main-nav {
  display: flex;
  gap: 44px;
  margin: 0 auto; /* centred in the space between the logo and Book A Quote */
}

.main-nav a {
  white-space: nowrap; /* "Air Source Heat Pumps" stays on one line */
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--blue-400); }

/* Menu button: phones, tablets and small laptops only (see max-width: 1100px). It floats at the bottom right, where a
   thumb reaches it, and its three bars turn into an X while the menu is open. */
.nav-toggle {
  display: none;
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 34, 101, 0.45);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }

/* Dims the page behind the open menu; a tap on it closes the menu (js/nav.js adds it). */
.nav-backdrop { display: none; }

/* Book A Quote inside the menu: only on phones, where the header has no room for its own. */
.nav-cta { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  min-height: 560px;
}

/* A photo instead of a bear video (Solar PV, Air Source Heat Pumps): it fills the whole media area, edge to edge, and the navy
   diagonal panel overlaps its left side, rather than sitting in the white strip like the bear clips. */
.hero-media .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media:has(.hero-photo) { background: var(--navy-900); }

/* Every page's hero fills the first screen (below the 86px header), content centred, so the page
   lands on the hero rather than the cards below it. svh where supported, so mobile address bars
   don't push it past the fold. */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(560px, calc(100vh - 86px));
  min-height: max(560px, calc(100svh - 86px));
}
.hero > .hero-inner { width: 100%; }

.hero-media {
  position: absolute;
  inset: 0 34% 0 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navy diagonal panel over the right side of the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy-900);
  clip-path: polygon(100% 0, 58% 0, 44% 100%, 100% 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero-content { max-width: 480px; margin-left: auto; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue-400);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(40px, 4vw, 56px); /* "Power your home." must fit the 480px column on mid-size screens */
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-sub {
  margin: 0 0 36px;
  color: #d7e1f2;
  font-size: 17px;
  line-height: 1.65;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* The hero video (a white-backed clip) sits in the white strip left of the navy diagonal, which runs
   from 58% (top) to 44% (bottom) of the hero; .hero-media is the left 66% of it. 77% of that is ~51%
   of the hero, so the subject stays whole and clear of the panel at any hero height. */
#hero-video {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 77%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center; /* the bear is right of centre in the frame */
}
.hero .hero-media { background: #fff; } /* the video's own white, past its edges */

/* Trustpilot card: a white card around the TrustBox Mini widget, so it reads on the video's white and on
   the navy behind it on phones alike. The widget draws itself in an iframe 130px tall (data-style-height:
   Trustpilot's 150px default left a blank strip under the Mini's content). */

.trustpilot-card {
  position: absolute;
  left: 48px;
  bottom: 64px;
  z-index: 3;
  width: 260px;
  min-height: 130px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(17, 34, 101, 0.25);
  padding: 4px 8px;
}

/* Until the widget loads (or if it's blocked): the plain link, centred in the card. */
.trustpilot-card .trustpilot-widget > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 122px;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Services ---------- */

.services { padding: 56px 0 72px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px 28px;
}

.service-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid #d9e4f0;
  background: #f6fafd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--navy-800);
}

.service-icon svg { width: 40px; height: 40px; }

.service-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink-900);
}

.service-card p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 14.5px;
}

.learn-more .arrow { width: 17px; height: 10px; }

.learn-more:hover { text-decoration: underline; }

/* Icon sits beside the heading on wide screens, like the design */
@media (min-width: 981px) {
  .service-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 20px;
  }

  .service-icon { grid-row: 1 / span 1; margin-bottom: 0; }

  .service-card h3 { align-self: center; margin: 0; }

  .service-card p,
  .learn-more { grid-column: 1 / -1; }

  .service-card p { margin-top: 20px; }
}

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

/* The six menu links (with "Air Source Heat Pumps") only just fit between the logo and Book A Quote at
   these widths, so they sit a little closer; below 1101px the menu button takes over. */
@media (min-width: 1101px) and (max-width: 1240px) {
  .site-header .header-inner { gap: 24px; }
  .site-header .main-nav { gap: 20px; }
  .site-header .main-nav a { font-size: 15px; }
}

@media (max-width: 1120px) {
  .main-nav { gap: 28px; }
  .hero h1 { font-size: 46px; }
}

@keyframes nav-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .main-nav.is-open { animation: none; } }

@media (max-width: 1100px) {
  /* Four service cards across get too tight below here (the fourth ran off the edge). */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Below 1101px the desktop menu doesn't fit, so: menu button and slide-up menu (js/nav.js). */
@media (max-width: 1100px) {
  /* Menu button and slide-up menu (js/nav.js). All three sit in the header, whose z-index (10) keeps
     them above the page; within it: backdrop 1, menu 2, button 3. */
  .header-cta { margin-left: auto; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-height: 85vh;
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    /* room at the bottom for the button, which stays put to close the menu */
    padding: 18px 32px calc(100px + env(safe-area-inset-bottom, 0px));
    background: var(--navy-900);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(17, 34, 101, 0.4);
  }
  .main-nav.is-open { display: flex; animation: nav-up 0.22s ease-out; }
  .nav-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(12, 24, 71, 0.55);
  }
  .main-nav a:not(.nav-cta) {
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 720px) {
  .hero-media { inset: 0; opacity: 0.9; }
  .hero-overlay {
    clip-path: none;
    background: linear-gradient(180deg, rgba(17, 34, 101, 0.88) 0%, rgba(17, 34, 101, 0.55) 38%, rgba(17, 34, 101, 0.8) 78%, rgba(17, 34, 101, 0.95) 100%);
  }
  #hero-video { left: 0; width: 100%; object-position: center; }
  .hero { background: var(--navy-900); }
  .hero h1 { font-size: 36px; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-wrap: wrap; gap: 24px; }
  .trustpilot-card { position: static; width: auto; margin: 0 32px 40px; }
  .hero-inner { padding-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Hero, desktop: text panel on the LEFT, video on the RIGHT (the bear in the home video points left, so
   it points at the headline). Mirrors the hero layout above. Phones: see the block below. */
@media (min-width: 721px) {
  .hero .hero-media { inset: 0 0 0 34%; }
  .hero .hero-overlay { clip-path: polygon(0 0, 42% 0, 56% 100%, 0 100%); }
  .hero .hero-content { margin-left: 0; margin-right: auto; }
  .hero #hero-video { left: auto; right: 0; }
  .hero .trustpilot-card { left: auto; right: 48px; }
}

/* Hero, phones: the video gets its own panel above the text. Behind the text, under the dark
   gradient the stacked layout uses, the white-backed video only showed as a grey smudge. */
@media (max-width: 720px) {
  .hero { justify-content: flex-start; }
  .hero .hero-media { --panel-h: clamp(260px, 56vw, 400px); position: relative; inset: auto; height: var(--panel-h); opacity: 1; flex: none; }
  .hero .hero-overlay { display: none; }
  /* The bears stand right of centre (their middle is ~64% across every clip), further than cropping can
     reach on a phone, so the whole video slides left by that 14% of the frame. The frame is drawn at the
     larger of the panel's width and its height x 16/9; the panel is white, so the gap this opens on the
     right doesn't show. */
  .hero #hero-video {
    object-position: 50% center;
    transform: translateX(calc(-0.14 * max(100vw, var(--panel-h) * 16 / 9)));
  }
  .hero .hero-inner { padding-top: 40px; }
}

/* ---------- Interior pages ---------- */


.hero--interior h1 { font-size: 46px; }

.main-nav a.active { color: var(--blue-400); }

.page-section { padding: 72px 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }

.section-head h2 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-grid--two { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 14.5px;
  line-height: 1.65;
}

.feature-card .learn-more { margin-top: 18px; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.checklist li {
  position: relative;
  padding-left: 38px;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.6;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA band */

.cta-band {
  background: var(--navy-800);
  padding: 56px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta-band p {
  margin: 10px 0 0;
  color: #d7e1f2;
  font-size: 16px;
}

/* Contact page */

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.quote-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  border: 1px solid #cdd9e8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

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

/* Inputs have a built-in minimum width; without these the form pushes past a 320px-wide phone. */
.contact-layout > *,
.form-field,
.form-field input,
.form-field select,
.form-field textarea { min-width: 0; }
@media (max-width: 400px) {
  .quote-form,
  .contact-info { padding: 24px 20px; }
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 1px;
  border-color: var(--blue-600);
}

.quote-form .btn { justify-self: start; grid-column: 1 / -1; border: 0; cursor: pointer; }

.contact-info {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.contact-info p {
  margin: 0 0 20px;
  color: #d7e1f2;
  font-size: 15px;
  line-height: 1.65;
}

.contact-info a {
  display: block;
  color: var(--blue-400);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.contact-info a:hover { color: #fff; }

.contact-address {
  margin-top: 24px;
  font-style: normal;
  color: #d7e1f2;
  font-size: 15px;
  line-height: 1.65;
}

/* Warm Homes Loan Scheme banner (Stax / Shermin Finance), on every page above the accreditations. It must be
   shown exactly as supplied: never cropped, covered, rounded or re-edited, only scaled. On phones it keeps a
   readable size and scrolls sideways inside its own box, because shrinking it makes the small print illegible. */
.warm-homes { background: var(--card); padding: 40px 0 0; }
.warm-homes-banner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.warm-homes-banner img { display: block; width: 100%; min-width: 1100px; max-width: 1456px; height: auto; margin: 0 auto; } /* never below 1100px: the small print stays readable */
.warm-homes-banner:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.warm-homes-hint { display: none; margin: 8px 0 0; color: var(--ink-600); font-size: 13px; }
@media (max-width: 1163px) { .warm-homes-hint { display: block; } }  /* narrower than 1100px of banner + gutters: it swipes */
@media (max-width: 720px) { .warm-homes { padding-top: 28px; } }

/* Accreditation logos, above the footer on every page. White, so the logos' own colours show. */
.accreditations { background: var(--card); padding: 44px 0 48px; }
.accreditations h2 { margin: 0 0 28px; text-align: center; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.accreditation-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 64px; }
.accreditation-logos img { display: block; width: auto; height: 46px; }
.accreditation-logos img.accreditation-tall { height: 76px; } /* stacked logos: HIES + Trading Standards, and MCS */
/* MCS asks for the certificate number with its logo. */
.accreditation-with-number { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.accreditation-with-number span { color: var(--ink-600); font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
@media (max-width: 720px) {
  .accreditations { padding: 36px 0 40px; }
  .accreditation-logos { gap: 24px 36px; }
  .accreditation-logos img { height: 38px; }
  .accreditation-logos img.accreditation-tall { height: 64px; }
}

/* Footer */

.site-footer {
  background: var(--navy-900);
  color: #c9d6ec;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  /* Top and bottom only: the side padding comes from .container, and setting it here zeroed it. */
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand .logo img { height: 42px; }

.footer-tagline {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.65;
  max-width: 260px;
  color: #8fa2c4;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  color: #c9d6ec;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--blue-400); }

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: #8fa2c4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  /* Lines up with the footer content above: the container's 32px gutter, centred at its max width. */
  padding: 20px max(32px, calc((100% - var(--container)) / 2 + 32px)) 28px;
  font-size: 13px;
  line-height: 1.6;
  color: #8fa2c4;
}

/* Company and finance (Shermin) disclosures, then the copyright: kept to a readable line length. */
.footer-bottom p { margin: 0 0 10px; max-width: 920px; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal-links a { color: #c9d6ec; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links a:hover { color: var(--blue-400); }

@media (max-width: 1100px) {
  /* Room under the text for the floating menu button, so the last lines can scroll clear of it. */
  .footer-bottom { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 980px) {
  .feature-grid,
  .feature-grid--two { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero--interior h1 { font-size: 34px; }
  .feature-grid,
  .feature-grid--two,
  .quote-form { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
}

/* Quote form → CRM (js/quote-form.js) */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-field .field-error { color: #b42318; font-size: 13px; font-weight: 500; }
.form-field [aria-invalid="true"] { border-color: #b42318; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.form-status.is-error { background: #fdecea; color: #8a1c12; }
.form-status.is-success { background: #e6f6ef; color: #0b5d3b; }
.quote-form .btn[disabled] { opacity: 0.6; cursor: progress; }

/* "Are you a…" (one choice, three across) and "What are you interested in?" (tick boxes, two
   across): each option a card, blue when chosen. One per row on phones. */
fieldset.form-field { border: 0; margin: 0; padding: 0; }
fieldset.form-field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.form-field[hidden] { display: none; }
.form-hint { font-weight: 400; color: #5b6b80; margin-left: 4px; }
.form-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-field :is(.form-choices, .form-checks) label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  border: 1px solid #cdd9e8; border-radius: 8px; padding: 12px 14px; background: #fff; cursor: pointer;
}
.form-field :is(.form-choices, .form-checks) label:has(input:checked) { border-color: var(--blue-600); background: #eaf3f6; } /* Light Blue tint */
.form-field :is(.form-choices, .form-checks) input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--blue-600); flex: none; }
.form-field :is(.form-choices, .form-checks) input:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
fieldset.form-field[aria-invalid="true"] label { border-color: #b42318; }
@media (max-width: 720px) { .form-choices, .form-checks { grid-template-columns: 1fr; } }

/* Footer, phones: logo and blurb across the top, Solutions | Company side by side, contact details below. */
@media (max-width: 720px) {
  .footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 44px; }
  .footer-brand,
  .footer-inner > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-tagline { max-width: none; }
}

/* Phones: the header holds the logo and the menu button; Book A Quote moves into the menu. */
@media (max-width: 560px) {
  .header-cta { display: none; }
  .main-nav .nav-cta { display: flex; justify-content: center; margin-top: 22px; font-size: 17px; font-weight: 600; }
  .main-nav .nav-cta:hover { color: #fff; }
}

/* ---------- Legal pages (privacy, cookies, complaints) ---------- */

/* A plain title band instead of the video hero: these are pages to read. */
.page-banner { background: var(--navy-900); color: #fff; padding: 64px 0 56px; }
.page-banner h1 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.page-banner-lede { margin: 0 0 18px; max-width: 640px; color: #d7e1f2; font-size: 17px; line-height: 1.65; }
.page-banner-meta { margin: 0; color: #8fa2c4; font-size: 14px; }

/* Readable line length, but left-aligned with the title band and the logo, not centred. */
.legal > * { max-width: 820px; }
.legal h2 { margin: 48px 0 14px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.legal h2:first-of-type { margin-top: 36px; }
.legal h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-600); font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink-900); }
.legal a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-address {
  margin: 0 0 16px;
  padding: 18px 22px;
  border-left: 3px solid var(--blue-400);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
  color: var(--ink-900);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.legal-table th, .legal-table td { padding: 14px 18px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.6; border-bottom: 1px solid #e3e9f1; }
.legal-table thead th { background: var(--navy-800); color: #fff; font-weight: 600; }
.legal-table tbody th { color: var(--ink-900); font-weight: 600; width: 42%; }
.legal-table td { color: var(--ink-600); }
.legal-table tr:last-child > * { border-bottom: 0; }
.legal-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.legal-steps > li { margin: 0; padding: 24px 26px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.legal-steps > li p:last-child, .legal-steps > li address:last-child { margin-bottom: 0; }
.legal-dates { font-size: 14px !important; }

/* Facts only UK Energi or Shermin can supply: impossible to miss, so a guess can't go live unnoticed. */
mark.todo { background: #ffe58a; color: #5c3b00; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 0.92em; }

@media (max-width: 720px) {
  .page-banner { padding: 44px 0 40px; }
  .legal h2 { font-size: 22px; }
  .legal-steps > li { padding: 20px; }
  .legal-table th, .legal-table td { padding: 12px 14px; }
}

/* ---------- Commercial page ---------- */

/* Sector list in two columns on wider screens. */
.checklist--columns { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

/* Named installs: a photo of each, with the client and place underneath. */
.install-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.install-list li { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.install-list img { display: block; width: 100%; height: auto; aspect-ratio: 13 / 10; object-fit: cover; }
.install-list p { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 16px 20px 18px; border-top: 3px solid var(--blue-400); }
.install-list strong { color: var(--ink-900); font-size: 16px; line-height: 1.35; }
.install-list span { color: var(--ink-600); font-size: 14px; }

/* Client video testimonial: the video beside a short write-up; loads only when played. */
.testimonial { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.testimonial-video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--navy-900); }
.testimonial-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.testimonial-text .eyebrow { color: var(--blue-600); margin-bottom: 10px; }
.testimonial-text h3 { margin: 0 0 14px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.testimonial-text p { margin: 0 0 14px; color: var(--ink-600); font-size: 16px; line-height: 1.7; }
.testimonial-meta { font-size: 14px !important; }
.install-list span a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }

/* Numbered steps, side by side on desktop. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; padding: 24px 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 15px;
}
.steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-600); font-size: 15px; line-height: 1.6; }

/* FAQ: native open/close, no script needed. */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font-weight: 600; font-size: 16.5px; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--blue-600); }
.faq details[open] summary::after { content: "−"; } /* minus sign */
.faq summary:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: var(--radius); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-600); font-size: 15.5px; line-height: 1.7; }
.faq a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1120px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .install-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .testimonial { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .checklist--columns,
  .steps { grid-template-columns: 1fr; }
  .install-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Content blocks for the product pages (Solar PV, Air Source Heat Pumps, New Builds) ---------- */

/* Image beside text; --reverse puts the image on the right. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; object-fit: cover; }
.split-text h2 { margin: 0 0 14px; font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
.split-text > p { margin: 0 0 18px; color: var(--ink-600); font-size: 16px; line-height: 1.7; }
.split-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.split-list li { padding-left: 18px; border-left: 3px solid var(--blue-400); }
.split-list strong { display: block; margin-bottom: 4px; color: var(--ink-900); font-size: 16.5px; }
.split-list span { color: var(--ink-600); font-size: 15px; line-height: 1.65; }

/* A pair of photos side by side. */
.photo-tile { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.checklist li strong { color: var(--ink-900); }

/* Feature card with a photo across the top. */
.feature-card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature-card--media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-card--media .feature-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.feature-card--media .learn-more { margin-top: auto; }
.brand-line { margin: 0 0 18px; color: var(--ink-900) !important; font-weight: 600; font-size: 14.5px !important; }

/* Video cards: our own testimonial videos, and YouTube site videos that load on play (js/video-embed.js). */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-card { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.video-card video,
.yt-embed { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy-900); }
.yt-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-embed button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--navy-900); }
.yt-embed button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-embed button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(17, 34, 101, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 30px no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease;
}
.yt-embed button:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.yt-embed button:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; }
.video-card figcaption { padding: 18px 20px 20px; }
.video-card figcaption strong { display: block; margin-bottom: 6px; color: var(--ink-900); font-size: 16.5px; }
.video-card figcaption span { display: block; color: var(--ink-600); font-size: 14.5px; line-height: 1.6; }
.video-note { margin: 16px 0 0; color: var(--ink-600); font-size: 13.5px; }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split-media { order: 0; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .split-text h2 { font-size: 28px; }
  .video-grid { grid-template-columns: 1fr; }
}
