/*
Theme Name: Fountain
Theme URI: https://fountainelectric.com
Author: Fountain Marketing
Author URI: https://fountainelectric.com
Description: Custom WordPress theme for Fountain, commercial and industrial capabilities showcase. Built mobile-first: base styles target phones, with min-width breakpoints layering up to tablet and desktop.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fountain
*/

/* =========================================================
   TABLE OF CONTENTS
   1. Reset & base (mobile)
   2. Tokens
   3. Header / Nav (mobile first, desktop nav revealed at --bp-lg)
   4. Hero (mobile stacked, desktop layered with side rail)
   5. Stat strip
   6. Capabilities strip
   7. Section shell + headings
   8. Projects
   9. People / culture
   10. Careers / roles
   11. Safety
   12. Final CTA
   13. Footer
   14. Utilities / accessibility
   Breakpoints used throughout (mobile-first, min-width):
     --bp-sm  480px   large phones
     --bp-md  700px   tablets
     --bp-lg  980px   nav breakpoint / small desktop
     --bp-xl  1280px  desktop, content max-width
   ========================================================= */

/* ---------- 1. Reset & base (mobile) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #191818;
  --steel: #808285;
  --steel-light: #c7c8ca;
  --paper: #f7f6f4;
  --orange: #f16723;
  --orange-deep: #c94f14;
  --blue: #00aeef;
  --navy: #0c2434;
  --white: #ffffff;

  --bp-sm: 480px;
  --bp-md: 700px;
  --bp-lg: 980px;
  --bp-xl: 1280px;
}

.wrap {
  max-width: var(--bp-xl);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
@media (min-width: 980px) { .wrap { padding: 0 40px; } }

::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- 3. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e7e5e1;
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
@media (min-width: 980px) { .site-nav { height: 82px; } }

.site-logo { display: flex; flex-direction: column; line-height: 1; }
.site-logo .name { font-weight: 800; font-size: 18px; letter-spacing: .01em; }
@media (min-width: 700px) { .site-logo .name { font-size: 21px; } }
.site-logo .name span { color: var(--orange); }
.site-logo .custom-logo-link { display: block; }
.site-logo img.custom-logo {
  height: 42px; width: auto; max-width: 200px; display: block;
}
@media (min-width: 700px) { .site-logo img.custom-logo { height: 52px; max-width: 220px; } }
.site-logo .sub {
  font-size: 9px; letter-spacing: .16em; color: var(--steel);
  margin-top: 3px; font-weight: 600; display: none;
}
@media (min-width: 700px) { .site-logo .sub { display: block; font-size: 10px; margin-top: 4px; } }

.nav-links {
  display: none;
  gap: 28px; font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
@media (min-width: 980px) { .nav-links { display: flex; align-items: center; gap: 34px; } }
.nav-links > .nav-top-item > a { position: relative; padding: 6px 0; color: var(--ink); }
.nav-links > .nav-top-item > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--orange); transition: width .2s ease;
}
.nav-links > .nav-top-item > a:hover::after, .nav-links > .nav-top-item > a:focus-visible::after { width: 100%; }

/* ---------- 3a. Mega menu ---------- */
.nav-top-item { position: relative; display: flex; align-items: center; }
.nav-top-item.has-mega > a {
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-top-item.has-mega > a::before {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); order: 2; opacity: .6;
}
.mega-panel {
  position: fixed; left: 0; right: 0; top: 82px; z-index: 49;
  background: #fff; border-bottom: 1px solid #e7e5e1;
  box-shadow: 0 24px 40px -16px rgba(25,24,24,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-top-item.has-mega:hover .mega-panel,
.nav-top-item.has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.mega-panel-inner {
  display: flex; align-items: stretch; min-height: 220px;
  padding: 0; max-width: 1280px;
}
.mega-intro {
  flex: 0 0 300px; background: var(--navy); color: #fff;
  padding: 38px 34px; display: flex; flex-direction: column; justify-content: flex-start;
}
.mega-intro-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.mega-intro p { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.88); font-weight: 500; margin-bottom: 22px; }
.mega-panel .mega-intro-link { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.mega-panel .mega-intro-link:hover { color: #fff; }
.mega-columns {
  flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 34px; padding: 38px 40px; align-content: flex-start; align-items: start;
}
.mega-col { min-width: 170px; }
.mega-panel .mega-col-title {
  display: block; font-size: 13.5px; font-weight: 800; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e7e5e1;
}
.mega-panel .mega-col-title:hover { color: var(--orange); }
.mega-col-list { display: flex; flex-direction: column; gap: 11px; }
.mega-panel .mega-col-list li a {
  font-size: 13.5px; font-weight: 600; color: var(--steel);
}
.mega-panel .mega-col-list li a:hover { color: var(--orange); }

.mega-col-photo { min-width: 190px; max-width: 220px; }
.mega-col-photo-link {
  display: block; margin-bottom: 12px; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4 / 3; background: #f0efec;
}
.mega-col-photo-link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mega-panel .mega-col-caption {
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
}
.mega-panel .mega-col-caption:hover { color: var(--orange-deep); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content:center; gap: 8px;
  padding: 11px 18px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 2px; transition: all .18s ease; white-space: nowrap;
}
@media (min-width: 700px) { .btn { padding: 12px 22px; font-size: 13px; } }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--orange); color: #fff; }

.nav-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle .bars { width: 20px; height: 14px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.site-header.menu-open .nav-toggle .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid #e7e5e1;
  background: #fff;
  /* The header is position:sticky, so once the open menu's content is
     taller than the viewport, the page's own scroll can't reach the
     overflow, it's trapped inside the pinned header. Giving the menu its
     own scroll container, independent of page scroll, fixes that. */
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-header.menu-open .mobile-menu {
  display: block;
}
@media (min-width: 980px) { .mobile-menu { display: none !important; } }
.mobile-menu li { list-style: none; }

/* Every item's link (and, if it has children, a separate toggle button)
   sits in one row, added by JS since core's menu walker doesn't give us
   this structure on its own. */
.mobile-item-row { display: flex; align-items: stretch; border-bottom: 1px solid #f0efec; }
.mobile-menu > li > .mobile-item-row { border-bottom: none; }
.mobile-menu a { display: block; flex: 1; padding: 19px 22px; font-size: 15px; font-weight: 700; }

.mobile-submenu-toggle {
  flex: 0 0 52px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid #f0efec; background: none; cursor: pointer;
}
.mobile-submenu-toggle-icon {
  width: 9px; height: 9px;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  transform: rotate(45deg); transition: transform .2s ease;
}
.mobile-submenu-toggle.is-open .mobile-submenu-toggle-icon { transform: rotate(-135deg); }

.mobile-menu .sub-menu { list-style: none; background: #faf9f7; }
.mobile-menu .sub-menu a { padding: 16px 22px 16px 36px; font-size: 13.5px; font-weight: 600; color: var(--steel); }

/* Category-level items one level down (e.g. "Plumbing", "Heating & Air"),
   bolder and darker so they read as a heading, not just another link. */
.mobile-menu .sub-menu > li > .mobile-item-row > a {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.mobile-menu .sub-menu > li > .mobile-item-row { border-bottom-color: #e7e5e1; }

/* Specific-service leaf items one level deeper still (e.g. "Drain
   Cleaning" under "Plumbing"), lighter weight and further indented so
   it's visually clear these sit a level below the category above them. */
.mobile-menu .sub-menu .sub-menu > li > .mobile-item-row > a {
  font-size: 13px; font-weight: 500; color: var(--steel); padding-left: 44px;
}
.mobile-menu .sub-menu .sub-menu { background: #f3f2ef; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
}
@media (min-width: 700px) { .hero { min-height: 88vh; } }
@media (min-width: 980px) { .hero { min-height: 92vh; } }

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-fallback {
  position: absolute; inset: 0;
  animation: kenburns 24s ease-in-out infinite alternate;
  transition: opacity .6s ease;
  background:
    linear-gradient(180deg, rgba(12,36,52,.15) 0%, rgba(12,36,52,.75) 100%),
    repeating-linear-gradient(115deg, #23343f 0 2px, #1a2a34 2px 46px),
    linear-gradient(160deg,#3a4a54,#141d22 70%);
}
.hero-bg-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-bg-slides { position: absolute; inset: 0; z-index: 1; }
.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(12,36,52,.18) 0%, rgba(12,36,52,.82) 100%);
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.09) translate(-1.5%,-1%); }
}

.hero-svc-rail { display: none; }
@media (min-width: 980px) {
  .hero-svc-rail {
    position: absolute; right: 38px; top: 0; bottom: 0; z-index: 3;
    display: flex; align-items: center;
  }
  .hero-svc-rail ul {
    writing-mode: vertical-rl; transform: rotate(180deg);
    display: flex; gap: 26px;
    font-size: 11px; letter-spacing: .24em; font-weight: 600;
    color: rgba(255,255,255,.6);
  }
}

.hero-content { position: relative; z-index: 4; padding-top: 44px; padding-bottom: 56px; width: 100%; }
@media (min-width: 700px) { .hero-content { padding-top: 56px; padding-bottom: 68px; } }
@media (min-width: 980px) { .hero-content { padding-top: 64px; padding-bottom: 76px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--orange); margin-bottom: 16px;
}
@media (min-width: 700px) { .eyebrow { font-size: 12px; letter-spacing: .22em; margin-bottom: 22px; } }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

.hero h1 {
  font-size: clamp(32px, 9vw, 92px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.01em;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--blue); }

.hero p.lede {
  margin-top: 18px; max-width: 540px; font-size: 15.5px;
  line-height: 1.55; color: rgba(255,255,255,.85); font-weight: 500;
}
@media (min-width: 700px) { .hero p.lede { margin-top: 26px; font-size: 18px; } }

.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
@media (min-width: 700px) { .hero-actions { gap: 16px; margin-top: 38px; } }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }

/* ---------- 5. Stat strip ---------- */
.stat-strip { background: var(--navy); color: #fff; }
.stat-strip .wrap {
  display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 26px;
  padding: 30px 20px;
}
@media (min-width: 700px) { .stat-strip .wrap { grid-template-columns: repeat(4, 1fr); row-gap: 0; padding: 38px 32px; } }
@media (min-width: 980px) { .stat-strip .wrap { padding: 38px 40px; } }

.stat { padding: 0 12px; }
@media (min-width: 700px) {
  .stat { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.14); }
  .stat:first-child { border-left: none; padding-left: 0; }
}
.stat .num {
  font-size: clamp(24px, 5vw, 40px); font-weight: 800; color: var(--blue);
  display: flex; align-items: baseline; gap: 2px;
}
.stat .label { margin-top: 6px; font-size: 11.5px; letter-spacing: .05em; color: rgba(255,255,255,.7); font-weight: 600; }
@media (min-width: 700px) { .stat .label { font-size: 12px; letter-spacing: .06em; } }

/* ---------- 7. Section shell + headings ---------- */
.block { padding-top: 60px; padding-bottom: 60px; }
@media (min-width: 700px) { .block { padding-top: 82px; padding-bottom: 82px; } }
@media (min-width: 980px) { .block { padding-top: 110px; padding-bottom: 110px; } }

.section-head {
  display: flex; flex-direction: column; margin-bottom: 34px; gap: 16px;
}
@media (min-width: 700px) {
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; gap: 40px; }
}
.section-tag {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--orange); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
@media (min-width: 700px) { .section-tag { font-size: 12px; letter-spacing: .22em; margin-bottom: 14px; } }
.section-tag::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.section-head h2 {
  font-size: clamp(26px, 6vw, 48px); font-weight: 800; letter-spacing: -.01em;
  max-width: 14ch; line-height: 1.08;
}
.section-head p { max-width: 400px; color: var(--steel); font-size: 14.5px; line-height: 1.6; font-weight: 500; }
@media (min-width: 700px) { .section-head p { font-size: 15px; } }

/* ---------- 8. Projects ---------- */
.project-filter-bar {
  display: flex; flex-wrap: nowrap; gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; margin-right: -20px; padding-right: 20px;
}
.project-filter-bar::-webkit-scrollbar { height: 5px; }
.project-filter-bar::-webkit-scrollbar-thumb { background: var(--steel-light); border-radius: 4px; }
@media (min-width: 700px) {
  .project-filter-bar {
    flex-wrap: wrap; overflow-x: visible; margin-right: 0; padding-right: 0; padding-bottom: 0;
    margin-bottom: 36px;
  }
}
.project-filter-pill {
  padding: 9px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--steel); background: #fff; border: 1.5px solid #e7e5e1; border-radius: 999px;
  transition: all .15s ease; white-space: nowrap; flex-shrink: 0;
  font-family: inherit; cursor: pointer; appearance: none;
}
.project-filter-pill:hover { border-color: var(--orange); color: var(--orange); }
.project-filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.project-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 700px) { .project-scroll { gap: 22px; } }
.project-scroll::-webkit-scrollbar { height: 6px; }
.project-scroll::-webkit-scrollbar-thumb { background: var(--steel-light); border-radius: 4px; }

.project-card {
  flex: 0 0 78vw; scroll-snap-align: start;
  background: #fff; border: 1px solid #e7e5e1;
}
@media (min-width: 480px) { .project-card { flex: 0 0 300px; } }
@media (min-width: 980px) { .project-card { flex: 0 0 340px; } }

/* The full gallery and industry-filtered archive pages lay project-card
   out in a real responsive grid (not the horizontal-scroll rail above),
   this rule needs to live here, not as an inline style on the element,
   an inline style would always win over these media queries regardless
   of screen size and permanently lock the grid at one column. */
.project-archive-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .project-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .project-archive-grid { grid-template-columns: 1fr 1fr 1fr; } }

