/* G. Bisson Electric — concept site. Livery taken from their vans:
   white body, kelly-green lettering, gold "ELECTRIC LTD." on a green bar. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Radio Canada"; src: url("../fonts/radio-canada-latin-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-600-latin.woff2") format("woff2");
  font-weight: 600; font-display: swap; }

:root {
  --paper: #F7F6F1;
  --paper-2: #EDEDE5;
  --steel: #D5D8D1;
  --line: #D8D8CE;
  --ink: #11241A;
  --ink-2: #34443A;
  --muted: #5B675F;
  --green: #17834A;       /* van green: fills, white text on top */
  --green-ink: #126B3C;   /* green for text on paper (AA) */
  --green-deep: #0D4F2C;  /* bar behind the gold */
  --gold: #F2B91D;        /* only ever on green, like the van */
  --white: #FFFFFF;
  --red: #B3261E;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Radio Canada", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-weight: 850; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 2.4vw + 1.2rem, 3.2rem); }
h3 { font-weight: 750; font-size: 1.3rem; font-stretch: 105%; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.kicker {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-ink); margin: 0 0 1rem;
}
.lede { font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); color: var(--ink-2); max-width: 36em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-display); font-stretch: 110%; font-weight: 750; font-size: 1.02rem;
  padding: .85em 1.25em; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.1; white-space: nowrap;
}
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--white { background: var(--white); color: var(--green-deep); }
.btn--white:hover { background: var(--paper-2); color: var(--green-deep); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Logo (set as type, after the van) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; line-height: 1; }
.logo__name {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: 1.45rem; letter-spacing: .01em; color: var(--green);
  transform: skewX(-8deg); transform-origin: left bottom;
}
.logo__bar {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  font-size: .64rem; letter-spacing: .2em; color: var(--gold);
  background: var(--green); padding: 3px 7px 2px; border-radius: 2px;
}
.logo--lg .logo__name { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.logo--lg .logo__bar { font-size: clamp(.9rem, 2vw, 1.15rem); padding: 5px 12px 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 241, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.nav { display: none; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.header-phone { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink);
  color: var(--ink); border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--f-body); cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px var(--gutter); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav a.mobile-nav__call { color: var(--green-ink); font-family: var(--f-mono); font-weight: 600; }
@media (min-width: 880px) {
  .nav { display: flex; }
  .header-phone { display: inline-flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { font-size: clamp(2.7rem, 8.5vw, 5.6rem); margin-bottom: .35em; }
.hero h1 .dot { color: var(--green); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .98rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex: none; }

/* ---------- Circuit directory (signature) ---------- */
.panel {
  background: linear-gradient(180deg, #E4E6E0, #D3D6CF);
  border-radius: 10px; padding: 14px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(17, 36, 26, .12), 0 18px 40px -24px rgba(17, 36, 26, .45);
}
.panel::before, .panel::after { /* door screws */
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F4F5F1, #9AA09A); box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.panel::before { left: 3px; } .panel::after { right: 3px; }
.directory {
  background: var(--white); border-radius: 4px; padding: 16px 16px 10px;
  box-shadow: 0 0 0 1px rgba(17, 36, 26, .1);
}
.directory__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px;
}
.directory__head strong { color: var(--ink); font-weight: 600; }
.directory { container-type: inline-size; }
.directory ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@container (min-width: 500px) { .directory ol { grid-template-columns: 1fr 1fr; column-gap: 18px; } }
.circuit a {
  display: grid; grid-template-columns: 2.1em 1fr auto; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dashed var(--line);
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.circuit__no { font-family: var(--f-mono); font-weight: 600; font-size: .85rem; color: var(--muted); text-align: right; }
.circuit__name { font-weight: 500; line-height: 1.25; }
.breaker {
  width: 34px; height: 20px; border-radius: 4px; background: #23302A; position: relative; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.breaker::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 3px;
  background: #8E968F; transition: transform .18s ease, background-color .18s ease;
}
.circuit a:hover .breaker::after, .circuit a:focus-visible .breaker::after { transform: translateX(14px); background: var(--green); }
.circuit a:hover .circuit__name { color: var(--green-ink); text-decoration: underline; }
.directory__foot { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); padding-top: 10px; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #E8EEE9; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .kicker { color: #8FD3AC; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

/* Van band */
.van-band { overflow: hidden; }
.van-band .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .van-band .wrap { grid-template-columns: .9fr 1.1fr; } }
.van-figure { margin: 0; position: relative; }
.van-figure svg { width: 100%; }
.road { height: 6px; margin-top: -4px; background: repeating-linear-gradient(90deg, var(--ink) 0 44px, transparent 44px 70px); opacity: .18; border-radius: 3px; }
.address-line { font-family: var(--f-mono); font-size: .95rem; color: var(--ink-2); }

/* Triage tool */
.triage { display: grid; gap: 24px; }
@media (min-width: 980px) { .triage { grid-template-columns: .95fr 1.05fr; align-items: start; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 1rem var(--f-body); color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; text-align: left; min-height: 44px;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.answer {
  background: var(--white); border-radius: 8px; padding: clamp(20px, 3vw, 32px);
  border-left: 6px solid var(--green); box-shadow: 0 1px 0 var(--line), 0 14px 30px -26px rgba(17,36,26,.6);
  min-height: 220px;
}
.answer[data-level="urgent"] { border-left-color: var(--red); }
.answer__tag {
  display: inline-block; font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--paper-2); color: var(--ink-2); margin-bottom: 12px;
}
.answer[data-level="urgent"] .answer__tag { background: #FBE9E7; color: var(--red); }
.answer[data-level="call"] .answer__tag { background: #E3F2E9; color: var(--green-ink); }
.answer h3 { font-size: 1.45rem; }
.answer p:last-of-type { margin-bottom: 18px; }
.answer__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Panel check */
.check { display: grid; gap: 28px; }
@media (min-width: 980px) { .check { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(232,238,233,.18); }
.q p { margin: 0; }
.yn { display: inline-flex; border: 2px solid rgba(232,238,233,.5); border-radius: 999px; overflow: hidden; flex: none; }
.yn button { font: 600 .9rem var(--f-mono); background: transparent; color: #E8EEE9; border: 0; padding: 8px 14px; min-width: 52px; min-height: 40px; cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.verdict { background: var(--green-deep); border-radius: 8px; padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.verdict__meter { display: flex; gap: 6px; margin: 6px 0 16px; }
.verdict__meter span { flex: 1; height: 10px; border-radius: 2px; background: rgba(255,255,255,.15); }
.verdict__meter span.on { background: var(--gold); }
.verdict h3 { font-size: 1.5rem; }
.verdict p { color: #D6E4DB; }

/* Two-column lists (homes / businesses) */
.split { display: grid; gap: 22px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border-radius: 8px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 0 0 1px var(--line); }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: .3em 0; }
.card li::marker { color: var(--green); }

/* Service area */
.towns { columns: 2 150px; column-gap: 24px; padding: 0; margin: 0; list-style: none; font-size: 1.05rem; }
.towns li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.towns li:first-child { font-weight: 700; color: var(--green-ink); }

/* CTA band */
.cta-band { background: var(--green); color: var(--white); padding: clamp(44px, 6vw, 72px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--white); margin: 0; max-width: 16em; }
.cta-band .big-phone { font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--white); text-decoration: none; display: block; }
.cta-band .big-phone:hover { color: var(--gold); }
.cta-band__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- Services page ---------- */
.page-title { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-title h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.svc-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .svc-layout { grid-template-columns: 300px 1fr; } }
.svc-toc { align-self: start; }
@media (min-width: 1000px) { .svc-toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.svc-toc .directory ol { grid-template-columns: 1fr; }
.svc { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc:first-child { padding-top: 8px; }
.svc__no { font-family: var(--f-mono); font-weight: 600; color: var(--green-ink); font-size: .85rem; letter-spacing: .1em; }
.svc h2 { font-size: clamp(1.7rem, 2vw + 1.1rem, 2.5rem); margin-top: 6px; }
.svc ul { padding-left: 1.1em; margin: 0 0 1em; }
.svc li::marker { color: var(--green); }
.svc .note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(300px, .8fr) 1.2fr; align-items: start; } }
.info-card { background: var(--white); border-radius: 8px; padding: 26px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.info-card h2 { font-size: 1.35rem; font-stretch: 108%; }
.info-card .big-phone { font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--green-ink); text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-family: var(--f-mono); font-size: .9rem; }
.form { background: var(--white); border-radius: 8px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 0 0 1px var(--line); }
.form h2 { font-size: clamp(1.6rem, 1.5vw + 1.1rem, 2.2rem); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 12px; width: 100%; min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(23,131,74,.2); }
.form__urgent { background: #FBE9E7; color: #7A1A14; border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; margin-bottom: 18px; display: none; }
.form__urgent.show { display: block; }
.form__done { display: none; background: #E3F2E9; border-radius: var(--radius); padding: 18px; color: var(--green-deep); }
.form__done.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D5CD; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #E8EEE9; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1rem; font-stretch: 110%; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .logo__name { color: #7ED3A2; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(232,238,233,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #93A399; }
.concept-tag { font-family: var(--f-mono); letter-spacing: .06em; }

/* Mobile call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex;
  background: var(--green); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.4);
}
.call-bar a { flex: 1; text-align: center; padding: 14px 10px calc(14px + env(safe-area-inset-bottom)); color: var(--white); text-decoration: none; font-weight: 700; font-family: var(--f-display); font-stretch: 110%; }
.call-bar a + a { border-left: 1px solid rgba(255,255,255,.25); background: var(--green-deep); }
body { padding-bottom: 56px; }
@media (min-width: 880px) { .call-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
