/* ==========================================================================
   Bensenville Licensed Electrician — "The Panel" design system
   Concept: an honest, working breaker panel — rows of labeled switches,
   copper bus-bar accents, schematic linework — rendered with the warmth
   of a real neighborhood trade business, not a corporate template.
   ========================================================================== */

:root{
  --ink: #15191D;
  --ink-2: #1E2429;
  --ink-3: #262D33;
  --paper: #F3EEE3;
  --paper-2: #EAE2D2;
  --white: #FDFBF6;
  --copper: #B8703B;
  --copper-bright: #D9863F;
  --copper-dim: #8C5A31;
  --slate: #5B6773;
  --line: rgba(243,238,227,0.14);
  --line-dark: rgba(21,25,29,0.12);
  --ok: #6E8C5C;

  --font-head: "Space Grotesk", "Archivo", sans-serif;
  --font-body: "IBM Plex Sans", "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-head); margin:0; font-weight: 600; letter-spacing: -0.01em; }
p{ margin:0; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

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

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

/* ---------------------------------- Top utility bar ---------------------------------- */
.topbar{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
}
.topbar .wrap{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:9px; padding-bottom:9px;
  gap: 16px;
}
.topbar a{ color: var(--copper-bright); }
.topbar .topbar-lic{ color: var(--slate); }
.topbar .topbar-lic b{ color: var(--paper); font-weight:500; }

/* ---------------------------------- Nav ---------------------------------- */
header.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px var(--pad);
  max-width: var(--max); margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
  color: var(--white);
}
.brand-mark{
  width:40px; height:40px; flex:none;
}
.brand-text{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height:1.15;
  color: var(--white);
}
.brand-text span{
  display:block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper-bright);
  font-weight:400;
  letter-spacing: .03em;
  margin-top:2px;
}
nav.primary-nav ul{ display:flex; gap: 28px; align-items:center; }
nav.primary-nav a{
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.primary-nav a:hover, nav.primary-nav a.active{
  border-color: var(--copper-bright);
  color: var(--copper-bright);
}
.nav-call{
  display:flex; align-items:center; gap:18px;
}
.btn-call{
  font-family: var(--font-mono);
  font-size:15px;
  color: var(--ink);
  background: var(--copper-bright);
  padding: 10px 16px;
  border-radius: 3px;
  font-weight:600;
  white-space:nowrap;
  transition: background .15s ease;
}
.btn-call:hover{ background: var(--white); }
.nav-toggle{
  display:none;
  background:none; border:1px solid var(--line); border-radius:3px;
  width:42px; height:38px;
  color: var(--paper);
  cursor:pointer;
  align-items:center; justify-content:center;
}

/* ---------------------------------- Buttons ---------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body);
  font-weight:600;
  font-size:16px;
  padding: 14px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--copper-bright); color: var(--ink); }
.btn-primary:hover{ background: var(--copper); color: var(--white); }
.btn-ghost{ background: transparent; color: var(--white); border-color: rgba(253,251,246,0.35); }
.btn-ghost:hover{ border-color: var(--copper-bright); color: var(--copper-bright); }
.btn-ghost-dark{ background: transparent; color: var(--ink); border-color: rgba(21,25,29,0.3); }
.btn-ghost-dark:hover{ border-color: var(--copper); color: var(--copper); }

/* ---------------------------------- Hero ---------------------------------- */
.hero{
  position:relative;
  background: var(--ink);
  color: var(--white);
  overflow:hidden;
  border-bottom: 1px solid var(--line);
}
.hero-schematic{
  position:absolute; inset:0;
  opacity: 0.55;
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items:center;
  padding-top: clamp(48px,8vw,88px);
  padding-bottom: clamp(48px,8vw,88px);
  position:relative;
}
.hero-eyebrow{
  font-family: var(--font-mono);
  color: var(--copper-bright);
  font-size: 14px;
  margin-bottom: 18px;
  display:flex; align-items:center; gap:10px;
}
.hero-eyebrow .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--copper-bright);
  box-shadow: 0 0 0 4px rgba(217,134,63,0.18);
}
.hero h1{
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  color: var(--white);
  max-width: 14ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--copper-bright);
}
.hero-sub{
  margin-top: 22px;
  font-size: 19px;
  color: var(--paper-2);
  max-width: 46ch;
  line-height:1.6;
}
.hero-actions{
  margin-top: 34px;
  display:flex; gap:16px; flex-wrap:wrap;
}
.hero-stats{
  margin-top: 44px;
  display:flex; gap: 36px; flex-wrap:wrap;
}
.hero-stats .stat b{
  display:block;
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
}
.hero-stats .stat span{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
}
.hero-photo{
  position:relative;
}
.hero-photo figure{
  margin:0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow:hidden;
  background: var(--ink-2);
}
.hero-photo img{ width:100%; height: 430px; object-fit: cover; display:block; }
.hero-photo figcaption{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display:flex; justify-content:space-between;
}
.hero-photo-tag{
  position:absolute; top:-14px; left: 24px;
  background: var(--copper-bright);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight:600;
  padding: 7px 14px;
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* ---------------------------------- Section scaffolding ---------------------------------- */
section{ padding: clamp(56px,8vw,104px) 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-tag{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--copper);
  margin-bottom: 12px;
}
.section-head h2{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ink);
  line-height:1.15;
}
.section-head p{
  margin-top:16px;
  font-size: 17.5px;
  color: var(--slate);
  max-width: 58ch;
}
.on-dark{ background: var(--ink); color: var(--paper); }
.on-dark .section-head h2{ color: var(--white); }
.on-dark .section-head p{ color: var(--paper-2); }
.band{ background: var(--paper-2); }

