:root {
  color-scheme: light;
  --ink: #202a31;
  --muted: #4e575d;
  --paper: #faf8f3;
  --white: #fffefa;
  --line: #d9d6cd;
  --accent: #a0382b;
  --accent-dark: #7a291f;
  --deep: #25333b;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2779aa; outline-offset: 4px; }
.wrap { width: min(100% - 64px, 1120px); margin-inline: auto; }

.skip {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: white;
}
.skip:focus { transform: none; }

.masthead { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.masthead-row {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong { font-weight: 850; }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.masthead nav a, .masthead-phone { padding-block: 9px; font-size: .95rem; font-weight: 650; text-decoration: none; }
.masthead-phone { color: var(--accent); white-space: nowrap; }
.masthead nav a:hover, .masthead-phone:hover { text-decoration: underline; }

.hero { padding-block: clamp(26px, 4.2vw, 56px); background: var(--paper); text-align: center; }
.hero-logo { width: min(100%, 540px); margin-inline: auto; }
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 3.65vw, 3.15rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
}
h3 { font-size: 1.28rem; line-height: 1.3; }
.hero-specialty {
  max-width: 48ch;
  margin-top: 18px;
  margin-inline: auto;
  color: var(--accent);
  font-size: clamp(1.16rem, 2.1vw, 1.35rem);
  font-weight: 750;
  line-height: 1.3;
  text-wrap: balance;
}
.hero-intro { max-width: 54ch; margin: 15px auto 0; color: var(--muted); font-size: 1.08rem; }
.actions { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; }
.text-link:hover { color: var(--accent-dark); }
.call-options summary::-webkit-details-marker { display: none; }
.call-panel {
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--white);
}
.call-panel .text-link { display: flex; justify-content: center; }
.copy-phone {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.call-status { max-width: 20ch; color: var(--muted); font-size: .83rem; }
.call-status:not(:empty) { margin: 0 auto 8px; }
figcaption { margin-top: 7px; color: var(--muted); font-size: .83rem; line-height: 1.4; }

.county-bar { background: var(--deep); color: #fff; }
.county-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-block: 13px;
}
.county-row p { display: flex; flex-wrap: wrap; gap: 1px 16px; }
.county-row p span { color: #eef1f2; }
.county-row a { font-weight: 650; font-size: .9rem; }

.section { padding-block: clamp(58px, 5vw, 74px) clamp(40px, 6.5vw, 82px); }
.pipe-route { position: relative; }
.pipe-trail {
  --pipe-outline: #364850;
  --pipe-metal: #e2e7e9;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pipe-trail[hidden] { display: none; }
.pipe-trail-outline, .pipe-trail-metal { fill: none; stroke-linejoin: round; }
.pipe-trail-outline { stroke: var(--pipe-outline); stroke-width: 7; }
.pipe-trail-metal { stroke: var(--pipe-metal); stroke-width: 4; }
.pipe-trail-fittings, .pipe-trail-burner rect {
  fill: var(--pipe-metal);
  stroke: var(--pipe-outline);
  stroke-width: 1.5;
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 22px clamp(26px, 5vw, 70px);
  align-items: start;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
#services h2 { margin-bottom: 25px; }
.service-copy p { margin-top: 10px; color: var(--muted); }
.service-copy a { margin-top: 7px; }
.generator-photos, .appliance-photos { display: grid; gap: 12px; }
.generator-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 612px; }
.appliance-photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.appliance-photos figure { grid-column: span 2; }
.appliance-photos .water-heater-photo { grid-column: span 3; }
.generator-photos img, .appliance-photos img { width: 100%; }
.water-heater-photo img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper); }
.propane-photo { width: min(50%, 180px); }
.materials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 160px);
  align-items: start;
  gap: 10px 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.materials h3 { grid-column: 1 / -1; }
.materials ul { margin: 0; padding-left: 21px; color: var(--muted); }
.materials img { justify-self: end; width: 100%; }
.photo-credits { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.photo-credits summary { width: fit-content; padding-block: 6px; cursor: pointer; }
.photo-credits ul { margin: 5px 0 0; padding-left: 20px; }

.coverage { background: #f0ede4; }
.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  grid-template-areas: "map copy";
  gap: 23px clamp(25px, 6vw, 85px);
  align-items: center;
}
.coverage-map { grid-area: map; border: 1px solid #b7cbd8; background: var(--white); }
.coverage-map img { width: 100%; }
.coverage-map figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  border-top: 1px solid #b7cbd8;
  padding: 8px 12px;
  margin: 0;
}
.coverage-key { display: inline-flex; align-items: center; gap: 6px; }
.coverage-key::before { content: ""; width: 10px; height: 10px; border: 1px solid #376387; background: #8ab9de; }
.coverage-copy { grid-area: copy; }
.coverage-copy p, .contact-intro { margin-top: 14px; color: var(--muted); }
.county-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 21px 0 12px;
  padding: 0;
  gap: 0 18px;
  list-style: none;
}
.county-list li { border-top: 1px solid #cec8ba; padding-block: 8px; font-weight: 700; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px clamp(30px, 7vw, 90px);
}
.owner { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.owner img { flex: 0 0 auto; width: 72px; }
.owner-name { font-weight: 800; }
.owner-role { margin-bottom: 4px; color: var(--muted); font-size: .9rem; }
.owner a { display: block; width: fit-content; color: var(--accent); overflow-wrap: anywhere; }
.inquiry { border-left: 1px solid var(--line); padding-left: clamp(22px, 4vw, 46px); }
.inquiry h3 { margin-bottom: 15px; }
form:not([hidden]) { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
label { display: grid; gap: 5px; font-size: .92rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #aaa79e;
  border-radius: 2px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
textarea { resize: vertical; }
.submit { justify-self: start; }
.form-note { color: var(--muted); font-size: .84rem; }

.footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 21px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 11px 24px; }
.footer-row p { color: var(--muted); font-size: .84rem; }
.footer-row > a:last-child { color: var(--accent); font-size: .92rem; font-weight: 700; }

@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .pipe-route .section.wrap, .pipe-route .coverage .wrap { width: calc(100% - 48px); }
  .masthead-row { min-height: auto; flex-wrap: wrap; padding-top: 11px; gap: 4px 12px; }
  .masthead nav { order: 1; flex-basis: 100%; border-top: 1px solid var(--line); }
  .masthead nav a { padding-block: 11px; }
  .brand { font-size: 1.13rem; gap: 7px; }
  .brand img { width: 31px; }
  .masthead-phone { font-size: .9rem; }
  .service-row, .contact { grid-template-columns: minmax(0, 1fr); }
  .county-row { row-gap: 7px; }
  .county-row p { display: grid; }
  .coverage-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "map"; }
  .coverage-map { width: min(100%, 540px); }
  .inquiry { border-left: 0; padding: 23px 0 0; border-top: 1px solid var(--line); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 28px); }
  .masthead-row { column-gap: 8px; }
  .masthead .brand { font-size: 1rem; }
  .actions { gap: 8px 12px; font-size: .94rem; }
  .actions .button { padding-inline: 16px; }
  .materials { grid-template-columns: minmax(0, 1fr) minmax(0, 85px); }
  .generator-photos, .appliance-photos { gap: 7px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .owner img { width: 55px; }
}
