/*
 * Driscoll Plumbing, Sammamish WA.
 *
 * The client admires anchoragehockey.com. What is worth taking from it is the
 * confidence: a full-bleed photo, heavy condensed uppercase headings, and
 * chunky stacked buttons with an arrow wedge. What is worth leaving is what
 * makes it tired — a fifteen-slide carousel, sponsor rails, three stacked
 * navigation bars and 12px gray body text.
 *
 * The palette is the one deliberate departure. The hockey site is navy and
 * gold; his van is green. Customers already recognize the green, so navy
 * becomes the ground, HIS green does the work, and gold is held back for one
 * job only — the emergency call. Going full navy-and-gold would leave his
 * website and his van looking like two different companies.
 *
 * Oswald is self-hosted (21KB, latin only, variable weight). One same-origin
 * request, no Google Fonts connection, no third party watching his visitors.
 */

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  font-weight: 200 700;          /* variable — 500 and 700 are what's used */
  font-style: normal;
  font-display: swap;            /* text is readable before the font lands */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --navy:    #1B365D;   /* taken from the site he likes */
  --navy-d:  #12243D;
  --navy-l:  #2A4A78;
  --gold:    #EAAA00;   /* also his — reserved for emergency only */
  /* Measured off the van's vinyl, after white-balancing out a heavy overcast
     blue cast (the "white" bodywork was photographing as #8CA4C1). It is a
     jade-emerald, not the grass green it looks like at a glance. Sampled from
     a 600px JPEG, so treat it as close rather than exact — if John still has
     the original logo artwork, that file is the authority. */
  --green:   #029F6F;
  --green-d: #007F58;

  --ink:     #16202C;
  --body:    #454F5B;
  --mute:    #6E7885;
  --line:    #DEE3E9;
  --paper:   #FFFFFF;
  --paper-2: #F3F6F9;

  --shell: min(1180px, 100% - 2.5rem);
  --head: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 4px;             /* barely rounded — this trade reads square as solid */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--paper); color: var(--body);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
.wrap { width: var(--shell); margin-inline: auto; }

h1, h2, h3, .h-alt {
  font-family: var(--head); font-weight: 700; color: var(--navy);
  text-transform: uppercase; line-height: 1.05; letter-spacing: .005em;
}
a { color: var(--green-d); text-underline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--gold); color: var(--navy-d); padding: .7rem 1.1rem; font-weight: 700; }

/* ── the wedge ───────────────────────────────────────────────────────────
   The one motif lifted wholesale from the hockey site: a solid block with a
   contrasting triangle notched into its right edge. Repeated on every button
   so the page feels designed rather than assembled. */
.wedge { position: relative; padding-right: 3.1rem !important; }
.wedge::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 2.3rem;
  background: var(--gold);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%);
}
.wedge::before {
  content: ''; position: absolute; right: .75rem; top: 50%; z-index: 1;
  width: 0; height: 0; margin-top: -5px;
  border: 5px solid transparent; border-left-color: var(--navy-d);
}

/* ── header ──────────────────────────────────────────────────────────────── */

.head { background: var(--navy); position: sticky; top: 0; z-index: 60; }
.head-in { display: flex; align-items: center; gap: 1.6rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand svg { width: 30px; height: 34px; flex: none; }
.brand b {
  font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: #fff;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1;
}
.brand span { display: block; font-family: var(--sans); font-size: .63rem; font-weight: 600;
              letter-spacing: .13em; text-transform: uppercase; color: #9FB3CE; margin-top: .18rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .03em;
         color: #D4DEEB; text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--gold); }
.head-call {
  display: flex; align-items: center; gap: .55rem; background: var(--green); color: #fff;
  text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; padding: .6rem 1.1rem; border-radius: var(--r); white-space: nowrap;
}
.head-call:hover { background: var(--green-d); }
.head-call svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } .head-call { font-size: 1rem; padding: .5rem .8rem; } }

/* ── hero ────────────────────────────────────────────────────────────────── */

/* Designed to stand up with no photograph at all — the navy gradient and the
   button stack carry it — so a real photo of his van can drop in later
   without anything else being touched. */
.hero { position: relative; background: var(--navy-d); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,36,61,.94) 0%, rgba(18,36,61,.82) 42%, rgba(18,36,61,.34) 100%);
}
/* Fallback texture when there is no photo yet: diagonal navy hatching. */
.hero-bg.empty { background:
  repeating-linear-gradient(135deg, #162C4A 0 22px, #12243D 22px 44px); }
.hero-in { position: relative; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.6rem, 6vw, 4.4rem);
           display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.6rem; align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 2rem; } }

