/* =========================================================
   Standby Generators Pinecrest — "The Panel Schedule"
   The site is built like the inside of a breaker panel door:
   powder-coated steel ground, a ruled directory card, black
   engraved label plates, a copper bus bar as the spine.
   Colour restraint: the only saturated colour is the generator
   lamp (green) and the outage signal (red).
   Plain CSS, no build step.
   ========================================================= */

/* shortcut: Google Fonts via @import (one extra round trip). Self-host the three faces when rolling out to production. */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Kalam:wght@400;700&display=swap");

:root {
  --steel:       #babdb5;   /* panel door powder coat */
  --steel-hi:    #c8cbc3;
  --steel-lo:    #a5a99f;
  --steel-ink:   #383b36;   /* secondary text on steel (7:1+) */
  --card:        #f3f1e8;   /* directory card stock */
  --card-rule:   #a9b2b6;   /* blue-grey printed rules */
  --ink:         #1c1e1b;   /* engraved black */
  --ink-soft:    #3f433d;
  --plate:       #1c1e1b;   /* phenolic label plate */
  --plate-text:  #f3f1e8;
  --copper:      #b27b45;
  --copper-hi:   #d6a46d;
  --copper-lo:   #7d532b;
  --lamp:        #2fa24d;   /* generator lamp */
  --lamp-glow:   #5be07a;
  --lamp-text:   #1e6b33;   /* green as text on card (5.6:1) */
  --out:         #c4302a;   /* utility out */
  --out-glow:    #ff6a5c;
  --night:       #2a2d2a;   /* outage dimming / footer */

  /* legacy aliases so existing pages keep resolving */
  --brand: var(--ink); --brand-dark: #000; --line: var(--card-rule);
  --bg: var(--steel); --bg-alt: var(--steel-hi); --bg-dark: var(--steel);

  --max: 1200px;
  --radius: 3px;
  --bus-x: 28px;            /* copper spine position inside .wrap */
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-hand: "Kalam", "Bradley Hand", cursive;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink-soft) var(--steel-lo); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--steel);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px); /* powder-coat grain */
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease-out);
}
::selection { background: var(--ink); color: var(--card); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--steel-lo); }
::-webkit-scrollbar-thumb { background: var(--ink-soft); border: 3px solid var(--steel-lo); border-radius: 6px; }

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

