/* ===== Tokens ===== */
:root{
  --black: #0a0a08;
  --panel: #151310;
  --panel-2: #1c1a15;
  --line: #2a2620;
  --yellow: #ffc93d;
  --yellow-deep: #e2a51c;
  --white: #f4f1e8;
  --muted: #8f8a7c;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --wrap: 1120px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--yellow); color: var(--black);
  padding: 10px 16px; font-weight:600; z-index: 200;
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ===== Nav ===== */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  display:flex; align-items:center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(10,10,8,.85), rgba(10,10,8,0));
  backdrop-filter: blur(2px);
}
.nav-mark{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color: var(--white);
}
.nav-bolt{ width:20px; height:20px; fill: var(--yellow); flex:none; }
.nav-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .01em;
  line-height:1;
}
.nav-name em{ font-style:normal; color: var(--yellow); }
.nav-links{ display:flex; gap: 32px; }
.nav-links a{
  text-decoration:none; color: var(--white);
  font-size: 15px; font-weight:500;
  opacity:.85; transition: opacity .2s ease;
}
.nav-links a:hover{ opacity:1; }
.nav-call{
  text-decoration:none;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 3px;
  font-size: 14px; font-weight:600;
  transition: border-color .2s ease, background .2s ease;
}
.nav-call:hover{ border-color: var(--yellow); background: rgba(255,201,61,.08); }
.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; padding: 8px; cursor:pointer;
}
.nav-toggle span{ width:22px; height:2px; background: var(--white); display:block; }

.mobile-menu{
  position: fixed; inset: 0; z-index: 99;
  background: var(--black);
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap: 28px; padding: 28px 32px;
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
  text-decoration:none; color: var(--white);
  font-family: var(--font-display);
  font-size: 34px; font-weight:700;
}

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-call{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ===== Hero ===== */
.hero{ position: relative; }
.hero-spacer{ height: 380vh; }
@media (max-width: 720px){
  .hero-spacer{ height: 300vh; }
}
.hero-sticky{
  position: sticky; top:0;
  height: 100vh; width:100%;
  overflow: hidden;
  background: var(--black);
}
#heroCanvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  display:block;
}
.hero-scrim{
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(10,10,8,.35) 0%, rgba(10,10,8,0) 30%, rgba(10,10,8,0) 60%, rgba(10,10,8,.65) 100%);
  pointer-events:none;
}

.hero-loader{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--black);
  z-index: 5;
  transition: opacity .5s ease;
}
.hero-loader.is-hidden{ opacity:0; pointer-events:none; }
.hero-loader-bolt svg{
  width: 44px; height:44px; fill: var(--yellow);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:.35; transform: scale(.92); }
  50%{ opacity:1; transform: scale(1); }
}

.hero-copy{
  position:absolute; inset:0;
  display:flex; align-items:center;
  padding: 0 28px;
  pointer-events:none;
}
.hero-copy-in, .hero-copy-out{
  position:absolute; left:28px; right:28px; top:50%;
  margin:0;
  display:flex; flex-direction:column; gap: 14px;
  transition: opacity .25s linear, transform .25s linear;
  will-change: transform, opacity;
}
.hero-copy-out{ align-items: flex-start; }
.hero-eyebrow{
  font-family: var(--font-body);
  font-size: 14px; font-weight:600;
  color: var(--yellow);
  letter-spacing: .02em;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 108px);
  line-height: .95;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-title--small{ font-size: clamp(34px, 6vw, 64px); }
.hero-actions{ display:flex; gap: 14px; pointer-events:auto; margin-top: 6px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  padding: 14px 26px;
  border-radius: 3px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--yellow); color: var(--black); }
.btn-primary:hover{ background: var(--yellow-deep); transform: translateY(-1px); }
.btn-ghost{ border: 1px solid rgba(244,241,232,.4); color: var(--white); }
.btn-ghost:hover{ border-color: var(--white); transform: translateY(-1px); }

.scroll-cue{
  position:absolute; left:28px; bottom: 28px;
  display:flex; align-items:center; gap:10px;
  color: var(--muted); font-size: 13px; letter-spacing:.04em;
  transition: opacity .3s ease;
}
.scroll-cue-line{
  width:1px; height: 34px; background: var(--muted);
  position:relative; overflow:hidden;
}
.scroll-cue-line::after{
  content:""; position:absolute; top:-100%; left:0; right:0; height:100%;
  background: var(--yellow);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop{
  0%{ top:-100%; } 100%{ top:100%; }
}

@media (prefers-reduced-motion: reduce){
  .hero-loader-bolt svg{ animation:none; }
  .scroll-cue-line::after{ animation:none; display:none; }
}

/* ===== Section shell ===== */
section{ position:relative; }
.section-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 10px;
}
.section-lede{
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 44px;
  font-size: 17px;
}