.badge {
  display: inline-block; background: var(--gold); color: var(--navy-d);
  font-family: var(--head); font-weight: 700; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .1em; padding: .35rem .8rem; margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #C3D0E0; font-size: clamp(1.05rem, 2.2vw, 1.24rem); max-width: 46ch; margin-top: 1.2rem; }
.hero .lic { margin-top: 1.4rem; font-size: .93rem; color: #8FA4C0; font-weight: 600; letter-spacing: .02em; }

/* the stacked action buttons, straight off the reference site */
.stack { display: grid; gap: .7rem; }
.stack a {
  display: flex; align-items: center; background: var(--navy-l); color: #fff;
  text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.12rem;
  text-transform: uppercase; letter-spacing: .02em; padding: 1rem 1.2rem;
  border-radius: var(--r); border-left: 4px solid var(--green); transition: background .15s, transform .15s;
}
.stack a:hover { background: #35598F; transform: translateX(3px); }
.stack a.urgent { background: var(--gold); color: var(--navy-d); border-left-color: #C08E00; }
.stack a.urgent:hover { background: #FFBB14; }
.stack a.urgent::before { border-left-color: #fff; }
.stack a.urgent::after { background: var(--navy-d); }

/* ── trust strip ─────────────────────────────────────────────────────────── */

.trust { background: var(--green); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust div { padding: 1.15rem 1rem; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.22); }
.trust div:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.trust span { font-size: .84rem; opacity: .9; }
@media (max-width: 760px) {
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(2) { border-right: 0; }
  .trust div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
}

/* ── sections ────────────────────────────────────────────────────────────── */

.sec { padding: clamp(3.2rem, 7vw, 5.2rem) 0; }
.sec-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-navy { background: var(--navy); color: #C3D0E0; }
.sec-navy h2, .sec-navy h3 { color: #fff; }
section[id] { scroll-margin-top: 88px; }

.h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.rule { width: 62px; height: 5px; background: var(--gold); margin: .9rem 0 1.1rem; }
.sub { color: var(--mute); max-width: 60ch; font-size: 1.05rem; }
.sec-navy .sub { color: #9FB3CE; }
.lead-in { margin-bottom: 2.6rem; }

/* ── services ────────────────────────────────────────────────────────────── */

.svcs { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy);
  padding: 1.7rem 1.5rem; transition: border-top-color .18s, box-shadow .18s, transform .18s;
}
.svc:hover { border-top-color: var(--green); box-shadow: 0 14px 32px rgba(22,32,44,.10); transform: translateY(-3px); }
.svc.hot { border-top-color: var(--gold); }
.svc .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); margin-bottom: 1rem; }
.svc.hot .ic { background: var(--gold); }
.svc .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc.hot .ic svg { stroke: var(--navy-d); }
.svc h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.svc p { font-size: .97rem; }
.svc ul { list-style: none; margin-top: .85rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--mute); }
.svc li { padding-left: 1.05rem; position: relative; }
.svc li::before { content: ''; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; background: var(--green); }

/* ── pricing promise ─────────────────────────────────────────────────────── */

.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
.promise ol { list-style: none; counter-reset: p; display: grid; gap: 1.1rem; }
.promise li { counter-increment: p; display: flex; gap: 1rem; }
.promise li::before {
  content: counter(p); flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-d); font-family: var(--head); font-weight: 700; font-size: 1.2rem;
}
.promise li b { display: block; font-family: var(--head); font-weight: 700; text-transform: uppercase;
                color: #fff; font-size: 1.05rem; letter-spacing: .02em; }
.promise li p { font-size: .97rem; margin-top: .15rem; }

/* ── about ───────────────────────────────────────────────────────────────── */

.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.8rem; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p + p { margin-top: 1rem; }
.quote {
  font-family: var(--head); font-weight: 500; text-transform: none;
  font-size: clamp(1.3rem, 3vw, 1.75rem); color: var(--navy); line-height: 1.24;
  border-left: 5px solid var(--gold); padding-left: 1.3rem; margin-bottom: 1.5rem;
}
.sig { margin-top: 1.3rem; font-weight: 700; color: var(--ink); }
.sig span { display: block; font-weight: 400; font-size: .93rem; color: var(--mute); }
.photo-slot {
  background: repeating-linear-gradient(135deg, #E8EDF3 0 18px, #F3F6F9 18px 36px);
  border: 1px dashed #C3CDD9; aspect-ratio: 4 / 3; display: grid; place-items: center;
  text-align: center; padding: 1.5rem; color: var(--mute); font-size: .9rem;
}

/* ── service area ────────────────────────────────────────────────────────── */

.areas { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.areas span {
  font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: .95rem;
  letter-spacing: .03em; background: var(--paper); border: 1px solid var(--line);
  color: var(--navy); padding: .42rem 1rem;
}

/* ── the call to action ──────────────────────────────────────────────────
   There is no form on this site — calling and texting are the only two routes
   offered, and both get answered. That makes this block the single most
   important thing on the page. */

.call-row { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin: 2rem 0 1.2rem; }
.call-big { font-size: clamp(1.25rem, 3.4vw, 1.7rem) !important; padding: 1.15rem 1.9rem !important; }
@media (max-width: 560px) { .call-row a { width: 100%; justify-content: center; } }

.nap-block {
  font-style: normal; margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid #2A3F63; line-height: 1.85; color: #9FB3CE; font-size: .97rem;
}
.nap-block strong {
  display: block; color: #fff; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; margin-bottom: .2rem;
}
.nap-block a { color: #fff; font-weight: 700; text-decoration: none; }
.nap-block a:hover { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 1.12rem; text-transform: uppercase;
  letter-spacing: .03em; padding: .95rem 1.5rem; border-radius: var(--r);
  background: var(--green); color: #fff; transition: background .15s;
}
.btn:hover { background: var(--green-d); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── footer ──────────────────────────────────────────────────────────────── */

.foot { background: var(--navy-d); color: #8FA4C0; padding: 3rem 0 1.5rem; font-size: .94rem; }
.foot-in { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 780px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }
.foot h4 { font-family: var(--head); color: #fff; font-size: .92rem; letter-spacing: .1em; margin-bottom: .9rem; }
.foot ul { list-style: none; display: grid; gap: .5rem; }
.foot a { color: #B7C6D9; text-decoration: none; }
.foot a:hover { color: var(--gold); }
/* This site's whole job is getting a thumb onto a phone number, so on a phone
   the footer links get real height instead of the 17px they'd otherwise be. */
@media (max-width: 780px) {
  .foot ul { gap: 0; }
  .foot ul a, .foot address a { display: inline-block; padding: .55rem 0; }
}
.foot address { font-style: normal; line-height: 1.7; }
.copy { width: var(--shell); margin: 2.3rem auto 0; padding-top: 1.2rem; border-top: 1px solid #23385A;
        font-size: .84rem; color: #6B7F9C; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