.site-header :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--copper-hi); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plate); color: var(--plate-text); padding: 10px 16px; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.skip:focus { top: 12px; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.02; color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; text-transform: uppercase; margin-bottom: .45em; }
h3 { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin-bottom: .3em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); max-width: 68ch; }
a  { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
.num { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.hand { font-family: var(--font-hand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- label plates (buttons) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--plate);
  color: var(--plate-text);
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  border: 0; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 rgba(255,255,255,.4), 0 3px 8px rgba(0,0,0,.22);
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 rgba(255,255,255,.4), 0 6px 14px rgba(0,0,0,.26); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.btn--ghost { background-color: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,.12); }
.btn--lg { padding: 19px 38px; font-size: 1.3rem; }
.btn .lamp { width: .62em; height: .62em; }

.lamp { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #c9ffd6, var(--lamp) 55%, #17582a); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 12px 2px rgba(91,224,122,.55); }
.lamp--off { background: radial-gradient(circle at 35% 30%, #f6f6f0, #c9cbc3 55%, #8d9089); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.lamp--out { background: radial-gradient(circle at 35% 30%, #ffd2cc, var(--out) 55%, #6d1410); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 14px 3px rgba(255,106,92,.6); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .lamp--out { animation: none; } }

.muted { color: var(--ink-soft); font-size: .92rem; }

/* ---------- header: the head rule ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--plate); color: var(--plate-text); box-shadow: 0 2px 0 var(--copper-lo), 0 6px 18px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 24px; max-width: calc(var(--max) + 40px); margin: 0 auto; }
.nav__logo { color: var(--plate-text); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .08em; line-height: 1.05; }
.nav__logo strong { font-weight: 800; }
.nav__logo:hover { text-decoration: none; color: #fff; }
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__links a { color: var(--plate-text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .07em; text-transform: uppercase; }
.nav__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--copper-hi); }
.nav__span { font-family: var(--font-head); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #a9ada5; white-space: nowrap; border-left: 1px solid #4a4d48; padding-left: 16px; }
.nav__span b { color: var(--copper-hi); font-weight: 700; }

.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: -14px; background: var(--card); border-radius: var(--radius); min-width: 290px; padding: 8px 0; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { list-style: none; border-bottom: 1px solid var(--card-rule); }
.dropdown li:last-child { border-bottom: 0; }
.nav__links .dropdown a { display: block; padding: 10px 18px; color: var(--ink); font-size: 1rem; }
.nav__links .dropdown a:hover { background: #e7e5da; color: var(--ink); }

.nav__call { display: inline-flex; align-items: center; gap: 10px; background: #2c2f2b; color: var(--plate-text) !important; padding: 9px 16px; border-radius: var(--radius); font-weight: 700 !important; font-size: 1.15rem !important; box-shadow: inset 0 0 0 1px #4a4d48; }
.nav__call::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); }
.nav__call:hover { background: #393c37; text-decoration: none !important; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--plate-text); width: 44px; height: 44px; font-size: 1.6rem; }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__end .nav__call { display: none; }

.nav__links a, .nav__logo { white-space: nowrap; }
@media (max-width: 1320px) { .nav__span { display: none; } }
@media (max-width: 1120px) { .nav__links { gap: 16px; } .nav__links a { font-size: .98rem; letter-spacing: .05em; } }
@media (max-width: 960px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--plate); padding: 6px 24px 18px; max-height: calc(100vh - 64px); overflow: auto; }
  .nav__links.open { display: flex; }
  .nav__links > li { padding: 12px 0; border-bottom: 1px solid #3a3d38; }
  .nav__links > li:last-child { border-bottom: 0; }
  .dropdown { position: static; display: block; box-shadow: none; background: none; padding: 6px 0 0 14px; min-width: 0; }
  .dropdown li { border: 0; }
  .nav__links .dropdown a { color: #c9ccc4; padding: 7px 0; }
  .nav__links .dropdown a:hover { background: none; color: #fff; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__end .nav__call { display: inline-flex; font-size: 1rem !important; padding: 8px 12px; }
  .nav__links .nav__call { display: none; }
}

/* ---------- sections hang off the copper bus ---------- */
.section { padding: 88px 0; position: relative; }
main { display: block; position: relative; }
main::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none; width: 10px; top: 48px; bottom: 0;
  left: calc(max(0px, (100% - var(--max)) / 2) + var(--bus-x));
  background: linear-gradient(90deg, var(--copper-lo), var(--copper-hi) 45%, var(--copper) 60%, var(--copper-lo));
  box-shadow: 1px 0 0 rgba(255,255,255,.25), -1px 0 0 rgba(0,0,0,.2);
}
.section--alt { background-color: var(--steel-hi); }
.section--dark { background: var(--night); color: var(--plate-text); }
.section--dark h2, .section--dark h3 { color: var(--plate-text); }
.section--dark p { color: #cfd1ca; }
.section__lead { max-width: 68ch; }
.center { text-align: left; } /* legacy class: the panel world is left-aligned on the bus */

/* circuit address tab: a numbered breaker lug on the bus */
.ckt { position: absolute; z-index: 2; left: calc(var(--bus-x) - 15px); top: 4px; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--plate); color: var(--plate-text); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  border-radius: var(--radius); box-shadow: 0 0 0 3px var(--copper), 0 4px 10px rgba(0,0,0,.25); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* directory card stock: ruled sheet */
.sheet, .card {
  background-color: var(--card);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 0 #8f938b, 0 14px 30px rgba(0,0,0,.16);
}
.card { padding: 28px; border-radius: 0; border-top: 6px solid var(--ink); }
.card h3, .card__title { margin-bottom: .4em; font-size: 1.45rem; }
.card p:last-child { margin-bottom: 0; }

/* area / link list as engraved tags */
.linklist { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.linklist a {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius);
  background: var(--plate); color: var(--plate-text); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.2);
  transition: transform .12s var(--ease-out);
}
.linklist a::after { content: ""; width: 8px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23d6a46d' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.linklist a:hover { transform: translateY(-2px); text-decoration: none; }

/* ruled table on card stock */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: 0 2px 0 #8f938b, 0 14px 30px rgba(0,0,0,.16); }
th, td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--card-rule); font-size: 1.05rem; vertical-align: baseline; }
th { background: var(--plate); color: var(--plate-text); font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
td:last-child { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* FAQ as ruled rows */
.faq details { border-bottom: 1px solid var(--ink); }
.faq details:first-child { border-top: 3px solid var(--ink); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .01em; padding: 20px 52px 20px 0; list-style: none; position: relative; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 26px; height: 14px; margin-top: -7px; border-radius: 3px; background: var(--plate); box-shadow: inset 14px 0 0 var(--steel-lo); transition: box-shadow .14s var(--ease-out); }
.faq details[open] summary::after { box-shadow: inset -14px 0 0 var(--lamp); }
.faq details > p { padding-bottom: 22px; margin-bottom: 0; font-size: 1.1rem; }

/* closing band: the big plate */
.cta-band { background: var(--night); color: var(--plate-text); padding: 96px 0; position: relative; }
.cta-band h2 { color: var(--plate-text); }
.cta-band p { color: #cfd1ca; }
.cta-band .btn { background-color: var(--card); color: var(--ink); }

/* ---------- estimate / contact form ---------- */
.form-card { background: var(--card); border-top: 6px solid var(--ink); border-radius: 0; padding: 32px; box-shadow: 0 2px 0 #8f938b, 0 14px 30px rgba(0,0,0,.16); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: #fbfaf5; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); caret-color: var(--lamp-text);
}
.field input::placeholder, .field textarea::placeholder { color: #5f645d; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: 0 2px 0 var(--lamp-text); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #cfd1ca; padding: 64px 0 28px; border-top: 4px solid var(--copper-lo); }
.site-footer .wrap { padding-left: 24px; }
.site-footer h4 { color: var(--plate-text); margin-bottom: 14px; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p { color: #cfd1ca; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--card); font-size: .97rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #454843; margin-top: 44px; padding-top: 20px; font-size: .88rem; color: #a9ada5; }
.footer-disclaimer { font-size: .86rem; color: #a9ada5; margin-top: 10px; line-height: 1.5; }

/* ---------- inner-page hero (pre-rollout pages) ---------- */
.hero { position: relative; background: var(--steel) !important; padding: 56px 0 24px; }
.hero__inner { position: relative; z-index: 2; margin: 0 calc(max(0px, (100% - var(--max)) / 2) + 24px) 0 calc(max(0px, (100% - var(--max)) / 2) + 76px); padding: 0 40px 44px; background: var(--card); box-shadow: 0 2px 0 #8f938b, 0 14px 30px rgba(0,0,0,.16); }
.hero__inner::before { content: ""; display: block; height: 10px; margin: 0 -40px 32px; background: var(--plate); }
.hero__eyebrow { font-family: var(--font-hand); font-size: 1.25rem; color: var(--ink-soft); }
.hero h1 { margin: 4px 0 16px; max-width: 20ch; }
.hero p { font-size: 1.15rem; }
.hero__cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__cta .btn--ghost { color: var(--ink) !important; border-color: transparent !important; }

/* ---------- article pages ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin-top: 44px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.article h3 { margin-top: 26px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .45rem; }
.article__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.6rem; margin-top: 36px; }
.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--ink); }
.contact-list li:last-child { border-bottom: 0; }
.team-grid { margin-top: 24px; }
.team-card .avatar { width: 56px; height: 56px; border-radius: var(--radius); background: var(--plate); color: var(--plate-text); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.team-card .role { color: var(--lamp-text); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }

/* phone link — stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }

/* =========================================================
   HOMEPAGE: the panel door
   ========================================================= */
.panel { padding: 48px 0 96px; position: relative; }

.directory { position: relative; z-index: 2; background: var(--card); border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 3px 0 #8f938b, 0 26px 50px rgba(0,0,0,.2); }
.directory__head { display: flex; justify-content: flex-end; align-items: center; gap: 24px; background: var(--plate); color: var(--plate-text); padding: 14px 32px; }
.directory__head h1 { color: var(--plate-text); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; letter-spacing: .14em; line-height: 1.25; }
.ats { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; white-space: nowrap; }

.directory__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.directory__col { padding: 36px 40px 40px; }
.directory__col + .directory__col { border-left: 2px solid var(--ink); }

.display__sub { display: block; margin-top: 14px; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 700; letter-spacing: .12em; line-height: 1.25; color: var(--ink-soft); }
.display { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; color: var(--ink); font-size: clamp(3rem, 7.4vw, 6rem); line-height: .88; letter-spacing: -.01em; margin-bottom: 26px; max-width: none; }

.breakers { border: 0; }
.breakers legend { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 8px; border-bottom: 3px solid var(--ink); width: 100%; }
.breaker {
  display: grid; grid-template-columns: 30px 52px 1fr auto; align-items: center; gap: 14px; width: 100%;
  min-height: 52px; padding: 4px 4px; background: none; border: 0; border-bottom: 1px solid var(--card-rule);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: opacity .3s var(--ease-out), filter .3s var(--ease-out);
}
.breaker:hover { background: rgba(28,30,27,.04); }
.breaker__no { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.breaker__handle { position: relative; width: 52px; height: 26px; border-radius: 4px; background: #30332f; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.breaker__handle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 20px; border-radius: 3px;
  background: linear-gradient(#8a8e86, #5b5f58); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 2px 3px rgba(0,0,0,.5); transition: transform .12s var(--ease-out), background .12s; }
.breaker[aria-pressed="true"] .breaker__handle::after { transform: translateX(24px); background: linear-gradient(#f0eee4, #c8c6bb); }
.breaker__name { font-family: var(--font-hand); font-size: 1.32rem; line-height: 1.15; }
.breaker__kw { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.breaker[aria-pressed="false"] .breaker__name { color: #575c55; text-decoration: line-through; text-decoration-thickness: 1px; }

.readout { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 3px solid var(--ink); }
.readout__label { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.readout__kw { display: block; font-family: var(--font-head); font-weight: 800; font-size: 4.4rem; font-size: clamp(3.4rem, 6.5vw, 5.4rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.readout__kw small { font-size: 2rem; letter-spacing: .06em; margin-left: .15em; }
.readout__size { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 10px; color: var(--ink); max-width: none; }
.readout__size b { color: var(--lamp-text); }
.readout__note { font-size: .88rem; margin: 0; }

.transfer { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 24px; padding: 12px 16px; background: #e6e4d9; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.transfer:hover { background: #dedcd0; }
.transfer__throw { position: relative; flex: none; width: 34px; height: 54px; border-radius: 4px; background: #30332f; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.transfer__throw::after { content: ""; position: absolute; left: 5px; right: 5px; top: 5px; height: 20px; border-radius: 3px; background: linear-gradient(#f0eee4, #c8c6bb); transition: transform .14s var(--ease-out); }
.transfer[aria-pressed="true"] .transfer__throw::after { transform: translateY(24px); background: linear-gradient(#ff8f84, var(--out)); }
.transfer__text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.transfer__text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }

.panel__copy { font-size: 1.1rem; }
.panel__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* outage states — driven by body[data-power] */
body[data-power="outage"], body[data-power="generator"] { background-color: #8c9089; }
body[data-power="outage"] .directory__body { filter: brightness(.55) saturate(.6); }
body[data-power="generator"] .breaker[aria-pressed="false"] { opacity: .32; filter: grayscale(1); }
body[data-power="generator"] .breaker[aria-pressed="true"] .breaker__handle { box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 0 0 2px var(--lamp); }
.directory__body { transition: filter .5s var(--ease-out); }

/* one-line diagram: utility / generator / ATS / panel */
.oneline { width: 100%; height: auto; }
.oneline text { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.oneline .wire { fill: none; stroke: #6d726b; stroke-width: 6; stroke-linecap: round; transition: stroke .4s; }
.oneline .box { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.oneline .flow { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 10 14; animation: flow 1.1s linear infinite; }
.oneline .flow--grid { stroke: var(--ink); }
.oneline .flow--gen { stroke: var(--lamp); opacity: 0; }
@keyframes flow { to { stroke-dashoffset: -24; } }
body[data-power="outage"] .oneline .flow--grid, body[data-power="generator"] .oneline .flow--grid { opacity: 0; }
body[data-power="generator"] .oneline .flow--gen { opacity: 1; }
body[data-power="outage"] .oneline .wire--grid { stroke: var(--out); stroke-dasharray: 4 10; }
@media (prefers-reduced-motion: reduce) { .oneline .flow { animation: none; stroke-dasharray: none; } }
.diagram { padding: 28px 32px 20px; }
.diagram figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }

/* install schedule: numbered rows in the installer's hand */
.schedule { list-style: none; counter-reset: step; }
.schedule li { display: grid; grid-template-columns: 56px 1fr minmax(150px, auto); gap: 6px 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--ink); counter-increment: step; }
.schedule li:first-child { border-top: 3px solid var(--ink); }
.schedule li::before { content: counter(step); font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ink); }
.schedule h3 { margin: 0; font-size: 1.55rem; }
.schedule p { grid-column: 2; margin: 0; }
.schedule .dur { grid-column: 3; grid-row: 1; justify-self: end; font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink); white-space: nowrap; }
.span-total { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.span-total .num { font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; line-height: .9; color: var(--ink); }
.span-total span:last-child { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .08em; text-transform: uppercase; }

/* services as a two-pole panel: odd circuits left, even right */
.poles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; background: var(--ink); box-shadow: 0 2px 0 #8f938b, 0 14px 30px rgba(0,0,0,.16); border-top: 10px solid var(--plate); }
.pole { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 26px 30px; border-bottom: 1px solid var(--card-rule); text-decoration: none; color: var(--ink); background: var(--card); transition: background .15s; }
.pole:hover { background: #e9e7dc; text-decoration: none; }
.pole__no { grid-row: span 2; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; }
.pole h3 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.pole h3::after { content: ""; width: 9px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%231c1e1b' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s var(--ease-out); flex: none; }
.pole:hover h3::after { transform: translateX(4px); }
.pole p { margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .poles { grid-template-columns: 1fr; } }

/* handover checklist */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding: 26px 0; border-top: 3px solid var(--ink); }
.checklist svg { width: 40px; height: 40px; }
.checklist h3 { font-size: 1.55rem; }
.checklist p { margin: 0; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

.closer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.closer__phone { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .95; color: var(--plate-text); text-decoration: none; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.closer__phone:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 4px; }
.closer .btn { margin-top: 18px; }
@media (max-width: 860px) { .closer { grid-template-columns: 1fr; gap: 20px; } }

@media (max-width: 960px) {
  .directory__body { grid-template-columns: minmax(0, 1fr); }
  .directory__col + .directory__col { border-left: 0; border-top: 2px solid var(--ink); }
}
@media (max-width: 640px) {
  :root { --bus-x: 14px; }
  .nav { padding: 8px 12px 8px 16px; gap: 10px; }
  .nav__logo { white-space: normal; font-size: 1rem; max-width: 12ch; }
  .nav__call { white-space: nowrap; }
  .nav__end .nav__call { font-size: .98rem !important; padding: 8px 10px; gap: 8px; }
  body { font-size: 1.03rem; }
  .wrap { padding: 0 16px 0 46px; }
  .panel { padding: 20px 0 64px; }
  .panel > .wrap { padding: 0 12px; }
  .section { padding: 64px 0; }
  main::before { width: 6px; top: 20px; }
  .ckt { left: calc(var(--bus-x) - 13px); width: 32px; height: 32px; font-size: .95rem; }
  .directory__head { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 18px; }
  .directory__col { padding: 22px 18px 26px; }
  .breaker { grid-template-columns: 22px 46px 1fr auto; gap: 10px; }
  .breaker__handle { width: 46px; } .breaker[aria-pressed="true"] .breaker__handle::after { transform: translateX(18px); }
  .breaker__name { font-size: 1.18rem; }
  .schedule li { grid-template-columns: 40px 1fr; }
  .schedule .dur { grid-column: 2; grid-row: auto; justify-self: start; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child { display: none; }
  tr { padding: 14px 18px; border-bottom: 1px solid var(--card-rule); }
  tr:last-child { border-bottom: 0; }
  td { padding: 0; border: 0; }
  td:last-child { white-space: normal; margin-top: 2px; }
  .hero__inner { padding: 0 20px 32px; margin: 0 12px; }
  .hero__inner::before { margin: 0 -20px 24px; }
  .btn--lg { padding: 17px 26px; font-size: 1.15rem; }
}
