/* Triple E Electrical. One family (Archivo, variable width + weight), self-hosted. */
@font-face{
  font-family:"Archivo";
  src:url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight:100 900;
  font-stretch:62% 125%;
  font-display:swap;
}

:root{
  --ink:#2b0a3a;        /* a deeper shade of the logo's purple: dark sections, text */
  --cell:#500068;       /* the purple of the logo's lettering */
  --cell-2:#6d1a8a;
  --sun:#f8b800;        /* the action colour: estimate, call */
  --sun-deep:#d99e00;
  --copper:#b5632e;     /* bare conductor, used for fine detail only */
  --paper:#f7f4f9;
  --label:#fbf8f1;      /* panel directory card stock */
  --white:#fff;
  --line:#ded5e5;
  --muted:#574a63;
  --wrap:74rem;
  --gut:clamp(1.1rem,4vw,2.5rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;
  font-family:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:1.0625rem;
  line-height:1.55;
  color:var(--ink);
  background:var(--white);
}
img{max-width:100%;height:auto;display:block}
a{color:var(--cell)}
a:hover{color:var(--cell-2)}
:focus-visible{outline:3px solid var(--sun-deep);outline-offset:3px;border-radius:2px}
.on-dark :focus-visible,.hero :focus-visible,.site-foot :focus-visible{outline-color:var(--sun)}

h1,h2,h3{font-stretch:78%;font-weight:800;line-height:1.02;letter-spacing:-.005em;margin:0;text-wrap:balance}
h1{font-size:clamp(2.5rem,6.4vw,4.75rem)}
h2{font-size:clamp(1.9rem,4.2vw,3rem)}
h3{font-size:1.35rem;line-height:1.12;font-stretch:84%}
p{margin:0 0 1em;max-width:66ch}
p:last-child{margin-bottom:0}
.lede{font-size:1.2rem;line-height:1.5}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.skip{position:absolute;left:-999px;top:0;background:var(--sun);color:var(--ink);padding:.6rem 1rem;font-weight:700;z-index:100}
.skip:focus{left:0}

/* ---------- header ---------- */
.site-head{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-head .wrap{display:flex;align-items:center;gap:1.25rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink);margin-right:auto}
.brand svg{width:2.1rem;height:2.1rem;flex:none}
.brand-name{font-stretch:76%;font-weight:800;font-size:1.4rem;line-height:1;white-space:nowrap}
.brand-name small{display:block;font-stretch:100%;font-weight:500;font-size:.72rem;color:var(--muted);margin-top:.2rem}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.4rem}
.nav a{text-decoration:none;color:var(--ink);font-weight:600;font-size:.98rem;padding:.4rem 0;border-bottom:3px solid transparent}
.nav a:hover{border-bottom-color:var(--line)}
.nav a[aria-current="page"]{border-bottom-color:var(--sun)}
.lang{font-weight:700;font-size:.95rem;text-decoration:none;color:var(--ink);border:1.5px solid var(--ink);padding:.35rem .7rem;border-radius:3px;white-space:nowrap}
.lang:hover{background:var(--ink);color:var(--white)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:inherit;font-weight:800;font-stretch:88%;
  text-decoration:none;border:0;border-radius:4px;padding:.85rem 1.3rem;cursor:pointer;line-height:1.1;white-space:nowrap}
