:root {
  --navy-950: #031b32;
  --navy-900: #062d55;
  --navy-800: #0a416f;
  --blue-600: #0878bd;
  --blue-500: #1396d4;
  --blue-100: #e9f6fc;
  --red-700: #a90812;
  --red-600: #c8101b;
  --red-500: #e21b2b;
  --ink: #172433;
  --muted: #5a6877;
  --line: #dce3e9;
  --surface: #f3f6f8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(4, 31, 56, .12);
  --container: 1180px;
  --display: "Barlow Condensed", Arial Narrow, sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
address { font-style: normal; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 9999; background: #fff; color: var(--navy-900); padding: 12px 18px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-500);
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.1;
  text-transform: uppercase;
}
.eyebrow.blue { color: var(--blue-600); }
.eyebrow.light { color: #8ed5f5; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1; }
h2 { margin-bottom: 16px; font-size: clamp(2.15rem, 4vw, 3.35rem); text-transform: uppercase; letter-spacing: -.02em; }
h3 { margin-bottom: 12px; font-size: 1.65rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red-600); box-shadow: 0 12px 24px rgba(200, 16, 27, .22); }
.button-primary:hover { background: var(--red-700); box-shadow: 0 15px 28px rgba(200, 16, 27, .3); }
.button-outline { color: #fff; border-color: rgba(255,255,255,.78); background: rgba(0,0,0,.12); }
.button-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.button-large { min-height: 56px; padding: 15px 24px; font-size: 1rem; }
.text-link, .service-card > a, .panel-content > a, .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.text-link:hover, .service-card > a:hover, .panel-content > a:hover, .read-more:hover { color: var(--red-600); }

.utility-bar { color: #fff; background: var(--navy-900); font-family: var(--display); font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-inner p { margin: 0; font-size: .78rem; }
.utility-divider { opacity: .45; margin-inline: 8px; }
.utility-actions { display: flex; align-items: center; gap: 22px; }
.on-call { color: #ff5260; font-size: .78rem; }
.utility-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.utility-phone svg { color: #ff4e5b; }

.nav-wrap { position: relative; z-index: 1000; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.nav-inner { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.brand { width: 165px; display: flex; align-items: center; line-height: 1; }
.brand-logo { display: block; width: 126px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav > ul > li { position: relative; display: flex; align-items: center; }
.primary-nav a, .dropdown-toggle { min-height: 92px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border: 0; color: #172433; background: transparent; cursor: pointer; font-family: var(--display); font-size: .96rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.primary-nav > ul > li > a:hover, .dropdown-toggle:hover, .primary-nav a[aria-current="page"] { color: var(--red-600); }
.dropdown-toggle svg { width: .9em; height: .9em; transition: transform .2s ease; }
.has-dropdown.open > .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% - 14px);
  left: 0;
  width: 310px;
  margin: 0;
  padding: 10px;
  border-top: 4px solid var(--red-600);
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s ease;
}
.dropdown-menu-small { width: 210px; }
.dropdown-menu a { min-height: auto; display: block; padding: 12px 14px; line-height: 1.2; text-transform: none; }
.dropdown-menu a:hover { color: #fff; background: var(--navy-900); }
.has-dropdown:hover > .dropdown-menu, .has-dropdown:focus-within > .dropdown-menu, .has-dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-cta { margin-left: 3px; white-space: nowrap; }
.mobile-toggle { display: none; width: 48px; height: 48px; place-items: center; padding: 0; border: 0; color: var(--navy-900); background: transparent; }
.mobile-toggle svg { width: 28px; height: 28px; }
.mobile-toggle .close-icon { display: none; }
.mobile-toggle[aria-expanded="true"] .menu-icon { display: none; }
.mobile-toggle[aria-expanded="true"] .close-icon { display: block; }

.hero { position: relative; min-height: 655px; overflow: hidden; color: #fff; background: var(--navy-950); }
.hero-photo { position: absolute; inset: 0 0 0 40%; background: url("cms-hero-technician.jpg") center right / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,20,38,.99) 0%, rgba(3,27,50,.94) 40%, rgba(3,27,50,.57) 63%, rgba(3,27,50,.1) 100%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(90deg, var(--blue-500) 0 48%, var(--red-600) 48% 100%); }
.hero-inner { position: relative; min-height: 655px; display: flex; align-items: center; }
.hero-content { width: min(650px, 60%); padding-block: 80px; }
.hero-content .eyebrow { margin-bottom: 18px; color: #9cdcf7; font-size: 1rem; }
.hero h1 { max-width: 620px; margin-bottom: 5px; font-size: clamp(4rem, 7.2vw, 6.7rem); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.hero-heading-line { margin-bottom: 22px; color: #8dd8fa; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.hero-copy { max-width: 610px; margin-bottom: 31px; color: rgba(255,255,255,.9); font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.service-quicklinks { padding: 92px 0 100px; background: #fff; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading p:last-child { color: var(--muted); font-size: 1.06rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); box-shadow: var(--shadow); }
.service-card { position: relative; min-height: 405px; padding: 38px 30px 30px; border-right: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:last-child { border-right: 0; }
.service-card:hover { z-index: 2; transform: translateY(-8px); box-shadow: 0 18px 40px rgba(3, 38, 70, .15); }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--blue-600); }
.service-card.electrical-card::before { background: var(--red-600); }
.service-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 50%; color: #fff; background: var(--blue-600); }
.electrical-card .service-icon { background: var(--red-600); }
.service-icon svg { width: 31px; height: 31px; }
.service-category { margin-bottom: 7px; color: var(--blue-600); font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.electrical-card .service-category { color: var(--red-600); }
.service-card h3 { min-height: 58px; color: var(--navy-900); font-size: 1.8rem; text-transform: uppercase; }
.service-card p:not(.service-category) { color: var(--muted); font-size: .94rem; }
.service-card > a { position: absolute; left: 30px; bottom: 28px; font-size: .93rem; }

.on-call-banner { color: #fff; background: linear-gradient(100deg, var(--navy-900), #031b32); border-bottom: 5px solid var(--red-600); }
.on-call-inner { min-height: 215px; padding-block: 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.on-call-icon { width: 94px; height: 94px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; background: var(--red-600); box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.on-call-icon svg { width: 46px; height: 46px; }
.on-call-inner h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3rem); }
.on-call-inner p:last-child { margin-bottom: 0; color: rgba(255,255,255,.78); }
.on-call-phone { min-width: 275px; display: flex; align-items: center; gap: 15px; padding: 20px 24px; border: 2px solid rgba(255,255,255,.72); font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: .9; }
.on-call-phone svg { color: #ff4050; width: 34px; height: 34px; }
.on-call-phone small { display: block; margin-bottom: 7px; color: #9bdcf9; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.why-cms { padding: 94px 0 102px; background: var(--surface); }
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.benefit-grid article { padding: 13px 22px 8px; border-right: 1px solid #cfd8df; text-align: center; }
.benefit-grid article:last-child { border-right: 0; }
.benefit-grid svg { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--navy-800); }
.benefit-grid h3 { color: var(--navy-900); font-size: 1.45rem; text-transform: uppercase; }
.benefit-grid p { margin-bottom: 0; color: var(--muted); font-size: .87rem; }

.commercial-band { display: grid; grid-template-columns: 1fr 1fr; }
.commercial-panel { position: relative; min-height: 520px; overflow: hidden; color: #fff; background-position: center; background-size: cover; }
.hvac-panel { background-image: radial-gradient(circle at 75% 30%, rgba(34,146,205,.22), transparent 25%), linear-gradient(120deg, #062d55, #0b507e); }
.electrical-panel { background-image: radial-gradient(circle at 76% 34%, rgba(255,255,255,.12), transparent 25%), linear-gradient(120deg, #7d0710, #c8101b); }
.commercial-panel::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(135deg, transparent 0 45%, rgba(255,255,255,.25) 45% 46%, transparent 46% 100%), linear-gradient(45deg, transparent 0 45%, rgba(255,255,255,.15) 45% 46%, transparent 46% 100%); background-size: 38px 38px; }
.panel-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 75%); }
.panel-content { position: relative; width: min(100% - 60px, 560px); margin: 0 auto; padding: 78px 0 65px; }
.panel-content h2 { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.panel-content ul { display: grid; gap: 10px; margin: 24px 0 34px; padding: 0; list-style: none; }
.panel-content li { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.panel-content li svg { flex: 0 0 auto; width: 18px; height: 18px; }
.panel-content > a { color: #fff; }
.panel-content > a:hover { color: #fff; transform: translateX(4px); }

.about-preview { padding: 100px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .65fr); gap: 80px; align-items: center; }
.about-copy h2 { max-width: 760px; }
.about-copy > p:not(.eyebrow) { max-width: 750px; color: var(--muted); font-size: 1.02rem; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.location-card { position: relative; padding: 48px 40px 40px; color: #fff; background: var(--navy-900); box-shadow: var(--shadow); }
.location-card::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--red-600); }
.location-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-top: -80px; margin-bottom: 25px; border-radius: 50%; color: #fff; background: var(--red-600); box-shadow: 0 0 0 8px #fff; }
.location-icon svg { width: 31px; height: 31px; }
.location-card .eyebrow { color: #8ed5f5; }
.location-card h3 { font-size: 2rem; text-transform: uppercase; }
.location-card address { margin-bottom: 22px; color: rgba(255,255,255,.8); }
.location-card > a { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; }
.location-card > a:hover { color: #8ed5f5; }

.blog-preview { padding: 95px 0 105px; background: var(--surface); }
.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.heading-row h2 { margin-bottom: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(5,31,55,.07); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-visual { min-height: 190px; display: grid; place-items: center; color: rgba(255,255,255,.82); }
.blog-visual svg { width: 74px; height: 74px; }
/* Blog index only: slim colour band, no icon. Homepage cards keep the
   full-height icon panels. */
.blog-list .blog-visual { min-height: 48px; }
.blog-list .blog-visual svg { display: none; }
/* Blog-index posts with a real featured image keep a full-height band */
.blog-list .blog-visual.has-image { min-height: 210px; }
.blog-hvac { background: linear-gradient(135deg, #093862, #1396d4); }
.blog-electric { background: linear-gradient(135deg, #7e0710, #e21b2b); }
.blog-build { background: linear-gradient(135deg, #1c2d3d, #52697c); }
.blog-body { padding: 27px 27px 30px; }
.blog-category { margin-bottom: 7px; color: var(--blue-600); font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.blog-card h3 { font-size: 1.62rem; line-height: 1.08; }
.blog-card h3 a:hover { color: var(--red-600); }
.blog-card p:not(.blog-category) { color: var(--muted); font-size: .92rem; }
.read-more { font-size: .9rem; }

.final-cta { color: #fff; background: linear-gradient(105deg, #031b32, #073b67); }
.final-cta-inner { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta h2 { margin-bottom: 8px; }
.final-cta p:last-child { margin-bottom: 0; color: rgba(255,255,255,.75); }
.final-actions { display: flex; gap: 12px; flex: 0 0 auto; }

.site-footer { padding: 72px 0 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .95fr .75fr 1.15fr; gap: 40px; padding-bottom: 54px; }
.footer-brand { width: 155px; }
.footer-brand-column > p { max-width: 220px; margin-top: 20px; color: var(--muted); font-size: .87rem; }
.footer-column h2, .footer-contact h2 { margin-bottom: 17px; color: var(--navy-900); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li + li { margin-top: 8px; }
.footer-column a, .footer-contact { color: var(--muted); font-size: .88rem; }
.footer-column a:hover, .footer-contact a:hover { color: var(--red-600); }
.footer-contact h2 a { color: var(--navy-900); font-size: 1.8rem; }
.footer-contact address { margin: 20px 0 14px; }
.footer-bottom { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: #71808f; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--red-600); }

@media (max-width: 1120px) {
  .nav-inner { gap: 16px; }
  .primary-nav a, .dropdown-toggle { padding-inline: 8px; font-size: .9rem; }
  .nav-cta { padding-inline: 15px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { border-bottom: 1px solid var(--line); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(3), .service-card:nth-child(4) { border-bottom: 0; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 38px 0; }
  .benefit-grid article:nth-child(3) { border-right: 0; }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, .8fr) 1fr; }
  .footer-contact { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .utility-inner { min-height: 44px; }
  .utility-inner > p { display: none; }
  .utility-actions { width: 100%; justify-content: space-between; }
  .nav-inner { min-height: 80px; }
  .brand { width: 142px; }
  .brand-logo { width: 118px; }
  .mobile-toggle { display: grid; margin-left: auto; }
  .nav-cta { display: none; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.12); transition: max-height .35s ease; }
  .primary-nav.open { max-height: 80vh; overflow-y: auto; }
  .primary-nav > ul { display: block; padding: 12px 20px 22px; }
  .primary-nav > ul > li { display: block; border-bottom: 1px solid var(--line); }
  .primary-nav a, .dropdown-toggle { min-height: 55px; width: 100%; justify-content: space-between; padding: 0 8px; }
  .dropdown-menu { position: static; width: auto; display: none; padding: 0 0 12px 14px; border-top: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu a { min-height: 44px; }
  .has-dropdown:hover > .dropdown-menu:not(:focus-within) { display: none; }
  .has-dropdown.open:hover > .dropdown-menu { display: block; }
  .hero { min-height: 690px; }
  .hero-photo { inset: 0; background-position: 67% center; opacity: .72; }
  .hero-shade { background: linear-gradient(90deg, rgba(2,20,38,.98), rgba(2,20,38,.7)), linear-gradient(0deg, rgba(0,0,0,.5), transparent); }
  .hero-inner { min-height: 690px; }
  .hero-content { width: 100%; max-width: 680px; }
  .on-call-inner { min-height: auto; grid-template-columns: auto 1fr; padding-block: 44px; }
  .on-call-phone { grid-column: 2; width: fit-content; }
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .location-card { max-width: 560px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { display: grid; grid-template-columns: 230px 1fr; }
  .blog-visual { min-height: 100%; }
  .blog-list .blog-visual { min-height: 48px; }
  .blog-list .blog-visual.has-image { min-height: 210px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; padding-block: 55px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .on-call { font-size: .68rem; }
  .utility-phone { font-size: .95rem; }
  .hero { min-height: 720px; }
  .hero-inner { min-height: 720px; align-items: flex-end; }
  .hero-content { padding: 110px 0 74px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.3rem); }
  .hero-copy { font-size: .98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .service-quicklinks, .why-cms, .about-preview, .blog-preview { padding-block: 72px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .service-card:last-child { border-bottom: 0 !important; }
  .on-call-inner { grid-template-columns: 1fr; padding-block: 46px; text-align: center; }
  .on-call-icon { margin: 0 auto; }
  .on-call-phone { grid-column: auto; justify-self: center; min-width: 0; width: 100%; justify-content: center; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid article { border-right: 0; }
  .benefit-grid article:nth-child(odd) { border-right: 1px solid #cfd8df; }
  .commercial-band { grid-template-columns: 1fr; }
  .commercial-panel { min-height: 500px; }
  .panel-content { width: min(100% - 36px, 560px); }
  .heading-row { align-items: flex-start; flex-direction: column; }
  .blog-card { display: block; }
  .blog-visual { min-height: 170px; }
  .blog-list .blog-visual { min-height: 44px; }
  .blog-list .blog-visual.has-image { min-height: 190px; }
  .final-actions { width: 100%; flex-direction: column; }
  .final-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 22px; }
  .footer-bottom div { flex-wrap: wrap; gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ============================================================
   INTERIOR PAGES  (merged from interior.css, Aug 2026)
   Single stylesheet so every page loads identical styling.
   ============================================================ */
/* Interior pages */
.dropdown-toggle.current { color: var(--red-600); }
.primary-nav .dropdown-menu a[aria-current="page"] { color: #fff; background: var(--navy-900); }
.page-hero { position: relative; min-height: 410px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy-950); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("cms-hero-technician.jpg") 78% 44% / cover no-repeat; opacity: .48; transform: scale(1.015); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,20,38,.99) 0%, rgba(3,27,50,.94) 46%, rgba(3,27,50,.48) 78%, rgba(3,27,50,.18) 100%); }
.page-hero-electrical::after { background: linear-gradient(90deg, rgba(45,3,8,.98) 0%, rgba(82,5,12,.9) 46%, rgba(113,6,15,.48) 78%, rgba(3,27,50,.22) 100%); }
.page-hero-about::after, .page-hero-area::after, .page-hero-blog::after, .page-hero-contact::after, .page-hero-policy::after, .page-hero-post::after { background: linear-gradient(90deg, rgba(3,27,50,.99) 0%, rgba(6,45,85,.92) 48%, rgba(6,45,85,.48) 80%, rgba(3,27,50,.22) 100%); }
.page-hero::before { border-bottom: 7px solid var(--blue-500); }
.page-hero-electrical::before { border-bottom-color: var(--red-600); }
.page-hero-hvac::before { border-bottom-color: var(--blue-500); }
.page-hero-inner { position: relative; z-index: 2; padding-block: 85px; }
.page-hero h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(3.45rem, 7vw, 6.1rem); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.page-hero .page-hero-inner > p:last-child { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.88); font-size: 1.12rem; line-height: 1.72; }
.breadcrumbs { min-height: 58px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #71808e; font-size: .84rem; }
.breadcrumbs a { color: var(--navy-800); font-weight: 700; }
.breadcrumbs a:hover { color: var(--red-600); }
.crumb-sep { opacity: .4; }
.content-section { padding: 92px 0; }
.content-section.soft { background: var(--surface); }
.content-section.compact { padding-block: 68px; }
.intro-grid, .content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 78px; align-items: start; }
.prose { max-width: 790px; }
.prose h2, .content-copy h2 { color: var(--navy-900); }
.prose h3, .content-copy h3 { margin-top: 34px; color: var(--navy-900); font-size: 2rem; text-transform: uppercase; }
.prose p, .content-copy p { color: var(--muted); }
.prose .lead, .content-copy .lead { color: var(--ink); font-size: 1.17rem; line-height: 1.75; }
.prose a:not(.button), .article-content a:not(.button), .policy-content a { color: var(--blue-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sidebar-card { position: sticky; top: 120px; overflow: hidden; padding: 38px 34px 34px; color: #fff; background: var(--navy-900); box-shadow: var(--shadow); }
.sidebar-card.red { background: linear-gradient(145deg, #8b0710, var(--red-600)); }
.sidebar-card::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--red-600); }
.sidebar-card.red::after { background: #fff; opacity: .75; }
.sidebar-card h2 { margin-bottom: 20px; font-size: 2rem; }
.sidebar-card p { color: rgba(255,255,255,.78); }
.sidebar-card ul { display: grid; gap: 12px; margin: 22px 0 28px; padding: 0; list-style: none; }
.sidebar-card li { display: flex; align-items: flex-start; gap: 10px; }
.sidebar-card li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: #8ed5f5; }
.sidebar-card.red li svg { color: #fff; }
.sidebar-card .button { width: 100%; }
.section-heading.wide { max-width: 920px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; min-height: 292px; padding: 35px 30px 30px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 28px rgba(5,31,55,.06); }
.feature-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--blue-600); }
.electrical-page .feature-card::before { background: var(--red-600); }
.feature-card-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 50%; color: #fff; background: var(--blue-600); }
.electrical-page .feature-card-icon { background: var(--red-600); }
.feature-card-icon svg { width: 28px; height: 28px; }
.feature-card h3 { color: var(--navy-900); font-size: 1.72rem; text-transform: uppercase; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.split-band { display: grid; grid-template-columns: 1fr 1fr; color: #fff; background: var(--navy-900); }
.split-band > div { padding: 74px max(40px, calc((100vw - var(--container))/2)); }
.split-band > div:first-child { padding-right: 70px; }
.split-band > div:last-child { padding-left: 70px; background: linear-gradient(145deg, #0a416f, #062d55); }
.electrical-page .split-band > div:last-child { background: linear-gradient(145deg, #9e0812, #6d0710); }
.split-band h2 { font-size: clamp(2.6rem, 4vw, 4rem); }
.split-band p { color: rgba(255,255,255,.78); }
.check-list { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 13px 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; }
.check-list svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 4px; color: #8ed5f5; }
.electrical-page .check-list svg { color: #ff9ba3; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: process; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.process-step { position: relative; min-height: 245px; padding: 34px 28px; border-right: 1px solid var(--line); counter-increment: process; }
.process-step:last-child { border-right: 0; }
.process-step::before { content: "0" counter(process); display: block; margin-bottom: 24px; color: var(--blue-600); font-family: var(--display); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.electrical-page .process-step::before { color: var(--red-600); }
.process-step h3 { color: var(--navy-900); text-transform: uppercase; }
.process-step p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 52px 24px 0; color: var(--navy-900); cursor: pointer; font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 18px; color: var(--red-600); font-size: 2rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { max-width: 790px; padding: 0 42px 24px 0; color: var(--muted); }
.service-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-nav-card { padding: 28px; border: 1px solid var(--line); background: #fff; }
.service-nav-card h3 { color: var(--navy-900); font-size: 1.55rem; text-transform: uppercase; }
.service-nav-card p { color: var(--muted); font-size: .9rem; }
.service-nav-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--red-600); font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 35px; }
.stat-card { padding: 30px; border-left: 5px solid var(--blue-600); background: var(--surface); }
.stat-card strong { display: block; color: var(--navy-900); font-family: var(--display); font-size: 2.6rem; line-height: 1; text-transform: uppercase; }
.stat-card span { display: block; margin-top: 8px; color: var(--muted); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 34px; color: #fff; background: var(--navy-900); }
.value-card:nth-child(2) { background: var(--blue-600); }
.value-card:nth-child(3) { background: var(--red-600); }
.value-card svg { width: 42px; height: 42px; margin-bottom: 22px; }
.value-card h3 { text-transform: uppercase; }
.value-card p { margin-bottom: 0; color: rgba(255,255,255,.8); }
.area-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 58px; align-items: stretch; }
.area-card { padding: 48px; color: #fff; background: var(--navy-900); box-shadow: var(--shadow); }
.area-card h2 { font-size: 2.8rem; }
.area-card address { margin: 24px 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.area-card .button { margin-top: 8px; }
.map-graphic { position: relative; min-height: 440px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, #edf5f8, #dce9ee); box-shadow: var(--shadow); }
.map-graphic::before, .map-graphic::after { content: ""; position: absolute; border: 2px solid rgba(8,120,189,.2); border-radius: 46% 54% 57% 43%; }
.map-graphic::before { width: 520px; height: 350px; left: -80px; top: 40px; transform: rotate(-12deg); }
.map-graphic::after { width: 390px; height: 500px; right: -80px; top: -80px; transform: rotate(18deg); }
.map-roads { position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(28deg, transparent 0 52px, rgba(6,45,85,.12) 53px 55px, transparent 56px 105px), repeating-linear-gradient(116deg, transparent 0 73px, rgba(200,16,27,.1) 74px 76px, transparent 77px 145px); }
.map-pin { position: absolute; left: 55%; top: 48%; z-index: 2; width: 86px; height: 86px; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.78); border-radius: 50% 50% 50% 0; color: #fff; background: var(--red-600); box-shadow: var(--shadow); transform: rotate(-45deg); }
.map-pin svg { width: 34px; height: 34px; transform: rotate(45deg); }
.map-label { position: absolute; left: calc(55% - 48px); top: calc(48% + 92px); z-index: 2; padding: 8px 14px; color: var(--navy-900); background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.12); font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry-grid div { padding: 24px; border: 1px solid var(--line); background: #fff; text-align: center; }
.industry-grid svg { width: 38px; height: 38px; margin: 0 auto 15px; color: var(--navy-800); }
.industry-grid strong { display: block; color: var(--navy-900); font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-list .blog-card { height: 100%; display: flex; flex-direction: column; }
.blog-list .blog-body { display: flex; flex: 1; flex-direction: column; }
.blog-list .blog-body .read-more { margin-top: auto; }
.blog-meta { margin-bottom: 14px; color: #71808f; font-size: .8rem; }
.blog-intro { max-width: 840px; margin-bottom: 42px; }
.blog-intro p { color: var(--muted); font-size: 1.05rem; }
.article-hero { min-height: 500px; }
.article-hero .page-hero-inner { max-width: 960px; }
.article-hero h1 { font-size: clamp(3.25rem, 6vw, 5.5rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; color: rgba(255,255,255,.72); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 75px; align-items: start; }
.article-content { max-width: 800px; }
.article-content .lead { color: var(--ink); font-size: 1.22rem; line-height: 1.75; }
.article-content h2 { margin-top: 48px; color: var(--navy-900); font-size: 2.6rem; }
.article-content h3 { margin-top: 34px; color: var(--navy-900); font-size: 1.8rem; text-transform: uppercase; }
.article-content p, .article-content li { color: var(--muted); }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li + li { margin-top: 9px; }
.article-note { margin: 34px 0; padding: 28px 30px; border-left: 6px solid var(--red-600); background: var(--surface); }
.article-note strong { display: block; margin-bottom: 7px; color: var(--navy-900); font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.article-sidebar { position: sticky; top: 120px; }
.article-sidebar .sidebar-card { position: static; }
.article-toc { margin-bottom: 22px; padding: 26px; border: 1px solid var(--line); background: #fff; }
.article-toc h2 { font-size: 1.45rem; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li + li { margin-top: 7px; }
.article-toc a { color: var(--navy-800); font-size: .88rem; font-weight: 700; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 65px; align-items: start; }
.contact-form-wrap { padding: 42px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.contact-form-wrap h2 { color: var(--navy-900); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: var(--navy-900); font-family: var(--display); font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b9c5cf; color: var(--ink); background: #fff; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(19,150,212,.2); border-color: var(--blue-600); }
/* Contact form failure notice (shown via ?sent=error) */
.form-alert { display: grid; gap: .35rem; margin-bottom: 1.5rem; padding: 1rem 1.15rem;
  border: 1px solid #c8102e; border-left-width: 5px; background: #fdf2f3; color: #7d0a1d;
  font-size: .93rem; line-height: 1.55; }
.form-alert strong { font-size: 1rem; }
.form-alert a { color: #c8102e; font-weight: 600; }
.form-alert[hidden] { display: none; }
.form-help { margin: 17px 0 22px; color: var(--muted); font-size: .83rem; }
.hp-field { position: absolute !important; left: -9999px !important; }
.contact-sidebar { display: grid; gap: 22px; }
.contact-info-card { padding: 34px; color: #fff; background: var(--navy-900); }
.contact-info-card.red { background: var(--red-600); }
.contact-info-card h2 { font-size: 1.8rem; }
.contact-info-card p, .contact-info-card address { color: rgba(255,255,255,.8); }
.contact-info-card a { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; }
.contact-info-card svg { flex: 0 0 auto; }
.policy-content { max-width: 880px; margin: 0 auto; }
.policy-content h2 { margin-top: 45px; color: var(--navy-900); font-size: 2.35rem; }
.policy-content h3 { margin-top: 30px; color: var(--navy-900); font-size: 1.6rem; text-transform: uppercase; }
.policy-content p, .policy-content li { color: var(--muted); }
.policy-content ul { padding-left: 22px; }
.policy-meta { margin-bottom: 30px; color: #71808f; font-size: .9rem; }
.notice-box { margin: 28px 0; padding: 28px 30px; border-left: 6px solid var(--blue-600); background: var(--surface); }
.notice-box.warning { border-left-color: var(--red-600); }
.notice-box p:last-child { margin-bottom: 0; }
.error-page { min-height: 65vh; display: grid; place-items: center; padding: 90px 20px; text-align: center; }
.error-page strong { color: var(--blue-600); font-family: var(--display); font-size: clamp(6rem, 18vw, 13rem); line-height: .75; }
.error-page h1 { margin: 30px 0 16px; color: var(--navy-900); font-size: clamp(2.7rem, 6vw, 5rem); text-transform: uppercase; }
.error-page p { max-width: 620px; margin-inline: auto; color: var(--muted); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button-dark { color: #fff; background: var(--navy-900); }
.button-dark:hover { background: var(--navy-950); }
@media (max-width: 980px) {
  .intro-grid, .content-grid, .contact-layout, .article-layout, .area-layout { grid-template-columns: 1fr; gap: 50px; }
  .sidebar-card, .article-sidebar { position: static; }
  .feature-grid, .blog-list { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-nav-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .split-band { grid-template-columns: 1fr; }
  .split-band > div, .split-band > div:first-child, .split-band > div:last-child { padding: 60px max(30px, calc((100vw - var(--container))/2)); }
}
@media (max-width: 680px) {
  .page-hero { min-height: 440px; }
  .page-hero::before { background-position: 68% center; }
  .page-hero-inner { padding-block: 72px; }
  .page-hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .content-section { padding-block: 70px; }
  .feature-grid, .blog-list, .service-nav-grid, .industry-grid, .value-grid, .stat-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .process-step:last-child { border-bottom: 0 !important; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px 22px; }
  .map-graphic { min-height: 350px; }
  .article-hero { min-height: 520px; }
  .article-meta { flex-direction: column; gap: 5px; }
}
