/* The Plumber Guy, Sicamous BC. hand written, no build step */
@font-face {
    font-family: "Sofia Sans Condensed";
    src: url("fonts/sofia-sans-condensed.woff2") format("woff2");
    font-weight: 1 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Sofia Sans";
    src: url("fonts/sofia-sans.woff2") format("woff2");
    font-weight: 1 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --abs: #15181b;        /* ABS drain pipe black: text, the shut-off band */
    --abs-2: #23282c;
    --wall: #f4f5f3;       /* mechanical room wall: page */
    --white: #ffffff;
    --sign: #007cbc;       /* his logo blue, the cold line */
    --sign-text: #00679e;
    --galv: #8a8e8f;       /* wrench grey from the logo */
    --galv-text: #555b5e;
    --rule: #d5d8d6;
    --brass: #b8923f;      /* valve body, fittings */
    --hot: #c62a1f;        /* red line: the call button */
    --hot-dark: #a52018;
    --gas: #f0bd1c;        /* gas line yellow, gas things only */
    --display: "Sofia Sans Condensed", "Arial Narrow", Arial, sans-serif;
    --body: "Sofia Sans", "Segoe UI", Arial, sans-serif;
    --max-width: 1180px;
    --radius: 4px;
    --radius-lg: 8px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0;
    background: var(--wall);
    color: var(--abs);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--sign-text); text-underline-offset: 3px; }
a:hover { color: var(--abs); }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
.shutoff :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--gas); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: 0.94; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.6rem; font-weight: 700; }

