/* ==========================================================================
   HIS KINGDOM ELECTRIC — DESIGN SYSTEM
   Palette: deep navy/black base, gold accent, electric-blue glow
   Type: Oswald (display, condensed/technical) + Source Serif 4 (body, trust)
          JetBrains Mono (utility/readouts)
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-950: #05070d;
  --navy-900: #0a0e1a;
  --navy-800: #10182b;
  --navy-700: #182238;
  --navy-600: #24304a;
  --gold-500: #d4af37;
  --gold-400: #e9c766;
  --gold-300: #f3dd9a;
  --blue-500: #3e8ede;
  --blue-400: #6fb3f0;
  --blue-300: #9ed3f8;
  --ivory-100: #f4f1e8;
  --ivory-200: #e6e1d3;
  --slate-400: #8b93a6;
  --slate-500: #6b7284;
  --success: #4caf7d;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-glow-gold: 0 0 24px rgba(212, 175, 55, 0.25);
  --shadow-glow-blue: 0 0 32px rgba(62, 142, 222, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--navy-950);
  color: var(--ivory-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory-100);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--ivory-200); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(212,175,55,0.38); }

.btn-outline {
  background: transparent;
  color: var(--ivory-100);
  border-color: var(--navy-600);
}
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-300); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-400);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--gold-400); }
.top-bar .tb-emergency { color: var(--blue-300); }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-700);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 58px; width: auto; }
.brand-text { font-family: var(--font-display); line-height: 1.1; }
.brand-text .k { font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ivory-100); }
.brand-text .e { font-size: 0.65rem; letter-spacing: 0.28em; color: var(--gold-400); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--ivory-200);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  position: relative;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold-400); border-color: var(--gold-500); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--gold-400);
  white-space: nowrap;
}
.nav-phone span { display: block; font-size: 0.65rem; letter-spacing: 0.16em; color: var(--slate-400); text-transform: uppercase; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
  color: var(--ivory-100);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  nav.main-nav { position: fixed; inset: 84px 0 0 0; background: var(--navy-950); flex-direction: column; padding: 32px 24px; gap: 4px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--navy-700); font-size: 1.05rem; }
  .menu-toggle { display: flex; }
  .nav-cta .btn-primary span.label { display: none; }
  .brand img { height: 46px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(62,142,222,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(212,175,55,0.12), transparent 55%),
    var(--navy-950);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 18px 0 22px; }
.hero h1 .accent { color: var(--gold-400); }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; color: var(--ivory-200); margin-bottom: 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-400);
}
.trust-row strong { color: var(--gold-400); display: block; font-size: 1.5rem; font-family: var(--font-mono); }

.hero-panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-glow-blue);
}
.hero-panel h3 { color: var(--blue-300); margin-bottom: 6px; }
.hero-panel p { font-size: 0.95rem; margin-bottom: 20px; }
.hero-panel ul { list-style: none; margin-bottom: 24px; }
.hero-panel li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--navy-700); font-family: var(--font-mono); font-size: 0.88rem; color: var(--ivory-200); }
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li::before { content: "\26A1"; color: var(--gold-500); }

/* ---------- Bolt divider (signature element) ---------- */
.bolt-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 46px;
  background: var(--navy-950);
}
.bolt-divider svg { height: 100%; width: auto; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--navy-900); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold-500); transform: translateY(-3px); }
.card .icon { font-size: 1.6rem; color: var(--gold-400); margin-bottom: 16px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card a.card-link { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--blue-300); letter-spacing: 0.04em; }
.card a.card-link:hover { color: var(--blue-400); }

