/* Completed Electric Plus — single stylesheet
   Design tokens per primary spec (task-8047b8a7fa034192). No build step, no framework. */

:root {
  --navy:#1B2A3A;
  --navy-2:#243748;
  --amber:#E8912D;
  --amber-dk:#C4761B;
  --copper:#B26B4A;
  --cream:#F7F3EC;
  --card:#FFFFFF;
  --ink:#20272E;
  --muted:#5C6670;
  --line:#E3DDD2;
  --success:#3E7C4F;

  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem;
  --sp-6:1.5rem; --sp-8:2rem; --sp-12:3rem; --sp-16:4rem; --sp-24:6rem;

  --maxw:1100px;
  --radius:12px;
  --radius-lg:16px;
  --shadow:0 2px 8px rgba(27,42,58,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  font-size:1rem;
  -webkit-font-smoothing:antialiased;
}

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

a{ color:var(--amber-dk); text-decoration:none; }
a:hover{ text-decoration:underline; }

h1,h2,h3{ color:var(--navy); line-height:1.15; margin:0 0 var(--sp-4); }
h1{ font-size:clamp(2rem,6vw,3.25rem); font-weight:800; line-height:1.1; }
h2{ font-size:clamp(1.5rem,4vw,2.25rem); font-weight:700; }
h3{ font-size:1.15rem; font-weight:700; }
p{ margin:0 0 var(--sp-4); }

.container{ max-width:var(--maxw); margin-inline:auto; padding-inline:1.25rem; }

section{ padding-block:var(--sp-12); }
@media(min-width:760px){ section{ padding-block:var(--sp-16); } }

.eyebrow{ color:var(--muted); font-size:.85rem; letter-spacing:.04em; text-transform:uppercase; font-weight:600; }

/* ---------- Skip link ---------- */
.skip{ position:absolute; left:-999px; top:0; background:var(--amber); color:var(--ink);
  padding:.6rem 1rem; border-radius:0 0 8px 0; z-index:200; font-weight:700; }
.skip:focus{ left:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  font-weight:700; font-size:1rem; line-height:1;
  padding:.9rem 1.5rem; border-radius:8px; border:2px solid transparent;
  cursor:pointer; transition:transform .12s ease, background-color .12s ease;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; }
.btn-primary{ background:var(--amber); color:var(--ink); }
.btn-primary:hover{ background:var(--amber-dk); transform:translateY(-1px); color:var(--ink); }
.btn-outline{ background:transparent; color:var(--cream); border-color:var(--cream); }
.btn-outline:hover{ background:rgba(247,243,236,.12); transform:translateY(-1px); }
.btn-outline-ink{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline-ink:hover{ background:rgba(27,42,58,.06); }
.btn:focus-visible{ outline:3px solid var(--navy); outline-offset:2px; }
.btn-primary:focus-visible{ outline-color:var(--navy); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--navy); color:#fff;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  min-height:64px; padding-block:.5rem;
}
.brand{ display:flex; align-items:center; gap:.6rem; }
.brand img{ height:40px; width:auto; }
.brand .wordmark{ display:none; color:#fff; font-weight:800; font-size:1.05rem; letter-spacing:.01em; }
@media(min-width:520px){ .brand .wordmark{ display:inline; } }

.main-nav{ display:none; }
.main-nav a{ color:#dfe6ee; font-weight:600; padding:.4rem .6rem; border-radius:6px; }
.main-nav a:hover{ color:#fff; background:var(--navy-2); text-decoration:none; }
@media(min-width:900px){
  .main-nav{ display:flex; align-items:center; gap:.25rem; }
}
.header-cta{ display:flex; align-items:center; gap:.75rem; }
.header-cta .btn{ padding:.6rem 1rem; }

/* ---------- Mobile slide-in menu (CSS-only, no JS) ---------- */
/* State checkbox is visually hidden; a <label> hamburger toggles it. */
.nav-toggle{ position:absolute; opacity:0; pointer-events:none; }
.nav-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; margin-left:.25rem;
  color:#fff; cursor:pointer; border-radius:8px; background:transparent;
  border:1px solid rgba(255,255,255,.18);
}
.nav-btn:hover{ background:var(--navy-2); }
.nav-btn svg{ width:26px; height:26px; }
.nav-btn .icon-close{ display:none; }
/* Dimmed backdrop behind the panel */
.nav-backdrop{
  position:fixed; inset:0; z-index:110;
  background:rgba(11,18,26,.55); opacity:0; visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
}
/* The slide-in panel itself */
.mobile-nav{
  position:fixed; top:0; right:0; z-index:120;
  width:min(78vw, 320px); height:100dvh;
  background:var(--navy); color:#fff;
  box-shadow:-8px 0 24px rgba(0,0,0,.35);
  transform:translateX(100%); transition:transform .28s ease;
  display:flex; flex-direction:column; padding:5rem 1.25rem 2rem;
  overflow-y:auto;
}
.mobile-nav a{
  color:#dfe6ee; font-weight:600; font-size:1.15rem;
  padding:.85rem .75rem; border-radius:8px; border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-nav a:hover{ color:#fff; background:var(--navy-2); text-decoration:none; }
.mobile-nav .mobile-cta{
  margin-top:1.25rem; text-align:center; border-bottom:none;
  background:var(--amber); color:var(--navy);
}
.mobile-nav .mobile-cta:hover{ background:var(--amber-dk); color:var(--navy); }
/* Open state */
.nav-toggle:checked ~ .nav-backdrop{ opacity:1; visibility:visible; }
.nav-toggle:checked ~ .mobile-nav{ transform:translateX(0); }
.nav-toggle:checked ~ .site-header .nav-btn .icon-open{ display:none; }
.nav-toggle:checked ~ .site-header .nav-btn .icon-close{ display:inline; }
/* Prevent body scroll-jank while open (kept simple: panel scrolls internally) */
.nav-btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
.mobile-nav a:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
/* Only show the hamburger + panel below the desktop-nav breakpoint */
@media(min-width:900px){
  .nav-btn{ display:none; }
  .mobile-nav, .nav-backdrop{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  background:var(--navy);
  color:#fff;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0; opacity:.10; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h30l10-20 20 40 10-20h50' fill='none' stroke='%23E8912D' stroke-width='2'/%3E%3C/svg%3E");
}
.hero .container{ position:relative; max-width:760px; }
.hero h1{ color:#fff; }
.hero .subhead{ font-size:1.15rem; color:#e7edf3; margin-bottom:var(--sp-8); }
.hero-ctas{ display:flex; flex-direction:column; gap:.75rem; align-items:center; }
@media(min-width:560px){ .hero-ctas{ flex-direction:row; justify-content:center; } }
.hero-micro{ margin-top:var(--sp-6); color:#c3cdd7; font-size:.9rem; font-weight:500; }

/* ---------- Trust bar ---------- */
.trust-bar{ background:var(--navy-2); color:#eaf0f5; padding-block:var(--sp-4); }
.trust-bar ul{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr 1fr; gap:.75rem 1.5rem;
  text-align:center; font-weight:600; font-size:.95rem;
}
@media(min-width:760px){ .trust-bar ul{ grid-template-columns:repeat(4,1fr); } }
.trust-bar li{ display:flex; gap:.4rem; align-items:center; justify-content:center; }
.trust-bar .chk{ color:#7fd39a; font-weight:800; }

/* ---------- Services ---------- */
.section-head{ text-align:center; max-width:640px; margin:0 auto var(--sp-8); }
.section-head p{ color:var(--muted); margin:0; }
.card-grid{
  display:grid; grid-template-columns:1fr; gap:1.25rem;
}
/* 2-up on small tablets, 3-up on larger, all 5 on one row at desktop */
@media(min-width:560px){ .card-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:820px){ .card-grid{ grid-template-columns:repeat(3,1fr); } }
@media(min-width:1080px){ .card-grid{ grid-template-columns:repeat(5,1fr); } }
.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:1.25rem; display:flex; flex-direction:column;
}
.card .icon{ color:var(--copper); margin-bottom:.75rem; }
.card .icon svg{ width:48px; height:48px; }
.card h3{ margin-bottom:.5rem; }
.card p{ color:var(--ink); margin-bottom:0; }
/* Uniform media area so every card's title/text baseline lines up across the row */
.card .card-photo{
  width:100%; height:auto; aspect-ratio:4/3; object-fit:cover;
  border-radius:8px; margin-bottom:1rem;
}
/* Icon cards get a matching-height media slot so they align with photo cards */
.card .icon{
  display:flex; align-items:center; justify-content:center;
  aspect-ratio:4/3; margin-bottom:1rem;
  background:var(--cream); border-radius:8px;
}
.services-footer{ text-align:center; margin-top:var(--sp-8); }

/* Home cards are whole-card links — keep them looking like cards, not blue links */
a.card{
  text-decoration:none; color:inherit; cursor:pointer;
  transition:box-shadow .18s ease, transform .18s ease;
}
a.card:hover{
  text-decoration:none;
  box-shadow:0 8px 20px rgba(27,42,58,.16); transform:translateY(-3px);
}
a.card h3{ color:var(--navy); } /* title stays a title, not a link */
a.card:hover h3{ color:var(--copper); }
a.card:focus-visible{
  outline:3px solid var(--copper); outline-offset:3px;
}

/* Detail cards on services.html — big, generous reading sections, at most 2 columns.
   Uses the compound selector .card-grid.card-grid--detail (higher specificity than the
   base .card-grid media rules above) so the column count wins at EVERY breakpoint,
   including >=1080px where base .card-grid would otherwise force 5-across. */
.card-grid.card-grid--detail{
  grid-template-columns:1fr;      /* 1 column on phones */
  gap:2rem;
  max-width:960px; margin-inline:auto;
}
@media(min-width:820px){
  .card-grid.card-grid--detail{ grid-template-columns:repeat(2,1fr); }  /* 2 roomy columns */
}
@media(min-width:1080px){
  .card-grid.card-grid--detail{ grid-template-columns:repeat(2,1fr); }  /* stay 2-up, beat base 5-up */
}
/* 5 cards in a 2-col grid leaves the last one alone in the left column — span it
   across both columns and center it (at single-card width) so it sits in the middle. */
@media(min-width:820px){
  .card-grid.card-grid--detail .card:last-child:nth-child(odd){
    grid-column:1 / -1;
    max-width:calc((960px - 2rem) / 2);  /* one column's width */
    margin-inline:auto;
  }
}
.card-grid--detail .card{ padding:var(--sp-8); }
.card-grid--detail .card h3{ font-size:1.55rem; margin-bottom:.6rem; }
.card-grid--detail .card p{ color:var(--muted); font-size:1.05rem; line-height:1.7; }
/* Taller, larger media area so photos read big; icon cards match the same height to align */
.card-grid--detail .card .card-photo,
.card-grid--detail .card .icon{ aspect-ratio:3/2; margin-bottom:var(--sp-6); }
.card-grid--detail .card .icon svg{ width:64px; height:64px; }

/* Anchor landings clear the fixed site-header */
#repairs, #installations, #panels, #lighting, #hot-tubs{ scroll-margin-top:90px; }

/* ---------- Difference band ---------- */
.difference{ background:var(--cream); }
.difference .inner{
  max-width:760px; margin-inline:auto; text-align:center;
  border-left:4px solid var(--copper); padding-left:1.5rem; text-align:left;
}
.difference p{ font-size:1.1rem; }

/* ---------- About ---------- */
.about-grid{ display:grid; gap:2rem; align-items:start; }
@media(min-width:820px){ .about-grid{ grid-template-columns:1.4fr 1fr; } }
.chips{ display:flex; flex-wrap:wrap; gap:.6rem; list-style:none; margin:0; padding:0; }
.chip{
  border:1px solid var(--line); background:#fff; border-radius:999px;
  padding:.5rem .9rem; font-weight:600; font-size:.9rem; color:var(--navy);
}

/* ---------- Discounts band ---------- */
.discounts{ background:var(--navy); color:#fff; }
.discounts .section-head h2{ color:#fff; }
.discounts .section-head p{ color:#d7dde3; }
/* Static discount cards — responsive grid, no side-scroll (all 4 fit on screen) */
.disc-scroller{
  display:grid; grid-template-columns:1fr; gap:1.25rem;
  list-style:none; margin:0; padding:0;
}
@media(min-width:560px){ .disc-scroller{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:960px){ .disc-scroller{ grid-template-columns:repeat(4,1fr); } }
.disc-card{
  background:var(--navy-2); border:1px solid rgba(255,255,255,.1);
  border-top:4px solid var(--amber); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:1.5rem; text-align:center;
}
.disc-eyebrow{ display:block; font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; color:#c7cfd8; }
.disc-amount{ display:block; font-size:2rem; font-weight:800; color:var(--amber); line-height:1.1; margin:.25rem 0 .75rem; }
.disc-card h3{ color:#fff; margin-bottom:.4rem; }
.disc-card p{ color:#d7dde3; font-size:.92rem; margin:0; }

/* ---------- Service area ---------- */
.area{ text-align:center; }
.pills{ display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; list-style:none; padding:0; margin:1.5rem auto 0; max-width:820px; }
.pill{ border:1px solid var(--line); background:#fff; border-radius:999px; padding:.5rem 1rem; font-weight:600; color:var(--navy); }

/* ---------- Testimonials ---------- */
.testimonials{ background:var(--cream); }
.quote-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.25rem; }
.quote{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:1.5rem;
}
.quote .stars{ color:var(--amber); letter-spacing:2px; margin-bottom:.5rem; }
.quote blockquote{ margin:0 0 .75rem; font-size:1.05rem; color:var(--ink); }
.quote cite{ color:var(--muted); font-style:normal; font-weight:600; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; gap:2rem; }
@media(min-width:820px){ .contact-grid{ grid-template-columns:1fr 1.1fr; } }
.info-card{
  background:var(--navy); color:#eaf0f5; border-radius:var(--radius-lg);
  padding:1.75rem;
}
.info-card h3{ color:#fff; }
.info-card dl{ margin:0; display:grid; gap:.9rem; }
.info-card dt{ font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; color:#9fb0c0; margin-bottom:.15rem; }
.info-card dd{ margin:0; font-weight:600; font-size:1.05rem; }
.info-card a{ color:#ffd9a6; }

.form-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); padding:1.75rem;
}
.field{ margin-bottom:1.1rem; }
.field label{ display:block; font-weight:600; margin-bottom:.35rem; color:var(--navy); }
.field input, .field textarea{
  width:100%; padding:.75rem .85rem; border:1px solid var(--line); border-radius:8px;
  font:inherit; color:var(--ink); background:var(--cream);
}
.field input:focus-visible, .field textarea:focus-visible{
  outline:3px solid var(--amber); outline-offset:1px; border-color:var(--amber-dk);
}
.field textarea{ min-height:120px; resize:vertical; }
.form-note{ font-style:italic; color:var(--muted); font-size:.9rem; margin-top:.75rem; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy); color:#cdd7e0; padding-block:var(--sp-12); }
.site-footer .container{ display:grid; gap:1rem; text-align:center; }
.site-footer img{ height:36px; margin:0 auto; }
.site-footer a{ color:#ffd9a6; }
.site-footer .legal{ font-size:.85rem; color:#9fb0c0; }
.site-footer strong{ color:#fff; }

/* ---------- Mobile sticky call bar ---------- */
.call-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:120;
  display:flex;
}
.call-bar a{
  flex:1; text-align:center; background:var(--amber); color:var(--ink);
  font-weight:800; padding:1rem; text-decoration:none; font-size:1.05rem;
}
.call-bar a:hover{ background:var(--amber-dk); }
@media(min-width:900px){ .call-bar{ display:none; } }
/* keep content clear of the fixed bar on mobile */
@media(max-width:899px){ body{ padding-bottom:60px; } }

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