.btn-sun{background:var(--sun);color:var(--ink)}
.btn-sun:hover{background:var(--sun-deep);color:var(--ink)}
.btn-ink{background:var(--ink);color:var(--white)}
.btn-ink:hover{background:var(--cell);color:var(--white)}
.btn-ghost{background:transparent;color:var(--white);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
.btn-ghost:hover{box-shadow:inset 0 0 0 2px var(--white);color:var(--white)}
.btn svg{width:1.05em;height:1.05em;flex:none}
.head-call{padding:.65rem 1rem}

.menu{display:none}
@media (max-width:62rem){
  .nav{display:none}
  .menu{display:block;position:relative}
  .menu summary{list-style:none;cursor:pointer;font-weight:700;border:1.5px solid var(--ink);border-radius:3px;padding:.35rem .7rem}
  .menu summary::-webkit-details-marker{display:none}
  .menu[open] summary{background:var(--ink);color:var(--white)}
  .menu ul{list-style:none;margin:0;padding:.5rem 0;position:absolute;right:0;top:calc(100% + .6rem);background:var(--white);
    border:1px solid var(--line);border-radius:4px;min-width:15rem;box-shadow:0 14px 30px rgba(43,10,58,.16)}
  .menu a{display:block;padding:.75rem 1.1rem;text-decoration:none;color:var(--ink);font-weight:600}
  .menu a[aria-current="page"]{box-shadow:inset 4px 0 0 var(--sun)}
  .head-call{display:none}
  .brand-name small{display:none}
}

/* ---------- hero ---------- */
.hero{background:var(--ink);color:var(--white);position:relative;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;
  padding-block:clamp(2.5rem,6vw,5rem)}
.hero h1{color:var(--white)}
.hero .lede{color:#e9deef;margin-top:1.4rem;max-width:34rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}
.hero-fig{position:relative;margin:0}
.hero-fig img{width:100%;border-radius:4px;aspect-ratio:11/9;object-fit:cover}

/* The estimate tag: the loudest object on every page. */
.tag{background:var(--sun);color:var(--ink);padding:1.1rem 1.3rem 1.2rem;border-radius:4px}
.tag strong{display:block;font-stretch:72%;font-weight:900;font-size:clamp(2rem,4.4vw,2.9rem);line-height:.95}
.tag span{display:block;font-weight:600;margin-top:.45rem;line-height:1.3}
.hero-fig .tag{position:absolute;left:-1.5rem;bottom:-1.5rem;max-width:19rem;box-shadow:0 18px 40px rgba(0,0,0,.35)}
@media (max-width:56rem){
  .hero .wrap{grid-template-columns:1fr}
  .hero-fig .tag{position:static;max-width:none;margin-top:.8rem;box-shadow:none}
}

/* Inner-page hero */
.page-hero{background:var(--ink);color:var(--white)}
.page-hero .wrap{padding-block:clamp(2.2rem,5vw,4rem);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:2.5rem;align-items:end}
.page-hero h1{font-size:clamp(2.2rem,5.2vw,3.8rem)}
.page-hero .lede{color:#e9deef;margin-top:1.1rem}
.crumbs{font-size:.9rem;margin-bottom:1.1rem;color:#cbb9d6}
.crumbs a{color:#e9deef}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;gap:.5rem;flex-wrap:wrap}
.crumbs li+li::before{content:"/";margin-right:.5rem;color:#957fa5}
@media (max-width:56rem){.page-hero .wrap{grid-template-columns:1fr;align-items:start}}

/* ---------- facts ---------- */
.facts{background:var(--paper);border-bottom:1px solid var(--line)}
.facts dl{margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.facts dl div{padding:1.5rem 1.25rem 1.6rem 0;border-left:1px solid var(--line);padding-left:1.25rem}
.facts dl div:first-child{border-left:0;padding-left:0}
.facts dt{font-stretch:78%;font-weight:800;font-size:1.45rem;line-height:1.05}
.facts dd{margin:.35rem 0 0;color:var(--muted);font-size:.98rem;line-height:1.4}
@media (max-width:56rem){
  .facts dl{grid-template-columns:1fr 1fr}
  .facts dl div{border-left:0;padding-left:0;border-top:1px solid var(--line)}
  .facts dl div:nth-child(-n+2){border-top:0}
  .facts dl div:nth-child(even){padding-left:1.25rem;border-left:1px solid var(--line)}
}

/* ---------- sections ---------- */
.sec{padding-block:clamp(3rem,7vw,5.5rem)}
.sec-paper{background:var(--paper)}
.sec-ink{background:var(--ink);color:var(--white)}
.sec-ink h2{color:var(--white)}
.sec-head{max-width:46rem;margin-bottom:2.2rem}
.sec-head p{margin-top:1rem;font-size:1.12rem}
.sec-ink .sec-head p{color:#e9deef}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,5vw,4rem);align-items:center}
.split.top{align-items:start}
@media (max-width:56rem){.split{grid-template-columns:1fr}}
.pic img{border-radius:4px;width:100%;object-fit:cover}
.pic-pair{display:grid;grid-template-columns:1.25fr 1fr;gap:.8rem;align-items:end}
.pic-pair img{aspect-ratio:4/3;height:100%}
.pic-pair img:last-child{aspect-ratio:3/4}

/* power sources: a real three-way choice, so it is drawn as one */
.sources{list-style:none;margin:1.8rem 0 0;padding:0;border-top:2px solid var(--ink)}
.sources li{display:grid;grid-template-columns:7.5rem 1fr;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line);align-items:baseline}
.sources b{font-stretch:78%;font-weight:800;font-size:1.3rem}
.sources span{color:var(--muted)}
@media (max-width:30rem){.sources li{grid-template-columns:1fr;gap:.2rem}}

/* ---------- panel directory (the signature) ---------- */
.directory{background:var(--label);color:var(--ink);border-radius:5px;padding:clamp(1.1rem,3vw,2rem);
  box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 60px rgba(0,0,0,.35)}
.directory-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;border-bottom:2px solid var(--ink);padding-bottom:.7rem;margin-bottom:.2rem;flex-wrap:wrap}
.directory-head b{font-stretch:78%;font-weight:800;font-size:1.25rem}
.directory-head span{font-size:.9rem;color:#5a5546}
.circuits{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(1rem,3vw,2.5rem)}
.circuits li{display:grid;grid-template-columns:1.9rem 2.3rem 1fr;gap:.8rem;align-items:start;padding:1rem 0;border-bottom:1px solid #d8d0b9}
.circuits .n{font-variant-numeric:tabular-nums;font-weight:700;color:#5a5546;padding-top:.15rem;text-align:right}
/* a breaker handle, thrown to ON */
.circuits .brk{width:2.3rem;height:1.25rem;border-radius:3px;background:var(--ink);position:relative;margin-top:.2rem}
.circuits .brk::after{content:"";position:absolute;top:3px;bottom:3px;right:3px;width:44%;background:var(--sun);border-radius:2px}
.circuits .spare .brk::after{right:auto;left:3px;background:#a99bb5}
.circuits h3{font-size:1.18rem}
.circuits h3 a{color:var(--ink);text-decoration:none}
.circuits h3 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.circuits p{font-size:.98rem;color:#45374f;margin-top:.3rem;line-height:1.45}
@media (max-width:48rem){.circuits{grid-template-columns:1fr}}
.directory-foot{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.4rem}

/* ---------- service lists on inner pages ---------- */
.svc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(1.5rem,4vw,3.5rem);border-top:2px solid var(--ink)}
.svc article{padding:1.5rem 0 1.6rem;border-bottom:1px solid var(--line)}
.svc p{margin-top:.6rem;color:var(--muted)}
@media (max-width:48rem){.svc{grid-template-columns:1fr}}

/* ---------- areas ---------- */
.areas{list-style:none;margin:0;padding:0;columns:3;column-gap:2rem;font-weight:600;font-size:1.1rem}
.areas li{padding:.55rem 0;border-bottom:1px solid var(--line);break-inside:avoid}
@media (max-width:40rem){.areas{columns:2}}

/* ---------- faq ---------- */
.faq{border-top:2px solid var(--ink);max-width:52rem}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;padding:1.15rem 2.5rem 1.15rem 0;position:relative;font-stretch:84%;font-weight:800;font-size:1.22rem;line-height:1.2}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:.4rem;top:1.55rem;width:.7rem;height:.7rem;border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(-135deg);top:1.8rem}
@media (prefers-reduced-motion:reduce){.faq summary::after{transition:none}}
.faq .a{padding:0 0 1.3rem}
.faq .a p{color:#35243f}

/* ---------- estimate band + form ---------- */
.band{background:var(--cell);color:var(--white)}
.band .wrap{padding-block:clamp(2.5rem,6vw,4.5rem);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,5vw,4rem);align-items:start}
.band h2{font-size:clamp(2.3rem,5.4vw,3.9rem);font-stretch:72%;font-weight:900;line-height:.95}
.band .lede{margin-top:1rem;font-weight:500}
.band-phone{display:inline-block;margin-top:1.2rem;font-stretch:76%;font-weight:900;font-size:clamp(2rem,4.6vw,3rem);color:var(--sun);text-decoration:none;line-height:1}
.band-phone:hover{color:var(--white);text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}
.band-note{margin-top:.9rem;font-size:.98rem}
@media (max-width:56rem){.band .wrap{grid-template-columns:1fr}}

.form{background:var(--white);border-radius:5px;padding:clamp(1.1rem,3vw,1.8rem);box-shadow:0 20px 44px rgba(43,10,58,.18)}
.form h3{margin-bottom:1rem}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
@media (max-width:30rem){.form .row{grid-template-columns:1fr}}
.form p{margin:0 0 .9rem;max-width:none}
.form label{display:block;font-weight:700;font-size:.95rem;margin-bottom:.3rem}
.form input,.form select,.form textarea{width:100%;font:inherit;color:var(--ink);background:var(--white);border:1.5px solid #9a8aa6;border-radius:4px;padding:.7rem .8rem}
.form textarea{min-height:6.5rem;resize:vertical}
.form input:focus-visible,.form select:focus-visible,.form textarea:focus-visible{outline:3px solid var(--cell-2);outline-offset:1px;border-color:var(--cell-2)}
.form .btn{width:100%;font-size:1.08rem;padding:1rem}
.form .fine{font-size:.85rem;color:var(--muted);margin:.8rem 0 0}
.hp{position:absolute;left:-10000px}

/* ---------- prose pages ---------- */
.prose h2{font-size:clamp(1.6rem,3.2vw,2.2rem);margin:2.2rem 0 .8rem}
.prose h2:first-child{margin-top:0}
.cred{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.cred li{padding:1rem 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:11rem 1fr;gap:1rem}
.cred b{font-weight:800}
.cred span{color:var(--muted)}
@media (max-width:34rem){.cred li{grid-template-columns:1fr;gap:.15rem}}
.contact-list{list-style:none;margin:1.4rem 0 0;padding:0}
.contact-list li{padding:.9rem 0;border-top:1px solid rgba(255,255,255,.28)}
.contact-list b{display:block;font-size:.92rem;font-weight:700}

/* ---------- footer ---------- */
.site-foot{background:var(--ink);color:#d9cbe2;font-size:.98rem}
.site-foot .wrap{padding-block:3rem 2rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem}
@media (max-width:48rem){.foot-grid{grid-template-columns:1fr;gap:1.8rem}}
.site-foot h2{font-size:1.05rem;font-stretch:100%;font-weight:700;color:var(--white);margin-bottom:.8rem;line-height:1.3}
.site-foot a{color:var(--white)}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{padding:.25rem 0}
.site-foot .brand{color:var(--white);margin-bottom:1rem}
.foot-legal{border-top:1px solid #4a2060;margin-top:2.2rem;padding-top:1.3rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.9rem;color:#b9a3c6}

/* ---------- mobile call bar ---------- */
.callbar{display:none}
@media (max-width:48rem){
  body{padding-bottom:4.2rem}
  .callbar{display:grid;grid-template-columns:1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:60;box-shadow:0 -6px 20px rgba(43,10,58,.22)}
  .callbar a{display:flex;align-items:center;justify-content:center;gap:.45rem;padding:1.05rem .5rem;font-weight:800;font-stretch:86%;text-decoration:none;line-height:1.1;text-align:center}
  .callbar .c1{background:var(--sun);color:var(--ink)}
  .callbar .c2{background:var(--ink);color:var(--white)}
  .callbar svg{width:1.1em;height:1.1em;flex:none}
}

/* the single orchestrated moment: the panel's breakers throw to ON as the directory loads */
@media (prefers-reduced-motion:no-preference){
  .circuits li:not(.spare) .brk::after{animation:throw .32s cubic-bezier(.16,1,.3,1) both}
  .circuits li:nth-child(1) .brk::after{animation-delay:.15s}
  .circuits li:nth-child(2) .brk::after{animation-delay:.25s}
  .circuits li:nth-child(3) .brk::after{animation-delay:.35s}
  .circuits li:nth-child(4) .brk::after{animation-delay:.45s}
  .circuits li:nth-child(5) .brk::after{animation-delay:.55s}
  .circuits li:nth-child(6) .brk::after{animation-delay:.65s}
  .circuits li:nth-child(7) .brk::after{animation-delay:.75s}
  @keyframes throw{from{transform:translateX(-118%);background:#a99bb5}to{transform:none;background:var(--sun)}}
}

/* spacing under section headings that sit directly on body copy */
.sec-body{margin-top:1.1rem}
.sec-body+p,.faq-more{margin-top:1.1rem}

/* phone header: brand, language, menu must fit 360px */
@media (max-width:30rem){
  .site-head .wrap{gap:.55rem}
  .brand{gap:.5rem;min-width:0}
  .brand svg{width:1.8rem;height:1.8rem}
  .brand-name{font-size:1.15rem}
  .lang,.menu summary{padding:.35rem .55rem;font-size:.9rem}
}
.split h2+.lede{margin-top:1rem}

/* purple band: light text, yellow focus ring, links stay readable */
.band h2{color:var(--white)}
.band :focus-visible{outline-color:var(--sun)}
.band .contact-list a{color:var(--white)}
.band .form{color:var(--ink)}

/* ---------- the client's logo (chosen 2026-11-10) ---------- */
.brand img{display:block;height:3.25rem;width:auto}
.site-foot .brand{display:inline-block;background:var(--white);border-radius:8px;padding:.7rem;margin-bottom:1.1rem}
.site-foot .brand img{height:9rem;width:auto}
@media (max-width:30rem){.brand img{height:2.6rem}.site-foot .brand img{height:7.5rem}}
