:root {
  --bg: #05080a;
  --bg-2: #0b1115;
  --panel: rgba(13, 20, 24, 0.86);
  --panel-strong: #10191d;
  --steel: #c7d3d9;
  --text: #f5f8fa;
  --muted: #a6b3bb;
  --line: rgba(148, 186, 199, 0.24);
  --cyan: #18c8ff;
  --cyan-soft: rgba(24, 200, 255, 0.18);
  --amber: #ffc319;
  --amber-2: #ff8d0a;
  --danger: #e53935;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(24, 200, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgba(255, 195, 25, 0.15), transparent 24rem),
    linear-gradient(180deg, #030506, var(--bg) 28%, #071015 100%);
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", "Oswald", Impact, system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(2, 5, 7, 0.94), rgba(2, 5, 7, 0.64));
  border-bottom: 1px solid rgba(24, 200, 255, 0.2);
  backdrop-filter: blur(14px);
}

.brand img {
  width: clamp(170px, 22vw, 310px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 13, 16, 0.86);
  color: var(--text);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  padding: 138px 0 70px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 6, 8, 0.92) 0%, rgba(3, 6, 8, 0.72) 43%, rgba(3, 6, 8, 0.22) 100%),
    url("assets/electrical-hazards-banner.png") center / cover no-repeat;
  opacity: 0.58;
}

.hero-bg::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
}

.energy-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(255, 195, 25, 0.52) 48%, transparent 50%),
    linear-gradient(110deg, transparent 0 58%, rgba(24, 200, 255, 0.36) 59%, transparent 61%);
  filter: blur(18px);
  opacity: 0.62;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: clamp(30px, 7vw, 86px);
  min-height: calc(100vh - 208px);
}

.hero-copy {
  max-width: 760px;
}

.hero-logo {
  width: min(660px, 100%);
  margin: 0 0 18px -10px;
  filter: drop-shadow(0 0 28px rgba(24, 200, 255, 0.22));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6vw, 5.15rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(255, 195, 25, 0.18);
}

.hero-copy p,
.section-heading p,
.product-copy p,
.training-content p {
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #111;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 0 30px rgba(255, 195, 25, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(9, 17, 21, 0.74);
  border-color: rgba(24, 200, 255, 0.48);
  box-shadow: 0 0 24px rgba(24, 200, 255, 0.16);
}

.hero-panel,
.service-card,
.permit-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.panel-head {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.panel-head span,
.status-row span,
.workflow span,
.preview-top span,
.detail-grid span {
  display: block;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-head strong {
  display: block;
  margin-top: 7px;
  font-size: 1.42rem;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 186, 199, 0.14);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  color: var(--steel);
  font-size: 0.95rem;
  text-align: right;
}

.services,
.product,
.eewp-hero,
.copy-section,
.features,
.audience,
.how-it-works,
.compliance,
.training {
  padding: clamp(70px, 9vw, 118px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 245px;
  padding: 22px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  color: #101316;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

.icon-box svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  text-transform: uppercase;
}

.service-card p,
.workflow p,
.detail-grid p,
.training-list,
.form-status {
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
  line-height: 1.58;
}

.product,
.eewp-hero {
  background:
    linear-gradient(180deg, rgba(24, 200, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 195, 25, 0.05), transparent 60%);
}

.product-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(28px, 7vw, 78px);
  align-items: center;
  margin-bottom: 34px;
}

.product-art {
  display: grid;
  place-items: center;
}

.product-art img {
  width: min(340px, 100%);
  border-radius: var(--radius);
  filter: drop-shadow(0 0 28px rgba(24, 200, 255, 0.28));
}

.product-copy p {
  max-width: 690px;
  margin: 18px 0 24px;
}

.product-copy h3 {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--amber);
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workflow div {
  padding: 18px;
  border-left: 3px solid var(--amber);
  background: rgba(11, 18, 22, 0.72);
}

.workflow strong {
  display: block;
  margin: 5px 0 8px;
  color: var(--text);
  font-size: 1.26rem;
  text-transform: uppercase;
}

.workflow p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.permit-preview {
  overflow: hidden;
}

.copy-section {
  background:
    radial-gradient(circle at 15% 0, rgba(255, 195, 25, 0.1), transparent 24rem),
    radial-gradient(circle at 90% 25%, rgba(24, 200, 255, 0.08), transparent 28rem);
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: start;
}

.rich-copy {
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.78;
}

.rich-copy p:last-child {
  margin-bottom: 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.problem-grid article,
.feature-list details,
.step-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    rgba(13, 20, 24, 0.72);
  box-shadow: var(--shadow);
}

.problem-grid article {
  min-height: 205px;
  padding: 22px;
}

.problem-grid h3 {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 1.22rem;
  text-transform: uppercase;
}

.problem-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
  line-height: 1.58;
}

