/* PlumberBee: reusable components. Mobile-first; wider layouts in responsive.css. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.header-cta, .offer__actions .btn { white-space: nowrap; }
.btn--gold { background: var(--gold); color: var(--navy); --focus: var(--navy); }
.btn--gold:hover { background: var(--gold-400); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: rgb(255 255 255 / 0.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.08); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy-600); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.18s ease; }
a.link-arrow:hover .icon, .service-card:hover .link-arrow .icon, .option-card:hover .link-arrow .icon, .area-card:hover .link-arrow .icon { transform: translateX(3px); }

.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.icon--check {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--gold); color: var(--navy); stroke-width: 3;
}
.checklist--inline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.checklist--inline .icon--check { width: 20px; height: 20px; }
.checklist--light li { color: rgb(255 255 255 / 0.92); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-soft); font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; list-style: none; padding-left: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 88px) clamp(40px, 6vw, 88px); background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.35rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.accent {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-size: 100% 0.16em; background-position: 0 94%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions--center { justify-content: center; }
.hero__media { position: relative; }
.hero__img, .hero__media img, .page-hero__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 45%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero__caption {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.95); box-shadow: var(--shadow-sm);
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.hero__caption .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--gold); color: var(--navy); stroke-width: 3; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; gap: 32px; align-items: center; }
.page-hero__title { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; }
.page-hero__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); color: var(--muted); max-width: 64ch; }
.page-hero__icon, .feature__icon { display: none; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__lead { margin-inline: auto; }
.icon--xl { width: 88px; height: 88px; stroke-width: 1.4; }
.icon--lg { width: 32px; height: 32px; }
.thanks-icon { display: inline-flex; margin-bottom: 20px; padding: 16px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.thanks-icon .icon--xl { width: 44px; height: 44px; stroke-width: 2.6; }

.hero-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-card__title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.hero-card__title .icon { color: var(--gold-text); }
.hero-card__list { display: grid; gap: 14px; margin: 18px 0 20px; padding: 18px 0; border-block: 1px solid var(--line); }
.hero-card__list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-card__list dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.hero-card__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.hero-card__phone .icon { color: var(--gold-text); }

.hero-card__text { margin: 12px 0 18px; color: var(--muted); font-size: 0.9375rem; }
.hero-card__links { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero-card__links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; overflow-wrap: anywhere; }
.hero-card__links a:hover { color: var(--navy-600); }
.hero-card__links .icon { color: var(--gold-text); }

/* Our Work hero collage: one tall photo and two stacked */
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.collage__item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage__item--1 { grid-row: 1 / 3; }
.collage__item picture, .collage__item img { width: 100%; height: 100%; }
.collage__item img { object-fit: cover; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: #fff; }
.trustbar__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-block: 26px; }
.trustbar li { display: flex; align-items: center; gap: 12px; }
.trustbar__icon { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.6; }
.trustbar strong { display: block; color: #fff; font-size: 0.9375rem; line-height: 1.3; }
.trustbar span { display: block; font-size: 0.8125rem; color: rgb(255 255 255 / 0.7); line-height: 1.35; }

/* ---------- Offer ---------- */
.offer {
  display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  background: var(--gold-soft);
}
.offer__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem); font-weight: 800; letter-spacing: -0.03em; }
.offer__amount { white-space: nowrap; }
.offer__copy p:last-child { margin-top: 14px; color: var(--text); max-width: 60ch; }
.offer__actions { display: grid; gap: 14px; justify-items: start; }
.offer__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.offer__phone:hover { text-decoration: underline; }
.offer__phone .icon { color: var(--gold-text); }

