/* Powerful Electrical Plumbing Air. Colors come from the truck wrap: red, blue, white, with the logo's black. */
:root {
  --red: #d3241c;
  --red-deep: #b01a13;
  --blue: #0a72b4;
  --blue-bright: #1798dc;
  --navy: #1b2e4d;
  --ink: #11161d;
  --text: #2a323c;
  --muted: #55606c;
  --wash: #eef5fa;
  --line: #d3dde6;
  --white: #fff;
  --display: "Outfit", "Segoe UI", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --gut: 16px;
  --max: 1240px;
  --head-h: 68px;
}
@media (min-width: 700px) { :root { --gut: 32px; --head-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 1.125rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 26px; border: 2px solid transparent; border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; text-decoration: none; cursor: pointer; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--ink); }
.btn--full { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.top::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--blue) 33.33% 66.66%, var(--navy) 66.66%); }
.top__in { display: flex; align-items: center; gap: 16px; height: calc(var(--head-h) - 5px); }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: none; margin-left: auto; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; padding: 10px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.top__call { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; }
.top__call:hover { background: var(--red-deep); }
.top__call span { display: none; }
.menu-btn { flex: none; width: 48px; height: 48px; padding: 0; border: 2px solid var(--ink); border-radius: 6px; background: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--ink); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gut) 14px; box-shadow: 0 18px 28px rgba(17, 22, 29, .14); }
.mobile-menu a { display: flex; align-items: center; min-height: 54px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; color: var(--red); }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(17, 22, 29, .45); }
[hidden] { display: none !important; }
@media (min-width: 420px) { .top__call span { display: inline; } .brand img { height: 42px; } }
@media (min-width: 980px) {
  .nav { display: flex; }
  .top__call { margin-left: 12px; padding: 0 20px; }
  .menu-btn { display: none; }
  .brand img { height: 50px; }
}