.features {
  background:
    linear-gradient(180deg, rgba(255, 195, 25, 0.05), transparent 40%),
    rgba(2, 5, 7, 0.28);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list details {
  padding: 0;
  overflow: hidden;
}

.feature-list summary {
  position: relative;
  display: block;
  padding: 20px 58px 20px 22px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.feature-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 18px;
  height: 18px;
  content: "";
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
}

.feature-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.feature-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
  line-height: 1.72;
}

.audience-grid .service-card {
  min-height: 230px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 235px;
  padding: 58px 18px 18px;
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
  line-height: 1.58;
}

.step-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  counter-increment: steps;
  content: "0" counter(steps);
  color: var(--amber);
  font-family: "Arial Narrow", "Roboto Condensed", "Oswald", Impact, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.step-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", "Oswald", Impact, system-ui, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.standards ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.standards li {
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.04);
}

.standards strong {
  color: var(--text);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 9, 0.84);
}

.preview-top strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.preview-body {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 340px;
}

.permit-list {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: rgba(3, 8, 10, 0.42);
}

.permit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 13px 14px;
  margin-bottom: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(148, 186, 199, 0.14);
  border-radius: var(--radius);
  background: rgba(12, 20, 24, 0.76);
  cursor: pointer;
}

.permit-row span {
  font-family: Arial, system-ui, sans-serif;
  font-size: 0.92rem;
}

.permit-row strong {
  color: var(--amber);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.permit-row.active,
.permit-row:hover {
  border-color: rgba(24, 200, 255, 0.58);
  box-shadow: 0 0 22px rgba(24, 200, 255, 0.12);
}

.permit-detail {
  padding: clamp(20px, 4vw, 34px);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-header h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  text-transform: uppercase;
}

.detail-header span {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #111;
  background: var(--amber);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid p {
  min-height: 84px;
  padding: 15px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 186, 199, 0.13);
  border-radius: var(--radius);
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.progress-track span {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid rgba(148, 186, 199, 0.16);
  border-radius: var(--radius);
}

.progress-track .done {
  color: #111;
  background: var(--amber);
}

.progress-track .current {
  color: var(--text);
  border-color: rgba(24, 200, 255, 0.68);
  box-shadow: inset 0 0 18px rgba(24, 200, 255, 0.13);
}

.training {
  min-height: 560px;
  display: flex;
  align-items: end;
}

.training-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.training-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.training::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(3, 6, 8, 0.96), rgba(3, 6, 8, 0.74) 48%, rgba(3, 6, 8, 0.28));
}

.training-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  gap: clamp(26px, 6vw, 74px);
  align-items: end;
}

.training-content p {
  max-width: 660px;
  margin-top: 18px;
}

.training-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-list li {
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--amber) 0 16px, transparent 16px) left center / 22px 3px no-repeat;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #020405;
}

.footer-inner {
  justify-content: space-between;
}

.footer-inner img {
  width: 230px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, system-ui, sans-serif;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: rgba(2, 5, 7, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero-layout,
  .section-heading,
  .product-layout,
  .split-copy,
  .training-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .service-grid,
  .workflow,
  .detail-grid,
  .problem-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-art {
    justify-content: start;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .permit-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand img {
    width: 174px;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-logo {
    width: 100%;
    margin-left: 0;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .hero-actions,
  .button,
  .footer-inner {
    width: 100%;
  }

  .service-grid,
  .workflow,
  .detail-grid,
  .problem-grid,
  .step-list,
  .progress-track {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .problem-grid article,
  .step-list li {
    min-height: auto;
  }

  .detail-header {
    display: block;
  }

  .detail-header span {
    display: inline-block;
    margin-top: 12px;
  }

  .training {
    min-height: 620px;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