.project-thumb { position: relative; height: 190px; overflow: hidden; background: #f0efec; }
@media (min-width: 700px) { .project-thumb { height: 230px; } }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-thumb-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: #f0efec;
  background-image: repeating-linear-gradient(45deg, #e7e5e1 0 2px, transparent 2px 22px);
}
.project-thumb-placeholder svg { width: 30px; height: 30px; color: var(--steel-light); }
.project-thumb-placeholder span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.project-thumb .overlay-tag {
  position: absolute; top: 14px; left: 14px; background: var(--orange);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 6px 10px; text-transform: uppercase;
}
.project-body { padding: 20px; }
@media (min-width: 700px) { .project-body { padding: 24px; } }
.project-body .loc { font-size: 11px; letter-spacing: .1em; color: var(--steel); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.project-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.project-body p { font-size: 13.5px; color: var(--steel); line-height: 1.6; margin-bottom: 16px; }
.project-link { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.project-card:hover .project-link .arrow { transform: translateX(4px); }
.project-link .arrow { display: inline-block; transition: transform .15s; }

/* ---------- 8a. Single project gallery ---------- */
.project-gallery { margin-bottom: 36px; }
@media (min-width: 700px) { .project-gallery { margin-bottom: 44px; } }
.project-gallery-main {
  border-radius: 2px; overflow: hidden; background: #f0efec;
  height: 260px;
}
@media (min-width: 560px) { .project-gallery-main { height: 380px; } }
@media (min-width: 900px) { .project-gallery-main { height: 560px; } }
@media (min-width: 1280px) { .project-gallery-main { height: 660px; } }
.project-gallery-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .15s ease;
}
.project-gallery-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 0 4px;
  -webkit-overflow-scrolling: touch;
}
.project-gallery-thumb {
  flex: 0 0 auto; width: 84px; height: 64px; border-radius: 2px; overflow: hidden;
  border: 2px solid transparent; padding: 0; opacity: .65; transition: opacity .15s ease, border-color .15s ease;
  position: relative;
}
@media (min-width: 700px) { .project-gallery-thumb { width: 100px; height: 76px; } }
.project-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-gallery-thumb:hover { opacity: 1; }
.project-gallery-thumb.is-active { opacity: 1; border-color: var(--orange); }
.project-gallery-main video {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #000;
}
.project-gallery-main iframe {
  width: 100%; height: 100%; display: block; background: #000; border: 0;
}
.project-gallery-thumb-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.project-gallery-thumb-play svg { width: 12px; height: 12px; color: #fff; margin-left: 1px; }
.project-gallery-thumb-noposter {
  position: absolute; inset: 0; background: var(--ink);
}

/* ---------- 9. People / culture ---------- */
.people { background: var(--ink); color: #fff; }
.people .section-tag { color: var(--blue); }
.people .section-tag::before { background: var(--blue); }
.people .section-head p { color: var(--steel-light); }

.people-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: stretch; }
@media (min-width: 900px) { .people-grid { grid-template-columns: 1.1fr .9fr; gap: 50px; } }

.people-photo-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 700px) { .people-photo-block { gap: 16px; } }
.people-photo { position: relative; overflow: hidden; border-radius: 2px; background-size: cover; background-position: center; }
.people-photo.tall { grid-row: span 2; min-height: 260px; }
@media (min-width: 700px) { .people-photo.tall { min-height: 420px; } }
.people-photo.short { min-height: 122px; }
@media (min-width: 700px) { .people-photo.short { min-height: 198px; } }

.quote-block { display: flex; flex-direction: column; justify-content: center; border-left: 3px solid var(--orange); padding-left: 20px; }
@media (min-width: 700px) { .quote-block { padding-left: 32px; } }
.quote-block blockquote { font-size: clamp(20px, 4vw, 30px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.quote-block .attrib { margin-top: 20px; font-size: 13px; color: var(--steel-light); }
@media (min-width: 700px) { .quote-block .attrib { margin-top: 24px; } }
.quote-block .attrib strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }
.culture-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 700px) { .culture-cta { margin-top: 40px; gap: 16px; } }

/* ---------- 8b. Capability page ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  width: 100%; aspect-ratio: 16 / 9; min-height: 320px; max-height: 680px;
  display: flex; align-items: flex-end;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img,
.page-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,36,52,.12) 0%, rgba(12,36,52,.8) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; width: 100%; }
@media (min-width: 700px) { .page-hero-content { padding-bottom: 52px; } }
.page-hero-content .eyebrow { color: var(--orange); }
.page-hero-content h1 {
  font-size: clamp(30px, 6vw, 56px); font-weight: 800; line-height: 1.05;
  letter-spacing: -.01em; max-width: 18ch; color: #fff;
}
.capability-content {
  max-width: 720px; margin-top: 8px;
  font-size: 16px; line-height: 1.8; color: var(--ink);
}
.capability-content p { margin-bottom: 20px; }
.capability-content p:last-child { margin-bottom: 0; }

.capability-body-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .capability-body-grid.has-photo { grid-template-columns: 1.2fr .8fr; gap: 56px; }
}
.capability-photo { border-radius: 2px; overflow: hidden; background: #f0efec; }
.capability-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.capability-facts {
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  margin-top: 32px; padding-top: 28px; border-top: 1px solid #e7e5e1;
}
.capability-fact { min-width: 120px; }
.capability-fact .num { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--orange); line-height: 1; }
.capability-fact .label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); margin-top: 8px; }

.capability-cta {
  margin-top: 56px; padding-top: 36px; border-top: 1px solid #e7e5e1;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 700px) {
  .capability-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}
.capability-cta h3 { font-size: 21px; font-weight: 800; color: var(--ink); }

/* ---------- 8c. Our Stories ---------- */
.stories-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
@media (min-width: 560px) { .stories-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .stories-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
.story-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 2px; overflow: hidden; background: #000; margin-bottom: 14px;
}
.story-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: opacity .15s ease; }
.story-video:hover img { opacity: 1; }
.story-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.story-video:hover .story-play { transform: translate(-50%, -50%) scale(1.08); background: var(--orange-deep); }
.story-play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.story-card h3 { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }

