/* ============================================================
   Upton's Electrical & Security — Main Stylesheet
   Version: 1.0
   Colour: Navy #0D2547 | Orange #F26522 | Light #F5F7FA
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --navy: #2A3441; 
  --navy-dark: #1B232C; 
  --navy-light: #3F4B5C; 
  /* Hero headline accent (Telford, Shrewsbury…); same as .hero-title-accent */
  --hero-accent-blue: #8BB8E8;

  /* ─── ACCENT COLOURS ───────────────────────────────────────────
     --orange         : used on WHITE / LIGHT backgrounds (must be dark enough to read)
     --orange-on-dark : used on DARK / NAVY backgrounds   (must be light enough to read)
     Change both hex values here to update the whole site.
  ─────────────────────────────────────────────────────────────── */
  --orange: #3E5F99;          /* on light backgrounds */
  --orange-on-dark: #7FAFC4;  /* on dark backgrounds  */

  --orange-dark: #3E5F99;
  --orange-light:#D9C27A;
  --white:       #FFFFFF;
  --light:       #F5F7FA;
  --light-2:     #EEF0F5;
  --border:      #E2E8F0;
  --text:        #1E293B;
  --muted:       #64748B;
  --success:     #22C55E;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow:    0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 36px rgba(0,0,0,0.14);

  --radius:    8px;
  --radius-lg: 14px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --header-h:  72px;
  --container: 1200px;
  --container-sm: 800px;
  /* Vertical rhythm between main page bands (<section>, heroes, stats, CTA, footer top) */
  --section-space-y: 4rem;

  /* Navy hero subtext under H1 (reference: domestic page hero) */
  --page-hero-sub-font-size: 0.975rem;
  --page-hero-sub-line-height: 1.75;
  --page-hero-sub-max-width: 620px;
  --page-hero-sub-color: rgba(255, 255, 255, 0.75);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }
p { margin-bottom: 1rem; color: var(--text); line-height: 1.75; }
p:last-child { margin-bottom: 0; }
/* Footer paragraphs must inherit their parent's white/semi-white colour */
.site-footer p, .site-footer li { color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.1rem; }

/* ---------- Layout ---------- */
.container    { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 1.25rem; }
section       { padding: var(--section-space-y) 0; }
main          { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

.section-header         { text-align: center; margin-bottom: 3rem; }
.section-header h2      { margin-bottom: 0.75rem; }
.section-header p       { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
/* Home: forced 2-line intros — wider measure so each half stays a single line (avoids a 3rd wrap) */
.section-header p.section-intro-two-lines {
  max-width: min(100%, 42rem);
}
/* Market Drayton — Local Coverage: wide enough that line 1 stays one line before <br> (not 600px + break = 3 lines) */
.section-header p.section-intro-market-drayton-coverage {
  max-width: min(100%, 58rem);
}
/* Our Work gallery intro — room for the full sentence on one line (was wrapping at 600px) */
.section-header p.section-intro-one-line {
  max-width: min(100%, 48rem);
}
/* Google reviews intro — line 1 ends at <br> after Shrewsbury; wider than 600px so it doesn’t wrap early */
.section-header p.section-intro-google-reviews {
  max-width: min(100%, 82ch);
}
/* About — How We Work intro; line 1 ends at <br> after “skilled” */
.section-header p.section-intro-how-we-work {
  max-width: min(100%, 92ch);
}
/* Home blog preview — full intro on one line where width allows */
.section-header p.section-intro-blog-one-line {
  max-width: min(100%, 56rem);
}
@media (min-width: 768px) {
  .section-header p.section-intro-blog-one-line {
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .section-header p.section-intro-two-lines {
    font-size: 0.98rem;
  }
}
/* Mobile: let section intros wrap naturally (no awkward mid-sentence breaks) */
@media (max-width: 768px) {
  .section-header p.section-intro-two-lines br,
  .section-header p.section-intro-market-drayton-coverage br,
  .section-header p.section-intro-google-reviews br,
  .section-header p.section-intro-how-we-work br {
    display: none;
  }
}
.section-label          {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

/* ---------- Utilities ---------- */
.text-center  { text-align: center; }
.text-orange  { color: var(--orange); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--muted); }
.bg-light     { background: var(--light); }
.bg-navy      { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary  { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-navy      { background: #3D5F99; color: var(--white); border-color: #3D5F99; }
.btn-navy:hover { background: #344a82; border-color: #344a82; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm  { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn-lg  { padding: 1.05rem 2.25rem; font-size: 1.05rem; }

/* ---------- Site Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #000000;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

/* Logo */
.logo          { display: flex; flex-direction: column; line-height: 1; gap: 2px; background: transparent; }
.logo-mark     { font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.logo-mark span{ color: var(--orange); }
.logo-tagline  { font-size: 0.62rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; }
.logo-img      {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
}
.footer-logo .logo-img { height: 38px; }
/* On dark bars: black pixels in a PNG blend away so the logo looks transparent (replace PNG if colours look wrong) */
.site-header .logo-img,
.site-footer .footer-logo .logo-img {
  mix-blend-mode: lighten;
}

/* Main Nav — only the top-level list is horizontal (nested .dropdown must stay vertical) */
.main-nav > ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--white); background: rgba(255,255,255,0.1); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.4rem; min-width: 230px;
  display: flex; flex-direction: column; gap: 0.15rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s ease; z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 0.6rem 0.9rem;
  color: var(--text); font-size: 0.875rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover { background: var(--light); color: var(--orange); }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--white); font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone svg { color: var(--orange); flex-shrink: 0; }

/* WhatsApp (header — desktop / tablet when CTA row visible) */
.header-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}
.header-wa:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  color: var(--white);
}
.header-wa svg { display: block; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.4rem; color: var(--white);
  border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--navy-dark);
  padding: calc(var(--section-space-y) + 1rem) 0 var(--section-space-y);
  position: relative;
  overflow: visible;
}
/* Photo background (images/hero image 2.png) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/hero%20image%202.png") center / cover no-repeat;
  opacity: 0.88;
  z-index: 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr minmax(0, 448px);
  gap: 3rem; align-items: center; position: relative; z-index: 1;
  min-width: 0;
}
.hero-inner > * {
  min-width: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(242,101,34,0.18); border: 1px solid rgba(242,101,34,0.4);
  color: var(--orange-light); padding: 0.35rem 0.9rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero-badge-eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  align-items: flex-start;
  max-width: 100%;
  line-height: 1.45;
}
.hero-badge-eyebrow-icon {
  flex-shrink: 0;
  margin-top: 0.2em;
}
.hero-badge-eyebrow-text {
  flex: 1;
  min-width: 0;
}
.hero-badge .hero-badge-tel {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.hero-badge .hero-badge-tel:hover {
  color: var(--white);
}
.hero h1          {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero h1 span     { color: var(--orange-on-dark); }
/* Hero headline: blue accent on dark (brand blue, readable on navy gradient) */
.hero h1 .hero-title-accent { color: var(--hero-accent-blue); }
/* Title + subheading share width (subheading font sized by js/main.js to one line) */
.hero-headline-stack {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.hero .hero-headline-stack > h1 {
  margin-bottom: 0.55rem;
  width: max-content;
  max-width: 100%;
}
.hero-subheading  {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  margin: 0 0 1.65rem;
  max-width: 100%;
  box-sizing: border-box;
  /* Fallback if JS not run */
  font-size: clamp(0.75rem, 1.15vw, 0.95rem);
}
.hero-lead        {
  color: var(--page-hero-sub-color);
  font-size: clamp(1.02rem, 1.15vw, 1.085rem);
  line-height: var(--page-hero-sub-line-height);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  margin-top: 0;
  padding-top: 0.5rem;
  margin-bottom: 2rem;
  max-width: var(--page-hero-sub-max-width);
}
/* Mobile: drop forced line breaks so copy wraps naturally in the column */
@media (max-width: 768px) {
  .hero-lead br {
    display: none;
  }
  .hero-lead {
    max-width: 100%;
  }
}
.hero-actions     { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-areas-cta   { margin: 0; }
.hero-areas-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 175, 196, 0.45);
  padding-bottom: 0.1rem;
  transition: color var(--transition), border-color var(--transition);
}
.hero-areas-link:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
.hero-areas-link svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Hero Form Card — slightly wider column than before, tighter vertical rhythm */
.hero-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow-lg);
}
.hero-card h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.hero-card > p      { color: var(--muted); font-size: 0.8125rem; margin-bottom: 1rem; line-height: 1.45; }
.hero-card .form-group { margin-bottom: 0.75rem; }
.hero-card .form-group label { margin-bottom: 0.3rem; font-size: 0.8125rem; }
.hero-card .form-group input,
.hero-card .form-group select,
.hero-card .form-group textarea {
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}
.hero-card .form-group textarea {
  min-height: 4.25rem;
  resize: vertical;
}
.hero-card .btn { padding-top: 0.65rem; padding-bottom: 0.65rem; }

/* ---------- Quick Contact Bar ---------- */
.quick-contact      { background: var(--orange); padding: 0.85rem 0; }
.quick-contact-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.qc-item { display: flex; align-items: center; gap: 0.5rem; color: var(--white); font-weight: 600; font-size: 0.925rem; }
.qc-item svg { flex-shrink: 0; }
.qc-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.3); }

