/* Bury Garage Conversions: approved logo-led visual foundation. */
:root {
  --bgc-blue: #25aae1;
  --bgc-graphite: #58585a;
  --bgc-action-blue: #007eba;
  --bgc-ink: #20282c;
  --bgc-blue-mist: #edf8fd;
  --bgc-white: #ffffff;
}

body {
  color: var(--bgc-ink);
  background: var(--bgc-white);
  font-family: Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.so-widget-sow-headline h1,
.so-widget-sow-headline h2,
.so-widget-sow-headline h3 {
  color: var(--bgc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

a {
  color: var(--bgc-action-blue);
}

#masthead,
#masthead .header-image,
#masthead .top-nav,
#masthead .branding {
  background: var(--bgc-ink) !important;
}

#masthead .top-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#masthead .top-nav,
#masthead .top-nav a,
#masthead .top-nav li {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

#masthead .branding {
  padding: 18px 0;
}

#masthead .site-branding .custom-logo {
  width: min(220px, 100%);
  height: auto;
  max-height: 124px;
  object-fit: contain;
}

#masthead .top-right .lsow-button,
#masthead .top-right a.lsow-button {
  background: var(--bgc-action-blue) !important;
  border: 1px solid var(--bgc-action-blue) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--bgc-white) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 19px;
}

#masthead .nav-wrap,
#masthead .main-navigation,
#masthead .main-navigation ul,
#masthead .main-navigation li {
  background: var(--bgc-blue) !important;
}

#masthead .main-navigation a,
#masthead .main-navigation .menu-toggle {
  color: var(--bgc-white) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#masthead .main-navigation li.current-menu-item > a,
#masthead .main-navigation li.current_page_item > a,
#masthead .main-navigation li > a:hover,
#masthead .main-navigation li > a:focus {
  background: var(--bgc-graphite) !important;
  color: var(--bgc-white) !important;
}

#masthead .main-navigation .sub-menu,
#masthead .main-navigation .sub-menu li {
  background: var(--bgc-graphite) !important;
}

.site-main {
  background: var(--bgc-white);
}

.site-main .panel-grid {
  margin-bottom: 0;
}

.site-main .panel-row-style {
  padding-top: 54px;
  padding-bottom: 54px;
}

.site-main .sow-cta-base,
.site-main .sow-cta-wrapper {
  border-radius: 0;
}

.site-main .sow-cta-base {
  border-left: 4px solid var(--bgc-blue);
  box-shadow: none;
}

.site-main .ow-button-base a,
.site-main .sow-cta-base .ow-button-base a {
  background: var(--bgc-action-blue) !important;
  border: 1px solid var(--bgc-action-blue) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--bgc-white) !important;
  font-weight: 700;
  padding: 13px 18px;
}

.site-main .ow-button-base a:hover,
.site-main .sow-cta-base .ow-button-base a:hover {
  background: var(--bgc-graphite) !important;
  border-color: var(--bgc-graphite) !important;
}

.site-main .panel-row-style[style*="background-color: #f7f7f7"] {
  background-color: var(--bgc-blue-mist) !important;
}

/* Legacy location posts retain the theme's entry-title H1. */
body.postid-1165 .siteorigin-widget-tinymce h1:first-child,
body.postid-1153 .siteorigin-widget-tinymce h1:first-child {
  display: none;
}

/* Approved homepage content release: retain the before/after sliders and suppress obsolete widgets. */
body.home #panel-6-2-0-0,
body.home #panel-6-2-0-2,
body.home #panel-6-2-0-3,
body.home #panel-6-2-0-4,
body.home #panel-6-2-0-5,
body.home #panel-6-2-0-6,
body.home #panel-6-2-0-7,
body.home #panel-6-2-0-8,
body.home #panel-6-2-0-9 {
  display: none;
}

body.home #pg-6-2 .panel-row-style-for-6-2 {
  background: var(--bgc-white) !important;
  padding: 0;
}

body.home .bgc-home-body {
  margin: 0 auto;
  max-width: 1180px;
}

body.home .bgc-home-body section {
  padding: 72px 30px;
}