/* ---------- Water heater option cards ---------- */
.option-grid { display: grid; gap: 16px; }
.option-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.option-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.option-card__media {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: 210px; margin: -12px -12px 8px; padding-top: 14px;
  border-radius: 10px; background: radial-gradient(120% 90% at 50% 100%, #e4eaf4 0%, #f4f7fb 70%);
}
.wh-art { width: auto; height: 186px; transition: transform 0.25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .option-card:hover .wh-art { transform: translateY(-4px); }
}
/* Homepage on phones: 2-up grid, picture + name only (details live on the water heater page) */
@media (max-width: 639px) {
  .option-grid--compact { grid-template-columns: 1fr 1fr; gap: 12px; }
  .option-grid--compact .option-card { padding: 12px 12px 16px; gap: 6px; }
  .option-grid--compact .option-card__media { height: 150px; margin: 0 0 6px; }
  .option-grid--compact .wh-art { height: 112px; }
  .option-grid--compact .option-card__badge { top: 8px; left: 8px; font-size: 0.6875rem; padding: 4px 9px; }
  .option-grid--compact .option-card__title { font-size: 1.0625rem; }
  .option-grid--compact .option-card__label, .option-grid--compact .option-card__best { display: none; }
  .option-grid--compact .link-arrow { font-size: 0.875rem; padding-top: 2px; }
}
.option-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px; border-radius: 999px; background: var(--navy); color: var(--gold);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.option-card__title { font-size: 1.3rem; }
.option-card__title a { color: inherit; text-decoration: none; }
.option-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.option-card__label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.option-card__best { padding-block: 10px; border-block: 1px solid var(--line); font-size: 0.9375rem; }
.option-card p:not([class]) { color: var(--muted); font-size: 0.9375rem; }
.option-card .link-arrow { margin-top: auto; padding-top: 8px; position: relative; }
.option-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.option-card :focus-visible { outline: none; }
.option-card[id] { scroll-margin-top: 110px; }

/* ---------- Included list ---------- */
.included { display: grid; gap: 36px; }
.included__copy .btn { margin-top: 28px; }
.included__list { display: grid; gap: 12px; }
.included__list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.included__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.included__icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.included__list h3 { font-size: 1.0625rem; }
.included__list p { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; background: var(--navy-50); color: var(--navy);
}
.service-card__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
/* Centered layout with a large illustrated icon */
.service-card { align-items: center; text-align: center; }
.service-card__icon { width: 150px; height: 150px; border-radius: 50%; margin-bottom: 4px; }
.service-card__icon .service-art--line { width: 65px; height: 65px; stroke-width: 1.5; }
.service-art { width: 120px; height: 120px; object-fit: contain; }
.page-hero__art { width: 170px; height: 170px; object-fit: contain; }
.page-hero__art--line { width: 88px; height: 88px; stroke-width: 1.4; }
.service-card__title { font-size: 1.1875rem; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card p { color: var(--muted); font-size: 0.9375rem; }
.service-card .link-arrow { margin-top: auto; }
.service-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.service-card :focus-visible { outline: none; }

.feature-line { margin-bottom: 16px; }
.feature-line__main {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none;
  --focus: var(--gold);
}
.feature-line__main:hover { background: var(--navy-800); color: #fff; }
.feature-line__main > .icon:first-child { color: var(--gold); }
.feature-line__main > span { flex: 1; }
.feature-line__main strong { display: block; color: #fff; font-size: 1.1875rem; }
.feature-line__main span span { color: rgb(255 255 255 / 0.78); font-size: 0.9375rem; }

/* ---------- Project cards ---------- */
.project-grid { display: grid; gap: 20px; }
.project-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.project-card__media picture img, .project-card__media .photo-slot { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; }
.project-card__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.project-card__pair figure { position: relative; }
.project-card__pair figcaption {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgb(6 26 61 / 0.8); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.project-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-text); }
.project-card__meta a { color: inherit; text-decoration: none; }
.project-card__meta a:hover { text-decoration: underline; }
.project-card__meta span { color: var(--muted); }
.project-card__meta span:first-child:not(:last-child) { color: var(--gold-text); }
.project-card h3 { font-size: 1.1875rem; }
.project-card h3 a { color: inherit; text-decoration: none; }
.project-card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.project-card__city { position: relative; z-index: 1; }
.project-card--link { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.project-card--link:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.project-card--link:hover h3 { color: var(--navy-600); }
.project-card--link:hover .link-arrow .icon { transform: translateX(3px); }
.project-card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.project-card--link h3 a:focus-visible { outline: none; }
.project-card__body .link-arrow { margin-top: auto; padding-top: 10px; font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .project-card--link picture img { transition: transform 0.4s ease; }
  .project-card--link:hover picture img { transform: scale(1.03); }
}
.project-card__body > p:not(.project-card__meta) { color: var(--muted); font-size: 0.9375rem; }

/* Labeled photo placeholder (until real photos are supplied) */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; aspect-ratio: 4 / 3; padding: 24px; text-align: center;
  border-radius: inherit; color: rgb(255 255 255 / 0.78); font-size: 0.875rem; font-weight: 600;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E");
}
.photo-slot img { width: 64px; height: 64px; opacity: 0.9; }
.photo-slot--tall { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.photo-slot--hero { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .photo-slot--hero { aspect-ratio: 4 / 5; max-height: 620px; } }

/* ---------- Why ---------- */
.why { display: grid; gap: 40px; align-items: center; }
.why__media { max-width: 520px; }
.why__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.why__list { display: grid; gap: 22px; margin-top: 32px; }
.why__list li { display: flex; gap: 16px; align-items: flex-start; }
.why__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--navy); color: var(--gold); stroke-width: 1.8; }
.why__list h3 { font-size: 1.0625rem; }
.why__list p { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 16px; }
.review-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.review-card blockquote p { font-size: 1.0625rem; color: var(--ink); }
.review-card figcaption { display: grid; gap: 2px; font-size: 0.875rem; color: var(--muted); }
.reviews-more { margin-top: 32px; }
.review-links { display: grid; gap: 14px; }
.review-link {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); text-decoration: none; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.review-link:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); }
.review-link__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold); }
.review-link__icon .icon { width: 26px; height: 26px; }
.review-link__text { display: grid; gap: 2px; flex: 1; }
.review-link__text strong { font-size: 1.125rem; }
.review-link__text span { font-size: 0.9375rem; color: var(--muted); }
.review-link__arrow { width: 20px; height: 20px; color: var(--navy-600); transition: transform 0.18s ease; }
.review-link:hover .review-link__arrow { transform: translateX(3px); }