/* Hero */
.hero { padding: 18px 0 0; }
.hero__in { display: grid; gap: 20px; }
.hero h1 { font-weight: 800; font-size: clamp(1.875rem, 8.2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.hero__lead { margin: 12px 0 0; font-size: 1.1875rem; line-height: 1.45; color: var(--text); max-width: 30ch; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; color: var(--text); font-size: 1.0625rem; }
.stars { color: #e3a008; letter-spacing: 2px; font-size: 1.125rem; }
.hero__photo { margin: 0 calc(var(--gut) * -1); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 60%; }
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 980px) {
  .hero { padding-top: 48px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
  .hero h1 { font-size: clamp(2.75rem, 4.05vw, 3.375rem); }
  .hero__lead { margin-top: 18px; font-size: 1.375rem; max-width: none; text-wrap: balance; }
  .hero__actions { margin-top: 26px; gap: 12px; }
  .hero__rating { margin-top: 22px; }
  .hero__text { padding: 8px 0 56px; }
  .hero__photo { margin: 0; position: relative; min-height: 440px; }
  .hero__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 62% 70%; border-radius: 6px 6px 0 0; }
}

/* The three trades index: reads like the stripe on the truck */
.lanes-index { display: grid; padding-left: 0; padding-right: 0; }
.lanes-index__item { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 84px; padding: 14px var(--gut); color: #fff; text-decoration: none; }
.lanes-index__item.is-elec { background: var(--red); }
.lanes-index__item.is-plumb { background: var(--blue); }
.lanes-index__item.is-air { background: var(--navy); }
.lanes-index__name { font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: 1.1; }
.lanes-index__what { font-size: 1.0625rem; line-height: 1.35; }
.lanes-index__item:hover .lanes-index__name { text-decoration: underline; text-underline-offset: 4px; }
.lanes-index__item:focus-visible { outline-color: var(--ink); outline-offset: -5px; }
@media (min-width: 860px) {
  .lanes-index { grid-template-columns: 1.25fr 1.25fr 0.8fr; padding-left: var(--gut); padding-right: var(--gut); }
  .lanes-index__item { padding: 22px 28px 24px; min-height: 124px; justify-content: flex-start; }
  .lanes-index__name { font-size: 2rem; }
}

/* Sections */
.section { padding: 64px 0; }
.section--wash { background: var(--wash); }
.section h2 { font-weight: 800; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.02em; }
.section__lead { margin: 14px 0 0; max-width: 58ch; font-size: 1.1875rem; }
@media (min-width: 980px) { .section { padding: 104px 0; } }

/* Service lanes */
.lane { display: grid; gap: 22px; margin-top: 40px; padding-top: 24px; border-top: 10px solid var(--lane); }
.lane.is-elec { --lane: var(--red); }
.lane.is-plumb { --lane: var(--blue); }
.lane.is-air { --lane: var(--navy); }
.lane__head h3 { font-weight: 800; font-size: clamp(2.25rem, 8vw, 3.5rem); color: var(--lane); letter-spacing: -0.02em; }
.lane__head p { margin: 10px 0 0; max-width: 30ch; }
.lane__list li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.1875rem; line-height: 1.3; }
.lane__list li:first-child { padding-top: 4px; }
.lane__list li:first-child::before { top: 11px; }
.lane__list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 12px; height: 12px; background: var(--lane); }
.lane__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.lane__photos figure { margin: 0; }
.lane__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.lane__photos img.is-square { aspect-ratio: 1; }
.lane__photos figcaption { margin-top: 8px; font-size: 1rem; line-height: 1.35; color: var(--muted); }
.lane--short { align-items: center; }
.lane__note { margin: 0; max-width: 52ch; }
.lane--short .btn { justify-self: start; }
@media (min-width: 760px) {
  .lane { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .lane__head { grid-column: 1 / -1; }
  .lane--short { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lane--short .lane__head { grid-column: auto; }
}
@media (min-width: 1100px) {
  .lane { grid-template-columns: 260px minmax(0, 1fr) 460px; column-gap: 48px; margin-top: 56px; padding-top: 32px; }
  .lane__head { grid-column: auto; }
  .lane--short { grid-template-columns: 260px minmax(0, 1fr) auto; }
}

/* Trade marker dots */
.dot { display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 8px; background: var(--muted); }
.dot.is-elec { background: var(--red); }
.dot.is-plumb { background: var(--blue); }

/* Gallery */
.gallery { margin-top: 36px; columns: 2; column-gap: 12px; }
.shot { display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; break-inside: avoid; }
.shot img { width: 100%; border-radius: 4px; }
.shot__cap { display: flex; align-items: baseline; margin-top: 8px; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.shot__cap .dot { transform: translateY(1px); }
.shot:hover img { filter: brightness(1.06); }
.key { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 12px 0 0; font-size: 1rem; color: var(--text); }
.key span { display: inline-flex; align-items: center; }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 20px; } .shot { margin-bottom: 28px; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }

/* Homes and businesses */
.who { display: grid; gap: 32px; }
.who__intro p { margin: 16px 0 0; max-width: 46ch; font-size: 1.1875rem; }
.who__col { border-top: 3px solid var(--ink); padding-top: 18px; }
.who__col h3 { font-weight: 700; font-size: 1.5rem; margin-bottom: 8px; }
.who__col li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.who__col li:last-child { border-bottom: 0; }
@media (min-width: 980px) { .who { grid-template-columns: 1.15fr 1fr 1fr; gap: 56px; align-items: start; } }

/* Reviews */
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; }
.reviews__score { margin: 0; font-size: 1.125rem; color: var(--ink); }
.reviews { margin-top: 36px; columns: 1; column-gap: 24px; }
.review { margin: 0 0 20px; padding: 24px 24px 22px; background: #fff; border-left: 8px solid var(--line); break-inside: avoid; }
.review.is-elec { border-left-color: var(--red); }
.review.is-plumb { border-left-color: var(--blue); }
.review blockquote { margin: 0; color: var(--ink); font-size: 1.1875rem; line-height: 1.5; }
.review figcaption { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: 1rem; }
.review figcaption strong { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.review figcaption span { color: var(--muted); }
.reviews__more { margin: 12px 0 0; }
.reviews__more a { font-weight: 700; }
@media (min-width: 760px) { .reviews { columns: 2; } }
@media (min-width: 1100px) { .reviews { columns: 3; } }

/* Facts */
.facts { display: grid; gap: 0; margin-top: 32px; }
.facts__item { padding: 22px 0; border-top: 3px solid var(--ink); }
.facts__item h3 { font-weight: 700; font-size: 1.375rem; margin-bottom: 10px; }
.facts__item p { margin: 0 0 6px; }
.facts__big { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.facts__phone { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--red); text-decoration: none; display: inline-block; padding: 2px 0; }
.facts__phone:hover { text-decoration: underline; }
.facts a:not(.facts__phone) { display: inline-block; padding: 6px 0; overflow-wrap: anywhere; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Quote */
.quote { background: var(--wash); border-top: 10px solid var(--blue); }
.quote__in { display: grid; gap: 32px; }
.quote__text p { margin: 14px 0 0; max-width: 38ch; font-size: 1.1875rem; }
.quote__phone { display: inline-block; margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; color: var(--red); text-decoration: none; }
.quote__phone:hover { text-decoration: underline; }
.quote__text .quote__small { font-size: 1rem; color: var(--muted); margin-top: 20px; }
.form { background: #fff; padding: 24px 20px; border-radius: 6px; border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid #8996a3; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 1.125rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red); }
.form__err { margin: 0 0 12px; color: var(--red-deep); font-weight: 700; min-height: 0; }
.form__err:empty { display: none; }
@media (min-width: 980px) {
  .quote__in { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
  .form { padding: 36px; }
}

/* Footer */
.foot { background: var(--ink); color: #dfe5ea; padding: 44px 0 120px; font-size: 1.0625rem; }
.foot__in { display: grid; gap: 22px; }
.foot p { margin: 0 0 4px; }
.foot a { color: #fff; display: inline-block; padding: 6px 0; }
.foot__name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.foot :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible { outline-color: #fff; }
@media (min-width: 860px) { .foot { padding-bottom: 56px; } .foot__in { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }

/* Mobile bottom bar */
.sticky-book { display: none; }
@media (max-width: 859px) {
  .sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); transform: translateY(110%); visibility: hidden; }
  .sticky-book.is-visible { transform: none; visibility: visible; transition: transform .2s ease; }
  .sticky-book a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
  .sticky-book__call { background: #fff; color: var(--ink); }
  .sticky-book__quote { background: var(--red); color: #fff; }
}

/* Photo viewer */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 13, 18, .96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 13, 18, .96); }
.lightbox figure { margin: 0; padding: 56px 12px 16px; max-width: 1200px; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; font-size: 1.0625rem; }
.lightbox button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
  .lightbox figure { padding-bottom: 80px; }
  .lightbox img { max-height: calc(100dvh - 220px); }
}

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