/* Northline Plumbing: demo site by Sorted Studio.
   Direction: trade signage. Concrete-white ground, ink, one cobalt block.
   Type: Archivo (variable, condensed widths for display). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #eeede8;
  --paper-2: #e4e3dc;
  --ink: #121417;
  --ink-soft: #4b4f56;
  --cobalt: #1b3fd1;
  --cobalt-deep: #142fa0;
  --on-cobalt: #f4f5ff;
  --on-cobalt-soft: #c9d1ff;
  --rule: rgba(18, 20, 23, 0.18);
  --rule-cobalt: rgba(244, 245, 255, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Arial Narrow", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1.2em; height: 1.2em; flex: none; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.fix :focus-visible { outline-color: #fff; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.top__inner { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; line-height: 1; }
.brand__name { font-weight: 850; font-stretch: 70%; font-size: 1.65rem; letter-spacing: -0.01em; text-transform: uppercase; }
.brand__trade { font-weight: 500; font-stretch: 70%; font-size: 1.65rem; text-transform: uppercase; color: var(--cobalt); }
.top__nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.95rem; font-weight: 500; }
.top__nav a { text-decoration: none; padding-block: 0.4rem; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1.5px; transition: background-size 0.4s var(--ease); }
.top__nav a:hover { background-size: 100% 1.5px; }
.top__call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 750; font-stretch: 85%; font-size: 1.05rem; text-decoration: none;
  padding: 0.55rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.top__call:hover { background: var(--ink); color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.4rem; padding: 0.85rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.005em;
  border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--blue { background: var(--cobalt); color: var(--on-cobalt); }
.btn--blue:hover { background: var(--cobalt-deep); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.hero__where { font-weight: 600; font-size: 1rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.hero__title {
  font-weight: 860; font-stretch: 66%; text-transform: uppercase;
  font-size: clamp(3.4rem, 9.2vw, 8.6rem); line-height: 0.88; letter-spacing: -0.012em;
}
.hero__accent { color: var(--cobalt); display: block; }
.hero__sub { max-width: 34ch; font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); line-height: 1.5; margin-top: 1.75rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.hero__photo figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 0.6rem; }

/* What we fix: the one cobalt block */
.fix { background: var(--cobalt); color: var(--on-cobalt); padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.fix__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); }
.fix__head h2 {
  font-weight: 860; font-stretch: 66%; text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.9;
}
.fix__head p { margin-top: 1rem; font-size: 1.15rem; color: var(--on-cobalt-soft); max-width: 28ch; }
.fix__img { margin-top: 2.5rem; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; filter: saturate(0.85); }
.fix__list { border-top: 1.5px solid var(--on-cobalt); }
.fix__list li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem;
  padding-block: 1.35rem; border-bottom: 1px solid var(--rule-cobalt);
}
.fix__list h3 { font-weight: 760; font-stretch: 80%; font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); line-height: 1.1; }
.fix__list p { color: var(--on-cobalt-soft); }
.fees { display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule-cobalt); }
.fees__item { color: var(--on-cobalt-soft); }
.fees__item strong { display: block; font-weight: 860; font-stretch: 70%; font-size: clamp(2.2rem, 3vw, 3rem); line-height: 1; color: var(--on-cobalt); }

/* How it works */
.how {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.how__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.how__copy h2 {
  font-weight: 860; font-stretch: 66%; text-transform: uppercase;
  font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: 0.92; max-width: 15ch;
}
.how__steps { margin-top: 2.5rem; border-top: 1.5px solid var(--ink); }
.how__steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.how__n { font-weight: 860; font-stretch: 66%; font-size: 2.6rem; line-height: 0.9; color: var(--cobalt); }
.how__steps h3 { font-weight: 720; font-size: 1.25rem; line-height: 1.2; }
.how__steps p { margin-top: 0.35rem; color: var(--ink-soft); max-width: 46ch; }

/* Owner */
.owner { background: var(--paper-2); padding-block: clamp(4rem, 9vw, 7rem); }
.owner__grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.owner__photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.owner__line {
  font-weight: 700; font-stretch: 80%;
  font-size: clamp(1.9rem, 3.2vw + 0.6rem, 3.5rem); line-height: 1.05; letter-spacing: -0.01em; max-width: 22ch;
}
.owner__who { margin-top: 1.5rem; color: var(--ink-soft); max-width: 48ch; }

/* Areas */
.areas { padding-block: clamp(4.5rem, 10vw, 8rem); }
.areas h2 { font-weight: 860; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: 0.92; }
.areas__list {
  display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 2.4vw, 2.2rem);
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1.5px solid var(--ink);
  font-weight: 650; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.25; color: var(--ink);
}
.areas__list li:first-child { color: var(--cobalt); }
.areas__note { margin-top: 1.75rem; color: var(--ink-soft); max-width: 52ch; }