/* ---------- 8d. Shared page content (paragraphs/headings/lists) ---------- */
.page-content {
  max-width: 760px;
  font-size: 16px; line-height: 1.8; color: var(--ink);
}
.page-content.page-content--wide { max-width: none; }
.page-content p { margin-bottom: 22px; }
.page-content p:last-child { margin-bottom: 0; }
.page-content ul, .page-content ol { margin: 0 0 22px 0; padding-left: 22px; }
.page-content li { margin-bottom: 10px; line-height: 1.7; }
.page-content li:last-child { margin-bottom: 0; }
.page-content h2, .page-content h3, .page-content h4 {
  font-weight: 800; color: var(--ink); line-height: 1.3;
  margin-top: 36px; margin-bottom: 16px;
}
.page-content h2:first-child, .page-content h3:first-child, .page-content h4:first-child { margin-top: 0; }
.page-content strong { font-weight: 800; }
.page-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--orange-deep); }

/* ---------- 8e. Diversity & Inclusion photo grid ---------- */
.di-intro-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
@media (min-width: 900px) { .di-intro-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.di-intro-grid .page-content { max-width: 60ch; }
.di-featured-photo { aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: #f0efec; }
.di-featured-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.di-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 560px) { .di-photo-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.di-photo { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: #f0efec; }
.di-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.di-photo.is-wide { grid-column: span 2; aspect-ratio: 8 / 5; }

/* ---------- 8f. History timeline ---------- */
.history-timeline { position: relative; margin: 44px 0; padding-left: 28px; }
.history-timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 5px;
  width: 2px; background: #e7e5e1;
}
.history-timeline-item { position: relative; padding-bottom: 28px; }
.history-timeline-item:last-child { padding-bottom: 0; }
.history-timeline-dot {
  position: absolute; left: -28px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--orange); border: 3px solid var(--paper);
}
.history-timeline-year { font-size: 17px; font-weight: 800; color: var(--orange); margin-bottom: 4px; }
.history-timeline-desc { font-size: 14.5px; line-height: 1.6; color: var(--ink); }
@media (min-width: 700px) {
  .history-timeline { padding-left: 0; }
  .history-timeline::before { left: 126px; }
  .history-timeline-item {
    display: grid; grid-template-columns: 90px 24px 1fr; gap: 4px 24px; padding-bottom: 32px;
  }
  .history-timeline-dot { position: static; justify-self: center; margin-top: 5px; }
  .history-timeline-year { text-align: right; margin-bottom: 0; font-size: 19px; }
  .history-timeline-desc { padding-top: 2px; }
}

/* ---------- 8g. Our Values tile grid ---------- */
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: #e7e5e1; border: 1px solid #e7e5e1; margin: 40px 0;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-tile { background: #fff; padding: 28px 22px; transition: background .15s ease; }
.value-tile:hover { background: var(--ink); }
.value-tile h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; transition: color .15s ease; }
.value-tile:hover h3 { color: #fff; }
.value-tile p { font-size: 13.5px; line-height: 1.55; color: var(--steel); margin: 0; transition: color .15s ease; }
.value-tile:hover p { color: var(--steel-light); }

/* ---------- 8g2. Market Sectors photo-card grid ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0; }
@media (min-width: 560px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .sectors-grid { grid-template-columns: repeat(4, 1fr); } }

.sector-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; }
.sector-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sector-tile:hover img { transform: scale(1.06); }
.sector-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,20,26,.92) 0%, rgba(12,20,26,.55) 45%, rgba(12,20,26,0) 75%);
}
.sector-tile-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.sector-tile--photo h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.sector-tile--photo p { color: rgba(255,255,255,.85); font-size: 12px; line-height: 1.5; margin: 0; }

/* Sectors without a photo yet fall back to the original flat tile, so
   the page still looks complete while photos get added incrementally. */
.sector-tile--plain { background: #fff; border: 1px solid #e7e5e1; aspect-ratio: auto; }
.sector-tile--plain .sector-tile-content { position: static; padding: 22px 18px; }
.sector-tile--plain h3 { color: var(--ink); font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.sector-tile--plain p { color: var(--steel); font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------- 8g3. Apprenticeship page lists (light-background version of the homepage section) ---------- */
.appr-page-lists { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 36px 0; }
@media (min-width: 700px) { .appr-page-lists { grid-template-columns: 1fr 1fr; } }
.appr-page-list { background: #fff; border: 1px solid #e7e5e1; border-radius: 2px; padding: 28px 26px; }
.appr-page-list h4 { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.appr-page-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.appr-page-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--steel); }
.appr-page-list li::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 8px; }

/* ---------- 8g3d. Residential Service Detail: benefit groups + FAQ ---------- */
.svc-benefits-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .svc-benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-benefit-group { background: #fff; border: 1px solid #e7e5e1; border-radius: 2px; padding: 26px 24px; }
.svc-benefit-group h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.svc-benefit-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.svc-benefit-group li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--steel); }
.svc-benefit-group li::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 7px; }

.svc-faq-list { max-width: 860px; margin-top: 28px; }
.svc-faq-item { border-bottom: 1px solid #e7e5e1; }
.svc-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 4px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink);
  list-style: none;
}
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-toggle { flex: 0 0 auto; font-size: 20px; font-weight: 400; color: var(--orange); transition: transform .15s ease; }
.svc-faq-item[open] .svc-faq-toggle { transform: rotate(45deg); }
.svc-faq-answer { padding: 0 4px 20px; }
.svc-faq-answer p { font-size: 14px; line-height: 1.65; color: var(--steel); margin: 0 0 14px; }
.svc-faq-answer p:last-child { margin-bottom: 0; }