/* ---------- Stats Bar ---------- */
.stats-bar   { padding: var(--section-space-y) 0; background: var(--light); border-bottom: 1px solid var(--border); }
.stats-bar .section-header--stats-intro {
  margin-bottom: 2.5rem;
}
.stats-bar .section-header--stats-intro p.stats-intro-lead {
  max-width: min(58rem, 100%);
  line-height: 1.65;
}
/* Home — professional intro beside imagery (matches area page split) */
.section-local-electrician {
  padding: var(--section-space-y) 0;
}
.section-local-electrician .area-intro-copy > p {
  max-width: 38rem;
  line-height: 1.65;
  color: var(--text);
}
.section-local-electrician .area-intro-copy > p.local-electrician-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-local-electrician .local-electrician-trust {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.section-local-electrician .local-electrician-trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.section-local-electrician .local-electrician-trust-icon {
  flex-shrink: 0;
  color: var(--orange);
}
.stats-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item   { text-align: center; }
.stat-num    { font-size: 2.4rem; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: 0.3rem; }
.stat-num--count-up .stat-count-value { font-variant-numeric: tabular-nums; }
.stat-num--rating { display: inline-flex; align-items: center; gap: 0.1em; }
.stat-num--rating .stat-star { font-size: calc(0.9rem + 5px); font-weight: 700; color: inherit; line-height: 1; }
.stat-label  { font-size: 0.875rem; color: var(--muted); font-weight: 500; }

/* ---------- Trust Strip (home — boxed grid matches domestic-trust-strip) ---------- */
.trust-strip { padding: var(--section-space-y) 0; background: var(--white); border-bottom: 1px solid var(--border); }
.trust-strip .domestic-trust-strip { margin-top: 55px; }
/* Intro (or any section) + 4-badge strip — same 55px gap everywhere; avoid double vertical padding */
section:has(+ .trust-strip) {
  padding-bottom: 0;
}
section + .trust-strip {
  padding-top: 0;
}
/* Home: trust strip follows quick-contact bar, not section */
.quick-contact + .trust-strip {
  padding-top: 0;
}
.niceic-footer-badge { height: 50px; width: auto; display: block; object-fit: contain; }

/* ---------- Services Grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Note below service cards (domestic / commercial / agricultural) */
.domestic-services-more-box,
.services-more-footnote {
  max-width: 38rem;
  margin: 1.75rem auto 0;
  padding: 0.85rem 1.2rem;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.domestic-services-more-box p,
.services-more-footnote p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.domestic-services-more-box strong,
.services-more-footnote strong {
  color: var(--text);
  font-weight: 600;
}
.domestic-services-more-box a,
.services-more-footnote a {
  color: var(--orange);
  font-weight: 600;
}

/* Area pages — note under service cards: highlights only; invite enquiries for any domestic electrics */
.area-services-more.services-more-footnote {
  max-width: min(100%, 42rem);
}
.bg-light > .container > .area-services-more.services-more-footnote:first-child {
  margin-bottom: 1.25rem;
}

.service-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px;
  background: rgba(242,101,34,0.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.svc-icon svg { color: var(--orange); }
.service-card h3   { font-size: 1.1rem; margin-bottom: 0.5rem; }
/* EICR card: one-line title — main word + smaller parenthetical */
.service-card h3.service-card-title--eicr {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1.25;
}
.service-card h3 .service-card-title-full {
  display: inline;
  font-size: clamp(0.65rem, 1.5vw + 0.38rem, 0.8125rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.service-card p    { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.6; }
.card-link {
  font-size: 0.875rem; font-weight: 600; color: var(--orange);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap var(--transition); line-height: 1;
}
.card-link svg { flex-shrink: 0; position: relative; top: 0; }
.card-link:hover { gap: 0.65rem; }
.card-links {
  display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto; padding-top: 0.25rem;
}
.card-link-quote { color: var(--navy-light); }
.card-link-quote:hover { color: var(--navy); gap: 0.65rem; }

/* Areas index — six main cards, slim county strip below */
.areas-key-locations .services-grid { margin-bottom: 0; }
.areas-county-strip {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.15rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.areas-county-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.areas-county-strip:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.areas-county-strip:hover::before { transform: scaleX(1); }
.areas-county-strip__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(242,101,34,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.areas-county-strip__icon svg { color: var(--orange); }
.areas-county-strip__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Match .service-card h3 / p / .card-link */
.areas-county-strip__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
}
.areas-county-strip__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.areas-county-strip__cta {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1;
}
.areas-county-strip:hover .areas-county-strip__cta { gap: 0.65rem; }
@media (max-width: 640px) {
  .areas-county-strip {
    flex-wrap: wrap;
    max-width: 100%;
    padding: 1rem 1.15rem;
  }
  .areas-county-strip__cta {
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    white-space: normal;
  }
}

/* ---------- Sector Cards ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sector-card {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; color: var(--white); text-align: center;
  position: relative; overflow: hidden;
  transition: transform var(--transition);
  display: flex; flex-direction: column; align-items: center;
}
.sector-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--orange);
}
.sector-card:hover { transform: translateY(-4px); }
.sector-card > svg { color: var(--orange-on-dark); margin: 0 auto 1.25rem; display: block; }
.sector-card .card-link svg { display: inline; margin: 0; vertical-align: middle; color: var(--orange-on-dark); }
.sector-card h3    { color: var(--white); margin-bottom: 0.75rem; font-size: 1.25rem; }
.sector-card p     { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 1.5rem; }
.sector-card .card-link { color: var(--orange-on-dark); display: inline-flex; align-items: center; }
.sector-card .card-links { width: 100%; align-items: center; }
.sector-card .card-link-quote { color: rgba(255,255,255,0.92); }
.sector-card .card-link-quote:hover { color: var(--white); gap: 0.65rem; }

/* Home — Our Services cards */
.services-grid--home-light .service-card {
  background: #fafafa;
}
.services-grid--home-light .service-card .card-link:not(.card-link-quote) {
  flex-wrap: wrap;
  line-height: 1.4;
  align-items: flex-start;
}
.services-grid--home-light .service-card .card-link:not(.card-link-quote) svg {
  margin-top: 0.2em;
  flex-shrink: 0;
}

/* ---------- Why Choose Us (Features) ---------- */
.why-choose-block { display: flex; flex-direction: column; }
.why-choose-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: start;
  margin-bottom: 2rem;
}
.why-choose-top-left .section-label { margin-bottom: 0.5rem; }
.why-choose-top-left h2 {
  margin: 0;
  max-width: 42rem;
}
.why-choose-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.why-choose-intro-copy p {
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.75;
}
.why-choose-intro-copy p:last-child {
  margin-bottom: 0;
}
.why-choose-cta-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.features-grid.features-grid--home-why {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}
.feature-item  { display: flex; gap: 1rem; align-items: flex-start; }
/* EICR — What Happens During an EICR? (wider 2×2 grid so step copy wraps to ~4 lines) */
.eicr-process-grid {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.feat-icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: rgba(242,101,34,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feat-icon svg      { color: var(--orange); }
.feat-content h4    { font-size: 1rem; margin-bottom: 0.3rem; }
.feat-content p     { font-size: 0.875rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
/* ---------- Google Reviews Badge ---------- */
.google-badge-row { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.google-badge {
  display: inline-flex; align-items: center; gap: 1.25rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem;
  text-decoration: none; transition: box-shadow var(--transition), border-color var(--transition);
  flex-wrap: wrap; justify-content: center; text-align: center;
}
.google-badge:hover { box-shadow: var(--shadow); border-color: #4285F4; }
.google-badge-info { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.google-badge-score { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.google-badge-stars { display: flex; gap: 2px; }
.google-badge-count { font-size: 0.8rem; color: var(--muted); }
.google-badge-cta {
  font-size: 0.85rem; font-weight: 600; color: #4285F4;
  display: flex; align-items: center; gap: 0.3rem;
  border-left: 1px solid var(--border); padding-left: 1.25rem;
}

/* ---------- Google Review Cards (carousel) ---------- */
.reviews-carousel-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}
.reviews-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  box-shadow: var(--shadow-sm);
  padding: 0;
}
.reviews-carousel-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.reviews-carousel-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.reviews-carousel-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}
.reviews-carousel-viewport {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  gap: 1.5rem;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar; prev/next buttons (and touch/drag) still scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.reviews-carousel-viewport:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.reviews-carousel-viewport .review-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
}
/* Fills extra row height so equal-height cards keep content top-aligned */
.reviews-carousel-viewport .review-card::after {
  content: '';
  flex: 1 1 auto;
  min-height: 0;
}
.review-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-card-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.reviewer-av {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.reviewer-info { flex: 1; }
.reviewer-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.reviewer-meta { font-size: 0.78rem; color: var(--muted); }
.google-g-sm { flex-shrink: 0; }
.review-stars { color: #FBBC05; font-size: calc(0.8rem + 5px); letter-spacing: 0.5px; margin-bottom: 0.6rem; }
.review-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; }

/* Home carousel + testimonials page: uniform cards — 4 lines; expand via .is-expanded + read more */
.reviews-carousel-viewport .review-text,
.testimonials-page-grid .review-text {
  flex-shrink: 0;
  margin-bottom: 0;
}
.reviews-carousel-viewport .review-card:not(.is-expanded) .review-text,
.testimonials-page-grid .review-card:not(.is-expanded) .review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(4 * 1.7em);
}
.reviews-carousel-viewport .review-card.is-expanded .review-text,
.testimonials-page-grid .review-card.is-expanded .review-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  min-height: 0;
}
.review-readmore-btn {
  display: none;
  margin-top: 0.4rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: flex-start;
  flex-shrink: 0;
}
/* Carousel + testimonials grid: reserve read-more row so card heights match */
.reviews-carousel-viewport .review-readmore-btn,
.testimonials-page-grid .review-readmore-btn {
  display: inline-block;
  visibility: hidden;
  pointer-events: none;
}
.reviews-carousel-viewport .review-readmore-btn.is-visible,
.testimonials-page-grid .review-readmore-btn.is-visible {
  visibility: visible;
  pointer-events: auto;
}
.review-readmore-btn:hover {
  color: var(--navy);
}
.review-readmore-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
.review-readmore-btn.is-visible {
  display: inline-block;
}

/* ---------- Testimonials page (hidden from nav): full reviews grid ---------- */
.testimonials-page-count {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.testimonials-page-grid .review-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  height: 100%;
}
.testimonials-page-grid .review-card::after {
  content: '';
  flex: 1 1 auto;
  min-height: 0;
}
.testimonials-page-cta {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.testimonials-page-cta a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.testimonials-page-cta a:hover {
  color: var(--navy);
}
@media (max-width: 900px) {
  .testimonials-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .testimonials-page-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legacy testimonial styles (kept for compatibility) ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.testi-stars       { display: flex; gap: 3px; margin-bottom: 1rem; }
.star              { color: #F59E0B; font-size: calc(0.8rem + 5px); }
.testi-text        { font-style: italic; font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 1.25rem; }
.testi-author      { display: flex; align-items: center; gap: 0.75rem; }
.author-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; flex-shrink: 0;
}
.author-name  { font-weight: 600; font-size: 0.9rem; }
.author-place { font-size: 0.78rem; color: var(--muted); }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.areas-grid.areas-grid--3 { grid-template-columns: repeat(3, 1fr); }
.area-tag {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.area-tag svg     { color: var(--orange); flex-shrink: 0; }
.area-tag:hover   { border-color: var(--orange); color: var(--orange); box-shadow: var(--shadow-sm); }
a.area-tag        { text-decoration: none; color: var(--text); cursor: pointer; }
a.area-tag:hover  { background: var(--light); transform: translateY(-2px); }
span.area-tag     { cursor: default; color: var(--text); }
span.area-tag:hover {
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
  background: var(--white);
}
/* Current village (micro-area pages) */
.area-tag--current {
  border-color: var(--orange);
  background: rgba(62, 95, 153, 0.08);
  font-weight: 600;
  cursor: default;
  color: var(--text);
}
.area-tag--current svg { color: var(--orange); }

/* ---------- Area Groups ---------- */
.area-group { margin-bottom: 2.5rem; }
.area-group:last-of-type { margin-bottom: 0; }

.area-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.area-group-header svg { color: var(--orange); flex-shrink: 0; }
.area-group-header h3  { margin: 0; font-size: 1rem; font-weight: 700; color: var(--navy); }
.area-group-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--transition);
}
.area-group-link:hover { gap: 0.55rem; }

/* ---------- Area Breakdown Accordion ---------- */
.area-breakdown-list { display: flex; flex-direction: column; gap: 0.75rem; }

.area-breakdown-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.area-breakdown-card:hover { box-shadow: var(--shadow); }
.area-breakdown-card[open] { border-color: var(--orange); }

.area-breakdown-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.area-breakdown-card summary::-webkit-details-marker { display: none; }
.area-breakdown-card[open] summary { border-bottom: 1px solid var(--border); }

.abd-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.abd-title svg { color: var(--orange); flex-shrink: 0; }
.abd-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.abd-chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.area-breakdown-card[open] .abd-chevron { transform: rotate(180deg); }

.abd-body { padding: 1.25rem 1.5rem 1.5rem; }
.abd-intro { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }

.abd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.abd-grid span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text);
}
.abd-grid span svg { color: var(--orange); flex-shrink: 0; }

.abd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  transition: gap var(--transition);
}
.abd-link:hover { gap: 0.55rem; }

@media (max-width: 640px) {
  .abd-grid { grid-template-columns: repeat(2, 1fr); }
  .abd-count { display: none; }
}

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.faq-item:has(.faq-a:not([hidden])) { box-shadow: var(--shadow); border-color: var(--orange); }

/* The toggle button */
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.1rem 1.4rem;
  width: 100%; background: none; border: none;
  text-align: left; cursor: pointer;
  font-family: var(--font); font-size: 0.975rem; font-weight: 600;
  color: var(--navy); line-height: 1.45;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--light); }
.faq-q svg {
  flex-shrink: 0; transition: transform 0.25s ease;
  color: var(--orange);
}
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Answer panel */
.faq-a {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.915rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-a[hidden] { display: none; }
.faq-a p { margin: 0.75rem 0 0; }
.faq-a p:first-child { margin-top: 0.75rem; }
.faq-a a { color: var(--orange); }

/* Legacy class names (used on homepage & service pages) */
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.1rem 1.4rem;
  width: 100%; background: none; border: none;
  text-align: left; cursor: pointer;
  font-family: var(--font); font-size: 0.975rem; font-weight: 600; color: var(--navy);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--light); }
.faq-question h4 { margin: 0; font-size: 0.975rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 300; line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0.25rem 1.4rem 1.2rem; color: var(--muted); font-size: 0.915rem; line-height: 1.75; border-top: 1px solid var(--border); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open { border-color: var(--orange); box-shadow: var(--shadow); }

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Image area — replace the div with an <img> tag when you have real photos */
.blog-card-img {
  height: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.blog-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.blog-card-img-inner {
  position: relative; z-index: 1;
  width: 100%; padding: 1rem 1.25rem 0.9rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

/* Card body */
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-cat {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--orange);
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-size: 1.05rem; line-height: 1.4;
  margin-bottom: 0.6rem;
}
.blog-card-title a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
.blog-card-title a:hover { color: var(--orange); }
.blog-card-excerpt {
  color: var(--muted); font-size: 0.875rem; line-height: 1.65;
  flex: 1; margin-bottom: 1rem;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.blog-date   { font-size: 0.78rem; color: var(--muted); }
.blog-readmore {
  font-size: 0.82rem; font-weight: 600;
  color: var(--orange); text-decoration: none;
  transition: color var(--transition);
}
.blog-readmore:hover { color: var(--orange-dark); }

/* Blog index — hero intro one line on wide viewports */
.page-hero--blog-index > .container > .blog-index-hero-lead {
  max-width: min(100%, 72rem);
  text-wrap: balance;
}
@media (min-width: 1100px) {
  .page-hero--blog-index > .container > .blog-index-hero-lead {
    white-space: nowrap;
    text-wrap: unset;
    max-width: none;
  }
}

/* Blog index — category filter boxes */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
}
.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.blog-filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.blog-filter-btn.is-active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(242, 101, 34, 0.09);
  box-shadow: 0 1px 0 rgba(42, 52, 65, 0.06);
}
.blog-card.is-hidden {
  display: none !important;
}

/* ---------- Our Work Scrolling Strip ---------- */
.work-slideshow-section {
  overflow: hidden;
}
.work-strip-outer {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.work-strip-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: work-scroll 60s linear infinite;
}
.work-strip-outer:hover .work-strip-track { animation-play-state: paused; }
.work-slide {
  flex-shrink: 0;
  width: 300px;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-2);
}
.work-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.work-slide:hover img { transform: scale(1.04); }

@keyframes work-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .work-slide { width: 240px; height: 170px; }
  .work-strip-track { animation-duration: 42s; }
}

/* ---------- Blog Post Layout ---------- */
.post-hero           { background: var(--navy); padding: var(--section-space-y) 0; text-align: center; }
.post-hero h1        { color: var(--white); max-width: 760px; margin: 0 auto 0.75rem; }
.post-meta-row       { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.post-meta-item      { display: flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; color: rgba(255,255,255,0.6); }
.post-body           { max-width: 780px; margin: 0 auto; padding: var(--section-space-y) 1.25rem; }
/* Blog article section titles — every individual post uses <article class="blog-post">; all section h2s get the rule line. (.post-body: same styles where used elsewhere.) */
.post-body h2,
.blog-post h2 {
  font-size: clamp(1.55rem, calc(2vw + 0.55rem), 1.88rem);
  line-height: 1.28;
  font-weight: 700;
  color: var(--navy);
  margin: 2.35rem 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(42, 52, 65, 0.12);
}
.blog-post h2:first-of-type,
.post-body h2:first-of-type {
  margin-top: 0;
}
.post-body h3,
.blog-post h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  padding-left: 0.85rem;
  border-left: 3px solid var(--orange);
}
.post-body h2 + h3,
.blog-post h2 + h3 {
  margin-top: 0.85rem;
}
.post-body p         { margin-bottom: 1.25rem; color: var(--text); line-height: 1.75; }
.post-body ul        { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: disc; }
.post-body ul li,
.post-body ol li     { margin-bottom: 0.5rem; color: var(--text); line-height: 1.7; }
.post-body ol        { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: decimal; }
.post-cta-box {
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: 2rem 2.5rem; margin: 2.5rem 0; text-align: center;
}
.post-cta-box h3     { color: var(--white); margin-bottom: 0.5rem; }
.post-cta-box p      { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: var(--section-space-y) 0;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
/* Blog article hero — category (section-label) vs main title vs deck line */
.page-hero .blog-hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  max-width: min(100%, 44rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.45rem;
}
.page-hero .blog-hero-heading .blog-hero-kicker {
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
  max-width: 100%;
}
.page-hero .blog-hero-heading .blog-hero-sub {
  font-size: clamp(0.95rem, 2.1vw, 1.18rem);
  font-weight: 500;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.72);
  max-width: min(100%, 36rem);
  text-wrap: balance;
}
/* Blog article pages — underline matches text width (not full container); avoid narrow max-width + <br> orphan wraps */
.page-hero--blog .container > h1:not(.blog-hero-heading) {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-wrap: balance;
  box-sizing: border-box;
  vertical-align: top;
}
.page-hero--blog .container > h1.blog-hero-heading {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.page-hero p,
.page-hero .page-hero-lead {
  color: var(--page-hero-sub-color);
  font-size: var(--page-hero-sub-font-size);
  line-height: var(--page-hero-sub-line-height);
  max-width: var(--page-hero-sub-max-width);
  margin: 0 auto;
}

/* Compact hero — services, area pages, and any page using .page-hero--service (shorter band, intro visible sooner) */
.page-hero--service,
.page-hero--area {
  padding: 1.75rem 0 2rem;
}
.page-hero--service .section-label,
.page-hero--area .section-label {
  margin-bottom: 0.35rem;
}
.page-hero--service h1,
.page-hero--area h1 {
  margin-bottom: 0.45rem;
  line-height: 1.15;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}
.page-hero--service > .container > .page-hero-lead,
.page-hero--area > .container > .page-hero-lead {
  max-width: min(100%, 40rem);
  line-height: 1.55;
  text-wrap: balance;
}
/* Two hero lines (two spans); wide max-width + clamp so first line often fits one row */
.page-hero--service > .container > .page-hero-lead--two-lines,
.page-hero--area > .container > .page-hero-lead--two-lines {
  max-width: min(100%, 72rem);
  text-wrap: unset;
  font-size: clamp(0.8125rem, 1.65vw, 0.975rem);
}
.page-hero--service .page-hero-lead--two-lines .page-hero-line,
.page-hero--area .page-hero-lead--two-lines .page-hero-line {
  display: block;
  color: inherit;
  font-size: inherit;
}
.page-hero--service .page-hero-lead--two-lines .page-hero-line + .page-hero-line,
.page-hero--area .page-hero-lead--two-lines .page-hero-line + .page-hero-line {
  margin-top: 0.2em;
}
@media (min-width: 1200px) {
  .page-hero--service .page-hero-lead--two-lines .page-hero-line:first-child,
  .page-hero--area .page-hero-lead--two-lines .page-hero-line:first-child {
    white-space: nowrap;
  }
}
@media (min-width: 769px) {
  .page-hero--service,
  .page-hero--area {
    padding: 2rem 0 2.35rem;
  }
}
.page-hero--service + section,
.page-hero--area + section {
  padding-top: 2.75rem;
}

/* ---------- Breadcrumb ---------- */
/* Breadcrumb */
.breadcrumb { display: none; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.breadcrumb li:not(.bc-sep):not(:last-child)::after { content: '/'; opacity: 0.5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li[aria-current="page"] { color: var(--text); font-weight: 500; }

/* Inside a dark page-hero — blend into the background */
.page-hero .section-label { color: var(--orange-on-dark); }

/* Testimonials page hero — keep intro on one line on wide viewports */
.page-hero p.testimonials-hero-intro {
  max-width: none;
}
@media (min-width: 900px) {
  .page-hero p.testimonials-hero-intro {
    white-space: nowrap;
  }
}

/* Contact page — hero tagline on one line where width allows */
.page-hero p.contact-hero-tagline {
  max-width: none;
}
@media (min-width: 900px) {
  .page-hero p.contact-hero-tagline {
    white-space: nowrap;
  }
}

.page-hero .breadcrumb {
  background: transparent;
  border-bottom: none;
  padding: 0 0 1.25rem;
}
.page-hero .breadcrumb li,
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb li[aria-current="page"] { color: rgba(255,255,255,0.9); font-weight: 500; }
.bc-list          { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.bc-list a        { color: var(--muted); transition: color var(--transition); }
.bc-list a:hover  { color: var(--orange); }
.bc-list li:last-child { color: var(--text); font-weight: 500; }
.bc-sep           { display: none; }

/* ---------- Legal / Prose Content ---------- */
/* Body copy colour is set globally via the p { color: var(--text) } rule above.
   Dark-background sections (.hero, .sector-card, .cta-section etc.) override
   with their own class-level rules which outrank the element selector. */

/* Legal page wrapper — scopes all overrides safely */
.legal-body h2 {
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.65rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.legal-body ul {
  margin: 0.5rem 0 1.5rem 0 !important;
  padding-left: 0;
  list-style: none;
}
.legal-body ul li {
  line-height: 1.75;
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* Info boxes */
.info-box {
  background: var(--light);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.info-box p { margin-bottom: 0; }

/* ---------- CTA Section ---------- */
.cta-section      { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: var(--section-space-y) 0; text-align: center; }
.cta-section h2   { color: var(--white); margin-bottom: 1rem; }
.cta-section p    { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-section p.cta-intro-two-line { max-width: min(100%, 82ch); }
.cta-section .cta-first-sentence,
.cta-section .cta-second-sentence { white-space: nowrap; }
@media (max-width: 640px) {
  .cta-section p.cta-intro-two-line { max-width: 560px; }
  .cta-section .cta-first-sentence,
  .cta-section .cta-second-sentence { white-space: normal; }
}
.cta-actions      { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Two Column ---------- */
.two-col          { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* EICR landlord block: row height = left column; right stacks info + image (image grows to CTA baseline) */
.eicr-landlord-two-col {
  align-items: stretch;
}
.eicr-landlord-left,
.eicr-landlord-right {
  min-height: 0;
}
.eicr-landlord-left {
  display: flex;
  flex-direction: column;
}
.eicr-landlord-left > p:first-of-type {
  margin-top: 0;
}
/* Align first line of portfolio box with first line of left intro copy */
.eicr-landlord-section .info-box.eicr-landlord-info {
  padding-top: 0.35rem;
  padding-bottom: 1.2rem;
  margin-top: 0;
}
.eicr-landlord-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.eicr-landlord-info {
  flex-shrink: 0;
}
.eicr-landlord-img-wrap {
  flex: 1 1 0;
  min-height: clamp(5rem, 12vw, 7.5rem);
  min-width: 0;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.eicr-landlord-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor lower in the photo: less sky, more building */
  object-position: center 72%;
  display: block;
}
.eicr-landlord-cta {
  margin-top: 1.35rem;
  margin-bottom: 0;
  align-self: flex-start;
}

/* Intro column main headline — same size on area + domestic/commercial service pages */
.area-intro-copy > h2,
.domestic-intro-left > h2,
.commercial-intro-left > h2,
.eicr-intro-left > h2,
.ev-intro-left > h2 {
  font-size: clamp(1.65rem, 3.75vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Area pages — intro (Your Local Electrician) beside van, trust badges full width below */
.area-intro-hero {
  padding: var(--section-space-y) 0;
}
.area-intro-ctas {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.area-areas-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}
.area-areas-jump:hover {
  color: var(--navy);
}
.area-areas-jump:hover .area-areas-jump-icon {
  transform: translateY(3px);
}
.area-areas-jump-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}
/* Match image column height to text column; image fills top–bottom (cover) */
.area-intro-split {
  align-items: stretch;
}
.area-intro-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-height: 0;
}
.area-intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
#areas-we-cover {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.75rem);
}
.area-trust-row {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.accred-badges--area-row {
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.accred-badges--area-row .accred-badge {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

/* ---------- Service/Check Lists ---------- */
/* CCTV “What We Install” etc. — capped column width (between full half-container and too-narrow) */
.svc-list         { display: grid; grid-template-columns: repeat(2, minmax(0, 32rem)); justify-content: center; gap: 0.75rem; list-style: none; }
.svc-list li      { display: flex; align-items: center; gap: 0.5rem; font-size: 0.925rem; }
.svc-list li svg  { color: var(--orange); flex-shrink: 0; }
.svc-item         { display: flex; align-items: center; gap: 0.6rem; font-size: 0.925rem; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.svc-item svg     { color: var(--orange); flex-shrink: 0; }
.svc-item span    { line-height: 1.5; }
/* One line per card when there’s room for two capped columns; below this width 2-col may wrap */
@media (min-width: 1040px) {
  .svc-list .svc-item {
    white-space: nowrap;
  }
}

/* Service page feature image — matches height of adjacent text column */
.svc-feature-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-height: 300px;
}
.svc-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* CCTV hero framing (domestic & others use default center above) */
.services-cctv-page .svc-feature-img {
  object-position: center 15%;
}

/* Service page intros (domestic + commercial + agricultural + EICR) — two columns (+ trust strip where used) */
.domestic-intro-grid,
.commercial-intro-grid,
.agricultural-intro-grid,
.eicr-intro-grid,
.ev-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.domestic-intro-left,
.commercial-intro-left,
.agricultural-intro-left,
.eicr-intro-left,
.ev-intro-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.domestic-intro-cta,
.commercial-intro-cta,
.agricultural-intro-cta,
.eicr-intro-cta,
.ev-intro-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.5rem;
}
.ev-intro-cta {
  flex-wrap: nowrap;
}
.domestic-intro-right,
.commercial-intro-right,
.eicr-intro-right,
.ev-intro-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  align-self: stretch;
}
.agricultural-intro-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
}
/* Hero + card: hero fills space above card; row height follows copy column; low min-height so RHS doesn’t force a taller row than the left */
.agri-intro-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
}
.agricultural-intro-right .agri-intro-hero {
  flex: 1 1 0;
  min-height: clamp(4.5rem, 11vw, 6.5rem);
  min-width: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.agricultural-intro-right .agri-intro-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.agricultural-intro-right .agri-different-card {
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}
.domestic-intro-right .svc-feature-wrap,
.commercial-intro-right .svc-feature-wrap,
.eicr-intro-right .svc-feature-wrap,
.ev-intro-right .svc-feature-wrap {
  flex: 1 1 0;
  min-height: 240px;
}
/* Commercial intro hero: shift image up inside the frame (box size unchanged) */
.commercial-intro-right .svc-feature-img {
  inset: auto;
  top: -45px;
  left: 0;
  width: 100%;
  height: calc(100% + 45px);
}
.domestic-intro-right .info-box.domestic-shropshire-box,
.commercial-intro-right .info-box.commercial-sectors-box {
  margin: 0;
  margin-top: auto;
  flex-shrink: 0;
}
.domestic-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.commercial-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.domestic-trust-strip .domestic-trust-item,
.commercial-trust-strip .commercial-trust-item {
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.65rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1.3;
}
.domestic-trust-strip .domestic-trust-item svg,
.commercial-trust-strip .commercial-trust-item svg {
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .domestic-intro-grid,
  .commercial-intro-grid,
  .agricultural-intro-grid,
  .eicr-intro-grid,
  .ev-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .domestic-intro-left .domestic-intro-cta,
  .commercial-intro-left .commercial-intro-cta,
  .agricultural-intro-left .agricultural-intro-cta,
  .eicr-intro-left .eicr-intro-cta,
  .ev-intro-left .ev-intro-cta {
    margin-top: 0;
  }
  .ev-intro-left .ev-intro-cta {
    flex-wrap: wrap;
  }
  .domestic-intro-right .svc-feature-wrap,
  .commercial-intro-right .svc-feature-wrap,
  .eicr-intro-right .svc-feature-wrap,
  .ev-intro-right .svc-feature-wrap {
    flex: none;
    min-height: 280px;
  }
  .domestic-intro-right .info-box.domestic-shropshire-box,
  .commercial-intro-right .info-box.commercial-sectors-box {
    margin-top: 0;
  }
  /* Single column: flex growth + tiny min-height made the hero a wide strip — use aspect-ratio instead */
  .agricultural-intro-right .agri-intro-stack {
    flex: none;
  }
  .agricultural-intro-right .agri-intro-hero {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}
@media (max-width: 768px) {
  .domestic-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .commercial-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .domestic-trust-strip,
  .commercial-trust-strip {
    grid-template-columns: 1fr;
  }
}

/* Domestic — What's Included: top-align columns; landlord image block */
.domestic-whats-included-cols {
  align-items: start;
}
.domestic-landlord-checklist {
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.domestic-landlord-figure {
  margin: 1.25rem 0 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.domestic-landlord-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}
.domestic-landlord-eicr-link {
  display: inline-flex;
  align-items: center;
}

.check-list       { list-style: none; }
.check-list li    { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.95rem; }
.check-list li svg{ color: var(--orange); flex-shrink: 0; margin-top: 3px; }

.arrow-list       { list-style: none; padding-left: 0; margin: 0.5rem 0 1.25rem; }
.arrow-list li    { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.65rem; font-size: 0.95rem; line-height: 1.65; color: var(--text); }
.arrow-list li:last-child { margin-bottom: 0; }
.arrow-list li svg{ color: var(--orange); flex-shrink: 0; margin-top: 0.32rem; }

/* EICR / EV benefit cards — two-column card grid on .bg-light (tick colour matches .svc-item / CCTV) */
.eicr-when-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
}
.eicr-when-grid > li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.eicr-when-grid > li:hover {
  border-color: rgba(62, 95, 153, 0.22);
  box-shadow: var(--shadow);
}
.eicr-when-grid > li svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0;
}
/* EV charger benefits: longer lines may wrap — top-align icon with first line */
.eicr-when-grid.ev-benefit-grid > li {
  align-items: flex-start;
}
.eicr-when-grid.ev-benefit-grid > li svg {
  margin-top: 2px;
}

/* EICR pricing block: cleaner, readable card style */
.eicr-pricing-section .section-header {
  margin-bottom: 1.1rem;
}
.eicr-pricing-section .eicr-pricing-grid {
  margin-top: 1rem;
  margin-bottom: 1rem;
  gap: 0.85rem;
}
.eicr-pricing-section .eicr-pricing-grid > li {
  align-items: flex-start;
  white-space: normal;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border-left: 4px solid rgba(242, 101, 34, 0.25);
}
.eicr-pricing-section .eicr-pricing-grid > li svg {
  margin-top: 0.15rem;
}
.eicr-pricing-section .eicr-pricing-grid > li span {
  display: block;
}
.eicr-findings-grid > li {
  align-items: flex-start;
  padding: 0.9rem 1rem;
}
.eicr-findings-grid > li svg {
  margin-top: 0.15rem;
}
.eicr-findings-note {
  margin-top: 1.4rem;
}
.eicr-soft-urgency {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* Below 1100px: one full-width card per row (single line). 1100px+: two columns + nowrap */
@media (min-width: 1100px) {
  .eicr-when-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eicr-when-grid > li {
    white-space: nowrap;
  }
  /* EV benefits: longer copy — allow wrap inside cards */
  .eicr-when-grid.ev-benefit-grid > li {
    white-space: normal;
  }
  .eicr-when-grid.eicr-findings-grid > li {
    white-space: normal;
  }
  /* EICR pricing: three cards — bottom row spans full width to align with grid edges */
  .eicr-when-grid.eicr-pricing-grid > li {
    white-space: normal;
  }
  .eicr-pricing-section .eicr-pricing-grid > li:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* ---------- Contact Form ---------- */
.form-group       { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,101,34,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input[type="file"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,101,34,0.12);
}
/* Home hero quote card — quieter photo upload */
.hero-card .form-group--photos-compact {
  margin-bottom: 0.65rem;
}
.hero-card .form-group--photos-compact label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.hero-card .form-group--photos-compact .label-optional {
  font-weight: 500;
  font-size: 0.72rem;
}
.hero-card .form-group--photos-compact input[type="file"] {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-color: color-mix(in srgb, var(--border) 85%, var(--muted));
  background: var(--light);
}
.hero-card .form-group--photos-compact input[type="file"]:focus {
  background: var(--white);
}
.form-group .label-optional {
  font-weight: 400;
  color: var(--muted);
}
.form-status {
  display: none;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
}
.form-status:not(:empty) {
  display: block;
}
.form-status--pending {
  display: block;
  background: var(--light-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.form-status--success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.form-status--error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Info Box ---------- */
.info-box {
  background: var(--light); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.info-box h4 { margin-bottom: 0.35rem; font-size: 0.95rem; }
.info-box p  { font-size: 0.9rem; color: var(--muted); }

/* ---------- Accreditation Badges ---------- */
.accred-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.accred-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 1rem;
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
}
.accred-badge svg { color: var(--success); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #000000; color: rgba(255,255,255,0.78); padding: var(--section-space-y) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem;
}
.footer-logo    { display: block; margin-bottom: 1rem; padding: 0; line-height: 0; }
.footer-desc    { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.footer-ci      {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-ci:hover { color: var(--orange-on-dark); }
.footer-ci svg  { color: var(--orange-on-dark); flex-shrink: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a  {
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange-on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin: 0; max-width: 56rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--orange-on-dark); }

/* ---------- WhatsApp Float (desktop) ---------- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 6px 26px rgba(37,211,102,0.52); }

/* ---------- Mobile Sticky Bar ---------- */
.mobile-sticky {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 998; background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ms-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ms-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.2rem; padding: 0.7rem 0.5rem;
  color: var(--white); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: none; background: none; cursor: pointer; text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ms-btn:last-child { border-right: none; }
.ms-btn.call      { background: var(--orange); }
.ms-btn.whatsapp  { background: #25D366; }
.ms-btn svg       { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card  { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-carousel-viewport { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col    { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-choose-top { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid.features-grid--home-why { grid-template-columns: repeat(2, 1fr); }
  /* Stacked landlord block: full-width image with readable height (avoid paper-thin strip) */
  .eicr-landlord-right {
    width: 100%;
    max-width: 100%;
  }
  .eicr-landlord-img-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: clamp(11.5rem, 52vw, 15rem);
  }
  .area-intro-split .area-intro-media {
    order: -1;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  /* Home “Professional Electricians…” — copy first, image below (not order:-1 like area pages) */
  .section-local-electrician .area-intro-split .area-intro-media {
    order: 0;
    aspect-ratio: auto;
    min-height: unset;
    width: 100%;
    max-width: min(520px, 100%);
  }
  .section-local-electrician .area-intro-media img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}
/* Hamburger + overlay: align with js/main.js MOBILE_NAV_MAX_PX (992) so tablet “mobile” view works */
@media (max-width: 992px) {
  .main-nav,
  .header-cta { display: none; }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
  }
  .site-header .main-nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0;
    background: #000000; overflow-y: auto;
    padding: 1.5rem; z-index: 1001;
  }
  .main-nav.open > ul { flex-direction: column; gap: 0; align-items: stretch; }
  .main-nav.open > ul > li > a {
    padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0; font-size: 1rem;
  }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.05);
    border-radius: var(--radius); padding: 0.4rem;
    margin: 0.4rem 0 0.6rem; display: none;
  }
  .main-nav.open .has-dropdown.mobile-open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,0.72); }
  .dropdown li a:hover { color: var(--orange-on-dark); background: rgba(255,255,255,0.05); }
}
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --section-space-y: 3.5rem;
  }
  /* Home hero: clear fixed header + bottom sticky bar so eyebrow / CTAs aren’t clipped */
  .hero {
    padding-top: calc(var(--section-space-y) + 1.25rem);
    padding-bottom: calc(var(--section-space-y) + 3.5rem + env(safe-area-inset-bottom, 0px));
  }
  .hero .hero-headline-stack > h1 {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
  .hero-subheading {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  /* Home — “Professional Electricians…” sits tighter under services on phones */
  .section-local-electrician {
    padding: 1.75rem 0 var(--section-space-y);
  }
  .services-grid  { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .reviews-carousel-viewport { grid-auto-columns: 100%; }
  .reviews-carousel-shell { gap: 0.45rem; }
  .reviews-carousel-btn { width: 40px; height: 40px; }
  .google-badge { gap: 0.75rem; padding: 0.85rem 1rem; }
  .google-badge-cta { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 0.5rem; width: 100%; justify-content: center; }
  .blog-grid      { grid-template-columns: 1fr; }
  .sectors-grid   { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .features-grid.features-grid--home-why { grid-template-columns: 1fr; }
  .svc-list       { grid-template-columns: 1fr; }
  .areas-grid,
  .areas-grid.areas-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .accred-badges--area-row {
    flex-direction: column;
    align-items: stretch;
  }
  .accred-badges--area-row .accred-badge {
    justify-content: center;
  }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .qc-divider     { display: none; }
  /* Home only: .quick-contact exists on index.html — redundant with header + mobile sticky bar */
  .quick-contact  { display: none; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .mobile-sticky  { display: block; }
  .wa-float       { display: none; }
  /* Sticky bar clearance inside last block — avoids white strip between CTA/footer */
  main            { padding-bottom: 0; }
  main > *:last-child {
    padding-bottom: calc(var(--section-space-y) + 60px);
  }
  /* Footer legal row sits above fixed mobile bar (was hidden behind it) */
  .site-footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .post-meta-row  { flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 480px) {
  .areas-grid,
  .areas-grid.areas-grid--3 { grid-template-columns: 1fr; }
  .hero-card  { display: none; }
}
/* Home hero eyebrow: balanced padding + stacked “Call” line on phones / narrow heroes */
@media (max-width: 768px) {
  .hero-badge.hero-badge-eyebrow {
    padding: 0.65rem 1rem 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-badge-eyebrow-call {
    display: block;
    margin-top: 0.35rem;
  }
}
