/* Self-hosted fonts (was Google Fonts) — latin + latin-ext, variable woff2. */
@font-face{font-family:'Onest';font-style:normal;font-weight:400 600;font-display:swap;src:url('/assets/fonts/onest-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 600;font-display:swap;src:url('/assets/fonts/onest-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/schibsted-grotesk-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/schibsted-grotesk-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* ============================================================================
   Waterline Garage Doors — Warners Bay
   Evening water under an off-white sky, one copper glint.
   The page reads top-lit: paper sky above, pewter water low, and every
   boundary between them is a single dead-level horizontal. Weight sits low.
   ========================================================================= */

/* ---- tokens (brand-kit/system.md, pasted as-is) ------------------------- */
:root {
  /* text */
  --ink:          oklch(26% 0.015 235);   /* #1d252a */
  --ink-soft:     oklch(46% 0.018 233);   /* #4e5a61 */

  /* grounds */
  --paper:        oklch(96.8% 0.004 225); /* #f2f5f6 */
  --paper-still:  oklch(93% 0.009 228);   /* #e2e9ed */
  --pewter:       oklch(50% 0.022 232);   /* #57666e */
  --pewter-deep:  oklch(34% 0.022 233);   /* #2d3a42 */
  --pewter-light: oklch(73% 0.016 230);   /* #9eaab0 */

  /* the glint */
  --copper:       oklch(62% 0.115 52);    /* #bc7140 — strike only, never a field */
  --copper-deep:  oklch(47% 0.095 47);    /* #854828 — text-safe copper */

  /* furniture + state */
  --horizon:      oklch(87.5% 0.008 230); /* #d1d7da */
  --success:      oklch(48% 0.05 150);    /* #49664f */

  --font-display: "Schibsted Grotesk", "Trebuchet MS", sans-serif;
  --font-body: "Onest", "Segoe UI", "Helvetica Neue", sans-serif;

  --shore: 1100px;          /* content measure */
  --gutter: clamp(20px, 4vw, 44px);
  --r: 6px;                 /* corner radius: crisp, not pill */
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; } /* kernel rule: never let a display beat the hidden attr */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 500; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--copper-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
small { font-size: 0.87rem; }
::placeholder { color: color-mix(in oklab, var(--ink-soft) 30%, transparent); }
:focus-visible { outline: 2px solid var(--copper-deep); outline-offset: 2px; }
.num, .minutes { font-variant-numeric: tabular-nums; }

.shore { max-width: var(--shore); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 70ch; }

/* the level line — the whole motif country. Always dead horizontal. */
.horizon-rule { border: 0; height: 1px; background: var(--horizon); margin: 0; }
hr {
  border: 0; height: 16px; margin: 2.6rem auto;
  background: url(/assets/brand/micro/hr.svg) center / 120px auto no-repeat;
}
.on-dark hr { filter: invert(1) brightness(1.6); }

ul.wl-list { list-style: none; padding: 0; margin: 0 0 1em; }
ul.wl-list li {
  padding-left: 26px; position: relative; margin-bottom: 0.55em; max-width: 66ch;
}
ul.wl-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 12px;
  background: url(/assets/brand/micro/bullet.svg) left center / contain no-repeat;
}

blockquote {
  margin: 2rem 0; padding: 0.2rem 0 0.2rem 56px; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.45;
  max-width: 56ch;
}
blockquote::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 34px; height: 30px;
  background: url(/assets/brand/micro/quote.svg) left top / contain no-repeat;
}
.on-dark blockquote::before { background-image: url(/assets/brand/micro/quote-reversed.svg); }

/* eyebrow label above headings */
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 0.9em; display: block;
}
.on-dark .eyebrow { color: var(--pewter-light); }