/* ---------- 8g3e. Residential Services hub: service lines + map + CTA boxes ---------- */
.res-lines-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .res-lines-grid { grid-template-columns: 1fr 1fr; } }
.res-line-tile { background: #fff; border: 1px solid #e7e5e1; border-radius: 2px; padding: 26px 24px; display: block; text-decoration: none; transition: border-color .15s ease; }
.res-line-tile:hover { border-color: var(--orange); }
.res-line-tile h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
a.res-line-tile h3 span { display: inline-block; margin-left: 4px; color: var(--orange); transition: transform .15s ease; }
a.res-line-tile:hover h3 span { transform: translateX(3px); }
.res-line-tile p { font-size: 14px; line-height: 1.55; color: var(--steel); margin: 0; }

.res-service-map-full { max-width: 720px; }

.res-cta-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .res-cta-grid { grid-template-columns: repeat(3, 1fr); } }
.res-cta-box { background: #fff; border: 1px solid #e7e5e1; border-top: 3px solid var(--orange); border-radius: 2px; padding: 26px 24px; text-align: center; }
.res-cta-box h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.res-cta-box p { font-size: 13.5px; line-height: 1.5; color: var(--steel); margin: 0 0 18px; }

/* ---------- 8g3c. Residential Electrical: trust row + emergency band ---------- */
.res-service-map-photo {
  background: #fff; border: 1px solid #e7e5e1; padding: 28px;
}
.res-service-map-photo img { object-fit: contain; }

.res-trust-row { background: #fff; border-bottom: 1px solid #e7e5e1; }
.res-trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 20px; }
@media (min-width: 700px) { .res-trust-inner { grid-template-columns: repeat(4, 1fr); padding: 28px 20px; } }
.res-trust-item { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.res-trust-item strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.res-trust-item span { font-size: 12px; color: var(--steel); letter-spacing: .02em; }

.res-emergency-band { background: var(--ink); padding: 40px 0; }
.res-emergency-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 700px) { .res-emergency-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.res-emergency-band h3 { color: #fff; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin: 6px 0 10px; }
.res-emergency-band p { color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 52ch; }
.res-emergency-band .btn { flex-shrink: 0; }

.res-services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .res-services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .res-services-grid { grid-template-columns: 1fr 1fr 1fr; } }
.res-service-tile { background: #fff; border: 1px solid #e7e5e1; border-radius: 2px; padding: 24px 22px; transition: border-color .15s ease; display: block; text-decoration: none; }
.res-service-tile:hover { border-color: var(--orange); }
.res-service-tile h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
a.res-service-tile h3 span { display: inline-block; margin-left: 4px; color: var(--orange); transition: transform .15s ease; }
a.res-service-tile:hover h3 span { transform: translateX(3px); }
.res-service-tile p { font-size: 13.5px; line-height: 1.55; color: var(--steel); margin: 0; }

.res-reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .res-reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.res-review-tile { background: #fff; border: 1px solid #e7e5e1; border-radius: 2px; padding: 26px 24px; display: flex; flex-direction: column; }
.res-review-stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.res-review-text { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 16px; flex: 1 1 auto; }
.res-review-name { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.res-review-source { font-size: 11.5px; color: var(--steel); letter-spacing: .02em; margin-top: 2px; }

/* ---------- 8g3b. Our People: career paths photo grid ---------- */
.people-grid { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 40px 0; }
@media (min-width: 700px) { .people-grid { grid-template-columns: 1fr 1fr; } }

.people-tile { position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; }
@media (min-width: 700px) { .people-tile { min-height: 340px; } }
.people-tile--featured { grid-column: 1 / -1; }

.people-tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.people-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,20,26,.85) 0%, rgba(12,20,26,.35) 45%, rgba(12,20,26,0) 75%);
}
.people-tile-content { position: relative; padding: 24px 28px; z-index: 1; }
.people-tile--photo h3 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin-bottom: 8px; }
.people-tile--photo p { color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.5; margin: 0; max-width: 46ch; }

.people-tile--plain { background: #fff; border: 1px solid #e7e5e1; }
.people-tile--plain h3 { color: var(--ink); font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.people-tile--plain p { color: var(--steel); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- 8g4. Full-width primer video (any page, optional) ---------- */
.primer-video-wrap { padding: 32px 0 0; }
@media (min-width: 700px) { .primer-video-wrap { padding-top: 40px; } }
.primer-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 3px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer;
}
.primer-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s ease; }
.primer-video:hover img { opacity: 1; }
.primer-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.primer-video:hover .primer-video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--orange-deep); }
.primer-video-play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }

/* ---------- 8h. Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 32px; } }
.contact-info, .contact-form-wrap {
  background: #fff; border: 1px solid #e7e5e1; border-radius: 2px;
  padding: 32px 26px;
}
@media (min-width: 700px) { .contact-info, .contact-form-wrap { padding: 40px 36px; } }
.contact-info h3,
.contact-form-wrap h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.contact-info-list { margin-bottom: 24px; }
.contact-info-list li { padding: 14px 0; border-bottom: 1px solid #e7e5e1; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.contact-info-list li:first-child { padding-top: 0; }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list a { color: var(--ink); }
.contact-info-list a:hover { color: var(--orange); }
.contact-info-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.contact-map { margin-top: 28px; border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid #e7e5e1; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form .form-row { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink); margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #e7e5e1; border-radius: 2px;
  background: var(--paper); transition: border-color .15s ease, background .15s ease;
}
.contact-form select { cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form-recaptcha-note { margin-top: 10px; font-size: 11.5px; color: var(--steel); }
.contact-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-success {
  padding: 16px 18px; background: #eef8f1; border: 1.5px solid #bfe3c9;
  color: #1f5c33; font-size: 14.5px; border-radius: 2px; margin-bottom: 20px;
}
.contact-form-errors {
  padding: 16px 18px; background: #fdefee; border: 1.5px solid #f3c2bd;
  color: #8a2c22; font-size: 14px; border-radius: 2px; margin-bottom: 20px;
}
.contact-form-errors ul { margin: 0; padding-left: 18px; }
.contact-form-errors li { margin-bottom: 4px; }
.contact-form-errors li:last-child { margin-bottom: 0; }

/* ---------- 8i. Capabilities Overview: alternating rows + connectors ---------- */
.cap-rows { max-width: 980px; margin-top: 40px; }
.cap-row { display: flex; align-items: center; gap: 40px; }
.cap-row--img-left { flex-direction: row; }
.cap-row--img-right { flex-direction: row-reverse; }
.cap-row-media { flex: 0 0 42%; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: #f0efec; }
.cap-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap-row-media-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(45deg, #e7e5e1 0 2px, transparent 2px 22px);
}
.cap-row-media-placeholder svg { width: 30px; height: 30px; color: var(--steel-light); }
.cap-row-text { flex: 1 1 auto; }
.cap-row-num { font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: .06em; margin-bottom: 10px; }
.cap-row-text h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.cap-row-text p { font-size: 15px; line-height: 1.65; color: var(--steel); margin-bottom: 16px; max-width: 48ch; }
.cap-row-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--orange); }
.cap-row-link:hover { color: var(--orange-deep); }
.cap-row-link span { transition: transform .15s ease; }
.cap-row-link:hover span { transform: translateX(3px); }

