:root {
  --forest: #0c3e58;
  --ink: #102b41;
  --rust: #ab4423;
  --paper: #f1f7fa;
  --line: #d6e5ea;
}
.brand { max-width: 100%; }
.brand img { flex: none; width: 66px; height: 66px; }
.brand .brand-wordmark { width: 238px; height: auto; min-width: 0; flex: 0 1 auto; }
.footer-grid .brand .brand-wordmark { filter: brightness(0) invert(1); }
.site-header { box-shadow: 0 4px 16px #08274310; }
.brand span.brand-wordmark { color: #073551; white-space: normal; font-size: clamp(.75rem, 2vw, 1.35rem); }
footer .brand span.brand-wordmark { color: #fff; }
.hero-photo { background-image: url('/assets/install.png'); background-position: center 49%; }
.hero-photo:after, .service-hero-photo:after {
  background: linear-gradient(106deg, #061d33 4%, #092a45f2 46%, #0b4059b5 73%, #092c4491);
}
.quote-form { border-radius: 14px; }
.hero .quote-form, .service-hero .quote-form { background: #fafdff; }
.quote-form .form-grid { grid-template-columns: minmax(0, 1fr); border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-form .form-grid :is(input, select, textarea) { border-color: #9eb5c1; border-radius: 5px; background: #fff; }
.hero .form-button, .service-hero .form-button { background: var(--forest); }
.quote-form .form-button:disabled { opacity: .65; }
.quote-form .form-notice { margin: 8px 0 14px; max-width: none; }
.quote-form .form-notice a { font-weight: 700; text-underline-offset: .18em; }
.quote-form [data-form-status]:empty { display: none; }
.quote-form .is-error { color: #982c15; }
.header-quote, .button { border-radius: 5px; }
.header-quote { text-decoration: none; }
.estimate-label-short { display: none; }
.hero .hero-copy { container-type: inline-size; }
.hero .hero-copy h1 { font-size: clamp(1.65rem, 6.7cqi, 2.9rem); line-height: 1.1; }
.hero .hero-company, .hero .hero-services { display: inline; font: inherit; letter-spacing: inherit; }
.hero .hero-company { color: #a6e5ff; font-size: clamp(.95rem, 5.6cqi, 2.4rem); white-space: nowrap; }
.hero .hero-divider { color: #ffb58e; font-weight: 400; }
.hero .hero-copy > p:not(.breadcrumbs), .hero .hero-service-list p, .hero .hero-service-list ul { font-size: 1.06rem; line-height: 1.75; }
.hero-service-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.hero-service-columns h2 { margin: 0 0 5px; color: #fff; font-size: 15px; }
.hero-service-columns ul { grid-template-columns: minmax(0, 1fr); }
.hero-actions { flex-wrap: wrap; }
.hero-badges img { width: 110px; height: 132px; }
.service-card:nth-child(1) { --service-color: #123f5a; }
.service-card:nth-child(2) { --service-color: #23576d; }
.service-card:nth-child(3) { --service-color: #3b506b; }
.service-card:nth-child(4) { --service-color: #245c58; }
.service-card:nth-child(5) { --service-color: #814726; }
.service-card { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 18px #0827430b; }
.service-card-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card[data-service="water-heater-replacement"] .service-card-heading { container-type: inline-size; }
.service-card[data-service="water-heater-replacement"] h3 { font-size: clamp(12px, 7.4cqi, 26px); white-space: nowrap; }
.service-card[data-service^="tankless-"] .service-card-photo { object-position: center 40%; }
.project-section { background: #071d36; }
.project-section .section-heading h2 { color: #fff; }
.project-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-section .project-tabs { border-bottom-color: #46617e; }
.project-section .project-tabs button { color: #e4eef9; }
.project-section .project-tabs button[aria-selected="true"] { color: #fff; background: #173959; border-bottom-color: #87c4df; }
.project-copy .project-title { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 12px; }
.project-copy h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.project-facts { min-width: 0; flex-wrap: wrap; }
.decision-rows { display: grid; gap: 20px; }
.decision-row { display: grid; grid-template-columns: minmax(190px, 27%) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.decision-row header { padding: clamp(20px, 3vw, 32px); background: #123f5a; color: #fff; }
.decision-row:nth-child(2) header { background: #23576d; }
.decision-row:nth-child(3) header { background: #245c58; }
.decision-row h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 10px; }
.decision-row header p { margin: 0; }
.decision-photo { margin-top: 20px; }
.decision-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.decision-body { padding: clamp(20px, 3vw, 32px); }
.decision-body h4 { margin: 0 0 5px; font-size: 1.1rem; }
.decision-body p { max-width: 78ch; margin: 0 0 18px; }
.decision-links { display: flex; flex-wrap: wrap; gap: 8px 25px; margin-bottom: 0; }
#tank-repair-diagram, #tankless-repair-diagram { padding-top: 14px; }
.tank-diagram { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tank-figure { grid-column: 1 / -1; width: min(100%, 365px); margin: 0 auto; text-align: center; }
.tank-figure figcaption { margin-top: 9px; font-size: .9rem; }
.tank-photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--paper); }
.tank-photo img { display: block; width: 100%; height: auto; }
.tank-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tank-leader-halo { stroke: #fff; stroke-width: 6; }
.tank-leader { stroke: #123f5a; stroke-width: 3; }
.tank-target, .tank-marker { fill: #123f5a; stroke: #fff; stroke-width: 2.5; }
.tank-photo text { fill: #fff; font-size: 17px; font-weight: 800; }
.tank-callout { background: var(--paper); padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: 12px; }
.tank-callout h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 1.075rem; line-height: 1.25; }
.tank-callout h3 span { flex: 0 0 28px; display: grid; place-items: center; height: 28px; border-radius: 50%; background: #123f5a; color: #fff; }
.tank-callout ul { margin: 0; padding-left: 19px; }
.tank-callout li + li { margin-top: 8px; }
.tank-callout li strong { display: block; }
@media (min-width: 930px) {
  .tank-diagram { grid-template-columns: minmax(0, 1fr) minmax(240px, 1.03fr) minmax(0, 1fr); grid-template-areas: "anode photo relief" "elements photo drain" ". base ."; align-items: center; }
  .tank-figure { grid-area: photo; }
  .tank-callout[data-point="1"] { grid-area: relief; }
  .tank-callout[data-point="2"] { grid-area: anode; }
  .tank-callout[data-point="3"] { grid-area: elements; }
  .tank-callout[data-point="4"] { grid-area: drain; }
  .tank-callout[data-point="5"] { grid-area: base; }
}
.area-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; padding-left: 24px; }
.service-area-callout { background: #092b42; }
.final-callout > .shell { display: block; }
.callout-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; }
.callout-heading h2 { margin: 0; }
.service-area-callout .area-list { margin: 14px 0 24px; }
.service-area-callout li::marker { color: #ffb386; }
.service-area-callout .button { margin-top: 0; }
.about-mission { background: var(--paper); }
.about-layout > img { border-radius: 12px; }
.service-topic-photo { margin: 0; }
.service-topic-photo img { display: block; width: 100%; height: auto; max-height: 230px; object-fit: contain; border-radius: 8px; background: var(--paper); }
@media (min-width: 620px) {
  .service-topic-with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 32%); gap: 18px; align-items: start; }
}
.contact-layout .quote-form { width: min(100%, 540px); }
@media (max-width: 1050px) {
  .header-inner > .brand img { width: 54px; height: 54px; }
  .header-inner > .brand .brand-wordmark { width: 192px; height: auto; }
}
@media (min-width: 821px) and (max-width: 950px) {
  .header-inner, .header-inner nav { gap: 12px; }
  .header-inner .header-quote { padding-inline: 14px; }
}
@media (max-width: 820px) {
  .hero-photo:after, .service-hero-photo:after { background: rgba(5,24,48,.85); }
  .header-quote { min-height: 44px; white-space: nowrap; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid input, .form-grid select, .form-grid textarea { min-width: 0; }
  .hero .hero-copy > p:not(.breadcrumbs), .hero .hero-service-list p, .hero .hero-service-list ul { font-size: 1.02rem; }
}
@media (max-width: 540px) {
  .header-inner > .brand img { width: 44px; height: 44px; }
  .header-inner > .brand .brand-wordmark { width: 124px; }
  .header-inner { gap: 7px; }
  .header-quote { padding-inline: 8px; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout-heading .button { margin-top: 0; }
  .hero-service-columns { gap: 10px; }
  .hero-service-columns h2 { font-size: 14px; }
  .hero-badges img { width: 94px; height: 113px; }
  .decision-row, .tank-diagram { grid-template-columns: minmax(0, 1fr); }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
}
@media (max-width: 365px) {
  .header-inner > .brand img { width: 36px; height: 36px; }
  .header-inner > .brand .brand-wordmark { width: 108px; }
  .header-inner .header-quote { min-width: 0; font-size: 12px; }
  .estimate-label { display: none; }
  .estimate-label-short { display: inline; }
}
