/* Dependable Plumbing & Rooter Service */
:root {
  --navy: #0B1256;
  --navy-2: #1A2378;
  --red: #C4162A;
  --red-dark: #A30F21;
  --ink: #141833;
  --muted: #4A5068;
  --paper: #F1F3F8;
  --white: #FFFFFF;
  --line: #D3D8E4;
  --soil: #E6E0D4;
  --water: #1668C7;
  --drain: #2B8A4B;
  --gas: #E2A30A;
  --display: "Familjen Grotesk", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6;
  color: var(--ink); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--navy-2); text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: #fff; color: var(--navy); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.stars { color: #E0A106; letter-spacing: 2px; font-size: 18px; line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px; border-radius: 6px; border: 2px solid transparent;
  font-family: var(--body); font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; }
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand__text { font-family: var(--display); font-size: 17px; line-height: 1.15; font-weight: 500; max-width: 13em; }
.brand__text b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; gap: 26px; }
.nav a { color: #fff; text-decoration: none; font-size: 16.5px; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: #fff; }
.header-call {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 6px;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 17.5px; text-decoration: none; white-space: nowrap;
}
.header-call:hover { background: #E7EAF6; }
.menu-btn { display: none; }
.mobile-menu { background: var(--navy); border-top: 1px solid rgba(255,255,255,.2); padding: 6px var(--gutter) 18px; }
.mobile-menu a { display: block; padding: 14px 0; color: #fff; text-decoration: none; font-size: 19px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.16); }

/* Hero */
.hero { padding: clamp(28px, 4.2vw, 56px) 0 clamp(40px, 5vw, 64px); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.hero h1 { font-size: clamp(42px, 6.1vw, 88px); line-height: .98; letter-spacing: -0.03em; color: var(--navy); text-wrap: balance; }
.hero__lead { font-size: 19px; color: var(--ink); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__photo { position: relative; margin: 0; }
.hero__photo img { width: 100%; height: clamp(360px, 58vh, 620px); object-fit: cover; object-position: 50% 25%; border-radius: 6px; }
.plate {
  position: absolute; left: 0; bottom: 0; background: var(--navy); color: #fff;
  padding: 14px 22px 13px; border-radius: 0 6px 0 6px; display: flex; flex-direction: column; line-height: 1.25;
}
.plate span { font-size: 15.5px; }
.plate strong { font-family: var(--display); font-size: 24px; letter-spacing: .01em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-bottom: 1px solid var(--line); }
.facts li { padding: 4px 24px 22px; border-left: 1px solid var(--line); font-size: 17px; line-height: 1.45; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { color: var(--ink); font-weight: 700; }

/* Section heads */
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 19px; }

/* Services: house finder */
.services { background: var(--paper); padding: clamp(56px, 7vw, 104px) 0; }
.finder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.finder__diagram { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(10px, 1.6vw, 22px); }
.house { display: block; width: 100%; height: auto; }
.h-soil { fill: var(--soil); }
.h-crawl { fill: #F7F4EE; }
.h-found { fill: var(--navy); }
.h-roof { fill: #E3E7F3; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.h-wall { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.h-thin { fill: none; stroke: var(--navy); stroke-width: 1.5; opacity: .55; }
.h-ground { fill: none; stroke: var(--navy); stroke-width: 2; }
.h-floor { fill: none; stroke: var(--navy); stroke-width: 5; }
.h-fix { fill: #EEF0F7; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.h-basin { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.h-solid { fill: var(--navy); }
.h-faucet, .h-bib { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.h-flue { fill: none; stroke: #8E95AB; stroke-width: 7; }
.h-flue-cap { fill: none; stroke: #8E95AB; stroke-width: 5; stroke-linecap: round; }
.h-meter { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.h-cap { fill: none; stroke: var(--drain); stroke-width: 6; stroke-linecap: round; }
.p-water path, .p-gas path, .p-drain path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.p-water path { stroke: var(--water); stroke-width: 4; }
.p-gas path { stroke: var(--gas); stroke-width: 4; }
.p-drain path { stroke: var(--drain); stroke-width: 6; }
.p-drain path.p-dash { stroke-width: 3; stroke-dasharray: 2 8; }
.pin { cursor: pointer; text-decoration: none; }
.pin__hit { fill: transparent; }
.pin__dot { fill: var(--red); stroke: #fff; stroke-width: 3; transition: fill .15s; }
.pin text { fill: #fff; font-family: var(--body); font-weight: 700; font-size: 19px; text-anchor: middle; pointer-events: none; }
.pin:hover .pin__dot, .pin:focus-visible .pin__dot, .pin.is-active .pin__dot { fill: var(--navy); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin__dot { stroke: var(--water); stroke-width: 4; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 14px 6px 4px; font-size: 16px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend li::before { content: ""; width: 30px; height: 5px; border-radius: 3px; background: var(--water); }
.legend .legend__drain::before { background: var(--drain); }
.legend .legend__gas::before { background: var(--gas); }

.svc-list { border-top: 2px solid var(--navy); }
.svc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 18px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; position: relative; }
.svc::before { content: ""; position: absolute; left: -18px; top: 0; bottom: 0; width: 5px; background: var(--red); opacity: 0; transition: opacity .2s; }
.svc.is-active::before, .svc:target::before { opacity: 1; }
.svc__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px; line-height: 1; margin-top: -3px;
}
.svc.is-active .svc__num { background: var(--navy); }
.svc__body p { margin-top: 8px; }
.svc blockquote { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--line); font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.svc cite { display: block; font-style: normal; font-size: 15px; margin-top: 4px; }
.svc__img { width: 132px; height: 132px; object-fit: cover; border-radius: 6px; }
.finder__foot { margin-top: clamp(28px, 4vw, 44px); font-size: 19px; }
.finder__foot a { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Recent work */
.work { padding: clamp(56px, 7vw, 104px) 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--paper); }
.gallery span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.gallery button:hover img { filter: brightness(1.06); }

/* Reviews */
.reviews { background: var(--paper); padding: clamp(56px, 7vw, 104px) 0; }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.score { display: flex; align-items: center; gap: 16px; }
.score strong { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.score > span { display: flex; flex-direction: column; gap: 6px; font-size: 17px; color: var(--muted); }
.quotes { columns: 3; column-gap: 40px; }
.quotes figure { break-inside: avoid; margin: 0 0 26px; padding-top: 20px; border-top: 2px solid var(--navy); }
.quotes blockquote { margin: 0; font-size: 17.5px; line-height: 1.58; white-space: pre-line; }
.quotes figcaption { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.quotes figcaption b { display: block; color: var(--ink); font-size: 17px; }
.reviews__more { margin-top: 12px; }
.reviews__more a { font-weight: 700; color: var(--navy); }

/* Service area */
.area { padding: clamp(56px, 7vw, 104px) 0; }
.area__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.area__in > div p { margin-top: 12px; color: var(--muted); font-size: 19px; }
.towns { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.22; letter-spacing: -0.015em; color: var(--navy); text-wrap: balance; border-left: 5px solid var(--red); padding-left: clamp(18px, 2.4vw, 32px); }

/* About */
.about { padding: 0 0 clamp(56px, 7vw, 104px); }
.about__in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__logo { width: 100%; border-radius: 8px; }
.about__in p { margin-top: 16px; max-width: 38em; }
.about__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 26px 0 0; max-width: 38em; }
.about__facts div { padding: 13px 0; border-top: 1px solid var(--line); }
.about__facts dt { font-size: 15.5px; color: var(--muted); }
.about__facts dd { margin: 0; font-weight: 600; }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 104px) 0; }
.contact__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__form { background: #fff; color: var(--ink); border-radius: 8px; padding: clamp(22px, 3.4vw, 44px); }
.contact__form h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--navy); }
.contact__form > p { margin: 10px 0 22px; color: var(--muted); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 16.5px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #8990A6; border-radius: 6px;
  font: inherit; font-size: 18px; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--water); outline-offset: 1px; border-color: var(--navy); }
.form-error { color: var(--red-dark); font-weight: 600; margin: 0 0 14px; }
.contact__form .btn { width: 100%; }
.contact__info h2 { font-size: clamp(30px, 3.4vw, 42px); }
.contact__info a { color: #fff; }
.big-phone { display: inline-block; margin: 16px 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; text-decoration: none; }
.big-phone:hover { text-decoration: underline; }
.contact__info address { font-style: normal; margin-top: 14px; }
.contact__info h3 { margin: 30px 0 10px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 17.5px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.22); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 400; opacity: .8; }

/* Footer */
.site-footer { background: #070C3D; color: #D9DCEE; padding: 34px 0 40px; font-size: 16.5px; }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 14px 56px; justify-content: space-between; }
.site-footer__name { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.site-footer a { color: #fff; }

/* Mobile bar */
.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 12, 61, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.5); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 20px; text-align: center; font-size: 17px; }
.lightbox__close { position: absolute; top: 14px; right: 16px; min-height: 48px; padding: 8px 18px; background: #fff; color: var(--navy); border: 0; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.lightbox__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav { gap: 18px; }
  .nav a { font-size: 16px; }
  .brand__text { display: none; }
}
@media (max-width: 960px) {
  .nav, .header-call { display: none; }
  .brand__text { display: block; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px;
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 6px; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
  }
  .menu-btn__bars { width: 18px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
  .hero__top { grid-template-columns: 1fr; align-items: start; }
  .hero__photo img { height: auto; aspect-ratio: 16 / 10; object-position: 50% 20%; }
  .finder { grid-template-columns: 1fr; }
  .finder__diagram { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .quotes { columns: 2; }
  .area__in, .contact__in { grid-template-columns: 1fr; }
  .about__in { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 640px) {
  body { font-size: 17.5px; }
  html { scroll-padding-top: 80px; }
  .site-header__in { min-height: 66px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand__text { font-size: 14px; }
  .brand__text b { font-size: 19px; }
  .hero { padding-top: 24px; }
  .hero__cta .btn { width: 100%; }
  .hero__photo { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .hero__photo img { aspect-ratio: 4 / 3.2; border-radius: 0; object-position: 50% 50%; }
  .plate { border-radius: 0 6px 0 0; padding: 11px 16px 10px; }
  .plate span { font-size: 14.5px; }
  .plate strong { font-size: 21px; }
  .facts { grid-template-columns: 1fr; margin-top: 8px; border-bottom: 0; }
  .facts li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .finder__diagram { margin: 0 -6px; padding: 8px 6px 10px; }
  .pin__dot { r: 21px; }
  .pin text { font-size: 23px; }
  .svc { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; }
  .svc::before { left: -16px; }
  .svc__img { grid-column: 2; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-top: 14px; }
  .quotes { columns: 1; }
  .score strong { font-size: 54px; }
  .about__in { grid-template-columns: 1fr; }
  .about__logo { max-width: 240px; }
  .about__facts { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 112px; }
  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy); box-shadow: 0 -1px 0 rgba(255,255,255,.18);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 50px; padding: 10px 12px; }
  .lightbox__nav { top: auto; bottom: 64px; transform: none; }
}

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