/* Heartland Electric: bold and rugged
   Heavy condensed headlines, a dark navy frame, big photography, and amber as the
   one loud color. Slanted cuts echo the bolt in the logo mark. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0A0A6A;
  --navy-deep: #06063A;
  --ink: #14151A;
  --coal: #16171D;
  --concrete: #E4E5E8;
  --amber: #FFB400;
  --head: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --slant: clamp(24px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 130px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.contact :focus-visible, .services :focus-visible { outline-color: var(--navy); }
.site-header :focus-visible, .hero :focus-visible, .about :focus-visible, .site-footer :focus-visible, .services.dark :focus-visible { outline-color: var(--amber); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  color: var(--navy-deep);
}
h2 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; }
h4 { font-size: 1.55rem; font-weight: 800; line-height: 1; }
p { margin: 0 0 1em; }

.section-lede { font-size: 1.3rem; font-weight: 500; max-width: 36em; margin: 18px 0 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy-deep); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border: 3px solid transparent;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-signal { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); }
.btn-signal:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-dark { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }

/* Top strip and header */
.strip { background: var(--amber); color: var(--navy-deep); font-weight: 600; font-size: 0.98rem; }
.strip p { margin: 0; padding: 7px 0; }
.strip a { color: var(--navy-deep); font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); border-bottom: 4px solid var(--navy); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; }
.brand img { height: 96px; width: auto; }
#nav { display: flex; align-items: center; gap: 34px; }
#nav a:not(.btn) {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}
#nav a:not(.btn):hover { border-bottom-color: var(--amber); }
#nav .nav-call { padding: 0.6rem 1.2rem; font-size: 1.35rem; }

