/* Northlake Handyman — nlhandyman.com
   Brand: the owner's red and white, with deep navy as the trust/ink colour.
   Tokens live here; components use only these. No inline styles anywhere: the
   Content-Security-Policy in _headers allows stylesheets from this site only. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --red: #C8102E;          /* white on red 5.9:1 */
  --red-dark: #A00C24;
  --red-tint: #FDECEE;
  --ink: #14213D;          /* navy, text + dark sections */
  --text: #1B2433;
  --muted: #4A5568;        /* 7.4:1 on white, 6.8:1 on --warm */
  --paper: #FFFFFF;
  --warm: #F6F3EF;
  --line: #E4DED6;
  --focus: #1D4ED8;        /* white on dark sections, see below */

  --f-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgb(20 33 61 / .06), 0 8px 24px rgb(20 33 61 / .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
  --gutter-l: max(20px, env(safe-area-inset-left));
  --gutter-r: max(20px, env(safe-area-inset-right));
  --dock-h: 0px;
}
@media (max-width: 859px) { :root { --dock-h: 70px; } }
@media (max-width: 859px) and (max-height: 500px) { :root { --dock-h: 58px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scroll-padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--f-body); color: var(--text); background: var(--paper); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.facts, .card--cta, .final, .foot { --focus: #FFFFFF; }   /* the blue ring is 2.4:1 on navy; white passes everywhere dark */
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw + 1rem, 3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.3em; border-radius: 999px; font: 700 1rem/1 var(--f-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; touch-action: manipulation; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 1.05em; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 1.6em; font-size: 1.1rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--red-tint); color: var(--red-dark); }
.btn--outline-white { color: #fff; border-color: rgb(255 255 255 / .7); }
.btn--outline-white:hover { background: #fff; color: var(--ink); }

.eyebrow { display: inline-flex; align-items: center; gap: .4em; font: 700 .8rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.eyebrow svg { width: 1.1em; height: 1.1em; color: var(--red); }
.eyebrow--red { color: var(--red); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--red); color: #fff; }
.brand__mark svg { width: 24px; height: 24px; stroke-width: 2.4; }
.brand__name { font: 800 1.15rem/1 var(--f-head); letter-spacing: -.01em; }
.brand__name span { color: var(--red); }
.top__nav { display: none; gap: 28px; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 0; }
.top__nav a:hover { color: var(--red); }
@media (max-width: 380px) { .top .btn span { display: none; } .top .btn { padding: 0 12px; } }
@media (min-width: 860px) { .top__nav { display: flex; } .top__nav + .btn { margin-left: 12px; } }
/* Landscape phones: a sticky header and the dock would eat half the screen. */
@media (max-height: 500px) { .top { position: static; } }

/* Hero */
.hero { background: var(--paper); overflow: hidden; }
.hero__in { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.6rem, 7vw + .5rem, 4.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero__cta--center { justify-content: center; }
.hero__tip { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .98rem; max-width: 40ch; }
.hero__tip svg { color: var(--red); margin-top: 2px; }
.hero__tip strong { color: var(--ink); }
.hero__media { position: relative; }
.hero__photo { margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); position: relative; z-index: 0; }
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.qr { display: none; }
@media (min-width: 960px) {
  .hero__in { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
  .hero__photo { margin: 0; }
  .hero__photo img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .hero__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--red); border-radius: var(--r-lg); z-index: -1; }
}
/* "Scan to text us" — only where there's a mouse, i.e. a computer that can't send a text itself. */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .qr { display: flex; align-items: center; gap: 14px; position: absolute; left: -36px; bottom: 44px; z-index: 1; max-width: 300px; padding: 10px 18px 10px 10px; background: #fff; border-radius: var(--r); box-shadow: 0 2px 4px rgb(20 33 61 / .08), 0 14px 32px rgb(20 33 61 / .18); }
  .qr img { width: 135px; height: 135px; }
  .qr p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--muted); }
  .qr strong { display: block; color: var(--ink); font-size: 1rem; }
}

/* Facts strip */
.facts { background: var(--ink); color: #fff; }
.facts__in { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-top: 28px; padding-bottom: 28px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: #D7DEEA; }
.facts li svg { color: #fff; background: var(--red); border-radius: 8px; padding: 6px; width: 32px; height: 32px; }
.facts strong { display: block; color: #fff; font-size: 1rem; }
@media (min-width: 860px) { .facts__in { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.services { padding: 72px 0; background: var(--warm); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 20px 22px 24px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.card--cta { background: var(--red); border-color: var(--red); color: #fff; justify-content: center; }
.card--cta h3 { color: #fff; font-size: 1.6rem; }
.card--cta p { color: #FFE4E8; }
.card--cta .card__body { padding: 32px 28px; }
.card__icon { width: 44px; height: 44px; margin-bottom: 16px; }

/* How it works — photo left, words right */
.how { padding: 72px 0; }
.how__in, .area__in { display: grid; gap: 40px; }
.how__photo, .area__photo { margin: 0; }
.how__photo img, .area__photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: flex; gap: 18px; }
.steps__n { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.3rem/1 var(--f-head); }
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--muted); margin: 0; }

/* Where we work — words left, photo right */
.area { padding: 72px 0; background: var(--warm); }
.area__lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.counties { display: grid; gap: 28px; margin: 28px 0 8px; }
.county h3 { margin-bottom: .15em; }
.county__sub { color: var(--muted); font-size: .95rem; margin-bottom: .75em; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; line-height: 1.35; color: var(--text); }
.area__ask { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 28px; }
.area__ask svg { color: var(--red); margin-top: 3px; }
.hours-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 8px; max-width: 460px; }
.hours-box h3 { font-size: 1.1rem; margin-bottom: .2em; }
.hours { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours th { font-weight: 700; color: var(--ink); }
.hours td { text-align: right; }
.pay { display: flex; gap: 10px; color: var(--muted); font-size: .95rem; }
.pay svg { color: var(--red); margin-top: 3px; }
@media (min-width: 640px) { .counties { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .how__in { grid-template-columns: 5fr 6fr; align-items: center; gap: 72px; }
  .area__in { grid-template-columns: 6fr 5fr; align-items: center; gap: 72px; }
  .how__photo img, .area__photo img { aspect-ratio: 4 / 5; }
}

/* Questions */
.faq { padding: 72px 0; }
.qa { display: grid; gap: 28px 48px; margin: 0; }
.qa dt { font: 700 1.15rem/1.3 var(--f-head); color: var(--ink); margin-bottom: .35em; }
.qa dd { margin: 0; color: var(--muted); }
@media (min-width: 860px) { .qa { grid-template-columns: 1fr 1fr; } }

/* Final CTA */
.final { background: var(--ink); color: #D7DEEA; text-align: center; padding: 80px 0; }
.final h2 { color: #fff; }
.final p { font-size: 1.15rem; }
.final__num { display: inline-block; font: 800 clamp(2.4rem, 9vw, 4.5rem)/1 var(--f-head); color: #fff; text-decoration: none; letter-spacing: -.01em; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.final__num:hover { color: #FFB3BF; }

/* Footer */
.foot { background: #0D1629; color: #A9B4C8; font-size: .92rem; padding: 28px 0; }
.foot__in { display: grid; gap: 6px; }
.foot p { margin: 0; }
.foot a { color: #fff; }
.foot strong { color: #fff; }

/* Mobile contact dock — clears the iPhone home indicator via the safe-area inset */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(20 33 61 / .08); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; touch-action: manipulation; }
.dock__text { background: var(--red); color: #fff; }
.dock__text:hover { color: #fff; background: var(--red-dark); }
.dock__call { color: var(--ink); border: 2px solid var(--ink); }
@media (max-height: 500px) { .dock { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); } .dock a { min-height: 44px; } }
@media (min-width: 860px) { .dock { display: none; } }

/* 404 */
.nf { padding: 96px 0; max-width: 640px; }
.nf h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
