:root {
  --dark: #172033;
  --accent: #ffba08;
  --light: #f6f8fb;
  --ink: #1d2528;
  --muted: #617075;
  --line: rgba(29, 37, 40, .14);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  height: auto;
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 900;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand img {
  width: auto;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: none;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 9px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 900;
  background: rgba(255, 255, 255, .72);
}

.nav a:hover, .nav a:focus, .nav a[aria-current="page"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  background: var(--dark);
  padding: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}

.button.secondary {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--line);
}

.hero {
  padding: 72px 0 54px;
  background: linear-gradient(135deg, var(--white), var(--light));
}

.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .62)), var(--hero-photo) center / cover no-repeat !important;
}

.photo-hero .wrap {
  position: relative;
}

.photo-hero.dark-photo {
  background: linear-gradient(90deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .28)), var(--hero-photo) center / cover no-repeat !important;
}

.photo-hero.dark-photo h1, .photo-hero.dark-photo h2, .photo-hero.dark-photo .eyebrow {
  color: #fff;
}

.photo-hero.dark-photo .lead {
  color: rgba(255, 255, 255, .86);
}

.photo-hero:before {
  content: none;
}

/* Kept for older browsers that inspect pseudo backgrounds only. */
.photo-hero[data-bg] {
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}

.hero-stack {
  display: grid;
  gap: 16px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
}

h1 {
  margin: 10px 0 16px;
  color: var(--dark);
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--dark);
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
}

.panel {
  background: var(--dark);
  color: #fff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

.panel strong {
  color: var(--accent);
  display: block;
  font-size: 18px;
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

section {
  padding: 54px 0;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.card.has-image {
  padding: 0;
  overflow: hidden;
}

.service-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 22px;
}

.strip {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.contact-list { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }

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

.photo {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
  font-weight: 800;
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo span {
  display: block;
  padding: 14px 16px;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--dark);
}

@media (max-width:760px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .brand {
    max-width: calc(100% - 76px);
    font-size: 20px;
  }

  .brand img {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    margin-top: 2px;
  }

  .topbar.is-open .nav {
    display: flex;
  }

  .nav a {
    min-height: 46px;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--dark);
  }

  .hero-grid, .grid, .example-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  section {
    padding: 38px 0;
  }

  .panel {
    padding: 22px;
  }

  .hero {
    min-height: auto;
  }

}

body {
  background: #f6f8fb;
}

.topbar {
  background: #172033;
  color: #fff;
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1120px) / 2));
}

.brand {
  color: #fff;
}

.hero {
  background: repeating-linear-gradient(-10deg, #f6f8fb 0 22px, #edf1f7 22px 44px);
}

h1 {
  color: #172033;
}

.panel {
  background: #ffba08;
  color: #172033;
  border-radius: 0;
  box-shadow: 12px 12px 0 #172033;
}

.panel strong {
  color: #172033;
}

.card {
  border-radius: 0;
  border-top: 6px solid #ffba08;
}

.button {
  color: #172033;
  border-radius: 4px;
}

@media (max-width:760px) {
  .hero-grid, .grid, .example-grid {
    grid-template-columns: 1fr !important;
  }

  .card, .photo, .panel, details {
    min-width: 0;
  }

}

/* Full-width GrubbIT copyright footer */
footer {
  width: 100%;
  margin-top: 48px;
  padding: 28px 0;
  color: #fff;
  background: #111827;
}

footer .wrap {
  margin: 0 auto;
}

/* Business menu variation: electrical trade strip */
.topbar .nav {
  gap: 0;
  padding: 0;
  background: #ffba08;
  border: 0;
  border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .28);
  overflow: hidden;
}

.topbar .nav a {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-right: 2px solid #172033;
  border-radius: 0;
  background: transparent;
  color: #172033;
  text-transform: uppercase;
}

.topbar .nav a:last-child {
  border-right: 0;
}

.topbar .nav a:hover, .topbar .nav a:focus {
  background: #fff;
  color: #172033;
}

.topbar .nav-toggle {
  border-color: #ffba08;
  background: #172033;
}

.topbar .nav-toggle span {
  background: #ffba08;
}

/* Sticky footer layout */
html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

footer {
  margin-top: auto;
  flex-shrink: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--accent, currentColor);
  text-decoration: none;
}

.contact-icon {
  font-size: 0.95em;
  line-height: 1;
  margin-right: 0.5rem;
}