/* ---- buttons: both CTAs come from the pewter family --------------------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: var(--r); border: 1.5px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.btn-repair { background: var(--pewter-deep); color: var(--paper); }
.btn-repair:hover { background: var(--ink); }
.btn-quote { background: var(--pewter); color: var(--paper); }
.btn-quote:hover { background: var(--pewter-deep); }
.btn-line { background: transparent; color: var(--pewter-deep); border-color: var(--pewter-deep); }
.btn-line:hover { background: var(--paper-still); }
/* on dark grounds, the outline variant goes paper */
.on-dark .btn-line { color: var(--paper); border-color: var(--paper); }
.on-dark .btn-line:hover { background: rgb(255 255 255 / 0.08); }
/* filled CTAs re-assert their own text colour inside dark sections (craft log rule) */
.on-dark .btn-repair { color: var(--paper); background: var(--pewter-deep); border-color: rgb(255 255 255 / 0.22); }
.on-dark .btn-repair:hover { background: var(--ink); }
.on-dark .btn-quote { color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- level strip + masthead --------------------------------------------- */
.level-strip {
  background: var(--pewter-deep); color: var(--paper);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
}
.level-strip .shore {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 7px; align-items: baseline;
}
.level-strip .strip-motto { color: var(--pewter-light); }
@media (max-width: 560px) { .level-strip .strip-motto { display: none; } }

.masthead { background: var(--paper); border-bottom: 1px solid var(--horizon); }
.masthead .shore {
  display: flex; align-items: center; gap: 28px; padding-block: 16px;
}
.masthead .brand { margin-right: auto; display: block; line-height: 0; }
.masthead .brand img { height: 42px; width: auto; }
.masthead nav { display: flex; align-items: center; gap: 24px; }
.masthead nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none;
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.masthead nav a:hover { border-bottom-color: var(--pewter-light); }
.masthead nav a.btn { border-bottom: 0; padding: 12px 20px; color: var(--paper); }
/* active page: the level line sits under you */
body[data-page="services"] nav a[href="/services/"],
body[data-page="areas"]    nav a[href="/areas/"],
body[data-page="guides"]   nav a[href="/guides/"],
body[data-page="read"]     nav a[href="/waterline-read/"],
body[data-page="about"]    nav a[href="/about/"] { border-bottom-color: var(--copper); }

/* mobile nav */
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .masthead nav { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 42px; padding: 10px; background: none;
    border: 1.5px solid var(--horizon); border-radius: var(--r); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }
  .masthead .brand img { height: 36px; }
}
.nav-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--pewter-deep);
  color: var(--paper); display: none; flex-direction: column; padding: 20px var(--gutter) 40px;
  overflow-y: auto;
}
.nav-panel.open { display: flex; }
.nav-panel .panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8vh; }
.nav-panel .panel-top img { height: 38px; width: auto; }
.nav-close {
  background: none; border: 1.5px solid rgb(255 255 255 / 0.35); color: var(--paper);
  border-radius: var(--r); font-size: 1rem; font-weight: 600; padding: 10px 16px; cursor: pointer;
}
.nav-panel a {
  color: var(--paper); text-decoration: none; font-family: var(--font-display);
  font-weight: 500; font-size: 1.7rem; padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}
.nav-panel a:last-of-type { border-bottom: 0; }
.nav-panel .panel-cta { margin-top: 6vh; display: flex; flex-direction: column; gap: 12px; }
.nav-panel .panel-cta a {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  text-align: center; border-radius: var(--r); border-bottom: 0; padding: 16px;
}
.nav-panel .panel-cta .p-repair { background: var(--ink); }
.nav-panel .panel-cta .p-quote { border: 1.5px solid rgb(255 255 255 / 0.4); }

/* ---- hero: sky over water, the photo standing at the waterline ---------- */
.hero-sky {
  background: var(--paper) url(/assets/brand/still-water-cream.webp) center / 1024px auto repeat;
}
.hero-sky .shore {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 64px); align-items: end; padding-top: clamp(40px, 7vh, 84px);
}
.hero-copy { padding-bottom: clamp(36px, 6vh, 72px); }
.hero-copy .lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 46ch; }
.hero-kicker { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; margin-bottom: 1.4em; }

.hero-fig { margin: 0; position: relative; line-height: 0; }
.hero-fig > img {
  width: 100%; border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 18px 40px -18px rgb(29 37 42 / 0.45);
}
/* the reflection: the photo mirrored into the water band, exactly the mark's geometry */
.hero-fig .refl {
  position: absolute; top: 100%; left: 0; right: 0; height: 92px;
  overflow: hidden; pointer-events: none; z-index: 2; margin-top: 3px;
}
.hero-fig .refl img {
  width: 100%; transform: scaleY(-1); filter: blur(4px) saturate(0.4) brightness(0.72) contrast(0.92);
  opacity: 0.35; mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.85), transparent 78%);
          mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.85), transparent 78%);
}
/* the waterline itself: the one copper glint on this screen */
.hero-line { border: 0; height: 3px; margin: 0; background: var(--copper); }
.hero-water {
  background: var(--pewter) url(/assets/brand/evening-water-pewter.webp) center / 1440px auto repeat;
  color: var(--paper);
}
.hero-water .shore { padding-block: clamp(30px, 5vh, 52px); }
.hero-water .hero-actions { max-width: 56%; }
.hero-water .hero-actions .act-note { color: rgb(255 255 255 / 0.85); margin: 14px 0 0; font-size: 0.95rem; max-width: 52ch; }
@media (max-width: 880px) {
  .hero-sky .shore { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 8px; }
  .hero-fig { margin-top: 6px; }
  .hero-fig .refl { height: 64px; }
  .hero-water .hero-actions { max-width: none; }
  .hero-water .shore { padding-top: 84px; } /* clearance for the reflection hanging into the water */
}
@media (min-width: 881px) { .hero-water .shore { padding-right: calc(var(--gutter)); } }

