/* Certified Electric LLC, Eagle ID
   Colors come from the business card: white, logo red, bolt yellow band, card gray, black type. */
:root {
  --ink: #16181a;
  --red: #c9222a;
  --red-dark: #a3181f;
  --volt: #f0e63c;
  --volt-dark: #ddd224;
  --card: #bcbfbe;
  --steel: #7d8482;
  --mist: #eef0ef;
  --line: #d4d8d6;
  --muted: #4c5351;
  --white: #fff;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; }
h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; }
blockquote, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
cite { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.contact :focus-visible, .site-footer :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible, .hero__photo :focus-visible { outline-color: var(--volt); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 26px;
  font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-decoration: none;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn--volt { background: var(--volt); color: var(--ink); border-color: var(--ink); }
.btn--volt:hover { background: var(--volt-dark); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { background: transparent; color: #fff; border-color: #fff; }
.stars { color: var(--red); letter-spacing: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 208px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-family: var(--head); font-weight: 600; font-size: 16px; text-decoration: none; padding: 12px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.header-phone { font-family: var(--head); font-weight: 700; font-size: 17px; text-decoration: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 4px; white-space: nowrap; }
.header-phone:hover { background: var(--red); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 12px 10px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; background: var(--ink); margin: 5px 0; }

.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(22, 24, 26, .55); }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(86vw, 340px); background: #fff; padding: 84px 24px 24px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu__close { position: absolute; top: 12px; right: 14px; width: 52px; height: 52px; border: 0; border-radius: 4px; background: var(--mist); font-size: 34px; line-height: 1; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 20px; font-weight: 600; text-decoration: none; }

/* Hero: text in the middle, one photo each side */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 1.12fr) minmax(0, 1fr); height: clamp(540px, calc(100vh - 150px), 800px); background: #fff; }
.hero__photo { position: relative; overflow: hidden; background: var(--card); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--a img { object-position: 50% 30%; }
.hero__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; padding: 8px 14px; }
.hero__photo--b figcaption { left: auto; right: 0; }
.hero__text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px clamp(28px, 3.4vw, 64px); }
.hero h1 { font-size: clamp(42px, 4.3vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.hero__lead { margin: 24px 0 28px; font-size: clamp(18px, 1.35vw, 21px); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__rating { margin: 26px 0 0; font-size: 17px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.hero__rating a { text-underline-offset: 3px; }

/* Card band: the yellow strip from the business card */
.cardband { background: var(--volt); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cardband__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 40px; padding-top: 15px; padding-bottom: 15px; font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }

/* Section heads */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 56px; align-items: end; margin-bottom: 44px; }
.sec-head p { margin: 0; max-width: 38em; color: var(--muted); }

/* Services: the panel directory */
.services { background: var(--card); padding: 88px 0 80px; }
.services .sec-head p { color: var(--ink); }
.panel {
  background: var(--steel); border-radius: 8px; padding: 22px;
  box-shadow: inset 0 0 0 2px #6a716f, inset 0 3px 0 2px #9aa19f;
  background-image:
    radial-gradient(circle at 11px 11px, #565c5a 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 11px) 11px, #565c5a 0 4px, transparent 5px),
    radial-gradient(circle at 11px calc(100% - 11px), #565c5a 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #565c5a 0 4px, transparent 5px);
}
.label { background: #fff; border-radius: 2px; padding: 26px 34px 30px; }
.label__head { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 0 28px; padding-bottom: 20px; border-bottom: 3px solid var(--ink); }
.label__head div { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.label__head dt { font-size: 14px; color: var(--muted); line-height: 1.3; }
.label__head dd { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.label__head a { text-decoration: none; }
.label__head a:hover { color: var(--red); }

.dir { display: grid; grid-template-columns: 1fr 1fr; }
.dir li { display: grid; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.dir li:nth-child(odd) { grid-template-columns: 44px minmax(0, 1fr) 78px; grid-template-areas: "n name brk"; }
.dir li:nth-child(even) { grid-template-columns: 78px minmax(0, 1fr) 44px; grid-template-areas: "brk name n"; }
.dir li:nth-last-child(-n+2) { border-bottom: 0; }
.dir__n { grid-area: n; font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--red); }
.dir li:nth-child(even) .dir__n { text-align: right; }
.dir__name { grid-area: name; font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: -.015em; line-height: 1.25; padding: 10px 18px 10px 0; }
.dir li:nth-child(even) .dir__name { padding: 10px 0 10px 18px; }
.dir__name small { font-family: var(--body); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
/* breaker: black body, handle thrown toward the center of the panel */
.brk { grid-area: brk; position: relative; align-self: stretch; background: var(--ink); border-top: 2px solid #3a3e40; border-bottom: 2px solid #000; }
.brk::before { content: ""; position: absolute; top: 50%; width: 30px; height: 18px; margin-top: -9px; background: #4b5052; border-radius: 2px; box-shadow: inset 0 -3px 0 #2b2f31, inset 0 2px 0 #6a7073; }
.brk::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--volt); }
.dir li:nth-child(odd) .brk { border-left: 2px solid #3a3e40; }
.dir li:nth-child(odd) .brk::before { right: 8px; }
.dir li:nth-child(odd) .brk::after { left: 12px; }
.dir li:nth-child(even) .brk { border-left: 3px solid #000; border-right: 2px solid #3a3e40; }
.dir li:nth-child(even) .brk::before { left: 8px; }
.dir li:nth-child(even) .brk::after { right: 12px; }
.services__note { margin: 28px 0 0; font-size: 18px; }
.services__note a { font-weight: 700; text-underline-offset: 3px; }

/* Recent work by type of job */
.work { padding: 96px 0 72px; }
.job { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 56px; padding: 44px 0; border-top: 2px solid var(--ink); }
.job__text { align-self: start; position: sticky; top: 108px; }
.job__text h3 { margin-bottom: 14px; }
.job__text > p { color: var(--muted); }
.job blockquote, .mini blockquote { margin-top: 22px; padding-left: 18px; border-left: 4px solid var(--red); }
.job blockquote p, .mini blockquote p { margin: 0 0 8px; font-size: 17px; line-height: 1.55; }
.job cite, .mini cite { font-size: 15px; font-weight: 700; }
.job__photos { display: flex; flex-direction: column; gap: 8px; }
.shots { display: flex; gap: 8px; }
.shot { flex: var(--r, 1) 1 0; min-width: 0; aspect-ratio: var(--r, 1); padding: 0; border: 0; background: var(--mist); cursor: zoom-in; overflow: hidden; display: block; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }

.job-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px 0 0; border-top: 2px solid var(--ink); }
.mini { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.mini .shot { aspect-ratio: 3 / 4; width: 100%; }
.mini h3 { font-size: 24px; margin-bottom: 12px; }
.mini > div > p { color: var(--muted); }

/* Reviews */
.reviews { background: var(--mist); padding: 96px 0; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 48px; }
.score { margin: 0; display: flex; align-items: center; gap: 18px; }
.score__num { font-family: var(--head); font-weight: 800; font-size: 76px; line-height: .9; letter-spacing: -.05em; color: var(--red); }
.score__txt { display: flex; flex-direction: column; font-weight: 600; line-height: 1.35; }
.quote p { margin: 0 0 12px; }
.quote cite { font-weight: 700; font-size: 16px; }
.quote--lead { max-width: 1040px; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 2px solid var(--ink); }
.quote--lead p { font-family: var(--head); font-weight: 600; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 18px; }
.quotes { columns: 3; column-gap: 56px; }
.quotes .quote { break-inside: avoid; padding-bottom: 36px; }

/* About + service area */
.about { padding: 96px 0; }
.about__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 72px; align-items: start; }
.about__text h2 { margin-bottom: 24px; }
.about__text > p { font-size: 20px; max-width: 34em; }
.about__quote { margin: 30px 0 36px; padding: 24px 28px; background: var(--volt); border: 2px solid var(--ink); max-width: 40em; }
.about__quote p { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.about__quote cite { font-weight: 700; font-size: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: 40em; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 15px; color: var(--muted); }
.facts dd { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__photo figcaption { font-size: 15px; color: var(--muted); padding-top: 10px; }
.area { margin-top: 80px; padding-top: 44px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 56px; align-items: baseline; }
.area h2 { font-size: clamp(24px, 2.2vw, 30px); }
.area__list { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }

/* Contact */
.contact { background: var(--ink); color: #fff; padding: 96px 0; }
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.contact__info h2 { margin-bottom: 20px; }
.contact__info > p { color: #d6dad8; max-width: 30em; }
.contact__phone { display: inline-block; margin: 14px 0 30px; font-family: var(--head); font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1; color: var(--volt); text-decoration: none; }
.contact__phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #3b4042; }
.contact__list dt { color: #b9bfbd; font-size: 16px; }
.contact__list dd { font-weight: 600; overflow-wrap: anywhere; }
.form { background: #fff; color: var(--ink); padding: 34px; border-top: 8px solid var(--volt); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 2px solid #8b9391; border-radius: 4px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.form__err { color: var(--red-dark); font-weight: 700; }
.form .btn { width: 100%; }

/* Footer */
.site-footer { background: #000; color: #dfe3e1; padding: 40px 0 44px; font-size: 16px; }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.site-footer__logo { width: 132px; height: auto; }
.site-footer p { margin: 0 0 8px; }
.site-footer strong { color: #fff; }
.site-footer a { text-underline-offset: 3px; }
.site-footer__small { margin-left: auto !important; text-align: right; color: #b9bfbd; }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0c0d; color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: min(92vw, 1280px); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 22px; margin: 0; text-align: center; font-size: 17px; }
.lightbox__close, .lightbox__nav { position: absolute; width: 56px; height: 56px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .job { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  .area { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  .job-pair { gap: 40px; }
  .mini { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .quotes { columns: 2; }
  .about__in, .contact__in { gap: 48px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .header-phone { margin-left: auto; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: 1fr 1fr; height: auto; }
  .hero__text { grid-column: 1 / -1; grid-row: 1; padding: 44px 24px 40px; }
  .hero__photo { aspect-ratio: 3 / 4; max-height: 520px; width: 100%; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .job, .area { grid-template-columns: 1fr; gap: 24px; }
  .job__text { position: static; }
  .job-pair { grid-template-columns: 1fr; }
  .label__head { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .about__in, .contact__in { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}

@media (max-width: 760px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 16px; }
  .site-header__in { min-height: 64px; gap: 10px; }
  .brand img { width: 148px; }
  .header-phone { font-size: 15px; padding: 11px 12px; }
  html { scroll-padding-top: 72px; }

  .hero__text { padding: 34px 16px 32px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 52px); }
  .hero__lead { margin: 18px 0 22px; font-size: 18px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__rating { margin-top: 20px; }
  .hero__photo figcaption { display: none; }

  .cardband__in { display: grid; grid-template-columns: 1fr 1fr; font-size: 15.5px; padding-top: 12px; padding-bottom: 12px; gap: 4px 16px; }

  .services { padding: 60px 0 56px; }
  .panel { padding: 16px 12px; }
  .label { padding: 18px 14px 12px; }
  .label__head dd { font-size: 16.5px; }
  .dir { grid-template-columns: 1fr; }
  .dir li, .dir li:nth-child(odd), .dir li:nth-child(even) { grid-template-columns: 52px 34px minmax(0, 1fr); grid-template-areas: "brk n name"; min-height: 58px; }
  .dir li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .dir li .dir__n, .dir li:nth-child(even) .dir__n { text-align: center; }
  .dir li .dir__name, .dir li:nth-child(even) .dir__name { padding: 10px 0 10px 4px; font-size: 18px; }
  .dir__name small { white-space: normal; }
  .dir li .brk, .dir li:nth-child(even) .brk, .dir li:nth-child(odd) .brk { border-left: 2px solid #3a3e40; border-right: 2px solid #000; }
  .dir li .brk::before, .dir li:nth-child(even) .brk::before, .dir li:nth-child(odd) .brk::before { left: 6px; right: auto; width: 24px; }
  .dir li .brk::after, .dir li:nth-child(even) .brk::after, .dir li:nth-child(odd) .brk::after { right: 6px; left: auto; width: 7px; height: 7px; margin-top: -3.5px; }

  .work { padding: 64px 0 48px; }
  .job { padding: 32px 0; }
  .job__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .shots { display: contents; }
  .shot { aspect-ratio: 3 / 4; }
  .shot--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .job-pair { gap: 36px; padding-top: 32px; }
  .mini { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; }

  .reviews, .about, .contact { padding: 64px 0; }
  .reviews__head { margin-bottom: 32px; }
  .score__num { font-size: 60px; }
  .quote--lead { padding-bottom: 30px; margin-bottom: 30px; }
  .quotes { columns: 1; }
  .quotes .quote { padding-bottom: 28px; }
  .about__text > p { font-size: 18px; }
  .about__quote { padding: 18px 18px; }
  .about__quote p { font-size: 19px; }
  .facts { grid-template-columns: 1fr; }
  .area { margin-top: 56px; padding-top: 32px; gap: 12px; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .contact__list dd { font-size: 17px; }
  .form { padding: 22px 16px; }
  .site-footer { padding-bottom: 116px; }
  .site-footer__in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer__small { margin-left: 0 !important; text-align: left; }

  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(22, 24, 26, .97); border-top: 3px solid var(--volt);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 50px; padding: 10px 12px; }
  .lightbox__nav { top: auto; bottom: 104px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .sticky-book, .btn { transition: none; }
  .shot:hover img { transform: none; }
}