a:not(.contact-link) > .contact-icon {
  margin-right: 0.5rem;
}

/* Requested hero and enquiry polish */
.photo-hero.dark-photo .button.secondary {
  color: var(--dark);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.photo-hero.dark-photo .button.secondary:hover,
.photo-hero.dark-photo .button.secondary:focus {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.hero-stack .panel {
  border: 2px solid rgba(255, 255, 255, .7);
}

.hero-stack .panel .contact-list {
  gap: 10px;
}

.hero-stack .panel .contact-list li {
  padding: 10px 12px;
  background: rgba(255, 255, 255, .14);
  border-radius: 6px;
  font-weight: 900;
}

/* Sticky site header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}
/* Full-width sticky header */
.topbar.wrap {
  width: 100%;
  padding-left: max(16px, calc((100% - 1360px) / 2));
  padding-right: max(16px, calc((100% - 1360px) / 2));
}
.contact-action-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  background: var(--white, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, .12));
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.contact-action-card h2,
.contact-action-card h3,
.contact-action-card p {
  margin: 0;
}

.contact-action-card .actions {
  margin-top: 4px;
}

/* Static demonstration enquiry form. */
.contact-form { grid-template-columns:minmax(0, 1fr); }


.contact-form > h2,
.contact-form > h3,
.contact-form > p,
.contact-form > button,
.contact-form > noscript,
.contact-form .form-wide { grid-column: 1 / -1; }

.contact-form label { display:grid; gap:5px; font-size:13px; font-weight:700; }
.contact-form input,
.contact-form textarea { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:4px; color:var(--ink); background:var(--white); font:inherit; font-weight:400; }
.contact-form textarea { resize:vertical; height:128px; min-height:128px; }
.contact-form :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-result { margin: 0; padding: 14px 16px; border: 2px solid currentColor; border-radius: 6px; font-weight: 800; }
.form-result.is-error { color: #a11919; background: var(--white); }

.contact-card-note { margin: 0; padding: 12px 14px; color: var(--ink); background: var(--light); border-left: 4px solid var(--accent); border-radius: 6px; font-size: 14px; line-height: 1.5; font-weight: 600; }

.privacy-note {
  margin: 0;
  color: var(--muted, #5f6b73);
  font-size: 14px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  align-items: center;
}

.footer-contact a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.example-grid img,
.photo img {
  cursor: default;
}

.button.secondary {
  background: var(--white, #fff);
  color: var(--dark);
  border: 2px solid var(--dark);
  font-weight: 900;
}

.photo-hero.dark-photo .button.secondary {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}


/* Local social profile links. */
.contact-social { display:flex; align-items:flex-start; flex-direction:column; gap:10px; margin-top:20px; padding-top:18px; border-top:1px solid rgba(17,27,34,.2); }
.contact-social h3 { margin: 0; color: inherit; font: inherit; font-size: .85rem; font-weight: 700; }
.social-links { display: flex; gap: 10px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--dark); border-radius: 6px; background: var(--white); text-decoration: none; }
.social-link img { display:block; width:22px; height:22px; filter: invert(24%) sepia(55%) saturate(1628%) hue-rotate(178deg) brightness(91%) contrast(97%); }
.social-link:hover { background: var(--light); }
.social-link:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }

/* Contact variation: electrical job ticket */
#contact { padding:40px 0; background:var(--dark); color:var(--white); }

#contact .hero-grid { grid-template-columns:minmax(0, .9fr) minmax(0, 1fr); column-gap:14%; align-items:stretch; max-width:1180px; border:0; border-radius:6px; overflow:hidden; background:linear-gradient(90deg, transparent 35%, rgba(22,30,34,.2) 52%, var(--dark) 78%), url("assets/canonical-repairs.webp") left center / auto 100% no-repeat; }

#contact .hero-grid > div:first-child { padding:32px 120px 32px 32px; margin-right:-68px; background:var(--accent); color:var(--ink); clip-path:polygon(0 0, 100% 0, 82% 100%, 0 100%); font-size:14px; }

#contact .hero-grid > div:first-child h2 {
  color: #111827;
}

#contact .contact-action-card { border:0; border-radius:0; background:rgba(27,35,39,.95); color:var(--white); box-shadow:none; padding:26px; gap:12px; }

#contact .contact-action-card h3 { color:var(--white); font-size:20px; }

#contact .actions .button { color:var(--white); background:var(--dark); }

#contact .button.secondary { color:var(--ink); background:var(--white); border-color:var(--white); }

#contact .privacy-note { color: var(--ink); font-size: 13px; margin-top: 18px; }
/* Electrical layout: job pathway with stronger trade structure */
.electrical-one-page .photo-hero {
  min-height: 72vh;
}

.electrical-one-page .hero-grid {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
}

.electrical-one-page .hero-grid > div:first-child {
  padding: clamp(32px, 5vw, 70px);
  background: #f8c400;
  color: #111827;
}

.electrical-one-page .hero-grid > div:first-child h1,
.electrical-one-page .hero-grid > div:first-child .eyebrow {
  color: #111827;
}

.electrical-one-page .hero-stack {
  padding: 24px;
  background: #111827;
}

.electrical-one-page #services .grid {
  counter-reset: service;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.electrical-one-page #services .card {
  position: relative;
  padding-top: 46px;
}