/* ---- generic bands ------------------------------------------------------- */
.band { padding-block: clamp(48px, 8vh, 88px); }
.band-still { background: var(--paper-still); }
.band-water {
  background: var(--pewter) url(/assets/brand/evening-water-pewter.webp) center / 1440px auto repeat;
  color: var(--paper);
}
.band-water p { color: rgb(255 255 255 / 0.92); }
.band-water a:not(.btn), .band-deep a:not(.btn) { color: var(--paper); }

/* a pewter card: the brand field as a panel inside a light page */
.water-card {
  background: var(--pewter) url(/assets/brand/evening-water-pewter.webp) center / 1440px auto repeat;
  color: var(--paper); border-radius: var(--r); padding: 26px 30px;
}
.water-card a:not(.btn) { color: var(--paper); }
.water-card p, .water-card li { color: rgb(255 255 255 / 0.94); }
.water-card .next-steps .n { color: var(--paper); }
.band-deep { background: var(--pewter-deep); color: var(--paper); }
.band-head { margin-bottom: clamp(24px, 4vh, 44px); }
.band-head p { color: var(--ink-soft); }
.on-dark .band-head p, .band-water .band-head p { color: rgb(255 255 255 / 0.85); }

/* ---- the fork: two paths, one temperament -------------------------------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 28px); }
@media (max-width: 760px) { .fork { grid-template-columns: 1fr; } }
.path-card {
  background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r);
  padding: clamp(22px, 3.5vw, 34px); display: flex; flex-direction: column; gap: 6px;
  border-bottom-width: 4px;
}
.path-card.path-repair { border-bottom-color: var(--pewter-deep); }
.path-card.path-quote { border-bottom-color: var(--pewter); }
.path-card img.path-icon { width: 52px; height: 52px; margin-bottom: 12px; }
.path-card ul.wl-list { margin-bottom: 1.4em; }
.path-card .btn { align-self: flex-start; margin-top: auto; }
.path-card .path-sub { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- service rows (read sheet) ------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r);
  padding: 22px; text-decoration: none; color: var(--ink); display: block;
  transition: border-color 0.18s ease;
}
a.svc-card:hover { border-color: var(--pewter); }
.svc-card img { width: 44px; height: 44px; margin-bottom: 12px; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.svc-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* full service sections on /services/ */
.svc-section { padding-block: clamp(40px, 7vh, 72px); }
.svc-section + .svc-section { border-top: 1px solid var(--horizon); }
.svc-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 60px); align-items: start; }
@media (max-width: 820px) { .svc-split { grid-template-columns: 1fr; } }
.svc-split figure { margin: 0; }
.svc-split figure img { border-radius: var(--r); }
.svc-split figcaption { font-size: 0.85rem; color: var(--ink-soft); padding-top: 8px; line-height: 1.45; }
.on-dark .svc-split figcaption, .band-water .svc-split figcaption { color: rgb(255 255 255 / 0.75); }

