/*
 * Visual direction inspired by the supplied Pro Plumbers preview:
 * warm heritage paper, ink-dark surfaces, expressive slab headlines,
 * and a restrained Massachusetts blue accent.
 * Hero footage is not included in the local assets. To match the preview
 * more closely, replace /assets/background.png with a licensed plumbing
 * installation video/poster (technician working in a real home, wide frame).
 */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Zilla+Slab:wght@500;600;700&display=swap');

:root {
  --heritage-paper: #f4f0e9;
  --heritage-paper-deep: #e9e2d6;
  --heritage-ink: #1b1d22;
  --heritage-muted: #6d6b66;
  --heritage-blue: #0060a8;
  --heritage-blue-dark: #073c62;
  --heritage-line: rgba(27, 29, 34, .14);
  --heritage-display: 'Zilla Slab', Georgia, serif;
  --heritage-body: 'Hanken Grotesk', Arial, sans-serif;
}

html { scroll-padding-top: 96px; }
body {
  background: var(--heritage-paper);
}
main { padding-top: 0; padding-bottom: 0; color: var(--heritage-ink); font-family: var(--heritage-body); }
main p, main span, main li, main dd, main dt { font-family: var(--heritage-body); }
main > section:not(.contact-form-div) h1,
main > section:not(.contact-form-div) h2,
main > section:not(.contact-form-div) h3,
main > section:not(.contact-form-div) h4,
main > section:not(.contact-form-div) h5,
main > div h1, main > div h2, main > div h3,
main .headline { font-family: var(--heritage-display); color: var(--heritage-ink); }
main p { line-height: 1.7; }

/* Cinematic first impression. Existing local background image is used as
   the temporary still; swap it for a real service video/poster when ready. */
.background-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(760px, 88svh);
  padding: clamp(110px, 15vh, 180px) 0 clamp(82px, 12vh, 132px);
  background: #111820 url('./assets/background.png') center 48% / cover no-repeat;
  color: var(--heritage-paper);
}
.background-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,17,21,.91) 0%, rgba(11,17,21,.72) 46%, rgba(11,17,21,.12) 100%), linear-gradient(0deg,rgba(11,17,21,.48),transparent 45%);
  content: '';
}
.background-hero .container { width: min(100%, 1280px); }
.hero-content { max-width: 780px; }
.hero-tag {
  padding: 0;
  margin: 0 0 24px;
  background: transparent;
  border-radius: 0;
  color: #d4e5ee;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-tag::before { content: '—  '; color: #62b7e8; }
.background-hero h1 {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--heritage-paper);
  font: 700 clamp(3.6rem, 8.2vw, 7rem)/.97 var(--heritage-display);
  letter-spacing: -.035em;
}
.background-hero p {
  max-width: 590px;
  margin: 0 0 30px;
  color: rgba(244,240,233,.82);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.65;
}
.hero-buttons { gap: 14px; }
.hero-buttons .cta { padding: 16px 24px; }
.hero-phone {
  border: 1px solid rgba(244,240,233,.42);
  border-radius: 0;
  color: var(--heritage-paper);
  padding: 15px 22px;
}
.hero-phone:hover { background: rgba(244,240,233,.12); color: white; }

/* Keep both offers in place, with quieter framing that fits the updated page. */
.water-heater-promo-wrap { padding: 18px clamp(20px, 6vw, 82px) 0; background: var(--heritage-paper); }
.water-heater-promo-wrap > a { display: block; width: min(100%, 1160px); margin: 0 auto; }
.water-heater-promo-wrap img { display: block; width: 100%; height: auto; border: 1px solid var(--heritage-line); box-shadow: 0 8px 24px rgba(27,29,34,.06); }
.div-promo { justify-content: center; padding: 20px clamp(20px, 6vw, 82px) 8px; background: var(--heritage-paper); }
.div-promo > a { display: block; width: min(100%, 900px); }
.promo-image { display: block; width: 100%; height: auto; max-height: 330px; margin: 0 auto; object-fit: contain; border: 1px solid var(--heritage-line); box-shadow: 0 8px 24px rgba(27,29,34,.06); }