body.home .bgc-home-body .bgc-home-intro,
body.home .bgc-home-body .bgc-home-areas {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

body.home .bgc-home-body h2 {
  font-size: 42px;
  margin: 0;
}

body.home .bgc-home-body h3 {
  font-size: 24px;
  margin: 0 0 9px;
}

body.home .bgc-home-body p {
  font-size: 17px;
  line-height: 1.65;
}

body.home .bgc-home-body .bgc-eyebrow {
  color: var(--bgc-action-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

body.home .bgc-home-outcomes,
body.home .bgc-home-close {
  background: var(--bgc-blue-mist);
}

body.home .bgc-home-outcome-grid,
body.home .bgc-home-steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.home .bgc-home-outcome-grid > div {
  border-top: 3px solid var(--bgc-blue);
  padding-top: 16px;
}

body.home .bgc-home-process {
  background: var(--bgc-ink);
  color: var(--bgc-white);
}

body.home .bgc-home-process h2,
body.home .bgc-home-process h3,
body.home .bgc-home-process p {
  color: var(--bgc-white);
}

body.home .bgc-home-steps span {
  color: var(--bgc-blue);
  font-size: 12px;
  font-weight: 700;
}

body.home .bgc-home-area-links a {
  border: 1px solid #c9d7dc;
  display: inline-block;
  font-weight: 700;
  margin: 0 7px 8px 0;
  padding: 9px 12px;
}

body.home .bgc-home-close {
  text-align: center;
}

body.home .bgc-home-close h2,
body.home .bgc-home-close p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

body.home .bgc-home-body .bgc-text-link,
body.home .bgc-home-body .bgc-primary-link,
body.home .bgc-home-body .bgc-secondary-link {
  font-weight: 700;
  text-decoration: none;
}

body.home .bgc-home-body .bgc-text-link {
  border-bottom: 2px solid var(--bgc-blue);
  color: var(--bgc-ink);
  padding-bottom: 2px;
}

body.home .bgc-home-services {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

body.home .bgc-home-service-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home .bgc-home-service-links a {
  border: 1px solid #d6e0e3;
  color: var(--bgc-ink);
  display: block;
  min-height: 122px;
  padding: 22px;
  text-decoration: none;
}

body.home .bgc-home-service-links a:hover,
body.home .bgc-home-service-links a:focus {
  background: var(--bgc-blue-mist);
  border-color: var(--bgc-blue);
}

body.home .bgc-home-service-links strong,
body.home .bgc-home-service-links span {
  display: block;
}

body.home .bgc-home-service-links strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin-bottom: 8px;
}

body.home .bgc-home-service-links span {
  font-size: 15px;
  line-height: 1.5;
}

body.home .bgc-home-faqs {
  background: #f4f7f8;
}

body.home .bgc-home-faqs > h2 {
  max-width: 650px;
}

body.home .bgc-home-faq-grid {
  display: grid;
  gap: 0 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

body.home .bgc-home-faq-grid details {
  border-top: 1px solid #c9d7dc;
  padding: 18px 0;
}

body.home .bgc-home-faq-grid details:nth-last-child(-n+2) {
  border-bottom: 1px solid #c9d7dc;
}

body.home .bgc-home-faq-grid summary {
  color: var(--bgc-ink);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  padding-right: 28px;
}

body.home .bgc-home-faq-grid p {
  font-size: 16px;
  margin: 12px 0 0;
}

body.home .bgc-home-close {
  padding-bottom: 88px !important;
  padding-top: 88px !important;
}

body.home .bgc-home-body .bgc-primary-link,
body.home .bgc-home-body .bgc-secondary-link {
  display: inline-block;
  margin: 8px 6px;
  padding: 15px 20px;
}

body.home .bgc-home-body .bgc-primary-link {
  background: var(--bgc-action-blue);
  color: var(--bgc-white);
}

body.home .bgc-home-body .bgc-secondary-link {
  border: 1px solid var(--bgc-ink);
  color: var(--bgc-ink);
}

@media (max-width: 780px) {
  body.home .bgc-home-body section {
    padding: 52px 22px;
  }

  body.home .bgc-home-body .bgc-home-intro,
  body.home .bgc-home-body .bgc-home-areas,
  body.home .bgc-home-services,
  body.home .bgc-home-outcome-grid,
  body.home .bgc-home-steps {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  body.home .bgc-home-service-links,
  body.home .bgc-home-faq-grid {
    grid-template-columns: 1fr;
  }

  body.home .bgc-home-faq-grid details:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  body.home .bgc-home-faq-grid details:last-child {
    border-bottom: 1px solid #c9d7dc;
  }

  body.home .bgc-home-body h2 {
    font-size: 34px;
  }
}

/* Follow the homepage's refined header treatment on commercial pages, without
   changing the global header used by the remaining legacy content. */
@media (min-width: 781px) {
  body.page-id-1572 #masthead .header-image,
  body.page-id-208 #masthead .header-image,
  body.page-id-1391 #masthead .header-image,
  body.page-id-1389 #masthead .header-image,
  body.page-id-1390 #masthead .header-image,
  body.postid-1165 #masthead .header-image,
  body.postid-1153 #masthead .header-image {
    background: var(--bgc-white) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.page-id-1572 #masthead .overlay.overlay-header,
  body.page-id-208 #masthead .overlay.overlay-header,
  body.page-id-1391 #masthead .overlay.overlay-header,
  body.page-id-1389 #masthead .overlay.overlay-header,
  body.page-id-1390 #masthead .overlay.overlay-header,
  body.postid-1165 #masthead .overlay.overlay-header,
  body.postid-1153 #masthead .overlay.overlay-header,
  body.page-id-1572 #masthead .top-nav,
  body.page-id-208 #masthead .top-nav,
  body.page-id-1391 #masthead .top-nav,
  body.page-id-1389 #masthead .top-nav,
  body.page-id-1390 #masthead .top-nav,
  body.postid-1165 #masthead .top-nav,
  body.postid-1153 #masthead .top-nav {
    display: none !important;
  }

  body.page-id-1572 #masthead .branding,
  body.page-id-208 #masthead .branding,
  body.page-id-1391 #masthead .branding,
  body.page-id-1389 #masthead .branding,
  body.page-id-1390 #masthead .branding,
  body.postid-1165 #masthead .branding,
  body.postid-1153 #masthead .branding,
  body.page-id-1572 #masthead .branding .container,
  body.page-id-208 #masthead .branding .container,
  body.page-id-1391 #masthead .branding .container,
  body.page-id-1389 #masthead .branding .container,
  body.page-id-1390 #masthead .branding .container,
  body.postid-1165 #masthead .branding .container,
  body.postid-1153 #masthead .branding .container {
    align-items: center;
    display: flex;
    height: 96px !important;
    min-height: 96px !important;
  }

  body.page-id-1572 #masthead .site-branding .custom-logo,
  body.page-id-208 #masthead .site-branding .custom-logo,
  body.page-id-1391 #masthead .site-branding .custom-logo,
  body.page-id-1389 #masthead .site-branding .custom-logo,
  body.page-id-1390 #masthead .site-branding .custom-logo,
  body.postid-1165 #masthead .site-branding .custom-logo,
  body.postid-1153 #masthead .site-branding .custom-logo {
    max-height: 80px;
    width: 122px;
  }

  body.page-id-1572 .entry-header,
  body.page-id-208 .entry-header,
  body.page-id-1391 .entry-header,
  body.page-id-1389 .entry-header,
  body.page-id-1390 .entry-header,
  body.postid-1165 .entry-header,
  body.postid-1153 .entry-header {
    display: none;
  }
}

/* Remove the legacy dark image overlay from the homepage header. */
@media (min-width: 781px) {
  body.home #masthead .header-image {
    height: auto !important;
    min-height: 0 !important;
  }

  body.home #masthead .overlay.overlay-header {
    display: none !important;
  }

  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 82px !important;
    min-height: 82px !important;
  }

  body.home #masthead .branding .container {
    align-items: center;
  }

  body.home #masthead .site-branding {
    height: 68px;
  }
}