/* ---- minutes board (the patch, on home) ---------------------------------- */
.minutes-board { columns: 2; column-gap: clamp(28px, 5vw, 64px); max-width: 860px; }
@media (max-width: 680px) { .minutes-board { columns: 1; } }
.minutes-row {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--horizon); break-inside: avoid;
}
.minutes-row .m-name { font-weight: 600; }
.minutes-row .m-name a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--copper); }
.minutes-row .m-name a:hover { color: var(--copper-deep); }
.minutes-row .m-tag { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.minutes-row .m-dots { flex: 1; border-bottom: 1px dotted var(--pewter-light); transform: translateY(-4px); }
.minutes-row .m-min { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }

/* ---- promise (we'll be level with you) ----------------------------------- */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
@media (max-width: 760px) { .promise-grid { grid-template-columns: 1fr; } }
.promise-grid h3 { font-size: 1.08rem; padding-top: 14px; border-top: 2px solid var(--copper); display: inline-block; }
.promise-grid p { font-size: 0.98rem; color: var(--ink-soft); }
.band-deep .promise-grid p, .band-deep p { color: rgb(255 255 255 / 0.85); }

/* ---- waterline read (the signature tool) --------------------------------- */
.wl-tool {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
@media (max-width: 860px) { .wl-tool { grid-template-columns: 1fr; } .wl-tool .wl-door-panel { order: -1; position: static; } }
.wl-q { margin-bottom: 26px; }
.wl-q > .q-label { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 10px; display: block; }
.wl-q .q-hint { font-size: 0.88rem; color: var(--ink-soft); margin: -6px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  display: inline-block; padding: 10px 16px; border: 1.5px solid var(--horizon);
  border-radius: var(--r); background: var(--paper); font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chips label:hover { border-color: var(--pewter); }
.chips input:checked + label { background: var(--pewter-deep); border-color: var(--pewter-deep); color: var(--paper); }
.chips input:focus-visible + label { outline: 2px solid var(--copper-deep); outline-offset: 2px; }

/* the door being read: waterline rises as questions are answered */
.wl-door-panel { position: sticky; top: 20px; }
.wl-door-figure {
  background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r);
  padding: 22px 22px 16px; text-align: center;
}
.wl-door-figure svg { width: 100%; max-width: 240px; height: auto; }
.wl-door-figure .door-caption { font-size: 0.85rem; color: var(--ink-soft); margin: 10px 0 0; }
.wl-verdict {
  background: var(--paper); border: 1px solid var(--horizon); border-left: 4px solid var(--copper);
  border-radius: var(--r); padding: 24px 26px; margin-top: 30px;
}
.wl-verdict .v-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.wl-verdict p { margin-bottom: 0.8em; }
.wl-verdict .v-safety { font-size: 0.93rem; color: var(--ink-soft); }
.wl-verdict .btn-row { margin-top: 18px; }

/* ---- patch profile (areas index viz) ------------------------------------- */
.patch-profile { background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r); padding: clamp(16px, 3vw, 30px); }
.patch-profile svg { width: 100%; height: auto; display: block; }
.patch-profile .pp-caption { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }
.patch-profile .pp-slide-hint { display: none; font-size: 0.8rem; color: var(--ink-soft); margin: 8px 0 0; }
@media (max-width: 700px) { .patch-profile .pp-slide-hint { display: block; } }

/* ---- area cards ----------------------------------------------------------- */
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); }
@media (max-width: 880px) { .area-cards { grid-template-columns: 1fr; } }
.area-card {
  background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: border-color 0.18s ease;
}
.area-card:hover { border-color: var(--pewter); }
.area-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.area-card .ac-body { padding: 20px 22px 24px; }
.area-card h3 { margin-bottom: 0.3em; }
.area-card .ac-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper-deep); }
.area-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0.5em 0 0; }

/* stat strip: real numbers, tabular */
.stat-strip { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 52px); padding: 18px 0; border-top: 1px solid var(--horizon); border-bottom: 1px solid var(--horizon); }
.stat-strip .stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; font-variant-numeric: normal; }
.stat-strip .stat span { font-size: 0.85rem; color: var(--ink-soft); }
.on-dark .stat-strip .stat span { color: rgb(255 255 255 / 0.78); }

/* ---- article / guide pages ------------------------------------------------ */
.article-head { padding-block: clamp(40px, 7vh, 72px) 0; }
.article-head .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
/* the page hook: H1 orients (what+where), the hook keeps its line right below, quieter and subordinate */
p.hook {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.25;
  color: var(--pewter); max-width: 46ch; margin: 0.15em 0 0.6em;
}
.on-dark p.hook { color: var(--pewter-light); }
.article-body { padding-block: clamp(30px, 5vh, 48px) clamp(48px, 8vh, 80px); }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--r); }
.article-body figcaption { font-size: 0.85rem; color: var(--ink-soft); padding-top: 8px; }
.gloss dt { font-weight: 600; font-family: var(--font-display); margin-top: 1.1em; }
.gloss dd { margin: 0.2em 0 0; color: var(--ink-soft); max-width: 64ch; }
.refs { font-size: 0.9rem; color: var(--ink-soft); }
.refs li { margin-bottom: 0.6em; }
.note-panel {
  background: var(--paper-still); border-radius: var(--r); border: 1px solid var(--horizon);
  padding: 22px 26px; margin: 2rem 0; max-width: 66ch;
}
.note-panel.safety { border-left: 4px solid var(--pewter-deep); }
.note-panel p:last-child { margin-bottom: 0; }
/* a light note panel keeps its ink text even inside a dark band */
.band-water .note-panel p, .band-deep .note-panel p { color: var(--ink); }

