/* Harrier Plumbing — concept build. Tokens and system in one file. DESIGN.md
   holds the direction; this file executes it and does not re-argue it. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --page:           #f6f8f9;
  --page-tint:      #e6eef0;
  --verdigris:      #1f5f66;
  --verdigris-deep: #123f45;
  --ink:            #1e2a2f;
  --ink-soft:       #5a6a70;
  --white:          #f9fbfb;
  --white-soft:     #c6d6d8;
  --copper:         #c2733d;
  --copper-deep:    #8a4a1e;
  --copper-light:   #f2c49a; /* copper as text on verdigris, 4.5:1 */
  --line:           #cfdadd;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Sofia Sans", ui-sans-serif, system-ui, Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.22vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.7rem + 1.6vw, 2.9rem);
  --step-4:  clamp(2.5rem, 2rem + 2.6vw, 4rem);
  --step-5:  clamp(3.2rem, 2.2rem + 5vw, 6rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 3px;
}
@supports (color: oklch(0 0 0)) {
  :root {
    --page: oklch(0.975 0.004 220);
    --page-tint: oklch(0.94 0.010 200);
    --verdigris: oklch(0.42 0.070 195);
    --verdigris-deep: oklch(0.30 0.055 200);
    --ink: oklch(0.24 0.020 220);
    --ink-soft: oklch(0.48 0.020 220);
    --white: oklch(0.985 0.003 200);
    --white-soft: oklch(0.86 0.020 200);
    --copper: oklch(0.66 0.130 50);
    --copper-deep: oklch(0.46 0.110 45);
    --copper-light: oklch(0.85 0.070 60);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
/* Two-ring focus so it reads on the page and on the teal drench alike. */
:focus-visible { outline: 3px solid var(--copper-deep); outline-offset: 2px; box-shadow: 0 0 0 6px var(--white); }
a { color: inherit; }
ul { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
.hl { color: var(--copper); }
.ledger .hl, .number .hl { color: var(--copper); }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--white); padding: 0.5rem 1rem; z-index: 50; }

/* ---------- concept note ---------- */
.dp-note { background: var(--verdigris-deep); color: var(--white-soft); font-size: var(--step-0); }
@media (min-width: 56em) { .dp-note { font-size: var(--step--1); } }
.dp-note--foot { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.dp-note__in { display: flex; flex-direction: column; gap: var(--sp-1); padding-block: var(--sp-4); }
@media (min-width: 56em) { .dp-note__in { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-5); padding-block: var(--sp-3); } }
.dp-note a { text-decoration: underline; text-underline-offset: 0.2em; color: var(--white); }
.dp-note b { color: var(--white); }

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.head__in { display: flex; align-items: center; gap: var(--sp-5); padding-block: var(--sp-3); }
.mark {
  font-family: var(--display); font-weight: 800; font-size: var(--step-1); line-height: 1;
  text-decoration: none; display: flex; flex-direction: column; gap: 0.15rem;
}
.mark small { font-family: var(--body); font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); letter-spacing: 0; }
.nav { display: none; gap: var(--sp-5); margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.nav a:hover { color: var(--copper-deep); }
@media (min-width: 56em) { .nav { display: flex; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: var(--verdigris); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: var(--step-0);
  padding: 0.7rem 1.1rem; border-radius: var(--radius); text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--verdigris-deep); }
.btn--call { margin-left: auto; }
.btn--big { font-size: var(--step-1); padding: 0.9rem 1.4rem; }
@media (max-width: 40em) { .btn--call .btn__word { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__media { background: var(--verdigris-deep); }
.hero__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 56em) { .hero__img { aspect-ratio: 16 / 6; } }
.plate {
  background: var(--verdigris); color: var(--white);
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  max-width: 40rem;
  margin-top: calc(var(--sp-7) * -1);
  position: relative; z-index: 2;
  box-shadow: 0 2px 0 var(--verdigris-deep), 0 18px 40px -18px rgba(18, 63, 69, 0.55);
}
@media (min-width: 56em) {
  .plate { margin-top: -13rem; padding: var(--sp-7) var(--sp-7) var(--sp-8); }
}
.plate h1 .hl { color: var(--white-soft); }
.plate .lede { margin-top: var(--sp-4); font-size: var(--step-1); max-width: 30ch; color: var(--white-soft); }
.plate .btn { margin-top: var(--sp-5); background: var(--white); color: var(--verdigris-deep); }
.plate .btn:hover { background: #ffffff; }
.crumb { font-size: var(--step--1); color: var(--white-soft); margin-bottom: var(--sp-3); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- M1 the job ticket ---------- */
.ticket { background: var(--verdigris); color: var(--white); margin-top: var(--sp-7); }
.ticket__grid { display: grid; gap: 0; }
.ticket__cell { padding: var(--sp-5) 0; border-top: 1px dotted rgba(255, 255, 255, 0.35); font-size: var(--step-0); }
.ticket__cell--phone { display: none; }
.ticket__cell p { display: flex; justify-content: space-between; gap: var(--sp-4); }
.ticket__cell p + p { margin-top: 0.2rem; }
.ticket__label {
  font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper-light); margin-bottom: var(--sp-2) !important;
}
.ticket__k { color: var(--white-soft); }
.ticket__phone { font-family: var(--display); font-weight: 700; font-size: var(--step-1); text-decoration: none; }
@media (min-width: 56em) {
  .ticket__grid { grid-template-columns: 1.2fr 1fr 0.9fr 1.3fr; }
  .ticket__cell { border-top: 0; padding: var(--sp-6) var(--sp-5); border-left: 1px dotted rgba(255, 255, 255, 0.35); }
  .ticket__cell:first-child { border-left: 0; padding-left: 0; }
  .ticket__cell { font-size: var(--step--1); }
  .ticket__cell--phone { display: block; }
  .ticket__cell p { justify-content: flex-start; gap: var(--sp-3); }
  .ticket__k { min-width: 6.5rem; }
}

/* ---------- M2 the pipe run ---------- */
main { position: relative; }
@media (min-width: 56em) {
  .services, .about, .questions { position: relative; }
  .services::before, .about::before, .questions::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: max(1.25rem, calc((100% - 72rem) / 2 - 2.5rem));
    width: 3px; background: var(--copper); opacity: 0.9;
  }
  .services::after, .questions::after {
    content: ""; position: absolute; left: max(1.25rem, calc((100% - 72rem) / 2 - 2.5rem)); bottom: 0;
    width: 2.5rem; height: 3px; background: var(--copper);
  }
  .about::after {
    content: ""; position: absolute; left: max(1.25rem, calc((100% - 72rem) / 2 - 2.5rem)); top: 0;
    width: 2.5rem; height: 3px; background: var(--copper);
  }
}

/* ---------- M3 services as rows ---------- */
.services { padding-block: var(--section); }
.services h2 { margin-bottom: var(--sp-7); }
.rows { display: grid; gap: var(--sp-8); }
.row { display: grid; gap: var(--sp-5); align-items: center; }
.row__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.row__n { font-family: var(--display); font-weight: 700; color: var(--copper-deep); font-size: var(--step--1); letter-spacing: 0.08em; }
.row__text h3 { font-size: var(--step-4); font-weight: 800; margin: var(--sp-1) 0 var(--sp-3); }
.row__text h3 a { text-decoration: none; }
.row__text h3 a:hover { color: var(--verdigris); }
.row__text > p:not(.row__n) { color: var(--ink-soft); max-width: 46ch; }
.more { display: inline-block; margin-top: var(--sp-3); padding-block: 0.5rem; font-weight: 700; color: var(--copper-deep); text-decoration: none; border-bottom: 2px solid var(--copper); }
.more:hover { color: var(--verdigris); }
@media (min-width: 56em) {
  .row { grid-template-columns: 5fr 6fr; gap: var(--sp-8); }
  .row--flip .row__media { order: 2; }
  .row--flip .row__text { order: 1; }
}

/* ---------- M4 the ledger ---------- */
.ledger { background: var(--verdigris); color: var(--white); padding-block: var(--section); }
.ledger h2 { margin-bottom: var(--sp-7); max-width: 20ch; }
.ledger__head { display: none; }
.ledger__row { display: grid; gap: var(--sp-3); padding-block: var(--sp-5); border-top: 1px solid var(--copper); }
.ledger__row:last-child { border-bottom: 1px solid var(--copper); }
.ledger__them { color: var(--white-soft); font-size: var(--step-0); }
.ledger__them::before { content: "The other shop"; display: block; font-family: var(--display); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper-light); margin-bottom: var(--sp-1); }
.ledger__us { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; }
@media (min-width: 56em) {
  .ledger__head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-8); font-family: var(--display); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper-light); padding-bottom: var(--sp-3); }
  .ledger__row { grid-template-columns: 5fr 7fr; gap: var(--sp-8); align-items: start; padding-block: var(--sp-6); }
  .ledger__them::before { display: none; }
  .ledger__them { padding-top: 0.35rem; }
}