/* ---------------------------------- Breaker row (services list) ---------------------------------- */
.panel-box{
  background: var(--ink);
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow:hidden;
}
.panel-box-head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}
.panel-box-head b{ color: var(--paper); font-weight:500; }
.breaker-row{
  display:grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items:center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  transition: background .15s ease;
}
.breaker-row:last-child{ border-bottom:none; }
.breaker-row:hover{ background: var(--ink-2); }
.breaker-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 44px; height:44px;
  display:flex; align-items:center; justify-content:center;
}
.breaker-body h3{
  font-size: 19px;
  color: var(--white);
  margin-bottom:6px;
}
.breaker-body p{ color: var(--paper-2); font-size: 15.5px; max-width: 56ch; }
.breaker-switch{
  width: 34px; height: 58px;
  border-radius: 5px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  position:relative;
  flex:none;
}
.breaker-switch::after{
  content:"";
  position:absolute;
  left:5px; right:5px; top:5px;
  height: 24px;
  border-radius:3px;
  background: var(--copper-bright);
}
.breaker-row a.service-link{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--copper-bright);
  white-space:nowrap;
}

/* ---------------------------------- Cards ---------------------------------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.info-card{
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 30px;
}
.info-card .num{
  font-family: var(--font-mono);
  color: var(--copper);
  font-size: 13px;
  margin-bottom:14px;
}
.info-card h3{ font-size: 20px; margin-bottom: 10px; }
.info-card p{ color: var(--slate); font-size: 15.5px; }

/* ---------------------------------- Testimonials / trust strip ---------------------------------- */
.trust-strip{
  display:flex; flex-wrap:wrap; gap: 40px;
  padding: 30px var(--pad);
  background: var(--ink-2);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 13.5px;
  justify-content:center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip b{ color: var(--white); }

.quote-card{
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 30px;
  border-left: 3px solid var(--copper-bright);
}
.quote-card p.quote{
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height:1.6;
}
.quote-card .who{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}

/* ---------------------------------- Gallery ---------------------------------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}
.gallery-grid img{
  width:100%; height: 200px; object-fit:cover; border-radius:4px;
  border: 1px solid var(--line-dark);
}

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band{
  background: var(--copper-bright);
  color: var(--ink);
}
.cta-band .wrap{
  display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap:wrap;
  padding-top: 48px; padding-bottom:48px;
}
.cta-band h2{ font-size: clamp(1.5rem,3vw,2.1rem); max-width: 18ch; }
.cta-band .btn-ghost-dark{ border-color: rgba(21,25,29,0.45); }

/* ---------------------------------- Footer ---------------------------------- */
footer.site-footer{
  background: var(--ink);
  color: var(--paper-2);
  padding-top: 64px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h4{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--copper-bright);
  margin-bottom: 18px;
  font-weight:500;
}
.footer-grid li{ margin-bottom: 10px; font-size: 15px; }
.footer-grid a:hover{ color: var(--copper-bright); }
.footer-brand p{ margin-top:14px; color: var(--slate); font-size: 14.5px; max-width: 34ch; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding: 22px 0 30px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
}

/* ---------------------------------- Forms ---------------------------------- */
form.contact-form{
  display:grid; gap: 18px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
label{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
  display:block;
  margin-bottom: 7px;
}
input, textarea, select{
  width:100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus{ border-color: var(--copper); }
textarea{ resize:vertical; min-height:130px; }

/* ---------------------------------- Breadcrumb ---------------------------------- */
.breadcrumb{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  padding: 18px 0;
}
.breadcrumb a:hover{ color: var(--copper); }

/* ---------------------------------- Page hero (interior pages) ---------------------------------- */
.page-hero{
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero .section-tag{ color: var(--copper-bright); }
.page-hero h1{ font-size: clamp(2rem,4vw,2.9rem); color:var(--white); max-width: 22ch; }
.page-hero p{ margin-top:16px; color: var(--paper-2); font-size:18px; max-width:60ch; }

/* ---------------------------------- Table (service area / pricing style) ---------------------------------- */
.area-list{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}
.area-list li{
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 14px 16px;
  background: var(--white);
}
.area-list li b{ color: var(--copper); display:block; font-size:11px; margin-bottom:4px; }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo{ order:-1; }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .area-list{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px){
  nav.primary-nav{
    position:fixed; inset: 68px 0 auto 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow:hidden;
    transition: max-height .2s ease;
  }
  nav.primary-nav.open{ max-height: 420px; }
  nav.primary-nav ul{ flex-direction:column; align-items:flex-start; padding: 10px var(--pad) 20px; gap: 4px; }
  nav.primary-nav a{ padding: 12px 0; width:100%; }
  .nav-toggle{ display:flex; }
  .nav-call .btn-call span.long{ display:none; }
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .area-list{ grid-template-columns: 1fr 1fr; }
  .breaker-row{ grid-template-columns: 44px 1fr; }
  .breaker-row a.service-link{ grid-column: 2; }
  .cta-band .wrap{ flex-direction:column; align-items:flex-start; }
  .topbar .wrap{ flex-direction:column; gap:4px; align-items:flex-start; }
}