.cap-connector { position: relative; height: 110px; }
.cap-connector-v1 {
  position: absolute; top: 0; width: 3px; height: 0;
  background: var(--orange); transition: height .4s ease;
}
.cap-connector-h {
  position: absolute; top: 35px; height: 3px; width: 0; overflow: visible;
  background: var(--orange); transition: width .4s ease .4s;
}
.cap-connector-v2 {
  position: absolute; top: 35px; width: 3px; height: 0; overflow: visible;
  background: var(--orange); transition: height .4s ease .8s;
}
.cap-connector-arrow-down {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; opacity: 0;
  transition: opacity .2s ease 1.2s;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 11px solid var(--orange);
}
.cap-connector--to-left .cap-connector-v1 { right: 22%; }
.cap-connector--to-left .cap-connector-h { right: 22%; }
.cap-connector--to-left .cap-connector-v2 { left: 22%; }
.cap-connector--to-right .cap-connector-v1 { left: 22%; }
.cap-connector--to-right .cap-connector-h { left: 22%; }
.cap-connector--to-right .cap-connector-v2 { right: 22%; }

.cap-connector.is-active .cap-connector-v1 { height: 35px; }
.cap-connector.is-active .cap-connector-h { width: 56%; }
.cap-connector.is-active .cap-connector-v2 { height: 40px; }
.cap-connector.is-active .cap-connector-arrow-down { opacity: 1; }

