/* ==========================================================================
   Swartz Electric LLC — Design tokens
   Palette: panel charcoal + safety amber + copper wire accent
   Type: Big Shoulders Display (stamped panel labels) / IBM Plex Sans / IBM Plex Mono
   ========================================================================== */
:root{
  --bg:            #12151b;
  --surface:       #1b212b;
  --surface-2:     #232b38;
  --line:          #2c3543;

  --amber:         #f5a623;
  --amber-dim:     #b8791b;
  --copper:        #b87333;
  --green:         #3ed598;

  --text:          #eceef2;
  --text-muted:    #98a2b3;
  --text-faint:    #667085;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 10px;
  --wrap: 1120px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--amber); text-decoration:none; }
a:hover{ text-decoration:underline; }
ul{ margin:0; padding:0; }

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

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--amber); color:#14181f; padding:10px 16px; z-index:200;
  font-family:var(--font-mono); font-weight:600;
}
.skip-link:focus{ left:12px; top:12px; }

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

/* Background texture: faint circuit-grid */
body{
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  background-position:center top;
  background-attachment:fixed;
  background-color:var(--bg);
}
@media (max-width:640px){
  body{ background-size:40px 40px; }
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.05;
  color:#fff;
  margin:0 0 0.5em;
}

h2{ font-size:clamp(1.8rem, 1.4rem + 1.6vw, 2.75rem); }
h3{ font-size:clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); color:var(--amber); }

p{ margin:0 0 1.1em; color:var(--text-muted); }
p a{ color:var(--amber); font-weight:600; }

/* ---------- Buttons & signature "breaker switch" ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-weight:600; font-size:0.875rem;
  letter-spacing:0.04em; text-transform:uppercase;
  padding:14px 22px;
  border-radius:6px;
  border:1px solid transparent;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{ text-decoration:none; }

.btn-primary{
  background:var(--amber);
  color:#14181f;
  box-shadow:0 0 0 1px var(--amber-dim) inset;
}
.btn-primary:hover{ background:#ffb943; }

.btn-outline{
  color:var(--text);
  border-color:var(--line);
  background:var(--surface);
}
.btn-outline:hover{ border-color:var(--amber); color:var(--amber); }

.btn-ghost{
  color:var(--text);
  font-family:var(--font-mono);
  font-weight:600;
  font-size:0.9rem;
}
.btn-ghost:hover{ color:var(--amber); }

/* the little toggle-switch icon on primary CTAs */
.switch{
  width:26px; height:14px;
  border-radius:999px;
  background:#14181f;
  position:relative;
  flex:none;
}
.switch::after{
  content:"";
  position:absolute; top:2px; left:2px;
  width:10px; height:10px; border-radius:50%;
  background:var(--amber-dim);
  transition:transform .2s ease, background .2s ease;
}
.btn-primary:hover .switch::after{
  transform:translateX(12px);
  background:#14181f;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(18,21,27,0.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
  gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width:14px; height:14px; border-radius:3px;
  background:var(--amber);
  box-shadow:0 0 0 3px rgba(245,166,35,0.15);
  flex:none;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-name{
  font-family:var(--font-display); font-weight:700; font-size:1.15rem;
  color:#fff; letter-spacing:0.02em;
}
.brand-tag{
  font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.08em;
  color:var(--text-faint); text-transform:uppercase;
}

.site-nav{ display:flex; gap:28px; }
.site-nav a{
  color:var(--text-muted); font-family:var(--font-mono);
  font-size:0.85rem; text-transform:uppercase; letter-spacing:0.04em;
}
.site-nav a:hover{ color:var(--amber); text-decoration:none; }

.header-actions{ display:flex; align-items:center; gap:14px; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:36px; height:36px; background:var(--surface); border:1px solid var(--line);
  border-radius:6px; cursor:pointer;
}
.nav-toggle span{ height:2px; background:var(--text); margin:0 7px; border-radius:2px; }

/* ---------- Hero ---------- */
.hero{ padding:64px 0 48px; }
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--green);
  background:rgba(62,213,152,0.08);
  border:1px solid rgba(62,213,152,0.25);
  padding:6px 12px; border-radius:999px;
  margin-bottom:18px;
}
.eyebrow .dot{
  width:7px; height:7px; border-radius:50%; background:var(--green);
  box-shadow:0 0 8px var(--green);
}

.hero h1{
  font-size:clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  margin-bottom:0.4em;
}
.lede{ font-size:1.08rem; max-width:52ch; }

.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin:26px 0 30px; }

.trust-strip{
  display:flex; flex-wrap:wrap; gap:10px 22px;
  list-style:none; margin:0; padding:18px 0 0;
  border-top:1px dashed var(--line);
}
.trust-strip li{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:0.8rem; color:var(--text-muted);
  text-transform:uppercase; letter-spacing:0.03em;
}
.led{
  width:7px; height:7px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 8px var(--amber);
  flex:none;
}