/* Premium commercial-page system: quote journey, conversion hub and confirmed
   area pages. It intentionally scopes to the retained organic URLs. */
body.page-id-1572,
body.page-id-208,
body.page-id-1391,
body.page-id-1389,
body.page-id-1390,
body.postid-1165,
body.postid-1153 {
  background: var(--bgc-white);
}

body.page-id-1572 #masthead,
body.page-id-208 #masthead,
body.page-id-1391 #masthead,
body.page-id-1389 #masthead,
body.page-id-1390 #masthead,
body.postid-1165 #masthead,
body.postid-1153 #masthead,
body.page-id-1572 #masthead .branding,
body.page-id-208 #masthead .branding,
body.page-id-1391 #masthead .branding,
body.page-id-1389 #masthead .branding,
body.page-id-1390 #masthead .branding,
body.postid-1165 #masthead .branding,
body.postid-1153 #masthead .branding,
body.page-id-1572 #masthead .nav-wrap,
body.page-id-208 #masthead .nav-wrap,
body.page-id-1391 #masthead .nav-wrap,
body.page-id-1389 #masthead .nav-wrap,
body.page-id-1390 #masthead .nav-wrap,
body.postid-1165 #masthead .nav-wrap,
body.postid-1153 #masthead .nav-wrap {
  background: var(--bgc-white) !important;
}

body.page-id-1572 #masthead .branding,
body.page-id-208 #masthead .branding,
body.page-id-1391 #masthead .branding,
body.page-id-1389 #masthead .branding,
body.page-id-1390 #masthead .branding,
body.postid-1165 #masthead .branding,
body.postid-1153 #masthead .branding {
  border-bottom: 1px solid #dbe3e6;
}

body.page-id-1572 #masthead .main-navigation,
body.page-id-208 #masthead .main-navigation,
body.page-id-1391 #masthead .main-navigation,
body.page-id-1389 #masthead .main-navigation,
body.page-id-1390 #masthead .main-navigation,
body.postid-1165 #masthead .main-navigation,
body.postid-1153 #masthead .main-navigation {
  border-bottom: 1px solid #dbe3e6;
}

body.page-id-1572 #masthead .main-navigation a,
body.page-id-208 #masthead .main-navigation a,
body.page-id-1391 #masthead .main-navigation a,
body.page-id-1389 #masthead .main-navigation a,
body.page-id-1390 #masthead .main-navigation a,
body.postid-1165 #masthead .main-navigation a,
body.postid-1153 #masthead .main-navigation a {
  color: var(--bgc-graphite) !important;
}

/* Quote page: remove the dated banner and place the genuine form at the heart
   of a short, reassuring home-visit journey. */
body.page-id-1572 #panel-1572-0-0-1 {
  display: none;
}

body.page-id-1572 #pg-1572-0 {
  background: var(--bgc-blue-mist);
  padding: 0 0 68px;
}

body.page-id-1572 #panel-1572-0-0-0 {
  background: var(--bgc-ink);
  color: var(--bgc-white);
  margin: 0 0 42px;
  padding: 72px max(24px, calc((100vw - 1080px) / 2));
  text-align: left;
}

body.page-id-1572 #panel-1572-0-0-0::after {
  color: var(--bgc-blue);
  content: "20+ years of specialist experience  |  Building regulations considered  |  Part P electrical certification where required";
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 25px;
}

