/* Good Times Plumbing. Mobile first. Fonts are served by the site itself (no outside requests).
   Pieces adapted from the rchive reuse library: sticky call bar 2, running water, progress line (pipe),
   scroll reveal, scroll story, review themes 2 and service-area map 2. */
@font-face { font-family: Fraunces; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --ink: #13262f; --muted: #4f5d63; --navy: #0c3b52; --navy-2: #092e41; --sea: #1d6f8c; --sky: #dff0f5;
  --sun: #ffc53d; --sun-2: #f2ad0b; --copper: #a64e1c; --paper: #fbf6ec; --card: #fff; --line: #e7dfd0; --ok: #1d7a4c;
  --f-head: Fraunces, Georgia, "Times New Roman", serif; --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem; --r: 22px; --head-h: 4.25rem; --strip-h: 2.4rem;
  /* library pieces */
  --cb-bg: #fffdf8; --cb-ink: var(--ink); --cb-call: var(--sun); --cb-call-ink: var(--ink); --cb-h: 4.25rem; --cb-h-stuck: 3.35rem;
  --rw-water: #1d6f8c; --rw-water-top: #6cc0ea; --rw-pipe: #c8733f; --rw-pipe-dark: #8a4f2a; --rw-valve: #c9413a; --rw-gutter: 3.6rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.03rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.6vw, 3.75rem); margin: .3rem 0 1rem; letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); margin: 0 0 .8rem; }
h3, .h3 { font-size: 1.28rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--sea); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.22rem); color: var(--muted); max-width: 40rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; font: 700 .8rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.eyebrow::before { content: ""; width: 1.4rem; height: 3px; border-radius: 3px; background: var(--sun-2); }
.note { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 1rem; color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.section { padding-block: clamp(3.2rem, 9vw, 6rem); }
.section-tight { padding-block: clamp(2.4rem, 6vw, 4rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; white-space: nowrap; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-sun:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); background: #ffcf5c; }
.btn-sun:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-line:hover { color: var(--ink); background: rgb(19 38 47 / .06); }
.btn-lg { min-height: 3.5rem; padding: .85rem 1.6rem; font-size: 1.08rem; }
.on-dark .btn-line { color: #fff; }
.on-dark .btn-line:hover { color: #fff; background: rgb(255 255 255 / .1); }
.btn-sun:focus-visible, .btn-line:focus-visible { outline-color: var(--ink); }
.on-dark :focus-visible { outline-color: var(--sun); }

/* ---- Emergency strip (every page) ---- */
.strip { position: relative; z-index: 51; background: var(--navy-2); color: #e7f1f4; font-size: .9rem; }
.strip-in { display: flex; align-items: center; justify-content: center; gap: .4rem .9rem; flex-wrap: wrap; min-height: var(--strip-h); padding: .35rem 1rem; text-align: center; }
.strip a { color: var(--sun); font-weight: 700; text-decoration: none; white-space: nowrap; }
.strip a:hover { color: #fff; text-decoration: underline; }
.strip-long { display: none; }
@media (min-width: 640px) { .strip-long { display: inline; } .strip-short { display: none; } }
.open { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.open::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #9fb4bd; }
html[data-open="yes"] .open::before { background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / .25); }
html[data-open="no"] .open::before { background: #f59e0b; }

@media (max-width: 639px) { .strip { font-size: .84rem; } .strip-in { gap: .2rem .7rem; padding-inline: .6rem; } }

/* ---- Header: sticky, gets shorter once it sticks (sticky call bar 2) ---- */
html { container-type: scroll-state; container-name: cb-page; }
.cb-head { position: sticky; top: 0; z-index: 50; height: var(--cb-h); container-type: scroll-state; container-name: cb-head; pointer-events: none; }
.cb-head-in { position: absolute; inset: 0 0 auto 0; height: 100%; display: flex; align-items: center; gap: 1rem; padding: 0 max(1.25rem, calc((100% - var(--wrap)) / 2));
  background: rgb(255 253 248 / .96); color: var(--cb-ink); border-bottom: 1px solid rgb(19 38 47 / .1); pointer-events: auto; transition: height .25s ease, box-shadow .25s ease; }
@supports (backdrop-filter: blur(6px)) { .cb-head-in { background: rgb(255 253 248 / .88); backdrop-filter: saturate(1.4) blur(10px); } }
@container cb-head scroll-state(stuck: top) { .cb-head-in { height: var(--cb-h-stuck); box-shadow: 0 6px 18px -8px rgb(19 38 47 / .28); } .brand-mark { width: 2.1rem; height: 2.1rem; } .brand-sub { opacity: 0; max-height: 0; } }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; transition: width .25s, height .25s; }
.brand-text { display: grid; min-width: 0; }
.brand-name { font: 700 1.2rem/1.05 var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; max-height: 1.2em; overflow: hidden; transition: opacity .2s, max-height .25s; }
@media (max-width: 419px) { .bs-more { display: none; } .eyebrow { letter-spacing: .08em; } }
.nav { display: none; }
.nav ul { display: flex; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: .55rem .75rem; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; }
.nav a:hover { background: rgb(19 38 47 / .06); }
.nav a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.cb-phone { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; font-weight: 700; white-space: nowrap; text-decoration: none;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); }
.cb-phone:hover { color: var(--ink); background: #ffcf5c; }
.cb-phone svg { width: 1.1rem; height: 1.1rem; }
.cb-phone .num { display: none; }
@media (min-width: 400px) { .cb-phone .num { display: inline; } .cb-phone .word { display: none; } }
.menu-btn { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid rgb(19 38 47 / .18); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 1.3rem; height: 1.3rem; }
.no-js .menu-btn { display: none; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}
/* the phone menu: a panel under the header */
.menu { position: fixed; z-index: 49; inset: var(--cb-h) 0 auto 0; padding: .6rem 1.25rem 1.4rem; background: #fffdf8; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(19 38 47 / .4); }
.menu[hidden] { display: none; }
.menu ul { margin: 0; padding: 0; list-style: none; display: grid; }
.menu a { display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 1.12rem/1.2 var(--f-head); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--sea); }
.no-js .menu { position: static; display: block; box-shadow: none; }
.no-js .menu ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.no-js .menu a { border: 0; font-size: 1rem; padding: .4rem 0; }
@media (min-width: 1080px) { .no-js .menu { display: none; } }

/* ---- Progress line: a pipe that fills with water as the page is read (progress line, pl-pipe) ---- */
@property --pl { syntax: "<number>"; inherits: true; initial-value: 0; }
.pl { --pl-top: 0px; --pl-h: 7px; --pl-head: 10px; display: none; position: fixed; inset: var(--pl-top) 0 auto 0; height: var(--pl-h); z-index: 70; pointer-events: none; }
@supports (animation-timeline: scroll()) { .pl { display: block; animation: pl-go linear both; animation-timeline: scroll(root block); } }
@keyframes pl-go { from { --pl: 0; } to { --pl: 1; } }
.pl::before { content: ""; position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--pl)) * 100%) 0 0); }
.pl::after { content: ""; position: absolute; top: 0; left: calc(var(--pl) * (100% - var(--pl-head))); width: var(--pl-head); height: 100%; }
.pl-pipe { background: linear-gradient(to bottom, #fbfaf6 0 12%, #d8d6cc 22%, #33312e 26% 78%, #b9b7ad 84%, #8f8d84); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.pl-pipe::before { background: linear-gradient(to bottom, transparent 0 26%, #7fc0e6 26%, #2f6f9c 60%, #235676 78%, transparent 78%); }
.pl-pipe::after { top: 26%; height: 52%; border-radius: 0 99px 99px 0; background: linear-gradient(to bottom, #7fc0e6, #2f6f9c 65%, #235676); }
@media (prefers-reduced-motion: reduce) { .pl { display: none !important; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(1.6rem, 5vw, 4rem) 0 clamp(2.4rem, 6vw, 4.5rem); background:
  radial-gradient(70rem 40rem at 110% -10%, #ffe7a8 0, rgb(255 231 168 / 0) 60%), var(--paper); }
.hero-grid { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgb(255 197 61 / .65) 62% 92%, transparent 92%); padding-inline: .05em; }
.hero .lead { margin-bottom: 1.2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.trust svg { width: 1rem; height: 1rem; flex: none; }
@media (max-width: 639px) { .hero .trust li:not(:first-child) { display: none; } .hero .lead { font-size: 1.04rem; } }
.trust .stars { color: #e0a100; letter-spacing: 1px; }
.trust a { color: inherit; text-decoration: none; }
.trust a:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cta-row .btn-lg { flex: 1 1 15rem; max-width: 22rem; }
.hero-hours { margin: .9rem 0 0; font-size: .92rem; color: var(--muted); }
.hero-art-box { position: relative; margin: 0; border-radius: 28px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 6px 8px 0 var(--ink); background: #d6edf4; aspect-ratio: 600 / 420; }
.hero-art { display: block; width: 100%; height: 100%; }
@media (max-width: 899px) { .hero-art-box { box-shadow: 4px 5px 0 var(--ink); max-width: 34rem; } }

/* The hero's one moving moment: the sun comes up, the water warms, the shower runs, "Hot water's on". */
.hero-art .h-needle { transform: rotate(58deg); transform-origin: 226px 130px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .h-sun { animation: h-rise 1.5s cubic-bezier(.2, .8, .2, 1) .1s both; }
  .hero-art .h-rays { transform-origin: 478px 110px; animation: h-rays 1.2s ease .9s both; }
  .hero-art .h-glint { animation: h-glint 1.1s ease-in-out 1.2s both; }
  .hero-art .h-tankwarm { animation: h-fade 1.2s ease 1.6s both; }
  .hero-art .h-needle { animation: h-needle 1.6s cubic-bezier(.4, 0, .2, 1) 1.4s both; }
  .hero-art .h-flow { animation: h-flow 1.4s cubic-bezier(.5, 0, .3, 1) 1.9s both; }
  .hero-art .h-shower { animation: h-fade .4s ease 3.1s both; }
  .hero-art .h-fall { animation: h-fall .5s linear 3.1s 10; }
  .hero-art .h-steam path { animation: h-steam 2.4s ease-out 3.4s 3 both; }
  .hero-art .h-steam path + path { animation-delay: 3.9s; }
  .hero-art .h-badge { transform-origin: 140px 379px; animation: h-pop .55s cubic-bezier(.3, 1.6, .5, 1) 3.9s both; }
}
@keyframes h-rise { from { transform: translateY(120px); } }
@keyframes h-rays { from { opacity: 0; transform: scale(.7) rotate(-25deg); } }
@keyframes h-glint { from { transform: translateX(0) skewX(-24deg); opacity: .55; } to { transform: translateX(300px) skewX(-24deg); opacity: .55; } }
@keyframes h-fade { from { opacity: 0; } }
@keyframes h-needle { from { transform: rotate(-58deg); } }
@keyframes h-flow { from { stroke-dashoffset: 100; stroke: #5bb5dd; } 60% { stroke: #5bb5dd; } }
@keyframes h-fall { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes h-steam { 0% { opacity: 0; transform: translateY(14px); } 40% { opacity: .95; } 100% { opacity: .9; transform: none; } }
@keyframes h-pop { from { opacity: 0; transform: scale(.6); } }
.hero-art .h-glint { transform: translateX(300px) skewX(-24deg); }

/* ---- Cards and grids ---- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; padding: 1.4rem 1.3rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--sky); color: var(--navy); margin-bottom: .7rem; }
.card .ico svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.card { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: #c9d9de; box-shadow: 0 16px 30px -22px rgb(12 59 82 / .55); }
.card .go { display: inline-block; margin-top: .6rem; font-weight: 700; color: var(--sea); }
.ticks { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230c3b52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---- Services, tapped off a pipe that fills as you scroll (running water) ---- */
@property --rw-flow { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --rw-level { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --rw-drift { syntax: "<length>"; inherits: true; initial-value: 0px; }
.svc-head { display: grid; gap: .4rem 2rem; margin-bottom: 1.8rem; }
@media (min-width: 900px) { .svc-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.rw-run { --bore: .95rem; --at: .55rem; --tube: var(--rw-pipe-dark) 0 12%, var(--rw-pipe) 12% 27%, #232a31 27% 73%, var(--rw-pipe) 73% 88%, var(--rw-pipe-dark) 88%;
  position: relative; padding-left: var(--rw-gutter); display: grid; gap: 0; }
.rw-run::before { content: ""; position: absolute; inset: 0 auto 2rem var(--at); width: var(--bore); border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--tube)); }
.rw-run::after { content: ""; position: absolute; top: 0; left: calc(var(--at) + var(--bore) * .27); width: calc(var(--bore) * .46); height: clamp(0px, calc(var(--rw-flow) * (100% + 100vh) - 40vh), calc(100% - 2rem)); border-radius: 0 0 99px 99px; background: linear-gradient(90deg, var(--rw-water-top), var(--rw-water)); }
.rw-stop { position: relative; padding: 0 0 1.6rem; }
.rw-stop::before { content: ""; position: absolute; top: 1.85rem; left: calc(var(--at) + var(--bore) - var(--rw-gutter)); width: calc(var(--rw-gutter) - var(--at) - var(--bore) - .2rem); height: var(--bore); background: linear-gradient(0deg, var(--tube)); }
.rw-stop::after { content: ""; position: absolute; top: calc(1.85rem + var(--bore) * .27); left: calc(var(--at) + var(--bore) * .7 - var(--rw-gutter)); width: calc(var(--rw-gutter) - var(--at) - var(--bore) * .7 - .2rem); height: calc(var(--bore) * .46); background: linear-gradient(var(--rw-water-top), var(--rw-water)); transform-origin: 0 50%; }
.rw-stop .card { display: grid; gap: .2rem 1.2rem; }
.rw-stop .card p { margin-bottom: .2rem; }
.rw-stop .valve { position: absolute; z-index: 1; top: 1.65rem; left: calc(-1 * var(--rw-gutter) + var(--at) + var(--bore) + .5rem); width: 1.35rem; height: 1.35rem; border-radius: 50%; border: .22rem solid var(--rw-valve);
  background: radial-gradient(circle, var(--rw-valve) 0 22%, transparent 24%), linear-gradient(var(--rw-valve) 0 0) 50% 50% / 100% .16rem no-repeat, linear-gradient(var(--rw-valve) 0 0) 50% 50% / .16rem 100% no-repeat, #f4f1ea; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
@media (min-width: 760px) { .rw-run { max-width: 60rem; } .rw-stop { padding-bottom: 1.1rem; } .rw-stop .card { grid-template-columns: minmax(12rem, 18rem) 1fr; align-items: baseline; padding: 1.3rem 1.5rem; } .rw-stop .card h3 { grid-row: span 2; margin: 0; } .rw-stop .card .go { margin-top: .1rem; } }
.rw-fill { display: inline-block; color: var(--rw-water); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .rw-fill { --wave: .5em; color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: .02em var(--rw-water);
    background: radial-gradient(ellipse 55% 100% at 50% 100%, var(--rw-water-top) 0 96%, transparent 100%) var(--rw-drift) calc((1 - var(--rw-level)) * 100% - var(--rw-level) * var(--wave)) / 1.1em var(--wave) repeat-x,
      linear-gradient(var(--rw-water-top), var(--rw-water) 45%) 0 100% / 100% calc(var(--rw-level) * 100%) no-repeat;
    -webkit-background-clip: text; background-clip: text; padding-bottom: .08em; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rw-run { animation: rw-flow linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .rw-stop::after { animation: rw-branch linear both; animation-timeline: view(); animation-range: cover 40vh cover calc(40vh + 2.5rem); }
    .rw-stop .valve { animation: rw-turn linear both; animation-timeline: view(); animation-range: cover 40vh cover calc(40vh + 3.5rem); }
    .rw-stop .card { animation: rw-on linear both; animation-timeline: view(); animation-range: cover 30vh cover calc(30vh + 5rem); }
    .rw-fill.rw-on-scroll { animation: rw-rise linear both, rw-drift 2.2s linear infinite; animation-timeline: view(), auto; animation-range: cover 10% cover 38%, normal; }
  }
}
@keyframes rw-flow { from { --rw-flow: 0; } to { --rw-flow: 1; } }
@keyframes rw-branch { from { transform: scaleX(0); } to { transform: none; } }
@keyframes rw-turn { from { rotate: -90deg; filter: grayscale(.9); } to { rotate: 0deg; filter: none; } }
@keyframes rw-on { from { opacity: .55; } to { opacity: 1; } }
@keyframes rw-rise { from { --rw-level: 0; } to { --rw-level: 1; } }
@keyframes rw-drift { from { --rw-drift: 0px; } to { --rw-drift: 1.1em; } }

/* ---- Dark band ---- */
.dark { background: var(--navy); color: #d4e3e8; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #c3d6dc; }
.dark .eyebrow { color: var(--sun); }
.dark a:not(.btn) { color: var(--sun); }

/* ---- Reviews (review themes 2, fed by reviews.json) ---- */
.rt2 { --rt-ink: var(--ink); --rt-muted: var(--muted); --rt-on-dark: #c3d6dc; --rt-hi: #ffc53d; --rt-hi-text: #3a2a00; --rt-star: #e0a100; }
.rt2-top { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
.rt2-score { padding: 1.7rem 1.5rem; border-radius: var(--r); background: #fff; color: var(--rt-ink); text-align: center; }
.rt2-score .big { display: block; font: 700 4.2rem/1 var(--f-head); letter-spacing: -.04em; }
.rt2-score .stars { display: block; margin: .6rem 0 .5rem; font-size: 1.5rem; letter-spacing: 4px; color: var(--rt-star); }
.rt2-score p { margin: 0 0 .4rem; color: var(--rt-muted); }
.rt2-score .most5 { display: inline-block; margin: .5rem 0 1.1rem; padding: .35rem .8rem; border-radius: 999px; background: #e7f3ec; color: var(--ok); font-weight: 700; font-size: .92rem; }
.rt2-score a { display: block; padding: .75rem 1.1rem; border: 2px solid var(--rt-ink); border-radius: 999px; color: var(--rt-ink) !important; font-weight: 700; text-decoration: none; }
.rt2-score a:hover { background: var(--sky); }
.rt2-themes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rt2-theme { position: relative; padding: 1.2rem 1rem 1.1rem; border-radius: var(--r); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); }
.rt2-theme .num { display: block; font: 700 2.4rem/1 var(--f-head); letter-spacing: -.03em; color: #fff; }
.rt2-theme .num small { font: 600 .9rem/1 var(--f-body); letter-spacing: 0; margin-left: .35rem; color: var(--rt-on-dark); }
.rt2-theme h3 { margin: .7rem 0 .3rem; font-size: 1.1rem; color: #fff; }
.rt2-theme p { margin: 0; color: var(--rt-on-dark); font-size: .93rem; }
.rt2-theme .bar { display: block; height: 8px; margin: 1rem 0 .2rem; border-radius: 8px; background: rgb(255 255 255 / .12); overflow: hidden; }
.rt2-theme .bar i { display: block; height: 100%; border-radius: 8px; background: var(--rt-on-dark); transform-origin: left; }
.bar .w100 { width: 100%; } .bar .w67 { width: 67%; } .bar .w50 { width: 50%; }
.rt2-lead, .rt2-theme:nth-child(2) { grid-column: 1 / -1; }
.rt2-lead { background: var(--rt-hi); border-color: var(--rt-hi); }
.rt2-lead .num, .rt2-lead h3 { color: var(--ink); }
.rt2-lead .num small, .rt2-lead p { color: var(--rt-hi-text); }
.rt2-lead .bar { background: rgb(19 38 47 / .15); }
.rt2-lead .bar i { background: var(--ink); }
.rt2-lead .tag { position: absolute; top: 1.1rem; right: 1.1rem; padding: .25rem .6rem; border-radius: 999px; background: rgb(19 38 47 / .12); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rt2-also { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.rt2-also .lbl { color: var(--rt-on-dark); font-weight: 600; }
.rt2-also li:not(.lbl) { padding: .4rem .85rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: #fff; font-size: .95rem; }
.rt2-also b { color: var(--sun); margin-left: .3rem; }
.rt2-fine { margin: 1.3rem 0 0; font-size: .88rem; color: var(--rt-on-dark); }
@media (min-width: 700px) { .rt2-themes { gap: .9rem; } .rt2-lead, .rt2-theme:nth-child(2) { grid-column: auto; } .rt2-theme { padding: 1.4rem 1.3rem 1.3rem; } .rt2-theme .num { font-size: 2.9rem; } }
@media (min-width: 1000px) { .rt2-top { grid-template-columns: 19rem 1fr; } .rt2-score { display: flex; flex-direction: column; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) { .rt2-theme.reveal.in .bar i { animation: rt2-grow 1.1s cubic-bezier(.2, .7, .2, 1) .2s both; } }
@keyframes rt2-grow { from { transform: scaleX(0); } }

/* ---- Scroll story (one job, step by step) ---- */
.story-sec { background: #fff; border-block: 1px solid var(--line); }
.ss { --ss-top: 5rem; --ss-top-small: 3.6rem; --ss-bg: #fff; --ss-accent: var(--copper); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; margin-top: 2rem; }
.ss-stage { position: sticky; top: var(--ss-top); }
.ss-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; contain: paint; background: #f4e8cf; border: 2px solid var(--ink); }
.ss-layer { position: absolute; inset: 0; }
.ss-layer > svg { display: block; width: 100%; height: 100%; }
.ss-p1 { --p: var(--s1, 1); } .ss-p2 { --p: var(--s2, 1); } .ss-p3 { --p: var(--s3, 1); } .ss-p4 { --p: var(--s4, 1); } .ss-p5 { --p: var(--s5, 1); }
.ss-fade { opacity: var(--p, 1); }
.ss-rise { opacity: var(--p, 1); transform: translateY(calc((1 - var(--p, 1)) * 40px)); }
.st-old { opacity: calc(1 - var(--s3, 1)); transform: translateX(calc(var(--s3, 1) * -50px)); }
.st-leak { opacity: calc(1 - var(--s2, 1)); }
.st-safe { opacity: calc(var(--s2, 1) - var(--s5, 1)); } /* the isolated tag shows from step 2 until the hot water is back on */
.ss-caption { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: grid; }
.ss-caption > * { grid-area: 1 / 1; opacity: 0; transition: opacity .25s; padding: .3rem .7rem; border-radius: 999px; background: rgb(19 38 47 / .82); color: #fff; font-size: .8rem; font-weight: 600; }
.ss[data-ss-at="1"] .ss-caption > :nth-child(1), .ss[data-ss-at="2"] .ss-caption > :nth-child(2), .ss[data-ss-at="3"] .ss-caption > :nth-child(3),
.ss[data-ss-at="4"] .ss-caption > :nth-child(4), .ss[data-ss-at="5"] .ss-caption > :nth-child(5) { opacity: 1; }
.ss:not(.ss-on) .ss-caption > :last-child { opacity: 1; }
.ss-meter { height: 4px; margin-top: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ss-accent) 18%, transparent); overflow: hidden; }
.ss-meter::after { content: ""; display: block; height: 100%; background: var(--ss-accent); transform-origin: left; transform: scaleX(var(--ss, 1)); }
.ss-steps { list-style: none; margin: 0; padding: 0; counter-reset: ss; }
.ss-step { counter-increment: ss; padding: 1.1rem 0; }
.ss-step::before { content: counter(ss, decimal-leading-zero); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--ss-accent); margin-bottom: .4rem; }
.ss-step h3 { font-size: 1.5rem; }
.ss-step > :last-child { margin-bottom: 0; }
.ss-on .ss-step { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .3s; }
.ss-on .ss-step.is-now { opacity: 1; }
.ss-on .ss-step:last-child { min-height: 36vh; }
@media (max-width: 860px) {
  .ss { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ss-stage { top: var(--ss-top-small); z-index: 2; background: var(--ss-bg); padding: .5rem 0 .75rem; }
  .ss-frame { aspect-ratio: 16 / 11; max-height: 42vh; margin-inline: auto; }
  .ss-layer > svg { object-fit: cover; }
  .ss-on .ss-step { min-height: 30vh; justify-content: flex-start; padding-top: .8rem; }
  .ss-on .ss-step:last-child { min-height: 26vh; }
}
.ss:not(.ss-on) .ss-stage { position: static; }
.ss:not(.ss-on) .ss-meter { display: none; }

/* ---- Service-area map (service-area map 2) and the suburb check ---- */
.area-grid { display: grid; gap: 1.6rem; align-items: start; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }
.map { margin: 0; padding: 8px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.map-svg { display: block; width: 100%; height: auto; }
.map a .dot { transition: fill .15s ease, r .15s ease; }
.map a:hover .dot, .map a:focus-visible .dot, .map a.hit .dot { fill: var(--copper); }
.map a.hit text { fill: var(--copper); }
.map a:focus-visible { outline: none; }
.map a:focus-visible text { text-decoration: underline; }
.map .ring { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .map .ring { animation: map-ring 2.6s ease-out infinite; } }
@keyframes map-ring { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 600px) { .map { padding: 4px; border-radius: 18px; } .map-svg .tn { font-size: 24px; } .map-svg .tb { font-size: 31px; } .map-svg .sm { font-size: 19px; } .map-svg .rg { font-size: 21px; } }
.check { margin: 1.2rem 0 1rem; padding: 1.2rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.check label { display: block; font-weight: 700; margin-bottom: .5rem; }
.check-row { display: flex; gap: .5rem; }
.check-row input { flex: 1; min-width: 0; }
.check-out { margin: .8rem 0 0; min-height: 1.6em; font-weight: 600; }
.check-out:empty { display: none; }
.check-out.yes { color: var(--ok); }
.check-out a { white-space: nowrap; }
.suburbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.suburbs li a, .suburbs li span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .92rem; text-decoration: none; }
.suburbs li a:hover { border-color: var(--sea); color: var(--sea); }

/* ---- Forms (shared) ---- */
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; border-radius: 12px; border: 2px solid #cfc6b4; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
textarea { min-height: 6rem; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgb(29 111 140 / .18); }
.field .err { display: none; color: #b3261e; font-size: .9rem; font-weight: 600; }
.field.bad .err { display: block; }
.field.bad input, .field.bad textarea { border-color: #b3261e; }
.form-note { font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Inner page header ---- */
.page-head { padding: clamp(1.8rem, 6vw, 3.6rem) 0 clamp(1.8rem, 5vw, 3rem); background: radial-gradient(60rem 30rem at 100% 0, #ffe7a8 0, rgb(255 231 168 / 0) 60%), var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 6.4vw, 3.2rem); max-width: 22ch; }
.crumbs { margin: 0 0 .6rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }
.crumbs a { color: var(--muted); }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.ticks) { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.split { display: grid; gap: 2rem; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem; align-items: start; } .aside-sticky { position: sticky; top: 5.5rem; } }
.callout { padding: 1.4rem; border-radius: var(--r); background: var(--navy); color: #d4e3e8; }
.callout h2, .callout h3 { color: #fff; font-size: 1.35rem; margin: 0 0 .5rem; }
.callout .btn { width: 100%; margin-top: .4rem; }
.callout a:not(.btn) { color: var(--sun); }
.callout .hours { margin: .9rem 0 0; font-size: .92rem; }
.faq { display: grid; gap: .6rem; max-width: 46rem; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.1rem; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font: 600 1.4rem/1 var(--f-head); color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.1rem 1rem; }
.faq details > div p:last-child { margin: 0; }
.tick-card { display: grid; gap: .4rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.badge-row li { padding: .35rem .8rem; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 600; font-size: .92rem; }

.steps { margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: st; display: grid; gap: .8rem; }
.steps li { position: relative; padding-left: 2.6rem; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); color: var(--ink); font-weight: 700; font-size: .9rem; }
.open:empty { display: none; }
.warn { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fdecea; border-left: 6px solid #b3261e; color: #5c1410; }
.warn strong { color: #8c1d18; }

.contact-cards { margin: 1.6rem 0 1rem; }
.big-line { font: 700 1.45rem/1.25 var(--f-head); margin: .2rem 0 .3rem; color: var(--ink); }
.big-line.small { font: 700 1rem/1.35 var(--f-body); overflow-wrap: anywhere; }
.contact-cards .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-content: start; }
.contact-cards .card .ico { grid-row: span 3; margin: 0; }
.contact-cards .card h2 { margin: 0; font: 700 .78rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-cards .card p { margin: 0; }
@media (max-width: 699px) { .contact-cards { gap: .6rem; } .contact-cards .card { padding: .9rem 1rem; } }

/* ---- Final call band ---- */
.final { background: var(--sun); border-top: 2px solid var(--ink); }
.final-in { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 900px) { .final-in { grid-template-columns: 1.2fr .8fr; } }
.final h2 { margin: 0 0 .4rem; }
.final p { margin: 0; color: #3a2f12; }
.final .btn-call { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 3px 0 rgb(0 0 0 / .35); }
.final .btn-call:hover { color: #fff; background: #0b1a21; }
.final .btn-line { border-color: var(--ink); }
.final .cta-row { justify-content: flex-start; }
@media (min-width: 900px) { .final .cta-row { justify-content: flex-end; } }

/* ---- Footer ---- */
.foot { background: var(--navy-2); color: #b9ccd3; padding: 3rem 0 2rem; font-size: .95rem; }
.foot a { color: #fff; }
.foot a:hover { color: var(--sun); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h2 { font-size: 1rem; font-family: var(--f-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); margin: 0 0 .7rem; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.foot .brand { color: #fff; margin-bottom: .8rem; }
.foot .note, .dark .note, .callout .note { color: #b9ccd3; }
.foot .note { margin-top: .9rem; }
.foot .brand-sub { color: #9fb4bd; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; }
.foot-base p { margin: 0; }
.credit a { color: #9fb4bd; text-decoration: none; }
.credit a:hover { color: #fff; text-decoration: underline; }

/* ---- The bottom call bar on phones (sticky call bar 2): slims while reading down ---- */
.cb-foot { position: fixed; inset: auto 0 0 0; z-index: 60; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(9 46 65 / .97); box-shadow: 0 -6px 18px rgb(0 0 0 / .18); transition: padding .22s ease, background-color .22s ease; }
@media (max-width: 760px) { .cb-foot { display: flex; } body { padding-bottom: 76px; } }
.cb-foot a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 0 .9rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--f-body); white-space: nowrap; text-decoration: none; transition: min-height .22s ease, flex-grow .22s ease, opacity .18s ease, padding .22s ease, border-width .22s ease; }
.cb-foot svg { width: 1.15rem; height: 1.15rem; flex: none; }
.cb-foot .cb-call { background: var(--sun); color: var(--ink); }
.cb-foot .cb-second { background: transparent; border-color: rgb(255 255 255 / .6); color: #fff; overflow: hidden; }
.cb-foot :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@container cb-page scroll-state((scrolled: block-end) and (scrollable: block-end)) {
  .cb-foot { padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: rgb(9 46 65 / .86); gap: 0; }
  .cb-foot a { min-height: 42px; }
  .cb-foot .cb-second { flex-grow: 0; flex-basis: 0; padding: 0; border-width: 0; opacity: 0; visibility: hidden; transition: min-height .22s ease, flex-grow .22s ease, opacity .18s ease, padding .22s ease, border-width .22s ease, visibility 0s .22s; }
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- 404 ---- */
.lost { padding: clamp(3rem, 10vw, 6rem) 0; text-align: center; }
.lost svg { width: min(100%, 22rem); height: auto; margin: 0 auto 1.4rem; display: block; }
.lost .cta-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a.card, .cb-head-in, .brand-mark, .brand-sub, .cb-foot, .cb-foot a { transition: none; }
}
@media print { .strip, .cb-foot, .pl, .menu, .menu-btn { display: none !important; } .cb-head { position: static; } body { padding: 0; } .dark { background: #fff; color: #000; } }