.electrical-one-page #services .card::before {
  counter-increment: service;
  content: "0" counter(service);
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  color: #111827;
  background: #f8c400;
  border-radius: 999px;
  font-weight: 900;
}

.electrical-one-page #services .service-mini {
  min-height: 170px;
  padding: 58px 22px 22px;
  background: #111827;
  color: #fff;
  border-color: rgba(248, 196, 0, .28);
}

.electrical-one-page #services .service-mini h3 {
  color: #fff;
}

.electrical-one-page #service-examples .example-grid {
  grid-template-columns: 1fr;
}

.electrical-one-page #service-examples .photo {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
}

.electrical-one-page #service-examples .photo img {
  height: 160px;
}

.electrical-one-page .standard-section .section-intro {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .78);
}

.electrical-one-page .process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 2px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  overflow: hidden;
}

.electrical-one-page .process-grid article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  color: #111827;
  background: #fff;
  border-left: 0;
  border-bottom: 1px solid rgba(17, 24, 39, .12);
  border-radius: 0;
}

.electrical-one-page .process-grid article:last-child {
  border-bottom: 0;
}

.electrical-one-page .process-grid h3 {
  margin-top: 0;
  padding: 8px 10px;
  color: #111827;
  background: #f8c400;
  border-radius: 999px;
  text-align: center;
}

.electrical-one-page #faq .faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 2px solid #111827;
  border-radius: 8px;
}

.electrical-one-page #faq details {
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, .16);
  border-radius: 0;
  padding: 0;
}

.electrical-one-page #faq details:last-child {
  border-bottom: 0;
}

.electrical-one-page #faq summary {
  padding: 17px 20px;
  color: #111827;
  background: linear-gradient(90deg, #f8c400 0 10px, #fff 10px);
}

.electrical-one-page #faq details p {
  margin: 0;
  padding: 0 20px 18px 30px;
  color: #475569;
}

@media (max-width: 900px) {
  .electrical-one-page .hero-grid,
  .electrical-one-page #services .grid,
  .electrical-one-page #service-examples .photo,
  .electrical-one-page #faq .faq,
  .electrical-one-page .process-grid,
  .electrical-one-page .process-grid article {
    grid-template-columns: 1fr;
  }
}

/* Anchor offset for sticky headers */
html {
  scroll-padding-top: 64px;
}

[id] {
  scroll-margin-top: 64px;
}
/* Responsive overflow guard */
* {
  min-width: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.button,
.contact-link,
.nav a,
.card,
.panel,
summary,
p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  #contact .hero-grid { row-gap:0; }
  #contact .hero-grid > div:first-child { clip-path:none; margin-right:0; padding:28px; }
  .hero-grid,
  .grid,
  .example-grid,
  .story-grid,
  .split,
  .contact-grid,
  .contact-hero .hero-grid,
  .contact-details-section,
  .contact-cta,
  .visual-note,
  .gallery-row,
  .gallery-row:nth-child(even),
  .contact-card-main,
  .contact-action-card,
  .freshlane-contact-panel .contact-action-card {
    grid-template-columns: 1fr !important;
  }

  .hero,
  section,
  .panel,
  .card,
  .contact-action-card,
  .visual-note,
  .gallery-row {
    max-width: 100%;
  }
}