body.page-id-1572 .bgc-quote-hero {
  max-width: 780px;
}

body.page-id-1572 .bgc-quote-hero h1,
body.page-id-1572 .bgc-quote-hero p {
  color: var(--bgc-white) !important;
  text-align: left !important;
}

body.page-id-1572 .bgc-quote-hero h1 {
  font-size: 54px;
  line-height: 1.06;
  margin: 8px 0 18px;
}

body.page-id-1572 .bgc-quote-hero p:last-child {
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

body.page-id-1572 #pgc-1572-0-0 > .widget:not(.widget_sow-editor):not(.widget_sow-image) {
  background: var(--bgc-white);
  border-top: 4px solid var(--bgc-blue);
  box-shadow: 0 16px 36px rgba(32, 40, 44, 0.12);
  margin: 0 auto 46px;
  max-width: 860px;
  padding: 32px;
}

body.page-id-1572 #pgc-1572-0-0 .nex-forms-container,
body.page-id-1572 #pgc-1572-0-0 .nex-forms,
body.page-id-1572 #pgc-1572-0-0 form {
  max-width: none !important;
}

body.page-id-1572 #pgc-1572-0-0 input:not([type="submit"]),
body.page-id-1572 #pgc-1572-0-0 textarea,
body.page-id-1572 #pgc-1572-0-0 select {
  border: 1px solid #bfcdd2 !important;
  border-radius: 0 !important;
  min-height: 48px;
}

body.page-id-1572 #pgc-1572-0-0 input[type="submit"],
body.page-id-1572 #pgc-1572-0-0 button[type="submit"] {
  background: var(--bgc-action-blue) !important;
  border: 1px solid var(--bgc-action-blue) !important;
  border-radius: 0 !important;
  color: var(--bgc-white) !important;
  font-weight: 700;
  padding: 14px 22px !important;
}

body.page-id-1572 #panel-1572-0-0-3 {
  background: var(--bgc-white);
  border-top: 1px solid #cfe2ea;
  margin: 0 auto;
  max-width: 1080px;
  padding: 54px 42px 10px;
}

body.page-id-1572 #panel-1572-0-0-3 h2,
body.page-id-1572 #panel-1572-0-0-3 h3 {
  color: var(--bgc-ink);
  text-align: left !important;
}

body.page-id-1572 #pg-1572-1 {
  margin: 0 auto;
  max-width: 1080px;
  padding: 52px 24px;
}

/* The retained service hub and location pages share calmer hierarchy and
   readable line lengths while their existing local copy stays unique. */
body.page-id-208 .site-main,
body.page-id-1391 .site-main,
body.page-id-1389 .site-main,
body.page-id-1390 .site-main,
body.postid-1165 .site-main,
body.postid-1153 .site-main {
  background: var(--bgc-white);
}

body.page-id-208 .panel-grid,
body.page-id-1391 .panel-grid,
body.page-id-1389 .panel-grid,
body.page-id-1390 .panel-grid,
body.postid-1165 .panel-grid,
body.postid-1153 .panel-grid {
  margin-bottom: 0 !important;
}

body.page-id-208 .panel-grid-cell,
body.page-id-1391 .panel-grid-cell,
body.page-id-1389 .panel-grid-cell,
body.page-id-1390 .panel-grid-cell,
body.postid-1165 .panel-grid-cell,
body.postid-1153 .panel-grid-cell {
  padding-bottom: 0 !important;
}

body.page-id-208 .so-widget-sow-editor,
body.page-id-1391 .so-widget-sow-editor,
body.page-id-1389 .so-widget-sow-editor,
body.page-id-1390 .so-widget-sow-editor,
body.postid-1165 .so-widget-sow-editor,
body.postid-1153 .so-widget-sow-editor {
  margin-left: auto;
  margin-right: auto;
  max-width: 1080px;
}

body.page-id-208 .so-widget-sow-editor h2,
body.page-id-1391 .so-widget-sow-editor h2,
body.page-id-1389 .so-widget-sow-editor h2,
body.page-id-1390 .so-widget-sow-editor h2,
body.postid-1165 .so-widget-sow-editor h2,
body.postid-1153 .so-widget-sow-editor h2 {
  color: var(--bgc-ink);
  margin-top: 0;
}

body.page-id-208 .so-widget-sow-editor p,
body.page-id-1391 .so-widget-sow-editor p,
body.page-id-1389 .so-widget-sow-editor p,
body.page-id-1390 .so-widget-sow-editor p,
body.postid-1165 .so-widget-sow-editor p,
body.postid-1153 .so-widget-sow-editor p {
  line-height: 1.72;
}

@media (max-width: 780px) {
  body.page-id-1572 #panel-1572-0-0-0 {
    padding: 48px 24px;
  }

  body.page-id-1572 #panel-1572-0-0-0::after {
    content: "20+ years' specialist experience | Building regulations and Part P considered";
    font-size: 13px;
  }

  body.page-id-1572 .bgc-quote-hero h1 {
    font-size: 39px;
  }

  body.page-id-1572 #pgc-1572-0-0 > .widget:not(.widget_sow-editor):not(.widget_sow-image),
  body.page-id-1572 #panel-1572-0-0-3 {
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px 22px;
  }
}