/* guide list on /guides/ */
.guide-list { display: grid; gap: 22px; max-width: 780px; }
.guide-item {
  background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r);
  padding: 26px 30px; text-decoration: none; color: var(--ink); display: block;
  transition: border-color 0.18s ease;
}
.guide-item:hover { border-color: var(--pewter); }
.guide-item .gi-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--copper-deep); }
.guide-item h3 { margin: 0.35em 0 0.3em; }
.guide-item p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* worked scenarios */
.scenario {
  border: 1px solid var(--horizon); border-radius: var(--r); padding: 24px 28px; margin: 1.6rem 0;
  background: var(--paper);
}
.scenario .sc-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.scenario h3 { margin: 0.4em 0 0.5em; }
.scenario p:last-child { margin-bottom: 0; }

/* ---- enquiry -------------------------------------------------------------- */
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .enquiry-grid { grid-template-columns: 1fr; } }
.lead-form { background: var(--paper); border: 1px solid var(--horizon); border-radius: var(--r); padding: clamp(22px, 4vw, 38px); }
.lead-form .f-row { margin-bottom: 18px; }
.lead-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.lead-form label .opt { font-weight: 400; color: var(--ink-soft); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"],
.lead-form select, .lead-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--horizon); border-radius: var(--r); padding: 12px 14px;
}
.lead-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--pewter); outline: none; }
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form input[type="file"] { font-size: 0.9rem; color: var(--ink-soft); }
.lead-form .f-help { font-size: 0.85rem; color: var(--ink-soft); margin-top: 5px; }
.lead-form button[type="submit"] { width: 100%; font-size: 1.05rem; padding: 16px; }
.lead-form button[aria-busy="true"] { opacity: 0.6; }
.form-result { border-radius: var(--r); padding: 20px 22px; margin-top: 16px; }
.form-result.ok { background: var(--paper-still); border: 1px solid var(--horizon); display: flex; gap: 16px; align-items: flex-start; }
.form-result.ok img { width: 64px; height: auto; flex: none; }
.form-result.ok p { color: var(--success); font-weight: 500; margin: 0; }
.form-result.err { background: var(--paper-still); border: 1px solid var(--copper-deep); color: var(--copper-deep); font-weight: 500; }
.next-steps li { margin-bottom: 1em; }
.next-steps .n { font-family: var(--font-display); font-weight: 600; color: var(--copper-deep); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* compact home form variant */
.lead-form.compact { max-width: 620px; }

/* ---- enquiry band (partial, above footer) --------------------------------- */
.enquiry-band-sky { background: var(--paper-still); }
.enquiry-band-sky .shore { padding-block: clamp(30px, 5vh, 48px) clamp(22px, 4vh, 36px); }
.enquiry-band-sky h2 { margin-bottom: 0.25em; }
.enquiry-band-sky p { color: var(--ink-soft); margin: 0; }
.enquiry-band-water {
  background: var(--pewter) url(/assets/brand/evening-water-pewter.webp) center / 1440px auto repeat;
  color: var(--paper); border-top: 2px solid var(--copper);
}
.enquiry-band-water .shore { padding-block: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.enquiry-band-water .eb-note { font-size: 0.92rem; color: rgb(255 255 255 / 0.85); max-width: 44ch; margin: 0; }

/* ---- footer ---------------------------------------------------------------- */
footer.site-foot {
  background: var(--pewter-deep); color: var(--paper); border-top: 3px solid var(--copper);
  position: relative;
}
footer.site-foot .shore { padding-block: clamp(40px, 7vh, 64px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { width: 170px; height: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 0.92rem; color: rgb(255 255 255 / 0.8); max-width: 34ch; }
.foot-h { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pewter-light); margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid ul li { margin-bottom: 9px; }
.foot-grid ul a { color: rgb(255 255 255 / 0.88); text-decoration: none; font-size: 0.95rem; }
.foot-grid ul a:hover { color: var(--paper); text-decoration: underline; }
.foot-grid ul .foot-plain { color: rgb(255 255 255 / 0.78); font-size: 0.95rem; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: 0.85rem; color: rgb(255 255 255 / 0.75); }
.foot-legal p { max-width: none; margin-bottom: 8px; color: rgb(255 255 255 / 0.75); }
.foot-legal a { color: rgb(255 255 255 / 0.85); }

/* ---- mobile sticky paths (the two CTAs, always in reach) ------------------- */
.sticky-paths {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--pewter-deep); border-top: 1px solid rgb(255 255 255 / 0.2);
  padding: 10px max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}
@media (max-width: 720px) {
  .sticky-paths { display: flex; }
  body { padding-bottom: 74px; }
  body[data-page="enquiry"] .sticky-paths { display: none; }
  body[data-page="enquiry"] { padding-bottom: 0; }
}
.sticky-paths a {
  flex: 1; text-align: center; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 13px 8px; border-radius: var(--r); color: var(--paper);
}
.sticky-paths .sp-repair { background: var(--ink); }
.sticky-paths .sp-quote { border: 1.5px solid rgb(255 255 255 / 0.45); }

/* ---- 404 / utility ---------------------------------------------------------- */
.util-page { text-align: center; padding-block: clamp(60px, 12vh, 140px); }
.util-page img { width: 180px; margin: 0 auto 28px; }
.util-page p { margin-inline: auto; color: var(--ink-soft); }

/* ---- reveal (JS-gated so no-JS never hides content) ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s ease; }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}

/* print: quiet chrome */
@media print {
  .level-strip, .masthead nav .btn, .sticky-paths, .nav-toggle, .enquiry-band-water { display: none !important; }
}

/* ============================================================================
   MOTION LAYER — added after the build (behaviour on interaction only).
   Nothing here changes how the page looks at rest. The register: a door that is
   hung true settles level with a little weight, and never floats. So the hovers
   lift a hair and settle; the signature is a copper level line that wipes in
   dead-horizontal, the same waterline the whole page is built around. Every bit
   of it points a visitor at the repair or the quote.
   ========================================================================= */

/* --- eased hovers: give the snapping states a short, crisp transition ------- */
.btn {
  transition: background-color 0.16s ease, border-color 0.16s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -9px rgb(29 37 42 / 0.5); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px -4px rgb(29 37 42 / 0.55); transition-duration: 0.06s; }
.on-dark .btn:hover { box-shadow: 0 6px 16px -9px rgb(0 0 0 / 0.55); }

/* cards lift with a small weight, like a balanced door coming up true */
.path-card, .svc-card, .area-card, .guide-item {
  transition: border-color 0.18s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.path-card:hover, a.svc-card:hover, .area-card:hover, .guide-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -20px rgb(29 37 42 / 0.42);
}

/* form fields: ease the focus, and add a soft copper-family ring for the path */
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"],
.lead-form select, .lead-form textarea {
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pewter) 22%, transparent);
}

.nav-panel a, .minutes-row .m-name a, .chips label, .nav-toggle {
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

/* --- SIGNATURE: "The Level Line" ------------------------------------------- */
/* A copper level wipes in from the left, dead-horizontal, under a nav link:
   a spirit level finding level, the waterline settling flat. It replaces the
   old snap so the eye is drawn along toward the enquiry. The same wipe answers
   :focus-visible, so keyboard travel gets the identical read. */
.masthead nav a:not(.btn), .foot-grid ul a { position: relative; }
.masthead nav a:not(.btn)::after, .foot-grid ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--copper); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.18s ease; pointer-events: none;
}
.foot-grid ul a::after { bottom: -2px; height: 1.5px; }
.masthead nav a:not(.btn):hover, .masthead nav a:not(.btn):focus-visible { border-bottom-color: transparent; }
.masthead nav a:not(.btn):hover::after, .masthead nav a:not(.btn):focus-visible::after,
.foot-grid ul a:hover::after, .foot-grid ul a:focus-visible::after { transform: scaleX(1); }
/* the level line is the footer affordance now, so drop the underline snap */
.foot-grid ul a:hover { text-decoration: none; }

/* --- section rise (JS-gated so no-JS and crawlers always see everything) ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  html.js [data-rise].risen { opacity: 1; transform: none; }
}

/* --- THE MOTION FLOOR: reduced motion neutralises all of the above ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .path-card, .svc-card, .area-card, .guide-item {
    transition: background-color 0.16s ease, border-color 0.16s ease;
  }
  .btn:hover, .btn:active,
  .path-card:hover, a.svc-card:hover, .area-card:hover, .guide-item:hover {
    transform: none; box-shadow: none;
  }
  .masthead nav a:not(.btn)::after, .foot-grid ul a::after { transition: none; }
  html.js [data-rise] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