/* Editorial sections use the preview's warm, crafted surfaces. */
#services { padding: clamp(54px, 7vw, 92px) 20px 24px !important; }
#services h2, main > section:not(.contact-form-div) h2, main > div > h2 {
  color: var(--heritage-ink);
  font: 700 clamp(2.3rem, 5vw, 4rem)/1.02 var(--heritage-display);
  letter-spacing: -.025em;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px clamp(18px, 5vw, 72px) clamp(55px, 7vw, 90px);
  background: var(--heritage-paper);
}
.service-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  flex: initial;
  border: 1px solid var(--heritage-line);
  border-radius: 0;
  background: #fbf9f5;
  padding: 190px clamp(24px, 3vw, 38px) clamp(24px, 3vw, 38px);
  transition: transform .25s ease, background .25s ease;
}
.service-box::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 170px;
  background: #24323a center / cover no-repeat;
  content: '';
}
.service-box:nth-child(1)::before { background-image: linear-gradient(0deg,rgba(12,23,31,.18),rgba(12,23,31,.02)),url('./assets/photos/gallery/rough-water/kitchen/3.jpeg'); }
.service-box:nth-child(2)::before { background-image: linear-gradient(0deg,rgba(12,23,31,.18),rgba(12,23,31,.02)),url('./assets/photos/gallery/rough-water/bathroom/9.jpeg'); }
.service-box:nth-child(3)::before { background-image: linear-gradient(0deg,rgba(12,23,31,.18),rgba(12,23,31,.02)),url('./assets/photos/gallery/mechanical/heat/1.png'); }
.service-box:hover { transform: translateY(-4px); background: white; }
.ico-box { position: absolute; top: 145px; left: 22px; z-index: 1; justify-content: flex-start; width: 54px; height: 54px; border: 4px solid var(--heritage-paper); border-radius: 50%; background: #fff; }
.ico-box img { width: 34px; height: 34px; filter: sepia(.18) saturate(1.2); }
.service-box hr { border: 0; border-top: 1px solid var(--heritage-line); box-shadow: none; margin: 20px 0 14px; }
.categories { align-items: flex-start; justify-content: flex-start; gap: 12px; margin-top: 0; }
.categories span { color: var(--heritage-ink); font-size: 15px; font-weight: 500; }

.heritage-trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 26px clamp(20px, 6vw, 82px); border-bottom: 1px solid var(--heritage-line); background: var(--heritage-paper); }
.heritage-trust-strip > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.heritage-trust-strip strong { color: var(--heritage-blue); font: 700 20px/1 var(--heritage-display); white-space: nowrap; }
.heritage-trust-strip span { color: var(--heritage-muted); font-size: 12px; line-height: 1.35; }
.heritage-section-heading { max-width: 760px; margin: 0 auto 32px; }
.heritage-section-heading h2 { margin: 10px 0; font: 700 clamp(2.3rem, 5vw, 4.3rem)/1.03 var(--heritage-display); letter-spacing: -.025em; }
.heritage-section-heading p { max-width: 600px; color: var(--heritage-muted); }
.heritage-kicker { color: var(--heritage-blue); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.heritage-why { background: #fff; }
.heritage-why > div:not(.heritage-section-heading), .heritage-why > dl { max-width: 1120px; margin: 0 auto; }
.heritage-why > div > ul { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; }
.heritage-why > div > ul li { padding: 18px; border-top: 1px solid var(--heritage-line); color: var(--heritage-ink); font-size: 14px; }
.heritage-why > dl { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 20px; margin-top: 42px; padding: 24px; background: var(--heritage-paper); }
.heritage-why > dl dt { text-align: left !important; }
.heritage-why > dl ul { margin: 0; }
.heritage-work { background: var(--heritage-paper-deep); }
.heritage-work .heritage-section-heading { margin-left: 0; }
.heritage-work-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.heritage-work-card { position: relative; display: block; min-height: 260px; overflow: hidden; background: #19252d; color: white !important; }
.heritage-work-card::after { position: absolute; inset: 25% 0 0; background: linear-gradient(0deg,rgba(10,17,21,.85),transparent); content: ''; }
.heritage-work-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .45s ease; }
.heritage-work-card:hover img { transform: scale(1.04); }
.heritage-work-card > span { position: absolute; z-index: 1; right: 20px; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 4px; color: white; }
.heritage-work-card small { color: rgba(255,255,255,.76); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.heritage-work-card strong { font: 700 25px/1.1 var(--heritage-display); }
.heritage-text-link { display: inline-flex; gap: 10px; margin-top: 24px; color: var(--heritage-ink); font-weight: 700; }

.before-after { padding: clamp(54px, 7vw, 92px) clamp(20px, 8vw, 120px); background: #fff; }
.before-after .heritage-section-heading { margin-left: 0; }
.before-after-frame { position: relative; width: min(100%, 1040px); aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; background: #26333b; }
.before-after-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.before-after-top { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; border-right: 2px solid white; }
.before-after-top .before-after-image { width: min(1040px, calc(100vw - 40px)); max-width: none; }
.before-after-label { position: absolute; top: 18px; padding: 7px 12px; background: rgba(17,24,32,.78); color: white; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.before-label { left: 18px; }
.after-label { right: 18px; }
.before-after-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.before-after-handle { position: absolute; top: 50%; left: 50%; display: grid; width: 46px; height: 46px; place-items: center; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; background: var(--heritage-blue); color: white; pointer-events: none; }
.proudly-serving { background: var(--heritage-paper); }
.proudly-serving .heritage-section-heading { margin-left: 0; }
.serving-cities { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0 20px; max-width: 1120px; padding: 0; margin: auto; list-style: none; }
.serving-cities li { padding: 13px 0; border-bottom: 1px solid var(--heritage-line); color: var(--heritage-ink); }

.our-area {
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(52px, 8vw, 100px) clamp(20px, 8vw, 120px);
  background: var(--heritage-paper-deep);
}
.our-area > div:first-child { flex: 1 1 48%; }
.our-area .map-image { display: block; width: min(100%, 540px); margin: auto; }
.our-service-area-div { flex: 1 1 42%; }
.our-service-area-div h2 { margin-bottom: 16px; font: 700 clamp(2.5rem, 5vw, 4.2rem)/1 var(--heritage-display); }
.our-service-area-div h5 { max-width: 500px; color: var(--heritage-muted); font: 400 17px/1.6 var(--heritage-body); }
.our-service-area-div .btn { display: inline-flex; width: auto; min-width: 170px; margin-top: 18px; border-radius: 0; }

main > section:not(.services):not(.contact-form-div):not(.gallery-container):not(.map-div):not(.heritage-area) {
  padding: clamp(30px, 6vw, 78px) clamp(20px, 8vw, 120px) !important;
}
main > section ul { line-height: 1.9; }
.bold-blue { color: var(--heritage-blue); }
.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 58px) clamp(24px, 8vw, 120px);
  border-block: 1px solid var(--heritage-line);
  background: var(--heritage-paper-deep);
}
.gallery-cta-copy { max-width: 700px; }
.gallery-cta-copy .heritage-kicker { display: block; margin-bottom: 8px; }
.gallery-container h2 { margin: 0; color: var(--heritage-ink) !important; font: 700 clamp(2rem, 4vw, 3.5rem)/1.05 var(--heritage-display); }
.gallery-cta-copy p { margin: 10px 0 0; color: var(--heritage-muted); }
.gallery-cta-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 20px; padding: 14px 18px; border: 1px solid rgba(27,29,34,.28); color: var(--heritage-ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.gallery-cta-link span { color: var(--heritage-blue); font-size: 20px; }
.gallery-cta-link:hover { border-color: var(--heritage-blue); background: rgba(255,255,255,.55); }
.map-div { gap: 36px; padding: 64px clamp(20px, 8vw, 120px); background: #e9e2d6; }
.map-div h3 { font: 700 1.7rem var(--heritage-display); }
.map-div span { color: var(--heritage-muted); }
.map { width: min(100%, 780px); border: 1px solid var(--heritage-line) !important; filter: saturate(.65); }
main dl dt { padding-top: 20px; font-weight: 700; }
main dl dd { margin: 8px 0 18px; color: var(--heritage-muted); line-height: 1.7; }
main a:not(.cta):not(.btn):hover { color: var(--heritage-blue); }

footer { background: #111820; color: rgba(244,240,233,.8); }
footer h2, footer h3, footer h4 { color: var(--heritage-paper); }
.site-footer { padding: 58px clamp(20px, 8vw, 120px) 22px; margin: 0 0 74px; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 36px; max-width: 1280px; margin: 0 auto; }
.site-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-footer-grid h2 { margin: 0 0 8px; font: 700 14px var(--heritage-body); letter-spacing: .14em; }
.site-footer-grid a, .site-footer-grid span { color: rgba(244,240,233,.8); font-size: 14px; line-height: 1.6; }
.site-footer-grid a:hover { color: white; }
.site-footer-grid p { max-width: 280px; margin: 8px 0; line-height: 1.6; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white !important; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; }
.site-footer-bottom { max-width: 1280px; padding-top: 22px; margin: 38px auto 0; border-top: 1px solid rgba(244,240,233,.2); font-size: 12px; }
.footer-cta { background: transparent; }
.footer-cta .btn { border-radius: 0; }
.cookie-container { background: #111820; }

/* Gallery page: retain its image browser and give it the same art direction. */
body:has(.pro-gallery, .pro-featured-area) { background: var(--heritage-paper); }
.headline { padding: clamp(48px, 7vw, 86px) 20px 30px; font: 700 clamp(3rem, 7vw, 5.5rem)/1 var(--heritage-display); }
.pro-featured-area { border-radius: 0 !important; }
.pro-thumb-card { border-radius: 0 !important; }

@media (max-width: 991px) {
  .background-hero { min-height: 78svh; padding: 116px 0 82px; background-position: 58% center; }
  .background-hero::before { background: linear-gradient(90deg,rgba(11,17,21,.86),rgba(11,17,21,.48)),linear-gradient(0deg,rgba(11,17,21,.48),transparent 50%); }
  .background-hero h1 { font-size: clamp(3.4rem, 11vw, 5.2rem); }
  .hero-buttons { flex-direction: row; align-items: center; }
  .hero-phone { text-align: center; }
}
@media (max-width: 680px) {
  .background-hero .container, main .container { padding-left: 20px; padding-right: 20px; }
  .background-hero { min-height: 76svh; padding: 100px 0 64px; }
  .background-hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .background-hero p { font-size: 16px; }
  .hero-buttons { align-items: stretch; flex-direction: column; max-width: 360px; }
  .hero-buttons .cta, .hero-phone { text-align: center; }
  .services { grid-template-columns: 1fr; padding-inline: 20px; }
  .service-box { min-height: 250px; padding-top: 178px; }
  .service-box::before { height: 158px; }
  .ico-box { top: 134px; }
  .heritage-trust-strip { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 20px; }
  .heritage-trust-strip > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .heritage-why > div > ul { grid-template-columns: 1fr; }
  .heritage-why > dl { grid-template-columns: 1fr; }
  .heritage-work-grid { grid-template-columns: 1fr; }
  .heritage-work-card:first-child { grid-column: auto; }
  .serving-cities { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .our-area { flex-direction: column; align-items: stretch; padding: 48px 22px; }
  .our-area .map-image { max-width: 420px; }
  .map-div { flex-direction: column; align-items: stretch; padding: 42px 20px; }
  .map { width: 100%; min-height: 280px; }
  .gallery-container { align-items: flex-start; flex-direction: column; gap: 20px; }
  .water-heater-promo-wrap { padding: 10px 14px 0; }
  .div-promo { padding: 12px 14px 4px; }
  .promo-image { max-height: 240px; }
  .site-footer { padding-bottom: 22px; margin-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