/* Final sizing rule: intentionally follows the legacy header reset above. */
@media (min-width: 781px) {
  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 96px !important;
    min-height: 96px !important;
  }

  body.home #masthead .site-branding,
  body.home #masthead .site-branding .custom-logo {
    height: 80px;
  }

  body.home #masthead .site-branding .custom-logo {
    max-height: 80px;
    width: 122px;
  }
}

/* Final homepage header dimension: this intentionally follows the legacy
   header reset above so the brand bar retains the requested breathing room. */
@media (min-width: 781px) {
  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 116px !important;
    min-height: 116px !important;
  }

  body.home #masthead .site-branding,
  body.home #masthead .site-branding .custom-logo {
    height: 94px;
  }

  body.home #masthead .site-branding .custom-logo {
    max-height: 94px;
    width: 142px;
  }

  /* The legacy Page Builder row sits inside a constrained wrapper.  Make the
     full-bleed hero own its width, and keep both sides inside one fixed frame. */
  body.home #pg-6-0 {
    box-sizing: border-box;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    width: 100vw !important;
  }

  body.home #pgc-6-0-0 {
    grid-template-columns: minmax(0, 54%) minmax(0, 46%) !important;
    max-width: none !important;
    overflow: hidden;
    width: 100% !important;
  }

  body.home #panel-6-0-0-0,
  body.home #panel-6-0-0-1 {
    box-sizing: border-box;
    min-width: 0;
  }

  body.home #panel-6-0-0-0 img,
  body.home #panel-6-0-0-1 {
    height: 620px !important;
  }

  body.home #panel-6-0-0-1 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 40px 54px !important;
  }

  /* Dropdowns must remain dark and legible even where the main nav is white. */
  #masthead .main-navigation .sub-menu,
  #masthead .main-navigation .sub-menu li,
  body.home #masthead .main-navigation .sub-menu,
  body.home #masthead .main-navigation .sub-menu li {
    background: var(--bgc-ink) !important;
  }

  #masthead .main-navigation .sub-menu a,
  body.home #masthead .main-navigation .sub-menu a {
    background: transparent !important;
    color: var(--bgc-white) !important;
    display: block;
    white-space: nowrap;
  }

  #masthead .main-navigation .sub-menu li > a:hover,
  #masthead .main-navigation .sub-menu li > a:focus,
  body.home #masthead .main-navigation .sub-menu li > a:hover,
  body.home #masthead .main-navigation .sub-menu li > a:focus {
    background: var(--bgc-action-blue) !important;
    color: var(--bgc-white) !important;
  }

  /* Matches the theme's more specific submenu selector on service and area pages. */
  body #masthead .main-navigation ul.sub-menu li > a {
    background: transparent !important;
    color: var(--bgc-white) !important;
  }

  body #masthead .main-navigation ul.sub-menu li > a:hover,
  body #masthead .main-navigation ul.sub-menu li > a:focus {
    background: var(--bgc-action-blue) !important;
    color: var(--bgc-white) !important;
  }
}

/* Quote-page guidance and final commercial-page header overrides. */
body.page-id-1572 .bgc-quote-guide,
body.page-id-1572 .bgc-quote-reassurance {
  margin-bottom: 42px;
}

body.page-id-1572 .bgc-quote-guide-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

body.page-id-1572 .bgc-quote-guide-grid > div {
  border-top: 3px solid var(--bgc-blue);
  padding-top: 16px;
}

body.page-id-1572 .bgc-quote-guide-grid h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}

body.page-id-1572 .bgc-quote-reassurance {
  background: var(--bgc-blue-mist);
  padding: 34px;
}

body.page-id-1572 .bgc-primary-link,
body.page-id-1572 .bgc-secondary-link {
  display: inline-block;
  margin: 8px 10px 0 0;
  padding: 13px 17px;
  text-decoration: none;
}

body.page-id-1572 .bgc-primary-link {
  background: var(--bgc-action-blue);
  color: var(--bgc-white) !important;
}

body.page-id-1572 .bgc-secondary-link {
  border: 1px solid var(--bgc-ink);
  color: var(--bgc-ink) !important;
}

/* Final homepage polish: remove legacy hero height, strengthen hierarchy and
   keep the content bands distinct without introducing card-on-card layouts. */
body.home #pg-6-0 {
  min-height: 0 !important;
}

body.home #pg-6-0,
body.home #pgc-6-0-0,
body.home #pgc-6-0-0 > .panel-grid-cell {
  height: auto !important;
}

body.home #pg-6-2 {
  margin-top: 0 !important;
}

body.home .bgc-home-body section + section {
  border-top: 1px solid #cfdde2;
}

body.home .bgc-home-outcomes,
body.home .bgc-home-areas,
body.home .bgc-home-faqs {
  border-bottom: 1px solid #cfdde2;
}

body.home .bgc-home-areas {
  background: #f4f7f8;
}

body.home .bgc-home-body .bgc-eyebrow {
  color: #005f87;
  font-size: 13px;
  letter-spacing: 0.04em;
}