/* Contact */
.contact { border-top: 1px solid var(--rule); padding-block: clamp(4.5rem, 10vw, 8rem); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact__lead h2 { font-weight: 860; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: 0.92; max-width: 11ch; }
.contact__phone {
  display: inline-block; margin-top: 1.75rem;
  font-weight: 860; font-stretch: 70%; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1;
  color: var(--cobalt); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--cobalt), var(--cobalt)) no-repeat 0 100% / 0 4px; padding-bottom: 0.35rem;
  transition: background-size 0.5s var(--ease);
}
.contact__phone:hover { background-size: 100% 4px; }
.contact__hours { margin-top: 2rem; border-top: 1.5px solid var(--ink); }
.contact__hours div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
.contact__hours dt { font-weight: 700; }
.contact__hours dd { color: var(--ink-soft); overflow-wrap: anywhere; }
.contact__form { display: grid; gap: 0.4rem; background: #f7f7f3; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.contact__formtitle { font-weight: 760; font-stretch: 80%; font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.75rem; }
.contact__form label { font-weight: 600; font-size: 0.95rem; margin-top: 0.6rem; }
.contact__form input, .contact__form textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #8a8d93; border-radius: var(--radius); padding: 0.75rem 0.85rem; width: 100%;
  transition: border-color 0.2s var(--ease);
}
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: 0; }
.contact__form .btn { margin-top: 1rem; width: 100%; }
.contact__error { color: #a3261b; font-weight: 600; margin-top: 0.5rem; }
.contact__help { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* Footer */
.foot { background: var(--ink); color: #c9ccd2; padding-block: 2.5rem 4rem; font-size: 0.92rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; align-items: baseline; }
.foot__brand { color: #fff; font-weight: 850; font-stretch: 70%; text-transform: uppercase; font-size: 1.3rem; }
.foot__credit { color: #9da1a8; }

/* Mobile quick bar */
.mbar { display: none; }

/* Demo tag */
.demo-tag {
  position: fixed; right: 0.9rem; bottom: 0.9rem; z-index: 30;
  font: 600 0.75rem/1 system-ui, sans-serif; letter-spacing: 0.01em;
  color: #fff; background: rgba(18, 20, 23, 0.86); text-decoration: none;
  padding: 0.55rem 0.8rem; border-radius: 999px;
}
.demo-tag:hover { background: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__copy > *, .js .hero__photo { animation: rise 0.9s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.14s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.2s; }
.js .hero__photo { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero__photo { max-width: 520px; }
  .fix__grid, .how, .owner__grid, .contact__grid { grid-template-columns: 1fr; }
  .how__photo { order: 2; }
  .how__photo img { aspect-ratio: 16 / 10; }
  .owner__photo { max-width: 240px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .top__inner { min-height: 3.75rem; gap: 1rem; }
  .brand__name, .brand__trade { font-size: 1.35rem; }
  .top__call { padding: 0.45rem 0.7rem; font-size: 0.95rem; }
  .top__call span { display: none; }
  .top__call::after { content: "Call"; }
  .hero { padding-top: 1.75rem; }
  .hero__title { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero__actions { display: grid; }
  .hero__actions .btn { width: 100%; }
  .hero__photo img { aspect-ratio: 5 / 4; }
  .fix__list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .fees { display: grid; gap: 1.25rem; }
  .how__steps li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .contact__hours div { grid-template-columns: 1fr; gap: 0.1rem; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.6rem; background: var(--paper); border-top: 1px solid var(--rule);
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; min-height: 3.1rem;
    border-radius: var(--radius); font-weight: 750; text-decoration: none;
  }
  .mbar__wa { background: var(--cobalt); color: var(--on-cobalt); }
  .mbar__call { border: 1.5px solid var(--ink); }
  .demo-tag { bottom: calc(4.6rem + env(safe-area-inset-bottom)); right: 0.75rem; font-size: 0.7rem; }
  .foot { padding-bottom: 8rem; }
}

/* Example banner: says plainly that this site is an example */
.example-bar { background: #15301c; color: #f5f5eb; text-align: center; font: 500 0.875rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 10px 16px; }
.example-bar a { color: #beff50; text-decoration: underline; text-underline-offset: 2px; }

/* Example contact buttons: the dialog and the no-JavaScript note they point to */
.demo-dialog {
  width: min(28rem, calc(100% - 2rem)); padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.demo-dialog::backdrop { background: rgba(18, 20, 23, 0.6); }
.demo-dialog h2 { font-weight: 860; font-stretch: 70%; text-transform: uppercase; font-size: 2.1rem; line-height: 0.95; }
.demo-dialog p { margin-top: 0.9rem; }
.demo-dialog__msg { margin: 0.75rem 0 0; padding: 0.8rem 1rem; background: #fff; border-left: 4px solid var(--cobalt); border-radius: var(--radius); }
.demo-dialog__note { font-weight: 700; }
.demo-dialog__cta a, .demo-note a { color: var(--cobalt); font-weight: 700; text-underline-offset: 0.2em; }
.demo-dialog__close { width: 100%; margin-top: 1.5rem; min-height: 3rem; }
.demo-note { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4rem); }
.demo-note h2 { font-weight: 760; font-stretch: 80%; font-size: 1.6rem; line-height: 1.1; }
.demo-note p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 60ch; }
.demo-note .demo-note__strong { color: var(--ink); font-weight: 700; }