.menu-btn {
  display: none;
  background: none;
  border: 3px solid var(--amber);
  color: var(--amber);
  padding: 8px 16px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(620px, 88vh, 860px);
  color: #fff;
  background: var(--navy-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,58,0.90) 0%, rgba(6,6,58,0.62) 42%, rgba(6,6,58,0.08) 78%, rgba(6,6,58,0) 100%),
    linear-gradient(0deg, rgba(6,6,58,0.7) 0%, rgba(6,6,58,0) 30%);
}
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 56px 40px; }
.hero h1 {
  color: #fff;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  max-width: 7.2em;
  border-left: 14px solid var(--amber);
  padding-left: clamp(16px, 2.4vw, 32px);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.lede { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 500; max-width: 32em; margin: 28px 0 34px; padding-left: calc(14px + clamp(16px, 2.4vw, 32px)); color: #F1F2FA; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-left: calc(14px + clamp(16px, 2.4vw, 32px)); }

.hero-band { position: relative; background: rgba(6,6,58,0.94); padding-bottom: var(--slant); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
.trades { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-family: var(--head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: uppercase; letter-spacing: 0.03em; }
.trades li { padding-right: 26px; }
.trades li + li { padding-left: 26px; border-left: 4px solid var(--amber); }
.years { margin: 0; background: var(--amber); color: var(--navy-deep); padding: 8px 18px; font-family: var(--head); font-weight: 900; font-size: clamp(1.3rem, 2.2vw, 1.7rem); text-transform: uppercase; letter-spacing: 0.03em; }

/* Intro */
.intro { padding-block: clamp(48px, 7vw, 96px) clamp(16px, 3vw, 40px); }
.intro-text { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.35; max-width: 30em; margin: 0; color: var(--navy-deep); }

/* Services */
.services { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: clamp(32px, 5vw, 56px); }
.tile { position: relative; min-height: clamp(420px, 44vw, 600px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); color: #fff; border-top: 8px solid var(--amber); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tile:nth-child(2) img { object-position: 50% 62%; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,58,0.96) 0%, rgba(6,6,58,0.62) 42%, rgba(6,6,58,0) 74%); }
.tile-body { position: relative; z-index: 1; padding: clamp(20px, 3vw, 36px); }
.tile h3 { color: #fff; font-size: clamp(2.4rem, 4vw, 3.4rem); }
.tile p { margin: 12px 0 0; color: #ECEEFA; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .tile:hover img { transform: scale(1.04); } }

.list-head { margin-top: clamp(56px, 8vw, 96px); }
.svc-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 5vw, 72px); }
.svc-list li { border-left: 8px solid var(--navy); padding: 2px 0 2px 20px; }
.svc-list p { margin: 8px 0 0; font-weight: 500; }

/* Projects */
.projects { background: var(--concrete); padding-top: clamp(56px, 8vw, 104px); }
.plants { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.plants li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; padding: 18px 0 14px; border-bottom: 3px solid var(--navy); }
.plant { font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); text-transform: uppercase; line-height: 1; color: var(--navy-deep); }
.town { font-weight: 600; font-size: 1.05rem; color: #3A3C46; }
.tag { display: inline-block; background: var(--amber); color: var(--navy-deep); font-weight: 700; font-size: 0.85rem; padding: 2px 8px; margin-right: 8px; }
.fine { margin: 20px 0 0; font-size: 0.9rem; color: #4A4C58; }
.band { margin-top: clamp(40px, 6vw, 72px); }
.band img { width: 100%; height: clamp(260px, 36vw, 480px); object-fit: cover; object-position: 80% 55%; clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); cursor: zoom-in; }

/* About */
.about { background: var(--navy); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.about h2, .about h3 { color: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.about-grid > div:first-child h2 { margin-bottom: 28px; }
.about-grid > div:first-child p { font-size: 1.25rem; font-weight: 500; max-width: 33em; color: #ECEEFA; }
.about-side h3 { font-size: 1.9rem; margin-bottom: 14px; }
.about-side h3:not(:first-child) { margin-top: 40px; }
.about-side p { color: #ECEEFA; font-weight: 500; }
.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.states li { border-top: 6px solid var(--amber); padding-top: 8px; font-family: var(--head); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }

/* Emergency */
.emergency { background: var(--amber); color: var(--navy-deep); }
.emergency-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 30px; }
.emergency p { margin: 0; font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; }

/* Contact */
.contact { background: var(--concrete); padding-block: clamp(56px, 8vw, 104px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
address { font-style: normal; margin-top: 32px; font-size: 1.2rem; line-height: 1.65; }
form { background: #fff; padding: clamp(20px, 3.5vw, 40px); border-top: 10px solid var(--amber); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 0.75rem 0.85rem; }
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B3261E; border-width: 3px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1B6B2F; }
.form-status.err { color: #B3261E; }
form .btn[disabled] { opacity: 0.6; cursor: progress; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #E6E8F7; padding-top: 56px; border-top: 8px solid var(--amber); }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 260px repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot-logo { width: 240px; height: auto; }
.foot-grid p { margin: 0; }
.foot-base { margin-top: 40px; padding-bottom: 28px; font-size: 0.95rem; }
.foot-base p { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(6,6,40,0.94); padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 88vh; width: auto; height: auto; }

/* Tablet and phone */
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); border-bottom: 4px solid var(--amber); padding: 8px var(--gut) 22px; }
  #nav.open { display: flex; }
  #nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .nav-call { margin-top: 18px; }
  .bar { min-height: 92px; }
  .brand img { height: 76px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 400px; }
  .svc-list, .plants { grid-template-columns: minmax(0, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-logo { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .trades li { padding-right: 14px; }
  .trades li + li { padding-left: 14px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
  .hero h1 { border-left-width: 10px; }
  .lede, .actions { padding-left: calc(10px + 16px); }
}

/* Membership logos */
.member-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.member-logos img { width: 100%; height: auto; background: #fff; padding: 12px 14px; border-top: 6px solid var(--amber); object-fit: contain; height: 96px; }
@media (max-width: 560px) { .member-logos { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Final additions: engineering headline, credentials, project tags */
.band-inner { justify-content: flex-start; }
.trades { flex-basis: 100%; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.creds { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; font-family: var(--head); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.7rem); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
.creds span + span::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); margin: 0 18px 4px 18px; }

.eng { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(32px, 5vw, 56px); padding: clamp(28px, 4vw, 48px); background: var(--navy); color: #fff; border-left: 14px solid var(--amber); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.eng h3 { color: #fff; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.9; margin: 4px 0 16px; }
.eng-kicker { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.eng-main p:last-child { margin: 0; font-size: 1.2rem; font-weight: 500; color: #ECEEFA; max-width: 34em; }
.eng-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eng-list li { border-top: 4px solid var(--amber); padding-top: 8px; font-family: var(--head); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; line-height: 1.05; }

.plants li > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { margin-right: 0; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.tag-partner { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.tag-active { background: var(--navy); color: #fff; }
.tag-active::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 6px; }

.about-creds { margin-top: 28px; padding: 16px 20px; border-left: 8px solid var(--amber); background: rgba(255,255,255,0.08); }
.about-grid > div:first-child p.about-creds { font-size: 1.25rem; }
.about-creds strong { font-family: var(--head); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--amber); display: block; }

@media (max-width: 960px) { .eng { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .eng { border-left-width: 10px; } .creds span + span::before { margin: 0 10px 4px 10px; } .creds { letter-spacing: 0.03em; } }

/* Plants: independent columns so untagged rows stay compact */
.plants { display: block; column-count: 2; column-gap: clamp(24px, 5vw, 72px); }
.plants li { break-inside: avoid; }
@media (max-width: 960px) { .plants { column-count: 1; } }
