:root{--red:#ed1307;--red-dark:#b60f08;--black:#050505;--near-black:#111314;--dark:#17191a;--dark-2:#202224;--dark-3:#2a2c2e;--line:#3a3c3e;--light-line:rgba(255,255,255,.10);--white:#fff;--muted:#cfcfcf;--max:1320px;--shadow:0 18px 45px rgba(0,0,0,.25)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--white);background:var(--near-black);line-height:1.55;overflow-x:hidden}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(var(--max),calc(100% - 48px));margin:0 auto}
.site-header{background:var(--near-black);color:var(--white);border-bottom:4px solid var(--red);box-shadow:0 6px 18px rgba(0,0,0,.35);position:sticky;top:0;z-index:60}.header-top{min-height:106px;display:flex;align-items:center;justify-content:space-between;gap:28px}.header-logo img{width:440px;max-width:100%;height:auto}.header-contact{display:grid;gap:7px;font-size:17px;font-weight:700;color:#f2f2f2;white-space:nowrap}.header-contact a{display:flex;align-items:center;gap:11px}.contact-icon{color:var(--red);font-size:20px;width:22px;text-align:center}.main-nav-wrap{background:rgba(0,0,0,.18);border-top:1px solid rgba(255,255,255,.05)}.main-nav{min-height:58px;display:flex;align-items:center;justify-content:center;gap:42px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;font-weight:900}.main-nav a{height:58px;display:inline-flex;align-items:center;border-bottom:4px solid transparent;color:#f1f1f1}.main-nav a.active,.main-nav a:hover{color:var(--red);border-bottom-color:var(--red)}.mobile-toggle{display:none;border:1px solid #555;background:#2b2b2b;color:var(--white);border-radius:10px;font-size:22px;padding:9px 13px}.mobile-page-bar{display:none}
.hero{position:relative;color:var(--white);min-height:430px;background:linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.74) 34%,rgba(0,0,0,.30) 62%,rgba(0,0,0,.12) 100%),url('../images/hero-electrician.jpg');background-size:cover;background-position:center right;overflow:hidden}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.24)),radial-gradient(circle at 80% 45%,rgba(237,19,7,.08),transparent 28%);pointer-events:none}.hero-inner{position:relative;z-index:1;min-height:430px;display:flex;align-items:center}.hero-content{width:min(620px,100%);padding:38px 0 52px}.hero-mobile-media{display:none}h1,h2,h3{margin:0;line-height:1.12}h1{font-size:clamp(34px,4.2vw,56px);text-transform:uppercase;letter-spacing:.045em;font-weight:900;line-height:1.18;text-shadow:0 3px 12px rgba(0,0,0,.45)}.hero p{margin:20px 0 0;font-size:19px;color:#f1f1f1;max-width:570px;text-shadow:0 2px 10px rgba(0,0,0,.45)}.hero-buttons{display:flex;gap:22px;flex-wrap:wrap;margin-top:32px}.btn{display:inline-flex;align-items:center;justify-content:center;min-width:184px;padding:14px 22px;border:2px solid transparent;text-transform:uppercase;letter-spacing:.06em;font-weight:900;font-size:14px;transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn-red{background:var(--red);color:var(--white)}.btn-red:hover{background:var(--red-dark)}.btn-outline-white{border-color:rgba(255,255,255,.85);color:var(--white);background:rgba(0,0,0,.22)}.btn-outline-white:hover{background:rgba(255,255,255,.12)}
.dark-intro{background:radial-gradient(circle at 20% 0%,rgba(255,255,255,.05),transparent 24%),linear-gradient(115deg,#17191a,#0c0d0e);color:var(--white);padding:42px 0 52px}.intro-grid{display:grid;grid-template-columns:1fr 1.12fr;gap:58px;align-items:start}.section-title{font-size:clamp(24px,3vw,33px);text-transform:uppercase;letter-spacing:.055em;font-weight:900;margin-bottom:14px}.red-line{width:64px;height:4px;background:var(--red);margin-bottom:20px}.dark-intro p,.body-copy{color:#e0e0e0;font-size:16px;margin:0 0 12px;max-width:680px}.section-button{margin-top:12px}.why-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 48px;border-left:1px solid var(--line);padding-left:48px}.why-item{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;align-items:center;color:#f3f3f3;font-size:17px;font-weight:700;min-width:0}.why-icon-img{width:44px;height:44px;object-fit:contain}
.services{padding:38px 0 62px;background:#111314;border-top:1px solid var(--light-line);border-bottom:1px solid var(--light-line)}.services .section-title{color:#fff;margin-bottom:8px}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:8px}.service-card{background:linear-gradient(145deg,#202224,#111213);color:var(--white);padding:22px;display:grid;grid-template-columns:54px minmax(0,1fr);gap:16px;border:1px solid var(--line);border-bottom:3px solid transparent;box-shadow:0 12px 22px rgba(0,0,0,.18);min-height:158px}.service-card:hover{border-bottom-color:var(--red)}.service-card img{width:44px;height:44px;object-fit:contain}.service-card h3{font-size:19px;font-weight:900;line-height:1.25;margin-bottom:8px}.service-card p{margin:0;color:#cecece;font-size:15px}
.section{padding:72px 0;background:linear-gradient(180deg,#17191a,#111314);color:var(--white)}.section.alt{background:linear-gradient(180deg,#111314,#17191a)}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:28px}.section-heading h2{font-size:clamp(28px,3.4vw,44px);text-transform:uppercase;letter-spacing:.035em}.section-heading p{max-width:560px;color:var(--muted);margin:0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}.feature-list{display:grid;gap:12px;margin:18px 0 0;padding:0;list-style:none}.feature-list li{display:grid;grid-template-columns:22px 1fr;gap:10px;color:#d2d2d2}.feature-list li:before{content:'✓';color:var(--red);font-weight:900}.image-panel{min-height:320px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;background:#202224}.image-panel img{width:100%;height:100%;object-fit:cover}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card{background:linear-gradient(145deg,#202224,#151718);border:1px solid var(--line);box-shadow:0 12px 28px rgba(0,0,0,.20);color:var(--white);min-width:0}.project-card{overflow:hidden}.project-image{height:210px;width:100%;object-fit:cover;background:#202224}.card-body{padding:22px}.project-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.date{color:var(--red);font-weight:900}.category{font-size:12px;color:#aaa;text-transform:uppercase;letter-spacing:.05em}.card h3{font-size:22px;margin-bottom:9px}.card p,.card li{margin:0;color:#d2d2d2}.mobile-swipe-hint{display:none}.projects-action{display:flex;justify-content:center;margin-top:26px}.team-photo{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center 16%;background:#222}.team-photo.cain{object-position:center 14%}.team-photo.chris{object-position:center 15%}.team-photo.phil{object-position:center 13%}.team-photo.josh{object-position:center 12%}.role{color:var(--red);font-weight:900;margin-bottom:10px}
.contact-section{background:linear-gradient(135deg,#151718,#090909);color:var(--white);padding:70px 0;border-top:1px solid var(--light-line)}.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;align-items:start}.contact-info{min-width:0}.contact-section h2{font-size:clamp(30px,3.7vw,48px);text-transform:uppercase;letter-spacing:.035em}.contact-list{margin-top:28px;display:grid;gap:14px;color:#efefef;font-weight:700}.contact-list span{color:var(--red);display:inline-block;width:28px}.map-wrap{margin-top:28px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;background:#202224}.map-wrap iframe{display:block;width:100%;height:320px}form{background:#f5f5f5;padding:26px;display:grid;gap:14px;box-shadow:var(--shadow);color:#111}label{display:grid;gap:6px;color:#111;font-weight:800}input,textarea,select{width:100%;border:1px solid #cfcfcf;padding:13px 14px;font:inherit;background:#fff;color:#111}textarea{min-height:140px;resize:vertical}
footer{background:var(--black);color:#cfcfcf;padding:28px 0;border-top:4px solid var(--red)}footer .container{display:flex;justify-content:space-between;gap:22px;align-items:center;flex-wrap:wrap}footer img{width:300px}
.page-hero{padding:86px 0;background:linear-gradient(90deg,rgba(0,0,0,.92),rgba(0,0,0,.72),rgba(0,0,0,.5)),url('../images/hero-electrician.jpg');background-size:cover;background-position:center right;border-bottom:1px solid var(--line)}.page-hero p{max-width:760px;color:#e5e5e5;font-size:19px;margin:18px 0 0}.breadcrumb{color:var(--red);text-transform:uppercase;letter-spacing:.08em;font-weight:900;margin-bottom:14px}
@media(max-width:1150px){.header-top{min-height:86px}.header-logo img{width:330px}.header-contact{font-size:15px}.main-nav{gap:24px;font-size:13px}.intro-grid,.contact-grid,.grid-2{grid-template-columns:1fr}.why-grid{border-left:0;padding-left:0}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:720px){.container{width:min(var(--max),calc(100% - 28px))}.site-header{position:sticky;top:0}.header-top{min-height:64px}.header-logo img{width:180px}.header-contact{display:none}.mobile-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0}.main-nav-wrap{display:none;position:absolute;top:100%;left:0;right:0;background:#111314;box-shadow:0 12px 24px rgba(0,0,0,.45)}.main-nav-wrap.open{display:block}.main-nav{flex-direction:column;gap:0;align-items:stretch;padding:8px 14px}.main-nav a{height:44px;justify-content:flex-start;border-bottom-width:2px}.mobile-page-bar{display:block;position:sticky;top:64px;z-index:45;background:#181a1b;border-bottom:2px solid var(--red);box-shadow:0 5px 14px rgba(0,0,0,.28);font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.mobile-page-bar .container{padding:7px 0}.hero{min-height:0;background:linear-gradient(145deg,#17191a,#090909)}.hero:after{display:none}.hero-inner{min-height:0;padding:30px 0 26px}.hero-content{width:100%;padding:0}.hero-mobile-media{display:block;margin:18px 0 20px;border:1px solid var(--line);background:#0b0c0d;overflow:hidden}.hero-mobile-media img{width:100%;height:auto;object-fit:contain}.hero-buttons{display:grid;grid-template-columns:1fr;gap:10px;margin-top:0}h1{font-size:clamp(27px,8.4vw,34px);line-height:1.13;letter-spacing:.025em}.hero p{font-size:15px;line-height:1.55;margin-top:15px;max-width:none}.btn{width:100%;min-width:0;padding:12px 16px;font-size:12px}.dark-intro,.services,.section,.contact-section{padding:42px 0}.intro-grid{gap:38px}.section-title{font-size:22px;line-height:1.15;letter-spacing:.035em}.red-line{margin-bottom:16px}.dark-intro p,.body-copy{font-size:14px;line-height:1.6}.section-button{margin-top:14px}.why-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.why-item{grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start;font-size:12.5px;line-height:1.4}.why-icon-img{width:30px;height:30px}.service-grid{grid-template-columns:1fr;gap:10px}.service-card{min-height:0;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px}.service-card img{width:34px;height:34px}.service-card h3{font-size:16px;margin-bottom:5px}.service-card p{font-size:12.5px;line-height:1.5}.section-heading{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:18px}.section-heading h2{font-size:23px;line-height:1.12}.section-heading p{max-width:none;font-size:13px;line-height:1.5}.mobile-swipe-hint{display:block;margin:-4px 0 12px;color:#aeb0b2;font-size:12px}.project-grid:not(.all-projects-grid){display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding:0 1px 12px;scrollbar-width:thin}.project-grid:not(.all-projects-grid) .project-card{flex:0 0 86%;scroll-snap-align:start}.all-projects-grid{grid-template-columns:1fr}.project-image{height:190px}.card-body{padding:16px}.project-meta{align-items:flex-start}.date{font-size:12px}.category{font-size:10px}.card h3{font-size:17px;line-height:1.25}.card p{font-size:12.5px;line-height:1.5}.projects-action{margin-top:16px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-photo{height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center 16%}.team-card .card-body{padding:12px}.team-card h3{font-size:15px;margin-bottom:3px}.team-card .role{font-size:11px;margin-bottom:6px}.team-card p{font-size:11px;line-height:1.45}.contact-grid{grid-template-columns:1fr;gap:22px}.contact-section h2{font-size:25px;line-height:1.18}.contact-list{font-size:13px;gap:11px}.map-wrap iframe{height:250px}form{padding:18px;gap:12px}label{font-size:13px}input,textarea,select{padding:11px 12px;font-size:14px}footer{padding:22px 0}footer .container{justify-content:center;text-align:center}footer img{width:210px}.page-hero{padding:30px 0 36px;background:linear-gradient(145deg,#17191a,#090909)}.page-hero .breadcrumb,.page-hero h1{display:none}.page-hero p{font-size:15px;line-height:1.55;margin:0;max-width:none}.page-hero .hero-buttons{margin-top:22px}.image-panel{min-height:0}.image-panel img{height:auto;aspect-ratio:4/3}.feature-list{font-size:13px;gap:9px}}
@media(max-width:440px){.team-photo{aspect-ratio:1/1}.team-card p{font-size:10.5px}.team-card .card-body{padding:10px}.team-card h3{font-size:14px}.project-grid:not(.all-projects-grid) .project-card{flex-basis:90%}}
@media(max-width:360px){.why-grid{grid-template-columns:1fr}.team-grid{grid-template-columns:1fr 1fr}.header-logo img{width:165px}.mobile-page-bar{font-size:11px}}

/* ============================================================
   VERSION 6 RESPONSIVE REFINEMENTS
   ============================================================ */

/* Give each desktop navigation item an equal-width, centred space. */
@media (min-width: 721px) {
  .main-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-height: 64px;
  }

  .main-nav a {
    width: 100%;
    min-height: 64px;
    height: auto;
    padding: 9px 10px;
    justify-content: center;
    text-align: center;
    line-height: 1.16;
  }
}

@media (max-width: 720px) {
  /* Keep the dropdown navigation vertical on phones. */
  .main-nav {
    display: flex;
  }

  /*
     Use the hero photograph as a true background on phones, matching
     the desktop treatment. The stronger left-hand overlay keeps the
     heading readable while the electrician/switchboard remain visible.
  */
  .hero {
    min-height: 430px;
    background:
      linear-gradient(90deg,
        rgba(0, 0, 0, .93) 0%,
        rgba(0, 0, 0, .82) 45%,
        rgba(0, 0, 0, .55) 72%,
        rgba(0, 0, 0, .30) 100%),
      url('../images/hero-electrician.jpg');
    background-size: auto 100%;
    background-position: 83% center;
    background-repeat: no-repeat;
    background-color: #0a0b0c;
  }

  .hero::after {
    display: block;
    background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.32));
  }

  .hero-inner {
    min-height: 430px;
    padding: 30px 0;
    align-items: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  /* The separate mobile image is no longer required in version 6. */
  .hero-mobile-media {
    display: none;
  }

  .hero p {
    max-width: 92%;
  }

  /* Smaller side-by-side hero buttons on both home and subpages. */
  .hero-buttons,
  .page-hero .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
  }

  .hero-buttons .btn,
  .page-hero .hero-buttons .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: .035em;
    white-space: nowrap;
  }

  /*
     Keep the photograph visible behind the introduction on Commercial,
     Residential, About and Projects pages instead of replacing it with
     a plain dark block.
  */
  .page-hero {
    min-height: 285px;
    padding: 32px 0 36px;
    position: relative;
    background:
      linear-gradient(90deg,
        rgba(0, 0, 0, .92) 0%,
        rgba(0, 0, 0, .80) 48%,
        rgba(0, 0, 0, .48) 78%,
        rgba(0, 0, 0, .28) 100%),
      url('../images/hero-electrician.jpg');
    background-size: auto 100%;
    background-position: 84% center;
    background-repeat: no-repeat;
    background-color: #0a0b0c;
  }

  .page-hero .container {
    position: relative;
    z-index: 2;
  }

  .page-hero p {
    color: #fff;
    text-shadow: 0 2px 9px rgba(0,0,0,.75);
    max-width: 94%;
  }
}

@media (max-width: 390px) {
  .hero-buttons .btn,
  .page-hero .hero-buttons .btn {
    font-size: 9.5px;
    padding-inline: 4px;
  }
}


/* ============================================================
   VERSION 7 REFINEMENTS
   ============================================================ */

/* Keep the commercial overview image controlled rather than allowing a
   portrait photograph to dominate the page. */
.commercial-overview {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  align-items: center;
}

.commercial-overview .image-panel {
  width: 100%;
  min-height: 0;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  justify-self: end;
}

.commercial-overview .image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Health and Safety / SiteWise section. */
.safety-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(237, 19, 7, .08), transparent 24%),
    linear-gradient(180deg, #17191a, #101213);
  border-top: 1px solid var(--light-line);
}

.safety-heading {
  margin-bottom: 34px;
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
}

.safety-photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #202224;
}

.safety-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.safety-content > h3 {
  margin: 0 0 10px;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.safety-content > p {
  color: #d7d7d7;
  margin: 0 0 22px;
}

.sitewise-card {
  display: grid;
  grid-template-columns: minmax(210px, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: center;
  margin: 26px 0 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid #bddb20;
  background: linear-gradient(145deg, #242628, #17191a);
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
}

.sitewise-logo-link {
  display: block;
  background: #bddb20;
  overflow: hidden;
}

.sitewise-logo {
  width: 100%;
  height: auto;
}

.sitewise-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  text-transform: uppercase;
}

.sitewise-card p {
  margin: 0;
  color: #d5d5d5;
}

.safety-training-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-bottom: 24px;
}

.safety-closing {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

/* At intermediate widths, keep the commercial photograph beside the copy,
   but let it occupy less of the available width. */
@media (min-width: 640px) and (max-width: 1150px) {
  .commercial-overview {
    grid-template-columns: minmax(0, 1.22fr) minmax(245px, .78fr);
    gap: 24px;
  }

  .commercial-overview .image-panel {
    max-height: 430px;
    aspect-ratio: 4 / 5;
  }

  .safety-grid {
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 720px) {
  /* Reveal more of the electrician and switchboard on all internal pages.
     Content is anchored at the bottom of the image, while the right side of
     the photograph remains substantially unobscured. */
  .page-hero {
    min-height: 350px;
    padding: 0 0 18px;
    display: flex;
    align-items: flex-end;
    background:
      linear-gradient(180deg,
        rgba(0,0,0,.06) 0%,
        rgba(0,0,0,.10) 36%,
        rgba(0,0,0,.64) 78%,
        rgba(0,0,0,.88) 100%),
      linear-gradient(90deg,
        rgba(0,0,0,.38) 0%,
        rgba(0,0,0,.20) 44%,
        rgba(0,0,0,.04) 74%,
        rgba(0,0,0,.02) 100%),
      url('../images/hero-electrician.jpg');
    background-size: cover;
    background-position: 79% center;
    background-repeat: no-repeat;
    background-color: #0a0b0c;
  }

  .page-hero .container {
    width: min(var(--max), calc(100% - 28px));
    padding-top: 120px;
  }

  .page-hero p {
    max-width: 92%;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,.95);
  }

  .page-hero .hero-buttons {
    margin-top: 16px;
  }

  .commercial-overview {
    grid-template-columns: 1fr;
  }

  .commercial-overview .image-panel {
    max-width: 430px;
    max-height: none;
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

  .safety-heading {
    margin-bottom: 20px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .safety-photo-card {
    max-width: 330px;
    justify-self: center;
  }

  .safety-photo {
    aspect-ratio: 1 / 1;
    object-position: center 25%;
  }

  .safety-content > h3,
  .sitewise-card h3 {
    font-size: 18px;
  }

  .safety-content > p,
  .sitewise-card p,
  .safety-closing {
    font-size: 13px;
    line-height: 1.55;
  }

  .sitewise-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .sitewise-logo-link {
    max-width: 420px;
  }

  .safety-training-list {
    grid-template-columns: 1fr;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .page-hero {
    min-height: 330px;
    background-position: 77% center;
  }

  .page-hero .container {
    padding-top: 106px;
  }

  .page-hero p {
    max-width: 100%;
    font-size: 13px;
  }
}


/* ============================================================
   VERSION 8 REFINEMENTS
   ============================================================ */

/*
  Keep the left contact details/map and the enquiry form the same
  overall height on desktop. The flexible spacer pushes the map down
  just enough for both columns to finish on the same baseline.
*/
.contact-grid {
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.contact-spacer {
  flex: 1 1 auto;
  min-height: 28px;
}

.map-wrap {
  margin-top: 0;
}

.contact-grid > form {
  height: 100%;
}

/* The updated safety photograph is landscape rather than portrait. */
.safety-grid {
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
  align-items: start;
}

.safety-photo {
  aspect-ratio: 16 / 10;
  object-position: center center;
}

@media (min-width: 721px) and (max-width: 1150px) {
  .contact-grid {
    grid-template-columns: .9fr 1.1fr;
  }

  .safety-grid {
    grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  .contact-info,
  .contact-grid > form {
    height: auto;
  }

  .contact-spacer {
    flex: 0 0 28px;
    min-height: 28px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .safety-photo-card {
    max-width: none;
  }

  .safety-photo {
    aspect-ratio: 16 / 10;
    object-position: center center;
  }
}


/* ============================================================
   VERSION 9 — WEBSITE ENQUIRY FORM
   ============================================================ */

/* Accessible off-screen honeypot used to catch automated spam. */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.website-enquiry-form button[disabled] {
  cursor: wait;
  opacity: .72;
}


/* ============================================================
   VERSION 10 — FINAL RESPONSIVE AND LAYOUT REFINEMENTS
   ============================================================ */

:root {
  --max: 1240px;
}

/* Keyboard accessibility. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

/* A tighter desktop header gives more space to the actual page content. */
.header-top {
  min-height: 86px;
}

.header-logo img {
  width: 340px;
}

.header-contact {
  font-size: 15px;
}

.main-nav,
.main-nav a {
  min-height: 56px;
}

.main-nav a {
  padding-block: 8px;
}

/* Keep the desktop hero copy compact and consistently proportioned. */
.hero,
.hero-inner {
  min-height: 410px;
}

.hero-content {
  width: min(570px, 100%);
  padding: 34px 0 42px;
}

.hero h1 {
  max-width: 560px;
  font-size: clamp(34px, 3.8vw, 52px);
}

.hero p {
  max-width: 555px;
}

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

.page-hero h1 {
  max-width: 790px;
  font-size: clamp(34px, 3.8vw, 52px);
}

.page-hero p {
  max-width: 760px;
}

/* More controlled image framing for project cards. */
.project-image {
  height: 225px;
}

.project-card[data-project="mana-mokopuna"] .project-image {
  object-position: center 42%;
}

.project-card[data-project="st-james-theatre"] .project-image {
  object-position: center center;
}

/* About-page image and copy should sit comfortably together. */
.page-about .grid-2 {
  align-items: center;
}

/* Branded 404 page uses the same palette as the website. */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(237,19,7,.12), transparent 30%),
    linear-gradient(145deg, #17191a, #070707);
}

.error-card {
  width: min(640px, 100%);
  padding: 42px;
  text-align: center;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  background: #151718;
  box-shadow: var(--shadow);
}

.error-card img {
  width: min(340px, 85%);
  margin: 0 auto 26px;
}

.error-card h1 {
  font-size: clamp(30px, 7vw, 54px);
}

.error-card p {
  color: #d2d2d2;
}

/*
  Change to the compact navigation before the links become cramped.
  This improves laptops, tablets and narrow browser windows.
*/
@media (max-width: 980px) {
  .header-top {
    min-height: 70px;
  }

  .header-logo img {
    width: 245px;
  }

  .header-contact {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .main-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111314;
    box-shadow: 0 14px 28px rgba(0,0,0,.48);
  }

  .main-nav-wrap.open {
    display: block;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 8px 18px;
    min-height: 0;
  }

  .main-nav a {
    min-height: 46px;
    height: 46px;
    justify-content: flex-start;
    border-bottom-width: 2px;
  }

  .mobile-page-bar {
    display: block;
    position: sticky;
    top: 70px;
    z-index: 45;
    background: #181a1b;
    border-bottom: 1px solid var(--line);
    color: #fff;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 900;
  }

  .hero-content {
    width: min(540px, 100%);
  }

  .page-hero {
    padding: 58px 0;
  }
}

/* Phone layout: retain the photograph but make the copy more compact. */
@media (max-width: 720px) {
  .header-top {
    min-height: 68px;
  }

  .header-logo img {
    width: 205px;
  }

  .mobile-page-bar {
    top: 68px;
  }

  .hero,
  .hero-inner {
    min-height: 370px;
  }

  .hero {
    background-position: 77% center;
  }

  .hero-inner {
    align-items: flex-end;
    padding: 0;
  }

  .hero-content {
    width: 100%;
    padding: 106px 0 25px;
  }

  .hero h1 {
    max-width: 315px;
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.08;
    letter-spacing: .025em;
  }

  .hero p {
    max-width: 96%;
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.48;
  }

  .hero-buttons,
  .page-hero .hero-buttons {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-buttons .btn,
  .page-hero .hero-buttons .btn {
    padding: 11px 6px;
    font-size: 10px;
  }

  .page-hero {
    min-height: 315px;
    padding-bottom: 17px;
    background-position: 77% center;
  }

  .page-hero .container {
    padding-top: 112px;
  }

  .page-hero p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
  }

  .dark-intro,
  .services,
  .section,
  .contact-section {
    padding: 38px 0;
  }

  .intro-grid {
    gap: 30px;
  }

  .why-grid {
    gap: 13px 16px;
  }

  .project-image {
    height: 205px;
  }

  .project-grid:not(.all-projects-grid) .project-card {
    flex-basis: 88%;
  }

  .safety-photo-card {
    width: 100%;
  }

  .sitewise-card {
    margin: 20px 0 24px;
  }

  .sitewise-logo-link {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .contact-spacer {
    flex-basis: 20px;
    min-height: 20px;
  }

  .map-wrap iframe {
    height: 270px;
  }

  footer img {
    width: 225px;
  }
}

/* Extra-small screens benefit from single-column information blocks. */
@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    grid-template-columns: 36px minmax(0, 1fr);
    font-size: 13px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sitewise-card {
    padding: 14px;
  }
}


/* ============================================================
   VERSION 11 — VERIFIED SCREENSHOT FIXES
   ============================================================ */

/*
  Header and navigation stop growing once the browser is wider than
  1500px. Main page content keeps its existing comfortable width.
*/
:root {
  --max: 1320px;
}

.header-top,
.main-nav {
  width: min(1500px, calc(100% - 48px));
  max-width: 1500px;
  margin-inline: auto;
}

/*
  Lighten the hero photographs, especially the right side, while
  keeping enough contrast behind the text.
*/
.hero {
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.70) 0%,
      rgba(0,0,0,.55) 33%,
      rgba(0,0,0,.16) 64%,
      rgba(0,0,0,.03) 100%
    ),
    url('../images/hero-electrician.jpg');
  background-size: cover;
  background-position: center right;
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.12)),
    radial-gradient(circle at 80% 45%, rgba(237,19,7,.05), transparent 28%);
}

.page-hero {
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.76) 0%,
      rgba(0,0,0,.60) 34%,
      rgba(0,0,0,.17) 65%,
      rgba(0,0,0,.04) 100%
    ),
    url('../images/hero-electrician.jpg');
  background-size: cover;
  background-position: center right;
}

/*
  Every internal page now uses the same compact left-side text stack
  as the home page, leaving the electrician and switchboard visible.
*/
.page-hero-copy {
  width: min(580px, 100%);
}

.page-hero-copy h1 {
  max-width: 570px;
  font-size: clamp(34px, 3.8vw, 52px);
}

.page-hero-copy p {
  max-width: 560px;
}

/* The separate pinned mobile heading is no longer used. */
.mobile-page-bar {
  display: none !important;
}

/*
  Prevent the old mobile layout from inserting a second copy of the
  electrician photograph below the hero wording.
*/
.hero-mobile-media {
  display: none !important;
}

/*
  Balanced Health & Safety layout:
  - desktop: photograph left, information right;
  - closing statement across the full width;
  - narrower screens: photograph stretches above the information.
*/
.safety-grid {
  grid-template-columns: minmax(470px, 1fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: stretch;
}

.safety-photo-card {
  width: 100%;
  max-width: none;
  height: 100%;
}

.safety-photo {
  width: 100%;
  height: 100%;
  min-height: 430px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}

.safety-content {
  display: flex;
  flex-direction: column;
}

.safety-closing-wide {
  margin: 32px auto 0;
  max-width: 980px;
  padding-top: 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.sitewise-card {
  grid-template-columns: minmax(215px, .8fr) minmax(0, 1.2fr);
}

@media (max-width: 1000px) {
  .header-top,
  .main-nav {
    width: min(var(--max), calc(100% - 36px));
  }

  .safety-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .safety-photo-card {
    height: auto;
  }

  .safety-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .safety-closing-wide {
    margin-top: 26px;
    max-width: 760px;
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/*
  Phone and small-tablet hero:
  - no pinned page label;
  - page heading remains visible;
  - wording scales down rather than disappearing;
  - two compact buttons remain side by side.
*/
@media (max-width: 720px) {
  .header-top {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero,
  .hero-inner {
    min-height: 395px;
  }

  .hero {
    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.03) 0%,
        rgba(0,0,0,.05) 34%,
        rgba(0,0,0,.54) 76%,
        rgba(0,0,0,.83) 100%
      ),
      linear-gradient(
        90deg,
        rgba(0,0,0,.30) 0%,
        rgba(0,0,0,.13) 50%,
        rgba(0,0,0,.01) 100%
      ),
      url('../images/hero-electrician.jpg');
    background-size: cover;
    background-position: 78% center;
  }

  .hero-content {
    padding: 105px 0 24px;
  }

  .hero-buttons,
  .page-hero .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .hero-buttons .btn,
  .page-hero .hero-buttons .btn {
    width: 100%;
    min-width: 0;
    padding: 11px 6px;
    font-size: 10px;
  }

  .page-hero {
    min-height: 430px;
    padding: 0 0 22px;
    display: flex;
    align-items: flex-end;
    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.03) 0%,
        rgba(0,0,0,.06) 34%,
        rgba(0,0,0,.58) 76%,
        rgba(0,0,0,.86) 100%
      ),
      linear-gradient(
        90deg,
        rgba(0,0,0,.30) 0%,
        rgba(0,0,0,.14) 50%,
        rgba(0,0,0,.01) 100%
      ),
      url('../images/hero-electrician.jpg');
    background-size: cover;
    background-position: 78% center;
  }

  .page-hero .container {
    padding-top: 88px;
  }

  .page-hero-copy {
    width: 100%;
  }

  .page-hero .breadcrumb {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
  }

  .page-hero h1,
  .page-hero .breadcrumb {
    display: block;
  }

  .page-hero h1 {
    max-width: 95%;
    font-size: clamp(25px, 7.5vw, 32px);
    line-height: 1.08;
    letter-spacing: .025em;
  }

  .page-hero p {
    max-width: 100%;
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.48;
  }

  .sitewise-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .sitewise-logo-link {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .sitewise-logo {
    width: 100%;
    height: auto;
  }

  .safety-closing-wide {
    margin-top: 22px;
    padding-top: 19px;
    font-size: 14px;
  }

  .page-about .body-copy {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .page-hero {
    min-height: 445px;
    background-position: 77% center;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(23px, 7.2vw, 29px);
  }

  .page-hero p {
    font-size: 12.5px;
  }
}


/* Staff Login button in footer */
.footer-staff-login {
    display: inline-block;
    margin: 10px 0;
    padding: 7px 14px;
    border: 1px solid #444;
    border-radius: 6px;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-staff-login:hover {
    color: #fff;
    border-color: #d9292f;
    background: #d9292f;
}