body.home .bgc-home-process .bgc-eyebrow {
  color: #84d9f7;
}

body.home .bgc-home-steps {
  gap: 30px;
  margin-top: 28px;
}

body.home .bgc-home-steps > div {
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding-top: 18px;
}

body.home .bgc-home-steps span {
  display: none;
}

body.home .bgc-home-steps h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

body.home .bgc-home-outcome-grid > div {
  border-top-color: #007eae;
}

body.home .bgc-home-service-links a,
body.home .bgc-home-area-links a {
  border-color: #aac6d0;
}

@media (max-width: 780px) {
  body.home .bgc-home-steps {
    gap: 22px;
  }
}

/* Homepage header and hero alignment: the two hero halves deliberately share
   one height, rather than relying on the content column to stretch the row. */
@media (min-width: 781px) {
  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 116px !important;
    min-height: 116px !important;
  }

  body.home #masthead .site-branding,
  body.home #masthead .site-branding .custom-logo {
    height: 94px;
  }

  body.home #masthead .site-branding .custom-logo {
    max-height: 94px;
    width: 142px;
  }

  body.home #masthead .main-navigation a {
    padding-bottom: 22px;
    padding-top: 22px;
  }

  body.home #pgc-6-0-0,
  body.home #panel-6-0-0-0,
  body.home #panel-6-0-0-0 .sow-image-container,
  body.home #panel-6-0-0-0 img {
    height: 620px !important;
  }

  body.home #panel-6-0-0-0 img {
    object-position: 50% 50%;
  }
}

@media (max-width: 780px) {
  body.page-id-1572 .bgc-quote-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 781px) {
  body.page-id-1572 .breadcrumb,
  body.page-id-208 .breadcrumb,
  body.page-id-1391 .breadcrumb,
  body.page-id-1389 .breadcrumb,
  body.page-id-1390 .breadcrumb,
  body.postid-1165 .breadcrumb,
  body.postid-1153 .breadcrumb {
    display: none;
  }

  body.page-id-1572 #masthead .main-navigation li.current-menu-item > a,
  body.page-id-208 #masthead .main-navigation li.current-menu-item > a,
  body.page-id-1391 #masthead .main-navigation li.current-menu-item > a,
  body.page-id-1389 #masthead .main-navigation li.current-menu-item > a,
  body.page-id-1390 #masthead .main-navigation li.current-menu-item > a,
  body.postid-1165 #masthead .main-navigation li.current-menu-item > a,
  body.postid-1153 #masthead .main-navigation li.current-menu-item > a {
    background: var(--bgc-blue-mist) !important;
    color: var(--bgc-ink) !important;
  }
}

/* Homepage refinement: a more generous header, a true viewport hero and useful
   guidance before the project comparisons. */
@media (min-width: 781px) {
  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 96px !important;
    min-height: 96px !important;
  }

  body.home #masthead .site-branding,
  body.home #masthead .site-branding .custom-logo {
    height: 80px;
  }

  body.home #masthead .site-branding .custom-logo {
    max-height: 80px;
    width: 122px;
  }

  body.home #masthead .main-navigation a {
    padding-bottom: 20px;
    padding-top: 20px;
  }

  body.home #pl-6 {
    display: flex;
    flex-direction: column;
  }

  body.home #pg-6-0 {
    max-width: none !important;
    min-height: calc(100vh - 156px);
    order: 1;
  }

  body.home #pgc-6-0-0,
  body.home #panel-6-0-0-0,
  body.home #panel-6-0-0-0 .sow-image-container,
  body.home #panel-6-0-0-0 img {
    height: 100%;
  }

  body.home #pg-6-2 {
    margin-left: calc(50% - 50vw);
    order: 2;
    width: 100vw;
  }

  body.home #pg-6-1 {
    order: 3;
  }

  body.home #pg-6-2::before {
    background: var(--bgc-blue-mist);
    border-bottom: 1px solid #cfe2ea;
    border-top: 1px solid #cfe2ea;
    color: var(--bgc-ink);
    content: "20+ years of specialist experience  |  Building regulations considered  |  Part P electrical certification where required";
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
    padding: 21px 30px;
    text-align: center;
  }
}

@media (max-width: 780px) {
  body.home #pg-6-2::before {
    background: var(--bgc-blue-mist);
    border-bottom: 1px solid #cfe2ea;
    border-top: 1px solid #cfe2ea;
    color: var(--bgc-ink);
    content: "20+ years' specialist experience | Building regulations and Part P considered";
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    padding: 18px 22px;
    text-align: center;
  }
}

