/* ==========================================================================
   ST BrightVolt — brand tokens
   Colour: deep navy (logo ink), electric gold (logo bolt), warm off-white
   Type: Oswald (display, condensed/industrial) + Inter (body) + JetBrains Mono (spec/cert data)
   Signature element: the "circuit trace" divider — a thin line that jogs at
   right angles like a PCB trace, echoing the bolt-in-a-circle mark.
   ========================================================================== */

:root {
  --navy-950: #0a1c2b;
  --navy-900: #0f2436;
  --navy-800: #16324a;
  --navy-700: #234161;
  --slate-500: #52708a;
  --slate-300: #9db2c4;
  --paper-100: #faf8f3;
  --paper-050: #fffdf9;
  --gold-500: #f5b400;
  --gold-600: #d99a00;
  --gold-100: #fef3d4;
  --line: rgba(15, 36, 54, 0.12);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper-100);
  color: var(--navy-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  font-weight: 600;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------- Circuit-trace divider (signature element) ---------- */
.trace {
  height: 22px;
  width: 100%;
  overflow: hidden;
}
.trace svg { width: 100%; height: 100%; display: block; }

.trace-line {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-600); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--paper-100);
  color: var(--paper-100);
}
.btn-ghost:hover { background: rgba(250,248,243,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--paper-050); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-050);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand-name span { color: var(--gold-600); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main-nav a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy-950);
  border-color: var(--gold-500);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--navy-700);
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-900);
  color: var(--paper-050);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: end;
}
.hero-copy { padding-bottom: 64px; }
.hero-copy .eyebrow { color: var(--gold-500); }
.hero h1 {
  color: var(--paper-050);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-500);
}
.hero-sub {
  color: var(--slate-300);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  position: relative;
  align-self: end;
  height: 100%;
}
.hero-media img {
  width: 100%;
  border-radius: 4px 4px 0 0;
  object-fit: cover;
  max-height: 560px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy-950);
  border-top: 1px solid rgba(250,248,243,0.08);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  padding: 20px 24px;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--slate-300);
  white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.section-head p { color: var(--slate-500); font-size: 1.05rem; }

.section-alt { background: var(--paper-050); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper-100);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-600);
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.service-card p { color: var(--slate-500); font-size: 0.96rem; margin-bottom: 0; flex-grow: 1; }
.service-card a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--navy-800);
  border-bottom: 1px solid var(--gold-500);
  align-self: flex-start;
  padding-bottom: 2px;
}
.service-card a:hover { color: var(--gold-600); }
.bolt-icon { color: var(--gold-500); }

/* ---------- Coverage / area ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.coverage-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.coverage-list li {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--navy-800);
}
.coverage-note {
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  padding: 16px 20px;
  font-size: 0.94rem;
  color: var(--navy-800);
}
.coverage-map {
  background: var(--navy-900);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cert-card {
  border: 1px solid var(--line);
  background: var(--paper-050);
  padding: 28px;
  position: relative;
}
.cert-card .cert-mark {
  width: 40px; height: 40px;
  margin-bottom: 16px;
}
.cert-card h4 {
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
  line-height: 1.3;
}
.cert-card .cert-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-600);
  display: block;
  margin-bottom: 12px;
}
.cert-card .cert-body {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.cert-card.pending {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--slate-500);
}
.cert-card.pending h4 { color: var(--slate-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--paper-050);
  text-align: center;
}
.cta-band h2 { color: var(--paper-050); }
.cta-band p { color: var(--slate-300); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250,248,243,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 38px; }
.footer-brand span { font-family: var(--font-display); color: var(--paper-050); font-size: 1.05rem; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy-900);
  color: var(--paper-050);
  padding: 56px 0 48px;
}
.page-hero h1 { color: var(--paper-050); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--slate-300); max-width: 56ch; margin-bottom: 0; }

/* ---------- Services page detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-head .eyebrow { margin-bottom: 10px; }
.service-detail-head h2 { font-size: 1.7rem; }
.service-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.service-detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--navy-800);
}
.service-detail-list svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-500); }

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.55fr 0.45fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--paper-050);
  padding: 40px 36px;
  border-radius: 4px;
}
.contact-info-card h3 { color: var(--paper-050); font-size: 1.2rem; }
.contact-info-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(250,248,243,0.1);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: block;
  margin-bottom: 4px;
}
.contact-info-row .value { font-size: 1rem; color: var(--paper-050); }
.contact-info-row .value.muted { color: var(--slate-300); font-size: 0.88rem; }

form.contact-form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper-050);
  border-radius: 2px;
  color: var(--navy-900);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-100);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--slate-500); }
.form-success {
  display: none;
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--navy-800);
  margin-top: 8px;
}
.form-success.show { display: block; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .header-phone { display: block; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-media { max-height: 320px; overflow: hidden; }
  .hero-copy { padding-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-detail { grid-template-columns: 1fr; gap: 20px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-050);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}