@media (max-width: 699px) {
  .cap-row { flex-direction: column !important; align-items: stretch; gap: 20px; }
  .cap-row-media { flex-basis: auto; aspect-ratio: 16 / 10; }
  .cap-connector { height: 110px; }
  .cap-connector-v1, .cap-connector-h, .cap-connector-v2 { left: 50% !important; right: auto !important; }
  .cap-connector-h { width: 0 !important; }
  .cap-connector-v2 { top: 30px; }
  .cap-connector.is-active .cap-connector-v1 { height: 0; }
  .cap-connector.is-active .cap-connector-v2 { height: 44px; transition-delay: 0s; }
  .cap-connector.is-active .cap-connector-arrow-down { transition-delay: .4s; }
}

/* ---------- 8j. Capability step progress ---------- */
.cap-progress { margin: 48px 0 8px; padding-top: 36px; border-top: 1px solid #e7e5e1; }
.cap-progress-track { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 28px; }
.cap-progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.cap-progress-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; border: 2px solid #e7e5e1; color: var(--steel); background: #fff;
  transition: all .2s ease;
}
.cap-progress-step--done .cap-progress-dot,
.cap-progress-step--current .cap-progress-dot { border-color: var(--orange); background: var(--orange); color: #fff; }
.cap-progress-step--current .cap-progress-dot { width: 36px; height: 36px; box-shadow: 0 0 0 4px rgba(241,103,35,.15); }
.cap-progress-label { font-size: 11px; font-weight: 700; color: var(--steel); text-align: center; max-width: 82px; line-height: 1.3; }
.cap-progress-step--current .cap-progress-label { color: var(--ink); }
.cap-progress-line { flex: 1 1 auto; height: 2px; background: #e7e5e1; margin-top: 15px; min-width: 14px; }
.cap-progress-line.is-done { background: var(--orange); }
.cap-progress-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cap-progress-prev, .cap-progress-next { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); transition: color .15s ease; }
.cap-progress-prev:hover, .cap-progress-next:hover { color: var(--orange); }
@media (max-width: 599px) {
  .cap-progress-label { display: none; }
  .cap-progress-dot { width: 24px; height: 24px; font-size: 10.5px; }
  .cap-progress-step--current .cap-progress-dot { width: 30px; height: 30px; }
  .cap-progress-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 9a. Leadership ---------- */
.leadership-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
@media (min-width: 560px) { .leadership-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .leadership-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } }
.leader-photo {
  aspect-ratio: 1 / 1; border-radius: 2px; overflow: hidden; background: #f0efec;
  margin-bottom: 18px;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-card h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.leader-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }
.leader-bio { font-size: 14px; line-height: 1.65; color: var(--steel); margin-top: 14px; }
.leader-linkedin { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink); margin-top: 14px; }
.leader-linkedin:hover { color: var(--orange); }

/* ---------- 10. Careers / roles ---------- */
.roles { background: var(--paper); }
.role-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: #e7e5e1; border: 1px solid #e7e5e1; }
@media (min-width: 560px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .role-grid { grid-template-columns: repeat(4, 1fr); } }
.role-card { background: #fff; padding: 24px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: background .15s; }
@media (min-width: 700px) { .role-card { padding: 30px 26px; min-height: 180px; } }
.role-card:hover { background: #fff5ef; }
.role-card .role-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--steel); }
.role-card h4 { font-size: 16px; font-weight: 800; margin-top: 20px; }
.role-card .role-loc { font-size: 12px; color: var(--steel); font-weight: 600; margin-top: 6px; }