/* breaker panel card (decorative, signature element) */
.hero-panel{ display:flex; justify-content:center; }
.panel-card{
  width:100%; max-width:360px;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  box-shadow:0 20px 60px -20px rgba(0,0,0,0.6);
}
.panel-card-head{
  display:flex; justify-content:space-between;
  font-family:var(--font-mono); font-size:0.7rem; letter-spacing:0.08em;
  color:var(--text-faint); text-transform:uppercase;
  border-bottom:1px solid var(--line);
  padding-bottom:12px; margin-bottom:14px;
}
.breaker-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.breaker-row.vertical{ grid-template-columns:1fr; }
.breaker{
  position:relative;
  background:#14181f;
  border:1px solid var(--line);
  border-radius:6px;
  padding:12px 10px 12px 22px;
  font-family:var(--font-mono); font-size:0.72rem;
  letter-spacing:0.03em; color:var(--text-muted);
  text-transform:uppercase;
}
.breaker::before{
  content:"";
  position:absolute; left:9px; top:50%; transform:translateY(-50%);
  width:6px; height:12px; border-radius:2px;
  background:var(--line);
}
.breaker.on::before{ background:var(--amber); box-shadow:0 0 8px var(--amber); }
.breaker.on{ color:var(--text); border-color:rgba(245,166,35,0.35); }

/* ---------- Sections ---------- */
.section{ padding:64px 0; }
.section.alt{ background:rgba(27,33,43,0.55); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.prose{ max-width:78ch; }
.prose h2{ margin-top:0; }
.prose h3{ margin-top:1.6em; }

.check-list{ list-style:none; margin:20px 0; display:grid; gap:10px; }
.check-list li{
  position:relative; padding-left:28px; color:var(--text-muted);
}
.check-list li::before{
  content:"";
  position:absolute; left:0; top:6px;
  width:14px; height:14px; border-radius:3px;
  background:transparent; border:1.5px solid var(--copper);
}
.check-list li::after{
  content:"";
  position:absolute; left:4px; top:9px;
  width:6px; height:6px; border-radius:2px;
  background:var(--copper);
}

.process-list{
  list-style:none; counter-reset:step; display:grid; gap:22px; margin:26px 0 0;
}
.process-list li{
  position:relative;
  padding:20px 20px 20px 68px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.process-list li::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:20px; top:20px;
  width:34px; height:34px; border-radius:8px;
  background:#14181f; border:1px solid var(--amber-dim);
  color:var(--amber);
  font-family:var(--font-mono); font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.process-list h3{ margin:0 0 6px; font-size:1.05rem; }
.process-list p{ margin:0; }

/* ---------- FAQ Accordion ---------- */
.accordion{ margin-top:26px; display:grid; gap:10px; }
.acc-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.acc-trigger{
  width:100%; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:0; cursor:pointer;
  padding:18px 20px;
  color:var(--text);
  font-family:var(--font-body); font-weight:600; font-size:1rem;
}
.acc-trigger::after{
  content:"+";
  flex:none;
  font-family:var(--font-mono);
  color:var(--amber);
  font-size:1.3rem;
  transition:transform .2s ease;
}
.acc-trigger[aria-expanded="true"]::after{ transform:rotate(45deg); }
.acc-panel{
  max-height:0; overflow:hidden;
  transition:max-height .25s ease;
  padding:0 20px;
}
.acc-panel p{ padding-bottom:18px; margin:0; }
.acc-item.open .acc-panel{ max-height:240px; }

/* ---------- Contact ---------- */
.contact-section{ padding-top:70px; }
.contact-grid{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
}
.contact-list{
  list-style:none; display:grid; gap:14px; margin:22px 0 28px;
}
.contact-list li{
  display:flex; flex-direction:column; gap:2px;
  padding:14px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
}
.contact-label{
  font-family:var(--font-mono); font-size:0.7rem; letter-spacing:0.08em;
  color:var(--text-faint); text-transform:uppercase;
}
.contact-list a{ color:var(--text); font-weight:600; }
.contact-list a:hover{ color:var(--amber); }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:26px 0; }
.footer-row{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  font-family:var(--font-mono); font-size:0.8rem; color:var(--text-faint);
}
.footer-row a{ color:var(--text-faint); }
.footer-row a:hover{ color:var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-panel{ order:-1; }
  .contact-grid{ grid-template-columns:1fr; }
  .contact-panel{ order:-1; }
}

@media (max-width:760px){
  .site-nav{
    position:absolute; top:100%; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    flex-direction:column; padding:16px 24px; gap:16px;
    display:none;
  }
  .site-nav.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-ghost{ display:none; }
  .hero{ padding:40px 0 32px; }
  .section{ padding:48px 0; }
}

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