/* ---------- Service area chips ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.area-chips a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 18px;
  border: 1px solid var(--navy-600);
  border-radius: 999px;
  color: var(--ivory-200);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.area-chips a:hover { border-color: var(--gold-500); color: var(--gold-400); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
}
.stats-strip .container { display: flex; justify-content: space-between; padding: 40px 24px; flex-wrap: wrap; gap: 24px; }
.stat { font-family: var(--font-mono); text-align: left; }
.stat .n { font-size: 2.1rem; color: var(--gold-400); display: block; }
.stat .l { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--navy-800);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.testimonial p.quote { font-style: italic; font-size: 1.02rem; color: var(--ivory-200); margin-bottom: 16px; }
.testimonial .who { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-400); }

/* ---------- Review cards (Google reviews) ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card .stars { color: var(--gold-500); font-size: 0.95rem; letter-spacing: 2px; }
.review-card p.quote { font-size: 0.95rem; color: var(--ivory-200); flex-grow: 1; }
.review-card .meta { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate-400); border-top: 1px solid var(--navy-700); padding-top: 12px; }
.review-card .meta .rname { color: var(--gold-400); font-size: 0.82rem; }
.review-card .tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-300); border: 1px solid var(--navy-600); border-radius: 999px; padding: 3px 10px; width: fit-content; }

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ivory-200);
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  padding: 10px 18px;
}
.google-badge .stars { color: var(--gold-500); }


/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  border-top: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
  text-align: center;
  padding: 74px 0;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 50ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 34px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ivory-100);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }
#form-status { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 14px; display: none; }
#form-status.show { display: block; }
#form-status.ok { color: var(--success); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-400);
  padding: 22px 0;
}
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .sep { margin: 0 8px; color: var(--navy-600); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 30px 0 60px;
  background: radial-gradient(ellipse 800px 400px at 90% -20%, rgba(212,175,55,0.10), transparent 60%), var(--navy-950);
  border-bottom: 1px solid var(--navy-700);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p.lead { max-width: 62ch; font-size: 1.08rem; margin-top: 16px; }

.content-block { max-width: 74ch; }
.content-block h2 { margin: 40px 0 16px; }
.content-block h2:first-child { margin-top: 0; }
.content-block ul, .content-block ol { margin: 16px 0 16px 22px; color: var(--ivory-200); }
.content-block li { margin-bottom: 8px; }

.sidebar-cta {
  background: var(--navy-800);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: 108px;
}
.sidebar-cta h3 { color: var(--gold-400); margin-bottom: 10px; }
.sidebar-cta p { font-size: 0.92rem; margin-bottom: 18px; }
.sidebar-cta .phone-big { font-family: var(--font-mono); font-size: 1.3rem; color: var(--ivory-100); display: block; margin-bottom: 18px; }

.two-thirds { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-thirds { grid-template-columns: 1fr; } .sidebar-cta { position: static; } }

/* ---------- Service/Area index grid ---------- */
.chip-list { list-style: none; }
.chip-list li { border-bottom: 1px solid var(--navy-700); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.chip-list li a.title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em; }
.chip-list li a.title:hover { color: var(--gold-400); }
.chip-list li span.desc { color: var(--slate-400); font-size: 0.9rem; flex: 1; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--navy-700); padding: 22px 0; }
.faq-item h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1.08rem; color: var(--gold-300); margin-bottom: 10px; font-weight: 600; }
.faq-item p { font-size: 0.96rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--gold-400); margin-bottom: 18px; }
.footer-col p, .footer-col a { color: var(--slate-400); font-size: 0.9rem; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-400); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; }
.footer-bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--slate-500);
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--gold-500);
  color: var(--navy-950);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
@media (max-width: 720px) { .mobile-call-bar { display: block; } body { padding-bottom: 56px; } }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2 200px; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--navy-700);
  cursor: pointer;
  background: var(--navy-800);
}
.gallery-item img { width: 100%; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(5,7,13,0.92), transparent);
  color: var(--ivory-100);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 22px 14px 12px;
}

.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(3,4,8,0.92);
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-md); border: 1px solid var(--navy-600); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--gold-400); font-family: var(--font-mono); font-size: 0.85rem; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: var(--ivory-100); font-size: 2rem; cursor: pointer; line-height: 1; }

/* ---------- Commercial & Residential hero tag ---------- */
.commercial-residential-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--gold-400);
  margin: 16px 0 6px;
}