/* ---------- Service areas ---------- */
.areas, .nearby { display: grid; gap: 32px; align-items: center; }
.areas__copy .btn { margin-top: 28px; }
.areas__more { margin-top: 24px; }
.city-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city-links a {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font-weight: 650; text-decoration: none; font-size: 0.9375rem;
  transition: border-color 0.18s ease;
}
.city-links a:hover { border-color: var(--navy); color: var(--navy); }
.city-links .icon { color: var(--gold-text); width: 18px; height: 18px; }
.city-links--large a { padding: 18px; font-size: 1rem; }

.area-grid { display: grid; gap: 14px; }
.area-card { position: relative; display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.18s ease; }
.area-card:hover { border-color: var(--navy); }
.area-card h3 { font-size: 1.1875rem; }
.area-card h3 a { color: inherit; text-decoration: none; }
.area-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.area-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.area-card :focus-visible { outline: none; }
.area-card__meta { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-text); }
.area-card p:not([class]) { color: var(--muted); font-size: 0.9375rem; }
.area-card .link-arrow { margin-top: 8px; font-size: 0.9375rem; }

/* ---------- Quick answer ---------- */
.quick-answer { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); background: #fff; }
.quick-answer__title { font-size: 1.25rem; margin-bottom: 12px; }
.quick-answer > p { color: var(--text); }
.facts { display: grid; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; color: var(--ink); }

/* ---------- Signs ---------- */
.sign-grid { display: grid; gap: 14px; }
.sign { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.sign h3 { font-size: 1.0625rem; }
.sign__icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); stroke-width: 1.8; }
.sign p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Comparison ---------- */
.compare { display: grid; gap: 32px; align-items: start; }
.compare__copy p { margin-top: 16px; max-width: 60ch; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare-table { width: 100%; min-width: 460px; font-size: 0.9375rem; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--navy); color: #fff; font-size: 0.875rem; letter-spacing: 0.02em; }
.compare-table tbody th { color: var(--ink); font-weight: 650; width: 34%; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-soft); }