@media (min-width: 781px) {
  #masthead .branding .container {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  #masthead .branding .eight.columns {
    float: none;
    margin: 0;
    width: auto;
  }

  #masthead .top-right {
    margin: 0;
  }

  #masthead .site-branding .custom-logo {
    width: 185px;
  }

  body.home #panel-6-0-0-0 img {
    display: block;
    height: 360px;
    object-fit: cover;
    width: 100%;
  }

  /* Approved homepage composition: replace the stacked legacy hero with a wide editorial split. */
  #masthead .branding {
    padding: 4px 0;
  }

  #masthead .branding .container {
    min-height: 76px;
    position: relative;
  }

  #masthead .branding .container > a:first-child {
    display: none;
  }

  #masthead .site-branding .custom-logo {
    max-height: 68px;
    width: 102px;
  }

  #masthead .top-right {
    margin-left: auto !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  body.home #pgc-6-0-0 {
    align-items: stretch;
    background: var(--bgc-ink);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  body.home #panel-6-0-0-0,
  body.home #panel-6-0-0-1 {
    margin: 0;
  }

  body.home #panel-6-0-0-0 img {
    height: 610px;
    object-fit: cover;
  }

  body.home #panel-6-0-0-1 {
    align-self: center;
    padding: 58px 58px 58px 54px;
  }

  body.home #panel-6-0-0-1 h1,
  body.home #panel-6-0-0-1 h2,
  body.home #panel-6-0-0-1 p,
  body.home #panel-6-0-0-1 a {
    color: var(--bgc-white) !important;
    text-align: left !important;
  }

  body.home #panel-6-0-0-1 h1 {
    font-size: 56px;
    line-height: 1.04;
    margin: 0 0 19px;
  }

  body.home #panel-6-0-0-1 h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0 0 18px;
  }

  body.home #panel-6-0-0-1 p {
    font-size: 16px;
    line-height: 1.6;
  }

  body.home #panel-6-0-0-1 p:last-child {
    margin-top: 26px;
  }

  body.home #panel-6-0-0-1 p:last-child a {
    background: var(--bgc-action-blue);
    display: inline-block;
    padding: 14px 18px;
    text-decoration: none;
  }

  body.home #panel-6-0-0-2 {
    display: none;
  }

  /* Homepage-only full-bleed layout and compact light header. */
  body.home #masthead,
  body.home #masthead .header-image,
  body.home #masthead .branding,
  body.home #masthead .nav-wrap,
  body.home #masthead .main-navigation,
  body.home #masthead .main-navigation ul,
  body.home #masthead .main-navigation li {
    background: var(--bgc-white) !important;
  }

  body.home #masthead .top-nav {
    display: none;
  }

  body.home #masthead .branding {
    border-bottom: 1px solid #dbe3e6;
  }

  body.home #masthead .branding .container {
    min-height: 82px;
  }

  body.home #masthead .main-navigation {
    border-bottom: 1px solid #dbe3e6;
  }

  body.home #masthead .main-navigation a,
  body.home #masthead .main-navigation .menu-toggle {
    color: var(--bgc-graphite) !important;
  }

  body.home #masthead .main-navigation li.current-menu-item > a,
  body.home #masthead .main-navigation li.current_page_item > a,
  body.home #masthead .main-navigation li > a:hover,
  body.home #masthead .main-navigation li > a:focus {
    background: var(--bgc-blue-mist) !important;
    color: var(--bgc-ink) !important;
  }

  body.home #pg-6-0 {
    margin-left: calc(50% - 50vw);
    max-width: 1600px;
    width: 100vw;
  }
}

@media (max-width: 780px) {
  #masthead .top-nav .cart-right {
    display: none;
  }

  #masthead .branding {
    padding: 14px 0;
  }

  #masthead .site-branding .custom-logo {
    width: 185px;
  }

  #masthead .main-navigation .menu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    margin: 10px 0;
    padding: 10px 12px;
  }

  body.home #panel-6-0-0-0 .eso-hide-mobile {
    display: block !important;
  }

  body.home #pgc-6-0-0 {
    background: var(--bgc-ink);
  }

  body.home #panel-6-0-0-0 img {
    display: block;
    height: 330px;
    object-fit: cover;
    width: 100%;
  }

  body.home #panel-6-0-0-1 {
    padding: 42px 24px 46px;
  }

  body.home #panel-6-0-0-1 h1,
  body.home #panel-6-0-0-1 h2,
  body.home #panel-6-0-0-1 p,
  body.home #panel-6-0-0-1 a {
    color: var(--bgc-white) !important;
    text-align: left !important;
  }

  body.home #panel-6-0-0-1 h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
  }

  body.home #panel-6-0-0-2 {
    display: none;
  }

  body.home .site-main h1,
  body.home .site-main .so-widget-sow-headline h1 {
    font-size: 38px !important;
    line-height: 1.06;
  }

  .site-main .panel-row-style {
    padding-top: 34px;
    padding-bottom: 34px;
  }

}

/* Keep the information hierarchy consistent on every screen size. */
body.home #pl-6 {
  display: flex;
  flex-direction: column;
}

body.home #pg-6-0 {
  order: 1;
}

body.home #pg-6-2 {
  order: 2;
}

body.home #pg-6-1 {
  order: 3;
}

/* Final homepage header reset: follows every legacy rule in this stylesheet. */
@media (min-width: 781px) {
  body.home #masthead .header-image {
    height: auto !important;
    min-height: 0 !important;
  }

  body.home #masthead .overlay.overlay-header {
    display: none !important;
  }

  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 82px !important;
    min-height: 82px !important;
  }

  body.home #masthead .branding .container {
    align-items: center;
  }

  body.home #masthead .site-branding {
    height: 68px;
  }

  body.home #masthead .branding,
  body.home #masthead .branding .container {
    height: 116px !important;
    min-height: 116px !important;
  }

  body.home #masthead .site-branding,
  body.home #masthead .site-branding .custom-logo {
    height: 94px;
  }

  body.home #masthead .site-branding .custom-logo {
    max-height: 94px;
    width: 142px;
  }
}