.wrap { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--abs); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 10px 22px;
    border: 0; border-radius: var(--radius);
    font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s ease;
}
.button-hot { background: var(--hot); color: #fff; }
.button-hot:hover { background: var(--hot-dark); color: #fff; }
.button-ink { background: var(--abs); color: #fff; }
.button-ink:hover { background: #000; color: #fff; }
.text-link { color: var(--abs); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sign); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.text-link:hover { color: var(--sign-text); }
.text-link-light { color: #e9ebe8; text-decoration-color: var(--galv); }
.text-link-light:hover { color: #fff; }

/* top bar: the facts people came for */
.topbar { background: var(--abs); color: #dfe2df; font-size: 0.9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-fact { color: #b9bdbb; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--wall); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: auto; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--abs); font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--sign); }
.header-call { min-height: 46px; padding: 8px 18px; font-size: 1.2rem; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); cursor: pointer; font-family: inherit; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--abs); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 80px) var(--section); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { margin-top: 26px; max-width: 34em; font-size: 1.2rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.hero-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 34em; color: var(--galv-text); font-size: 0.98rem; }
.hero-photos { position: relative; padding-bottom: 12%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-a { width: 80%; margin-left: auto; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; }
.hero-photo-b { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 5; border: 8px solid var(--wall); border-radius: var(--radius-lg); overflow: hidden; background: var(--wall); }
.hero-photo-b img { object-position: 50% 30%; }

/* the shut-off band */
.shutoff { background: var(--abs); color: #e9ebe8; padding-block: var(--section); }
.shutoff-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(32px, 5vw, 72px); align-items: end; }
.shutoff-head p { color: #b9bdbb; max-width: 36em; }
.shutoff-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.plates { display: grid; gap: 10px; }
.plate {
    position: relative; display: flex; align-items: center; width: 100%; min-height: 58px; padding: 10px 34px;
    border: 1px solid #3a4145; border-radius: 3px; background: var(--abs-2); color: #d3d6d4;
    font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; line-height: 1.1;
    cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* the two screws that hold an engraved plate to the board */
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #596165; }
.plate::before { left: 12px; }
.plate::after { right: 12px; }
.plate:hover { border-color: var(--galv); color: #fff; }
.plate.is-on { background: var(--wall); border-color: var(--wall); color: var(--abs); }
.plate.is-on::before, .plate.is-on::after { background: var(--brass); }
.plate-gas { border-left: 6px solid var(--gas); padding-left: 29px; }
.plate-gas.is-on { background: var(--gas); border-color: var(--gas); }
.plate-gas.is-on::before, .plate-gas.is-on::after { background: var(--abs); }

.valve-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.valve { width: 100%; overflow: hidden; }
.pipe-wall { fill: #596165; }
.fluid { fill: var(--sign); transition: fill 0.25s ease; }
.brass { fill: var(--brass); }
.brass-body { fill: #a37f31; }
.lever-arm { fill: #c9cdcb; }
.lever-grip { fill: var(--sign); transition: fill 0.25s ease; }
.lever-nut { fill: #8a8e8f; }
.lever-nut-in { fill: #3a4145; }
.valve-panel[data-line="hot"] .fluid, .valve-panel[data-line="hot"] .lever-grip { fill: var(--hot); }
.valve-panel[data-line="gas"] .fluid, .valve-panel[data-line="gas"] .lever-grip { fill: var(--gas); }
.valve-panel[data-line="drain"] .fluid { fill: #0b0c0d; }
.valve-panel[data-line="drain"] .lever-grip { fill: #8a8e8f; }
/* no js or no gsap: the closed state still shows, just without the swing */
.valve-panel:not(.is-driven)[data-state="close"] .lever { transform: rotate(-90deg); transform-origin: 320px 210px; }
.valve-panel:not(.is-driven)[data-state="close"] .fluid-down { opacity: 0.12; }
.valve-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: #b9bdbb; font-size: 0.92rem; line-height: 1.3; }
.valve-ends span:last-child { text-align: right; }

.valve-plate { display: inline-block; padding: 5px 12px; border-radius: 2px; background: var(--wall); color: var(--abs); font-family: var(--display); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.valve-plate-dark { background: var(--abs); color: #fff; margin-right: 6px; }
.valve-panel[data-line="gas"] .valve-plate { background: var(--gas); }
.steps h3 { margin-top: 16px; font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 800; }
.steps ol { margin-top: 18px; counter-reset: step; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 38px; color: #dfe2df; line-height: 1.5; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1.25; color: var(--galv); }
.steps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

/* sections on the wall */
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(32px, 5vw, 72px); align-items: end; }
.section-head p { color: var(--galv-text); max-width: 36em; }
.services, .work, .questions, .contact { padding-block: var(--section); }
.work { padding-top: 0; }

/* three trades, each under its line colour */
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); margin-top: clamp(36px, 5vw, 56px); }
.trade { border-top: 8px solid var(--sign); padding-top: 20px; }
.trade-heat { border-top-color: var(--hot); }
.trade-gas { border-top-color: var(--gas); }
.trade ul { margin-top: 14px; }
.trade li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--galv-text); line-height: 1.45; }
.trade li strong { color: var(--abs); font-weight: 700; }
.trades-key { margin-top: 22px; color: var(--galv-text); font-size: 0.92rem; }

/* job photos */
.work-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(32px, 4.5vw, 52px); }
.work-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); background: var(--rule); }
.work-row figure:nth-child(3) img { object-position: 50% 35%; }
.work-row figcaption { margin-top: 10px; color: var(--galv-text); font-size: 0.92rem; line-height: 1.4; }

/* area */
.area { background: var(--white); border-block: 1px solid var(--rule); padding-block: var(--section); }
.area-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.area-copy p { margin-top: 20px; max-width: 32em; }
.area-copy .area-quote { margin-top: 26px; padding-left: 18px; border-left: 8px solid var(--sign); font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.15; }
.area-list { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.tee { width: 100%; }
.tee-pipe { fill: #c3c7c5; }
.tee-fit { fill: var(--brass); }
.tee-town { font-family: var(--display); font-size: 34px; font-weight: 700; fill: var(--abs); }
.tee-home { fill: var(--sign-text); font-weight: 800; }
.tee-hwy { font-family: var(--body); font-size: 21px; fill: var(--galv-text); }

/* faq */
.questions-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.questions .section-head { display: block; }
.faq { border-top: 2px solid var(--abs); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { position: relative; display: block; padding: 20px 48px 20px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: var(--abs); transition: transform 0.25s ease, background-color 0.2s ease; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item.is-open summary::after, .faq-item[open]:not(.is-open) summary::after { transform: rotate(0deg); }
.faq-item.is-open summary { color: var(--sign-text); }
.faq-item.is-open summary::before, .faq-item.is-open summary::after { background: var(--sign); }
.faq-item summary:hover { color: var(--sign-text); }
.faq-answer { overflow: hidden; max-width: 40em; padding-bottom: 24px; color: var(--galv-text); }

/* contact */
.contact { border-top: 1px solid var(--rule); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy > p { margin-top: 18px; max-width: 30em; }
.contact-copy .contact-phone { margin-top: 22px; font-family: var(--display); font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.01em; }
.contact-phone a { color: var(--abs); text-decoration: none; }
.contact-phone a:hover { color: var(--hot); }
.contact-facts { margin-top: 34px; border-top: 2px solid var(--abs); max-width: 32em; }
.contact-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contact-facts dt { color: var(--galv-text); }
.contact-facts dd { font-weight: 600; }
.job-form { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.job-form h3 { font-size: 1.8rem; font-weight: 800; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.98rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--galv); border-radius: var(--radius); background: var(--wall); color: var(--abs); font: inherit; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--sign); }
.job-form .button { margin-top: 22px; width: 100%; }
.form-note { margin-top: 14px; color: var(--galv-text); font-size: 0.9rem; line-height: 1.45; }
.form-error { margin-top: 16px; color: var(--hot-dark); font-weight: 600; }
.form-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); line-height: 1.7; }
[hidden] { display: none !important; }

/* footer */
.site-footer { background: var(--abs); color: #b9bdbb; padding-block: 52px 44px; font-size: 0.98rem; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr 0.9fr; gap: 28px clamp(24px, 4vw, 48px); }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.footer-name { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.footer-motto { margin-top: 8px; }
.footer-legal p + p { margin-top: 8px; }

/* privacy + 404 */
.page-simple .header-inner { justify-content: space-between; min-height: 72px; }
.page-simple main { padding-block: clamp(40px, 7vw, 88px); }
.page-simple h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.policy h2 { margin-top: 38px; font-size: 1.7rem; }
.policy p, .page-simple main p { margin-top: 14px; max-width: 44em; }

@media (max-width: 1020px) {
    .topbar-fact { display: none; }
    .site-nav { gap: 18px; }
    .site-nav a { font-size: 0.92rem; }
    .shutoff-grid { grid-template-columns: 1fr; }
    .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .header-inner { min-height: 72px; gap: 12px; }
    .brand img { height: 56px; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; background: var(--wall); border-bottom: 1px solid var(--rule); }
    .nav-open .site-nav { display: flex; }
    .site-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
    .hero-inner, .shutoff-head, .section-head, .area-inner, .questions-inner, .contact-inner, .valve-panel { grid-template-columns: 1fr; }
    .hero-photos { max-width: 520px; }
    .trades { grid-template-columns: 1fr; }
    .work-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .header-call { display: none; }
    .lede { font-size: 1.1rem; }
    .hero-actions .button, .steps-actions .button { width: 100%; }
    .plate { min-height: 54px; padding: 8px 12px 8px 26px; font-size: 1.05rem; letter-spacing: 0.03em; }
    .plate::after { display: none; }
    .plate::before { left: 9px; }
    .plate-gas { padding-left: 21px; }
    .contact-facts div { grid-template-columns: 104px minmax(0, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .tee-town { font-size: 40px; }
    .tee-hwy { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