/* Inline section photo (water heater page) */
.inline-photo { margin-top: 28px; }
.inline-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.inline-photo figcaption { margin-top: 10px; font-size: 0.875rem; font-weight: 600; }
.inline-photo figcaption a { color: var(--muted); text-decoration: none; }
.inline-photo figcaption a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800;
}
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step__top .step__num { margin-bottom: 0; }
.step__icon { width: 34px; height: 34px; color: var(--navy-600); stroke-width: 1.6; }
.step h3 { font-size: 1.125rem; }
.step p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Feature block (city pages) ---------- */
.feature { display: grid; gap: 32px; align-items: center; }
.feature__copy .checklist { margin-top: 18px; grid-template-columns: 1fr; }
.feature__copy > p:not([class]) { margin-top: 18px; }
.feature__icon {
  align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E");
}
.feature__icon .icon--xl { width: 40%; height: 40%; }

.feature__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-card--photo { padding-top: 0; overflow: hidden; }
.service-card__photo { margin: 0 -28px 6px; width: calc(100% + 56px); }
.service-card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area-map { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); }
.area-map .map-title { font: 800 22px var(--font); fill: #fff; }
.area-map .map-sub { font: 600 13px var(--font); fill: var(--gold); letter-spacing: 0.04em; }
.area-map .map-label { font: 600 13px var(--font); fill: #fff; }
.area-map .map-label--ref { fill: rgb(255 255 255 / 0.7); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 650; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-600); }
.faq-chevron { width: 22px; height: 22px; color: var(--navy-600); transition: transform 0.2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 2px 22px; color: var(--muted); max-width: 72ch; }

/* ---------- Lead form section ---------- */
.lead {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E");
  color: rgb(255 255 255 / 0.85);
  --focus: var(--gold);
}
.lead .eyebrow { color: var(--gold); }
.lead__grid { display: grid; gap: 40px; align-items: start; }
.lead__subtitle { margin: 12px 0 16px; font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.lead__copy > p:not([class]) { max-width: 52ch; }
.lead__copy .checklist { margin-top: 26px; }
.lead__call { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.15); display: grid; gap: 4px; }
.lead__call > span { font-size: 0.875rem; color: rgb(255 255 255 / 0.7); }
.lead__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.lead__phone:hover { color: var(--gold); }
.lead__phone .icon { color: var(--gold); }

.lead-form {
  display: grid; gap: 16px;
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg);
  background: #fff; color: var(--text); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
  --focus: var(--navy-600);
}
.lead-form__title { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-size: 1rem; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230a2552' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgb(29 65 133 / 0.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgb(180 35 24 / 0.15); }
.field__error { font-size: 0.8125rem; font-weight: 600; color: var(--danger); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { margin-top: 6px; }
.lead-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-status { padding: 12px 14px; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; }
.form-status.is-error { background: #fef3f2; color: var(--danger); }
.form-status.is-info { background: var(--gold-soft); color: var(--ink); }
.form-status a { color: inherit; font-weight: 800; }
.lead-form__fine { font-size: 0.8125rem; color: var(--muted); }
.lead-form__fine a { color: var(--navy-600); font-weight: 600; }
.lead-form__fine .icon { display: none; }
/* Embedded hosted form: the form is two columns (~540px tall) when wide, one column (~860px) when narrow. */
.lead-embed { gap: 12px; }
.lead-embed__frame { display: block; width: 100%; height: 890px; border: 0; border-radius: 12px; background: #fff; transition: height 0.15s ease; }
@media (min-width: 640px) {
  .lead-embed__frame { height: 580px; }
}

/* Estimate CTA band (pages without the form) */
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
.cta-band__copy > p:not([class]) { max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 14px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card > .icon { color: var(--navy); margin-bottom: 8px; }
.contact-card h2 { font-size: 1.125rem; }
.contact-card p { color: var(--muted); font-size: 0.9375rem; }
.contact-card__value { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--navy-600); overflow-wrap: anywhere; }

/* ---------- About ---------- */
.brand-story { display: grid; gap: 32px; align-items: center; }
.brand-story__media img { width: min(320px, 70%); height: auto; filter: drop-shadow(0 18px 24px rgb(10 37 82 / 0.18)); }

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