/* SiteOrigin adds 20px top padding to the homepage hero image widget.  The
   padding exposes the dark grid background as a band above the photograph. */
body.home #panel-6-0-0-0 > .panel-widget-style-for-6-0-0-0 {
  padding-top: 0 !important;
}

/* Homepage premium content pass: richer proof, cleaner section boundaries and
   stronger local SEO paths. Keep these last so they beat legacy SiteOrigin CSS. */
body.home .bgc-home-body {
  max-width: 1240px;
}

body.home .bgc-home-body section {
  border-top: 1px solid #d7e4e8;
  padding: 78px 40px;
}

body.home .bgc-home-body .bgc-home-intro {
  border-top: 0;
}

body.home .bgc-home-body h2 {
  color: var(--bgc-ink);
  line-height: 1.08;
}

body.home .bgc-home-body p {
  color: #304047;
}

body.home .bgc-home-proof {
  background: var(--bgc-blue-mist);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 !important;
}

body.home .bgc-home-proof > div {
  border-right: 1px solid #c8dce3;
  min-height: 150px;
  padding: 28px 26px;
}

body.home .bgc-home-proof > div:last-child {
  border-right: 0;
}

body.home .bgc-home-proof strong,
body.home .bgc-home-proof span {
  display: block;
}

body.home .bgc-home-proof strong {
  color: var(--bgc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.1;
  margin-bottom: 8px;
}

body.home .bgc-home-proof span {
  color: #43565e;
  font-size: 14px;
  line-height: 1.45;
}

body.home .bgc-home-outcomes {
  background: var(--bgc-white);
}

body.home .bgc-home-outcomes > div:first-child,
body.home .bgc-home-featured > div:first-child {
  margin-bottom: 34px;
  max-width: 760px;
}

body.home .bgc-home-outcome-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home .bgc-home-outcome-grid > div {
  background: #f7fbfc;
  border: 1px solid #d6e3e7;
  border-top: 4px solid var(--bgc-blue);
  min-height: 176px;
  padding: 22px;
}

body.home .bgc-home-outcome-grid a {
  color: var(--bgc-ink);
  text-decoration: none;
}

body.home .bgc-home-outcome-grid a:hover,
body.home .bgc-home-outcome-grid a:focus {
  color: var(--bgc-action-blue);
}

body.home .bgc-home-featured {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 64%, var(--bgc-blue-mist) 64%, var(--bgc-blue-mist) 100%);
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

body.home .bgc-home-featured-note {
  align-self: start;
  background: var(--bgc-ink);
  color: var(--bgc-white);
  padding: 34px;
}

body.home .bgc-home-featured-note p {
  color: var(--bgc-white);
  margin-top: 0;
}

body.home .bgc-home-featured-note .bgc-secondary-link {
  border-color: var(--bgc-white);
  color: var(--bgc-white);
  margin-left: 0;
}

body.home .bgc-home-process {
  border-top: 0;
  padding-bottom: 84px;
  padding-top: 84px;
}

body.home .bgc-home-steps {
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

body.home .bgc-home-steps > div {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0 28px;
}

body.home .bgc-home-steps > div:first-child {
  border-left: 0;
  padding-left: 0;
}

body.home .bgc-home-steps span {
  background: rgba(37, 170, 225, 0.16);
  color: #78d7ff;
  display: inline-block;
  letter-spacing: 0;
  margin-bottom: 13px;
  padding: 4px 8px;
}

body.home .bgc-home-areas {
  background: #f7fbfc;
}

body.home .bgc-home-area-links a {
  background: var(--bgc-white);
  color: var(--bgc-action-blue);
  text-decoration: none;
}

body.home .bgc-home-faqs {
  background: var(--bgc-white);
}

body.home .bgc-home-faq-grid {
  gap: 0 58px;
}

body.home .bgc-home-close {
  background: var(--bgc-blue-mist);
  border-bottom: 1px solid #c8dce3;
}

@media (max-width: 980px) {
  body.home .bgc-home-proof,
  body.home .bgc-home-outcome-grid,
  body.home .bgc-home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .bgc-home-featured {
    background: var(--bgc-white);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.home .bgc-home-body section {
    padding: 54px 22px;
  }

  body.home .bgc-home-proof,
  body.home .bgc-home-outcome-grid,
  body.home .bgc-home-steps {
    grid-template-columns: 1fr;
  }

  body.home .bgc-home-proof > div {
    border-bottom: 1px solid #c8dce3;
    border-right: 0;
    min-height: 0;
  }

  body.home .bgc-home-proof > div:last-child {
    border-bottom: 0;
  }

  body.home .bgc-home-steps > div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 24px 0 0;
  }

  body.home .bgc-home-steps > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  body.home .bgc-home-featured-note {
    padding: 26px;
  }
}