/* 2026 collection differentiation: bold trade layout */
body.electrical-one-page { min-height:100vh; display:flex; flex-direction:column; background:#f4f6f7; }
body.electrical-one-page main { flex:1; }
body.electrical-one-page .topbar { width:100%; max-width:none; margin:0; padding:14px max(20px,calc((100vw - 1360px)/2)); background:#111b22; }
body.electrical-one-page .brand, body.electrical-one-page .nav a { color:#fff; }
body.electrical-one-page .brand img { width:auto; height:56px; flex-basis:auto; }
body.electrical-one-page .nav { background:transparent; border:0; box-shadow:none; padding:0; }
body.electrical-one-page .nav a { background:transparent; border-radius:0; border-bottom:3px solid transparent; }
body.electrical-one-page .nav a:hover, body.electrical-one-page .nav a:focus { background:transparent; border-bottom-color:var(--accent); color:#fff; }
body.electrical-one-page .hero { position:relative; min-height:610px; padding:80px 0; clip-path:polygon(0 0,100% 0,100% 91%,0 100%); }
body.electrical-one-page .hero:after { content:""; position:absolute; right:0; bottom:0; width:38%; height:12px; background:var(--accent); }
body.electrical-one-page .hero-grid { grid-template-columns:.9fr 1.1fr; gap:52px; }
body.electrical-one-page .hero-grid > div:first-child { background:rgba(10,20,27,.9); padding:40px; border-left:7px solid var(--accent); }
body.electrical-one-page .hero-media { border:8px solid #fff; box-shadow:18px 18px 0 var(--accent); transform:rotate(1deg); }
body.electrical-one-page h1 { text-transform:uppercase; font-size:clamp(42px,6.2vw,76px); line-height:.96; }
body.electrical-one-page #services { padding-top:100px; }
body.electrical-one-page #services .grid { counter-reset:service; }
body.electrical-one-page #services .card { counter-increment:service; position:relative; border-radius:0; border:0; box-shadow:0 16px 34px rgba(15,30,40,.12); overflow:visible; }
body.electrical-one-page #services .card:before { content:"0" counter(service); position:absolute; top:-24px; left:18px; z-index:2; font-size:46px; font-weight:900; color:var(--accent); text-shadow:2px 2px #111b22; }
body.electrical-one-page #process { background:#111b22; color:#dfe7eb; }
body.electrical-one-page #process h2, body.electrical-one-page #process h3 { color:#fff; }
body.electrical-one-page .process-grid { grid-template-columns:repeat(4,1fr); }
body.electrical-one-page .process-grid article { border-left:4px solid var(--accent); padding:10px 20px; }


body.electrical-one-page footer { margin-top:auto; background:#111b22; color:#fff; }
@media(max-width:850px){
 body.electrical-one-page .hero { clip-path:none; }
 body.electrical-one-page .hero-grid, body.electrical-one-page .process-grid { grid-template-columns:1fr; }
 body.electrical-one-page .hero-media { box-shadow:8px 8px 0 var(--accent); }
}

/* Review fixes: contrast, square hero edge, anchors and readable process */
body.electrical-one-page .photo-hero {
  background: linear-gradient(90deg, rgba(8, 15, 25, .90), rgba(8, 15, 25, .48)), var(--hero-photo) center / cover no-repeat !important;
  clip-path: none !important;
}
body.electrical-one-page .hero:after { content: none !important; }
body.electrical-one-page .hero-grid > div:first-child h1,
body.electrical-one-page .hero-grid > div:first-child .eyebrow,
body.electrical-one-page .hero-grid > div:first-child .lead {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
body.electrical-one-page #services .card { padding-top: 0; }
body.electrical-one-page #services .card::before { content: none; }
body.electrical-one-page .process-grid article {
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  align-items: start;
}
body.electrical-one-page .process-grid h3 {
  padding: 0;
  margin: 0;
  color: #111827;
  background: transparent;
  border-radius: 0;
  text-align: left;
  font-size: 1.12rem;
  line-height: 1.3;
}
html { scroll-padding-top: 118px; }
body.electrical-one-page [id] { scroll-margin-top: 118px; }
@media (max-width: 760px) {
  body.electrical-one-page .process-grid article { grid-template-columns: 1fr; gap: 8px; }
}

/* Final review corrections */
html { scroll-padding-top: 88px; }
body.electrical-one-page [id] { scroll-margin-top: 88px; }
body.electrical-one-page .hero { min-height: 560px; padding: 64px 0; }
body.electrical-one-page .process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 2px solid rgba(17, 27, 34, .32);
  border-radius: 10px;
  background: #fff;
}
body.electrical-one-page .process-grid article {
  display: block;
  min-height: 250px;
  padding: 28px 26px;
  border: 0;
  border-right: 3px solid var(--accent);
  background: #fff;
}
body.electrical-one-page .process-grid article:last-child { border-right: 0; }
body.electrical-one-page .process-grid h3 {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: #111b22 !important;
  background: none;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 850;
  text-align: left;
}
body.electrical-one-page .process-grid p {
  margin: 0;
  color: #263640;
  font-size: 1rem;
  line-height: 1.65;
}
@media (max-width: 900px) {
  body.electrical-one-page .process-grid { grid-template-columns: 1fr 1fr; }
  body.electrical-one-page .process-grid article:nth-child(2) { border-right: 0; }
  body.electrical-one-page .process-grid article:nth-child(-n+2) { border-bottom: 3px solid var(--accent); }
}
@media (max-width: 620px) {
  body.electrical-one-page .process-grid { grid-template-columns: 1fr; }
  body.electrical-one-page .process-grid article,
  body.electrical-one-page .process-grid article:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--accent);
  }
  body.electrical-one-page .process-grid article:last-child { border-bottom: 0; }
}


/* Hero image correction: keep the media panel compact and make the photo fill it. */
@media (min-width: 851px) {
  body.electrical-one-page .hero-grid {
    align-items: center;
  }

  body.electrical-one-page .hero-stack {
    width: min(100%, 620px);
    justify-self: center;
    align-self: center;
    padding: 18px;
  }

  body.electrical-one-page .hero-media {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  body.electrical-one-page .hero-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 850px) {
  body.electrical-one-page .hero-stack {
    padding: 16px;
  }

  body.electrical-one-page .hero-media {
    aspect-ratio: 16 / 9;
  }

  body.electrical-one-page .hero-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}


/* Hero refinement: larger image, no coloured media backing, and safer responsive sizing. */
body.electrical-one-page .hero {
  min-height: 0;
  padding: clamp(38px, 5vw, 64px) 0;
}

body.electrical-one-page .hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

body.electrical-one-page .hero-grid > div:first-child {
  min-width: 0;
}

body.electrical-one-page .hero-stack {
  width: 100%;
  max-width: 700px;
  padding: 0;
  background: transparent;
  justify-self: end;
  align-self: center;
}

body.electrical-one-page .hero-media {
  width: 100%;
  aspect-ratio: 4 / 3;
}

body.electrical-one-page .hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

body.electrical-one-page .hero-grid h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

body.electrical-one-page .hero-grid .lead {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

body.electrical-one-page .hero-grid .actions {
  margin-top: clamp(18px, 2.5vw, 26px);
}

/* Stack before the text/buttons become cramped or pushed below the viewport. */
@media (max-width: 1100px) {
  body.electrical-one-page .hero {
    padding: 40px 0 48px;
  }

  body.electrical-one-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.electrical-one-page .hero-stack {
    width: min(100%, 760px);
    max-width: 760px;
    justify-self: start;
  }

  body.electrical-one-page .hero-media {
    aspect-ratio: 16 / 9;
  }

  body.electrical-one-page .hero-grid h1 {
    max-width: 800px;
    font-size: clamp(2.45rem, 7vw, 4rem);
  }

  body.electrical-one-page .hero-grid .lead {
    max-width: 780px;
  }
}

@media (max-width: 620px) {
  body.electrical-one-page .hero {
    padding: 30px 0 36px;
  }

  body.electrical-one-page .hero-grid {
    gap: 24px;
  }

  body.electrical-one-page .hero-grid h1 {
    font-size: clamp(2.15rem, 11vw, 3.05rem);
    line-height: 1.01;
  }

  body.electrical-one-page .hero-grid .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  body.electrical-one-page .hero-grid .actions .button {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    text-align: center;
  }

  body.electrical-one-page .hero-media {
    aspect-ratio: 4 / 3;
  }
}

/* Short desktop/laptop screens: keep the CTA within easy reach. */
@media (min-width: 1101px) and (max-height: 760px) {
  body.electrical-one-page .hero {
    padding: 30px 0 38px;
  }

  body.electrical-one-page .hero-grid h1 {
    font-size: clamp(2.5rem, 4.2vw, 4.15rem);
  }

  body.electrical-one-page .hero-grid .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  body.electrical-one-page .hero-grid .actions {
    margin-top: 16px;
  }
}

/* Mobile hero readability: keep words intact and reduce the oversized headline. */
h1, h2, h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 620px) {
  body.electrical-one-page .hero-grid h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    line-height: 1.08;
  }
}
