/* Van Nuys Pressure Washing
   ------------------------------------------------------------------
   One stylesheet, hand-written, no framework and no build step.

   Contents:
     1. Tokens
     2. Base + typography
     3. Header / topbar / nav
     4. Buttons + focus
     5. Hero
     6. Sections, cards, prose
     7. The rules panel — the compliance argument
     8. Tables, pricing, FAQ
     9. Forms + quote funnel
    10. Band, footer
    11. Utilities + reduced motion
   ------------------------------------------------------------------ */

/* ===================== 1. Tokens ===================== */
:root {
  --bg:        #FFFFFF;
  --surface:   #F4F8FC;
  --surface-2: #E8F1F8;
  --line:      #DBE5EF;
  --line-2:    #B7C7D8;

  --ink:       #0D1620;   /* headings — 18.4:1 on white */
  --ink-body:  #37465A;   /* body */
  --ink-mute:  #59697D;   /* secondary */

  /* Deep water blue. --blue-700 is the one used for text and button fills;
     the lighter tints are surfaces and large decoration only. */
  --blue-900:  #062A47;
  --blue-700:  #0A4E85;
  --blue-600:  #0C63A8;
  --blue-100:  #DCEBF7;
  --blue-50:   #F0F7FC;

  /* Aqua is DECORATIVE — it does not clear 4.5:1 on white and must never
     carry body text or a button label. Gradients, rules and icons only. */
  --aqua-500:  #00A6C0;
  --aqua-300:  #6FD9E8;

  --sand:      #F2EDE6;   /* concrete / stucco tone */

  --good:      #14743F;
  --warn:      #8A5200;
  --bad:       #A81F1F;

  --r:      10px;
  --r-lg:   16px;
  --r-pill: 999px;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;  --s-7: 3rem;   --s-8: 4.5rem;

  --shell: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --measure: 66ch;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs: .78rem; --t-sm: .9rem; --t-base: 1.02rem;
  --t-lede: clamp(1.08rem, 1rem + .55vw, 1.3rem);
  --t-h3: clamp(1.12rem, 1rem + .5vw, 1.32rem);
  --t-h2: clamp(1.6rem, 1.28rem + 1.6vw, 2.4rem);
  --t-h1: clamp(2.1rem, 1.5rem + 3.1vw, 3.6rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --sh-1: 0 1px 2px rgba(6, 42, 71, .06);
  --sh-2: 0 8px 28px rgba(6, 42, 71, .09);
}

/* ===================== 2. Base ===================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-body);
  font-family: var(--body); font-size: var(--t-base); line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--display); color: var(--ink); line-height: 1.14;
  margin: 0 0 var(--s-4); font-weight: 700; letter-spacing: -.02em;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
a { color: var(--blue-700); text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--blue-700); margin: 0 0 var(--s-3);
}
.lede { font-size: var(--t-lede); color: var(--ink-body); }
.mute { color: var(--ink-mute); font-size: var(--t-sm); }

/* ===================== 3. Header ===================== */
.topbar { background: var(--blue-900); color: #D6E6F3; font-size: var(--t-sm); padding: var(--s-2) 0; }
.topbar .shell { display: flex; gap: var(--s-5); justify-content: space-between; flex-wrap: wrap; }
.topbar strong { color: #FFFFFF; font-weight: 650; }
.topbar a { color: inherit; }

/* Wrapped, the desktop row gap becomes a vertical void and the bar balloons —
   measured at 127px on a 375px screen on an earlier project. Compact strip:
   one line where it fits, two small centred ones where it does not. */
@media (max-width: 700px) {
  .topbar { font-size: .72rem; padding: .3rem 0; line-height: 1.45; }
  .topbar .shell { gap: 0 var(--s-3); justify-content: center; text-align: center; }
  .topbar a[href^="tel:"] { min-height: 0; display: inline; }
}

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.masthead .shell { display: flex; align-items: center; gap: var(--s-4); min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.06rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.wordmark svg { flex: none; }
.wordmark span { display: block; }
.wordmark em { font-style: normal; color: var(--blue-700); }
.wordmark small { display: block; font-family: var(--body); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

.nav { display: flex; gap: var(--s-5); align-items: center; margin-left: auto; }
.nav a { color: var(--ink-body); text-decoration: none; font-size: var(--t-sm); font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-700); }
.masthead .btn { flex: none; }

.drop { position: relative; }
.drop__btn { appearance: none; border: 0; background: transparent; font: 550 var(--t-sm)/1 var(--body); color: var(--ink-body); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem 0; }
.drop__btn::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.drop__menu { position: absolute; top: calc(100% + .5rem); left: -1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); list-style: none; margin: 0; padding: .4rem 0; min-width: 232px; display: none; }
.drop__btn[aria-expanded="true"] + .drop__menu { display: block; }
.drop__menu a { display: block; padding: .5rem 1rem; font-size: var(--t-sm); text-decoration: none; color: var(--ink-body); }
.drop__menu a:hover { background: var(--blue-50); color: var(--blue-700); }

.burger { display: none; appearance: none; border: 1px solid var(--line-2); background: #fff; border-radius: var(--r); width: 44px; height: 42px; cursor: pointer; padding: 0 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.mobilenav { display: none; border-top: 1px solid var(--line); background: #fff; padding: var(--s-4) 0 var(--s-5); }
.mobilenav.open { display: block; }
.mobilenav ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: .1rem; }
.mobilenav a { display: block; padding: .55rem 0; text-decoration: none; color: var(--ink-body); font-weight: 550; }
@media (max-width: 940px) {
  .nav { display: none; }
  .burger { display: block; margin-left: auto; }
  .masthead .btn { display: none; }
}
@media (min-width: 941px) { .mobilenav { display: none !important; } }

/* ===================== 4. Buttons ===================== */
.btn {
  appearance: none; cursor: pointer; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--r-pill);
  font: 650 1rem/1 var(--body); background: var(--blue-700); color: #FFFFFF;
  text-decoration: none; transition: background .14s var(--ease), transform .14s var(--ease);
}
.btn:hover { background: var(--blue-600); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: #fff; color: var(--blue-700); border-color: var(--line-2); }
.btn--quiet:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--light:hover { background: var(--blue-100); color: var(--blue-900); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: var(--t-sm); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===================== 5. Hero ===================== */
.hero { padding: clamp(2.4rem, 6vw, 4.5rem) 0 var(--s-7); background: linear-gradient(180deg, var(--blue-50), var(--bg) 70%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--blue-700); }
.hero .lede { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }
.trustrow { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.trustrow span { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-sm); color: var(--ink-mute); font-weight: 550; }
.trustrow span::before { content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%; background: var(--blue-100); box-shadow: inset 0 0 0 2px var(--blue-700); }

/* ===================== 6. Sections / cards / prose ===================== */
.section { padding: var(--s-8) 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--sand { background: var(--sand); border-block: 1px solid #E2D9CC; }
.section__head { max-width: 62ch; margin-bottom: var(--s-6); }
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--sh-1); }
.section--tint .card, .section--sand .card { background: #fff; }
.card h3 { margin-bottom: var(--s-2); }
.card p { margin: 0; font-size: var(--t-sm); color: var(--ink-mute); }
a.card { text-decoration: none; display: block; color: inherit; transition: border-color .14s var(--ease), transform .14s var(--ease); }
a.card:hover { border-color: var(--blue-600); transform: translateY(-2px); }
.card__icon { width: 34px; height: 34px; margin-bottom: var(--s-3); color: var(--blue-700); }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__more { display: inline-block; margin-top: var(--s-3); font-size: var(--t-sm); font-weight: 650; color: var(--blue-700); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: var(--s-2); }

.steps { counter-reset: step; display: grid; gap: var(--s-4); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.stepnum { counter-increment: step; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-700); color: #fff; font: 700 1.05rem/1 var(--display); }
.stepnum::before { content: counter(step); }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; font-size: var(--t-sm); color: var(--ink-mute); }

/* ===================== 7. The rules panel ===================== */
.rules {
  background: var(--blue-900); color: #DCEAF6; border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.rules h2, .rules h3 { color: #fff; }
.rules a { color: var(--aqua-300); }
.rules a:hover { color: #fff; }
.rules p { color: #DCEAF6; }
.quote {
  border-left: 3px solid var(--aqua-500); padding: var(--s-3) 0 var(--s-3) var(--s-4);
  margin: var(--s-4) 0; font-size: var(--t-sm); color: #CBDFEE;
}
.quote cite { display: block; margin-top: var(--s-2); font-style: normal; font-size: var(--t-xs); color: #9FBDD6; }
.srcnote { font-size: var(--t-sm); color: var(--ink-mute); }

.callout {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-left: 3px solid var(--blue-700); border-radius: var(--r);
  padding: var(--s-4); margin: var(--s-5) 0;
}
.callout p { margin: 0; max-width: none; font-size: var(--t-sm); }
.callout--warn { background: #FFF7ED; border-color: #F5DFC0; border-left-color: var(--warn); }

/* ===================== 8. Tables / pricing / FAQ ===================== */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
table.compare th, table.compare td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
table.compare th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 700; }
table.compare td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

.price { display: grid; gap: var(--s-2); }
.price__row { display: flex; justify-content: space-between; gap: var(--s-4); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.price__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq details { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); font-family: var(--display); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; color: var(--blue-700); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: var(--s-3) 0 0; font-size: var(--t-sm); color: var(--ink-mute); }

.arealist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.arealist a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--t-sm); text-decoration: none; color: var(--ink-body); }
.arealist a:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }

/* ===================== 9. Forms / quote funnel ===================== */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--sh-2); }
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.field label { font-size: var(--t-sm); font-weight: 650; color: var(--ink); }
.field input, .field textarea, .field select {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: .7rem .8rem; min-height: 48px; background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
/* Placeholder text is real text: WCAG applies. #8595A8 measured 3.06:1 on
   white and failed; this clears 4.5:1. */
.field input::placeholder, .field textarea::placeholder { color: #66768A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formstatus { font-size: var(--t-sm); margin-top: var(--s-3); min-height: 1.4em; font-weight: 550; }
.formstatus.is-bad { color: var(--bad); }
.formstatus.is-ok { color: var(--good); }

.quiz { display: grid; gap: var(--s-3); }
.progress { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.progress__bar { height: 100%; background: var(--blue-700); transition: width .3s var(--ease); }
.progress__label { font-size: var(--t-sm); color: var(--ink-mute); margin: var(--s-3) 0 var(--s-4); font-weight: 550; }
.q { font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; color: var(--ink); margin: 0 0 var(--s-4); }
.opts { display: grid; gap: var(--s-2); }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; flex-direction: column; gap: .15rem;
  border: 1px solid var(--line-2); border-radius: var(--r); padding: var(--s-3) var(--s-4);
  min-height: 54px; justify-content: center; transition: border-color .12s var(--ease), background .12s var(--ease);
}
.opt span strong { font-size: .98rem; }
.opt span em { font-style: normal; font-size: var(--t-xs); color: var(--ink-mute); }
.opt:hover span { border-color: var(--blue-600); background: var(--blue-50); }
.opt input:checked + span { border-color: var(--blue-700); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-700); }
.opt input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.quiznav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.result { background: var(--blue-900); color: #fff; border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-5); }
.result h3 { color: #fff; margin-bottom: var(--s-2); }
.result__range { font-family: var(--display); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.result__note { font-size: var(--t-sm); color: #C6DCEC; margin: var(--s-3) 0 0; max-width: none; }

/* ===================== 10. Band / footer ===================== */
.band { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; padding: var(--s-8) 0; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #D6E6F3; margin-inline: auto; }

.footer { background: var(--blue-900); color: #B9D0E2; padding: var(--s-7) 0 var(--s-5); font-size: var(--t-sm); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: var(--s-3); font-family: var(--body); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer a { color: #B9D0E2; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .wordmark { color: #fff; }
.footer .wordmark em { color: var(--aqua-300); }
.footer .wordmark small { color: #8FB0C9; }
.footer__legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.16); font-size: var(--t-xs); color: #9FBDD6; }
.footer__legal p { max-width: none; color: inherit; }

/* Sticky mobile call bar — injected by site.js, so no page carries the markup. */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 60; display: none; gap: var(--s-2); padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.callbar__btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: var(--r-pill); font: 650 .95rem/1 var(--body); text-decoration: none; }
.callbar__btn--call { background: var(--blue-700); color: #fff; }
.callbar__btn--quote { background: #fff; color: var(--blue-700); border: 1px solid var(--blue-700); }
@media (max-width: 780px) { .callbar { display: flex; } body.has-callbar { padding-bottom: 76px; } }

/* ===================== 11. Utilities ===================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.breadcrumb { font-size: var(--t-sm); color: var(--ink-mute); padding-top: var(--s-5); }
.breadcrumb a { color: var(--ink-mute); }
[hidden] { display: none !important; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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