/* ===== Services ===== */
.services{ padding: 120px 0 100px; background: var(--black); }
.service-list{
  list-style:none; margin:0; padding:0;
  border-top: 1px solid var(--line);
}
.service-list li{
  display:flex; align-items:baseline; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-index{
  font-family: var(--font-display);
  font-size: 20px; color: var(--yellow);
  width: 34px; flex:none;
}
.service-name{
  font-weight: 600; font-size: 19px;
  flex: 0 0 auto; min-width: 260px;
}
.service-note{ color: var(--muted); font-size: 15px; }

@media (max-width: 640px){
  .service-list li{ flex-wrap: wrap; }
  .service-name{ min-width: 0; width:100%; }
  .service-index{ width:auto; }
}

/* ===== About ===== */
.about{ padding: 100px 0; background: var(--panel); }
.about-grid{
  display:grid; grid-template-columns: 1.1fr .9fr;
  gap: 64px; align-items:center;
}
.about-copy p{ color: var(--white); font-size: 17px; max-width: 52ch; }
.about-copy p + p{ margin-top: 18px; color: var(--muted); }
.about-frame{
  border-radius: 4px; overflow:hidden;
  border: 1px solid var(--line);
}
@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-frame{ order:-1; }
}

/* ===== Contact ===== */
.contact{ padding: 110px 0 130px; background: var(--black); }
.contact-grid{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card{
  text-decoration:none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  display:flex; flex-direction:column; gap: 8px;
  transition: border-color .2s ease, background .2s ease;
}
.contact-card:hover{ border-color: var(--yellow); background: rgba(255,201,61,.05); }
.contact-label{ color: var(--muted); font-size: 13px; letter-spacing:.02em; }
.contact-value{
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
}
@media (max-width: 640px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer{ border-top: 1px solid var(--line); padding: 40px 0; background: var(--black); }
.footer-grid{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap: 16px;
}
.footer-mark{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:14px; }
.footer-mark svg{ width:16px; height:16px; fill:var(--yellow); }
.footer-links{ display:flex; gap: 20px; font-size: 14px; }
.footer-links a{ text-decoration:none; opacity:.85; }
.footer-links a:hover{ opacity:1; }
.footer-copy{ margin:0; color: var(--muted); font-size: 13px; width:100%; order:3; }

/* ===== Multi-page additions ===== */
.nav--solid{ background: rgba(10,10,8,.96); border-bottom: 1px solid var(--line); }
.nav-links a[aria-current="page"]{ color: var(--yellow); opacity:1; }

.page-hero{ padding: 132px 0 48px; background: var(--black); border-bottom: 1px solid var(--line); }
.crumbs{ font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a{ color: var(--muted); }
.page-title{ font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 8vw, 76px); line-height: .98; margin: 0 0 18px; }
.page-lede{ color: var(--white); opacity: .9; font-size: 18px; max-width: 58ch; margin: 0 0 28px; }
.page-actions{ display:flex; flex-wrap: wrap; gap: 12px; }

.prose{ padding: 64px 0; }
.prose:nth-of-type(even){ background: var(--panel); }
.prose h2{ font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 40px); margin: 0 0 14px; }
.prose h3{ font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li{ font-size: 17px; max-width: 64ch; }
.prose p{ margin: 0 0 14px; }
.prose ul{ padding-left: 20px; margin: 0 0 14px; }
.prose li{ margin: 6px 0; }
.prose .muted{ color: var(--muted); }

.credential{
  display:flex; gap: 18px; align-items:flex-start;
  border: 1px solid var(--yellow); border-radius: 4px;
  background: rgba(255,201,61,.06);
  padding: 22px; margin: 8px 0 0; max-width: 720px;
}
.credential svg{ width: 30px; height: 30px; fill: var(--yellow); flex: none; margin-top: 2px; }
.credential strong{ display:block; font-family: var(--font-display); font-size: 22px; letter-spacing:.01em; margin-bottom: 4px; }
.credential p{ margin: 0; color: var(--white); opacity:.9; font-size: 15.5px; }

.card-grid{ display:grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 700px){ .card-grid{ grid-template-columns: 1fr 1fr; } }
.card{
  display:flex; flex-direction:column; gap: 6px;
  text-decoration:none; border: 1px solid var(--line); border-radius: 4px;
  padding: 22px; background: var(--panel-2);
  transition: border-color .2s ease, background .2s ease;
}
a.card:hover{ border-color: var(--yellow); }
.card-title{ font-weight: 600; font-size: 19px; }
.card-note{ color: var(--muted); font-size: 15px; }
.card-more{ color: var(--yellow); font-size: 14px; font-weight: 600; margin-top: 4px; }

.solar{ padding: 100px 0; background: var(--panel); }
.areas-teaser{ padding: 90px 0; background: var(--black); border-top: 1px solid var(--line); }
.province-chips{ display:flex; flex-wrap:wrap; gap: 8px; margin: 0 0 26px; padding:0; list-style:none; }
.province-chips li{ border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; }

.faq{ padding: 90px 0; background: var(--panel); }
.faq details{ border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary{ cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display:flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content: "+"; color: var(--yellow); font-family: var(--font-display); font-size: 24px; line-height: 1; }
.faq details[open] summary::after{ content: "\2212"; }
.faq details p{ color: var(--muted); margin: 10px 0 0; font-size: 16px; max-width: 64ch; }

.province{ border-top: 1px solid var(--line); padding: 26px 0; }
.province h2{ margin-bottom: 6px; }
.province h3{ color: var(--yellow); font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.town-list{ list-style: none; padding: 0; margin: 0; display:flex; flex-wrap: wrap; gap: 6px 16px; }
.town-list li{ font-size: 15.5px; color: var(--white); opacity: .88; margin: 0; }

.cta-band{ padding: 80px 0; background: var(--black); border-top: 1px solid var(--line); }
.cta-band .section-lede{ margin-bottom: 24px; }
.footer-nav{ display:flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; width:100%; order: 2; }
.footer-nav a{ text-decoration:none; color: var(--muted); }
.footer-nav a:hover{ color: var(--white); }

.notfound{ min-height: 70vh; display:flex; align-items:center; }

.prose .province-chips, .prose .town-list{ padding-left: 0; }

/* ===== Lead tools ===== */
.chips{ display:flex; flex-wrap:wrap; gap: 8px; }
.chip{
  font: inherit; font-size: 15px; color: var(--white); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; min-height: 44px;
}
.chip[aria-checked="true"]{ background: var(--yellow); color: var(--black); border-color: var(--yellow); font-weight: 600; }
.qb, .calc{ max-width: 760px; }
.qb fieldset{ border: 0; padding: 0; margin: 0 0 26px; }
.qb legend{ font-weight: 600; font-size: 17px; margin-bottom: 12px; display:flex; gap: 10px; align-items:center; }
.qb legend span{ display:inline-grid; place-items:center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--black); font-size: 14px; }
.field-row{ display:grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px){ .field-row{ grid-template-columns: 1fr 1fr; } }
.field label{ display:block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea{
  width: 100%; font: inherit; font-size: 16px; color: var(--white);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px;
}
.field textarea{ min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--yellow); outline: none; }
.qb-preview{ white-space: pre-wrap; background: #0f0e0b; border: 1px dashed var(--line); border-radius: 4px; padding: 16px; font-size: 14.5px; color: var(--white); opacity: .9; margin: 0 0 14px; }
.qb-actions{ display:flex; flex-wrap:wrap; gap: 10px; }
.qb-hint{ color: var(--muted); font-size: 14px; margin: 12px 0 0; }
button.btn{ border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled, a.btn[aria-disabled="true"]{ opacity: .45; cursor: not-allowed; transform: none; }

.calc-list{ list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.calc-list li{ display:flex; align-items:center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.calc-name{ font-size: 16px; }
.calc-name small{ display:block; color: var(--muted); font-size: 13px; }
.stepper{ display:flex; align-items:center; gap: 6px; flex: none; }
.stepper button{ width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel-2); color: var(--white); font-size: 20px; cursor: pointer; }
.stepper input{ width: 46px; text-align: center; font: inherit; font-size: 16px; color: var(--white); background: transparent; border: 0; }
.calc-result{ border: 1px solid var(--yellow); border-radius: 4px; padding: 18px; background: rgba(255,201,61,.06); margin: 18px 0 14px; }
.calc-figs{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-num{ display:block; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 6vw, 34px); color: var(--yellow); }
.calc-lbl{ font-size: 13px; color: var(--muted); }
.calc-note, .calc-empty{ margin: 12px 0 0 !important; font-size: 14px; color: var(--muted); }

.emergency{ border-left: 4px solid var(--yellow); padding-left: 18px; }

/* Sticky action bar on phones */
.action-bar{ display:none; }
@media (max-width: 860px){
  .action-bar{
    display:grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(10,10,8,.97); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .action-bar a{ text-align:center; text-decoration:none; font-weight: 600; font-size: 14px; padding: 12px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--white); }
  .action-bar a.primary{ background: var(--yellow); color: var(--black); border-color: var(--yellow); }
  body{ padding-bottom: 72px; }
}