/* ---------- 11. Safety ---------- */
.safety { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.safety::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px);
}
.safety .wrap { position: relative; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .safety .wrap { grid-template-columns: 1.2fr 1fr; gap: 50px; } }
.safety h2 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; line-height: 1.12; max-width: 12ch; }
.safety p { margin-top: 16px; font-size: 14.5px; line-height: 1.65; max-width: 46ch; color: rgba(255,255,255,.9); font-weight: 500; }
@media (min-width: 700px) { .safety p { margin-top: 18px; font-size: 15.5px; } }
.cert-list { display: flex; flex-direction: column; }
.cert-list div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
@media (min-width: 700px) { .cert-list div { padding: 16px 0; font-size: 14px; } }
.cert-list div:first-child { border-top: 1px solid rgba(255,255,255,.25); }
.cert-list div span.mono { color: rgba(255,255,255,.7); font-weight: 600; font-size: 12px; }

/* ---------- 11a. Apprenticeship ---------- */
.apprenticeship { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.apprenticeship::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px);
}
.apprenticeship .wrap { position: relative; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
@media (min-width: 900px) {
  .apprenticeship .wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
  .apprenticeship-lists { order: 1; }
  .apprenticeship-intro { order: 2; }
}

.apprenticeship-intro .section-tag { color: var(--navy); }
.apprenticeship-intro .section-tag::before { background: var(--navy); }
.apprenticeship-intro h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; line-height: 1.14; max-width: 20ch; }
.apprenticeship-intro p { margin-top: 16px; font-size: 14.5px; line-height: 1.7; max-width: 52ch; color: rgba(255,255,255,.94); font-weight: 500; }
@media (min-width: 700px) { .apprenticeship-intro p { margin-top: 18px; font-size: 15.5px; } }
.apprenticeship-intro p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.apprenticeship-intro p a:hover { color: var(--navy); }
.apprenticeship-intro .hero-actions { margin-top: 28px; }
@media (min-width: 700px) { .apprenticeship-intro .hero-actions { margin-top: 34px; } }

.apprenticeship-lists { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) and (max-width: 899px) { .apprenticeship-lists { grid-template-columns: 1fr 1fr; } }
.appr-list {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px; padding: 24px 26px;
}
.appr-list h4 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800;
  color: var(--navy); margin-bottom: 16px;
}
.appr-list ul { display: flex; flex-direction: column; gap: 11px; }
.appr-list li {
  font-size: 14px; line-height: 1.5; font-weight: 600; color: #fff;
  padding-left: 22px; position: relative;
}
.appr-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px;
  background: var(--navy); border-radius: 50%;
}
/* On this section's orange background, the white button hovering to orange
   (the global .btn-white default, used for contrast on the blue Safety
   section above) would disappear into the background. Mirror it with blue
   instead, scoped to just this section. */
.apprenticeship .btn-white:hover { background: var(--blue); color: #fff; }

/* ---------- 12. Final CTA ---------- */
.final-cta { background: var(--paper); text-align: center; }
.final-cta h2 { font-size: clamp(28px, 8vw, 60px); font-weight: 800; letter-spacing: -.01em; max-width: 16ch; margin: 0 auto 22px; }
.final-cta p { color: var(--steel); font-size: 15px; max-width: 52ch; margin: 0 auto 32px; font-weight: 500; }
@media (min-width: 700px) { .final-cta p { font-size: 16px; margin-bottom: 40px; } }
.final-cta .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- 12a. Footer: Family of Companies band ---------- */
.family-band {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 28px 0;
}
@media (min-width: 700px) { .family-band { padding: 34px 0; } }
.family-label {
  text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--blue); margin-bottom: 22px;
}
@media (min-width: 700px) { .family-label { font-size: 12px; margin-bottom: 26px; } }
.family-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 40px;
}
.family-logo { display: flex; align-items: center; justify-content: center; }
.family-logo img {
  max-height: 34px; width: auto; max-width: 160px;
  filter: brightness(0) invert(1); opacity: .82; transition: opacity .15s;
}
.family-logo img:hover { opacity: 1; }
.family-logo-text {
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.75);
  white-space: nowrap; transition: color .15s;
}
.family-logo-text:hover { color: #fff; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--ink); color: var(--steel-light); padding: 50px 0 22px; }
@media (min-width: 700px) { .site-footer { padding: 70px 0 26px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 50px; } }
@media (min-width: 1140px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; } }
.site-footer h5 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 11px; font-size: 14px; }
.site-footer ul li a:hover { color: var(--orange); }
.footer-logo { color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.footer-logo span { color: var(--orange); }
.footer-about { font-size: 14px; line-height: 1.65; max-width: 36ch; color: var(--steel-light); }
.footer-logo-image { display: block; height: 40px; width: auto; max-width: 200px; margin-top: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75);
  transition: all .15s ease;
}
.footer-social-icon svg { width: 16px; height: 16px; }
.footer-social-icon:hover { border-color: var(--orange); color: var(--orange); background: rgba(241,103,35,.1); }

/* Same icons, reused on the Contact page's white card, need visible
   light-mode colors instead of the semi-transparent white built for the
   dark footer background. */
.contact-info .footer-social-icon { border-color: #e7e5e1; color: var(--steel); }
.contact-info .footer-social-icon:hover { border-color: var(--orange); color: var(--orange); background: rgba(241,103,35,.08); }

.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; font-size: 12px; color: var(--steel); }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 26px; } }
.footer-bottom .flinks { display: flex; gap: 22px; }

/* ---------- 14. Utilities / accessibility ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff;
  padding: 12px 18px; z-index: 100; font-weight: 700; font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg-fallback { animation: none; }
  .hero-bg-video { display: none; }
  html { scroll-behavior: auto; }
}
