/* Northern Services — northernserviceswa.com
 *
 * Colors are Russell's REAL brand values, measured from the computed CSS of his live
 * Squarespace site (not invented): steel blue #6CABDD for the header/headings, mustard gold
 * #D4A12A as the page-surround accent, deep navy #1D2B5C for dark surfaces.
 *
 * Space Grotesk is the free face his existing site already uses on its buttons; his headings
 * used Futura PT, which is an Adobe-licensed font we can't legally self-host, so Space Grotesk
 * carries both roles here. Self-hosted rather than pulled from Google's CDN — one less
 * third-party connection and a faster LCP.
 */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/spacegrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --steel: #6cabdd;
  --steel-dark: #2f6690;
  --gold: #d4a12a;
  --gold-dark: #b8891c;
  --navy: #1d2b5c;
  --ink: #16233d;
  --ink-soft: #4a5875;
  --ink-faint: #7d89a3;
  --paper: #ffffff;
  --paper-tint: #f4f7fb;
  --line: #dde4ee;
  --good: #2f7a4f;
  --good-bg: #eaf5ee;
  --warn-bg: #fdf4e3;
  --shadow-sm: 0 1px 3px rgba(22, 35, 61, .07);
  --shadow: 0 4px 20px rgba(22, 35, 61, .09);
  --max: 1080px;
  --prose: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--steel);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 22px; flex-wrap: wrap;
  /* Wider than the 1080px content column: the header carries the brand, six nav links and the
     call button, which wrapped to a second row at the content width once Contact was added.
     Body copy still stays at the narrower, more readable measure. */
  max-width: 1260px;
}
.brand {
  font-weight: 700; font-size: 17px; letter-spacing: .2px;
  color: var(--navy); text-decoration: none; line-height: 1.25;
}
.brand span { display: block; font-weight: 500; font-size: 12.5px; color: #24406b; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.nav-call {
  background: var(--navy); color: #fff !important; padding: 9px 16px;
  border-radius: 7px; font-weight: 700; white-space: nowrap;
}
.nav-call:hover { background: #16224a; text-decoration: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #0f1a2e; }
.hero img.hero-bg {
  /* Taller than before, to give the enlarged headline room to breathe rather than crowding
     the top and bottom edges of the image. */
  width: 100%; height: clamp(360px, 52vw, 620px); object-fit: cover; opacity: .55;
}
.hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.hero h1 {
  color: #fff; font-size: clamp(33px, 5.9vw, 62px); line-height: 1.08; margin: 0 0 16px;
  max-width: 24ch; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.55);
  letter-spacing: -0.01em;
}
.hero p {
  color: #eef3fa; font-size: clamp(17px, 2.2vw, 23px); margin: 0 0 26px; max-width: 44ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; padding: 14px 26px;
  text-decoration: none; text-align: center; transition: filter .15s ease;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 4px 16px rgba(212,161,42,.32); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.btn-outline:hover { background: rgba(255,255,255,.2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16224a; }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
section.tint { background: var(--paper-tint); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); margin: 0 0 10px;
}
h2 { font-size: clamp(23px, 3vw, 31px); line-height: 1.22; margin: 0 0 14px; color: var(--navy); text-wrap: balance; }
h3 { font-size: 19.5px; margin: 30px 0 8px; color: var(--navy); }
h4 { font-size: 17px; margin: 22px 0 6px; color: var(--navy); }
p, li { max-width: var(--prose); }
.lead { font-size: 19px; color: var(--ink-soft); }
.center { text-align: center; }
.center p, .center h2 { margin-left: auto; margin-right: auto; }

/* ---------- Service cards ----------
   Explicit column counts rather than auto-fit: with four cards, auto-fit produced a 3+1 wrap
   at desktop width that left "Pressure Washing" orphaned on its own row. 4 / 2 / 1 always
   divides evenly. */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 18.5px; }
.card p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 16px; max-width: none; flex: 1; }
.card a.more { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--steel-dark); }
.card a.more:hover { text-decoration: underline; }

/* ---------- Prose / article ---------- */
.article { padding-top: 46px; }
.article h1 { font-size: clamp(26px, 3.7vw, 38px); line-height: 1.18; margin: 0 0 12px; color: var(--navy); max-width: 26ch; text-wrap: balance; }
.article .lead { margin-bottom: 30px; }
.breadcrumb { font-size: 14px; color: var(--ink-faint); margin: 0 0 14px; }
.breadcrumb a { color: var(--ink-faint); }

figure { margin: 30px 0; }
figure img { border-radius: 12px; box-shadow: var(--shadow); }
figcaption { font-size: 14px; color: var(--ink-faint); margin-top: 9px; max-width: var(--prose); }
/* The before/after shots are square (1200x1200). At full content width they render ~950px tall
   and swamp the page. Constrained rather than cropped — cropping a before/after would cut off
   half the comparison, which is the entire point of the image. */
figure.compare { max-width: 720px; }
figure.compare img { width: 100%; }

.callout {
  background: var(--paper-tint); border-left: 4px solid var(--steel);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 28px 0;
}
.callout p { margin: 0; }
.callout.warn { background: var(--warn-bg); border-left-color: var(--gold); }
.callout strong { color: var(--navy); }

.keypoints { background: var(--good-bg); border-radius: 12px; padding: 22px 26px; margin: 30px 0; }
.keypoints h2, .keypoints h3 { margin-top: 0; font-size: 17px; color: #1d5236; }
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { font-size: 15.5px; color: #235c3c; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 34px; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 0 18px;
  margin-bottom: 10px; background: var(--paper);
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 15px 0; color: var(--navy);
  font-size: 16.5px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--steel-dark); font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 16px; margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c5d0e6; margin-left: auto; margin-right: auto; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c5dd; padding: 44px 0 30px; font-size: 15px; }
.site-footer a { color: #dfe7f5; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.site-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.site-footer p { max-width: none; margin: 0 0 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; font-size: 13.5px; color: #8fa0c0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  section { padding: 46px 0; }
}

/* ---------- Mobile header ----------
   Seven nav links plus the call button wrapped to THREE rows on a phone, making the sticky
   header 203px tall — a quarter of the screen permanently covered while scrolling. Instead:
   brand on its own row, then every link in ONE horizontally scrollable row. Header drops to
   ~100px, every link stays reachable, and no JS hamburger is needed (which matters: Russell
   edits these files himself, so the header has to stay plain HTML).

   .nav-call is pulled first with order:-1 deliberately — for a home-service business the phone
   number is the single most important control on a phone, so it must be visible without
   scrolling. The links that follow scroll off the right edge under a fade that signals there's
   more there. */
@media (max-width: 700px) {
  .site-header .wrap {
    flex-direction: column; align-items: stretch;
    gap: 10px; padding: 12px 0; flex-wrap: nowrap;
  }
  .brand { padding: 0 22px; }
  .site-nav {
    flex-wrap: nowrap; overflow-x: auto; gap: 18px;
    padding: 1px 22px 3px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Fade the right edge so a partially-cut link reads as "scrollable", not "broken". */
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
            mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; white-space: nowrap; font-size: 14.5px; }
  .nav-call { order: -1; padding: 8px 14px; }
}