/* ---------- about ---------- */
.about { padding-block: var(--section); }
.about__grid { display: grid; gap: var(--sp-6); align-items: center; }
.about h2 { max-width: 16ch; margin-bottom: var(--sp-5); }
.about__body { max-width: 52ch; }
.about__where { margin-top: var(--sp-6); font-family: var(--display); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper-deep); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.chips li { border: 1px solid var(--line); background: var(--white); padding: 0.35rem 0.8rem; border-radius: 999px; font-size: var(--step--1); font-weight: 600; }
.about__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 56em) { .about__grid { grid-template-columns: 6fr 5fr; gap: var(--sp-9); } }

/* ---------- questions ---------- */
.questions { background: var(--page-tint); padding-block: var(--section); }
.questions__grid { display: grid; gap: var(--sp-6); }
.questions h2 { max-width: 14ch; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: var(--sp-4) 0; font-family: var(--display); font-weight: 700; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--copper); font-weight: 800; }
.qa details[open] summary::after { content: "\2013"; }
.qa details p { padding: 0 0 var(--sp-5); color: var(--ink-soft); max-width: 60ch; }
@media (min-width: 56em) { .questions__grid { grid-template-columns: 4fr 7fr; gap: var(--sp-9); } }

/* ---------- M5 the closing action ---------- */
.number { background: var(--verdigris-deep); color: var(--white); padding-block: var(--section); }
.number h2 { font-size: var(--step-4); font-weight: 800; }
.number__line { margin-top: var(--sp-3); color: var(--white-soft); max-width: 40ch; font-size: var(--step-1); }
.btn--onteal { margin-top: var(--sp-6); background: var(--white); color: var(--verdigris-deep); }
.btn--onteal:hover { background: #ffffff; }

/* ---------- service pages ---------- */
.svc__media { background: var(--verdigris-deep); }
.svc__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 56em) { .svc__img { aspect-ratio: 16 / 6; } }
.plate--svc h1 { font-size: var(--step-4); }
.svc__body { padding-block: var(--section); }
.svc__grid { display: grid; gap: var(--sp-7); }
.prose h2 { font-size: var(--step-2); margin-bottom: var(--sp-4); }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: var(--sp-4); }
.svc__others-label { font-family: var(--display); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper-deep); margin-bottom: var(--sp-3); }
.svc__others li { border-top: 1px solid var(--line); }
.svc__others li:last-child { border-bottom: 1px solid var(--line); }
.svc__others a { display: flex; justify-content: space-between; padding: var(--sp-4) 0; text-decoration: none; font-weight: 600; }
.svc__others a span { color: var(--copper); }
.svc__others a:hover { color: var(--copper-deep); text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 56em) { .svc__grid { grid-template-columns: 7fr 4fr; gap: var(--sp-9); } }

/* ---------- footer ---------- */
.foot { background: var(--verdigris-deep); color: var(--white-soft); padding-top: var(--sp-8); font-size: var(--step--1); }
.foot__grid { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.foot__name { font-family: var(--display); font-weight: 700; color: var(--white); margin-bottom: var(--sp-2); }
.foot__list a, .foot p a { display: inline-block; padding-block: 0.45rem; }
.foot__list li + li { margin-top: 0; }
.foot a { color: var(--white); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-5) var(--sp-8); border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 48em) { .foot__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- call bar, phones only ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--copper-deep);
  transform: translateY(100%); transition: transform 180ms ease;
}
.callbar a { display: block; text-align: center; color: var(--white); font-family: var(--display); font-weight: 800; font-size: var(--step-1); padding: 0.9rem; text-decoration: none; }
.callbar.is-on { transform: none; }
@media (min-width: 56em) { .callbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }
body.has-callbar { padding-bottom: 3.6rem; }
@media (min-width: 56em) { body.has-callbar { padding-bottom: 0; } }
