/*
  base.css: design tokens and shared building blocks for the whole page.
  Every section stylesheet builds on these; nothing here belongs to one section.

  Brand: SpotFree's own logo (posted on their Google listing) sets the colors:
  its bright and deep blues and its navy outline. Their job photos add the
  rest: the cool white of freshly washed concrete for the page, and the
  rust-brown of a "before" shot for anything still dirty (before tags, text
  that has not been "washed" yet).
  Tone: clean, upbeat, dependable. Not corporate, not gimmicky, not pushy.
  Type: Anybody (heavy, condensed, italic) for headlines, echoing the slanted
  "SPOT FREE" lettering of the logo; Figtree for everything else.
  Motion: the owner asked for a site with a wow effect, so several sections
  move. Every section still reads fully without it: animations only start
  when <html> has the "motion-ready" class (set by src/scripts/base.js).
*/

:root {
  /* Colors */
  --suds: #f4f8fb;          /* page background: washed-concrete white */
  --white: #ffffff;         /* raised surfaces: header, form fields */
  --ink: #0b1b33;           /* text and dark sections (logo navy) */
  --ink-soft: #3a4a60;      /* secondary text on light backgrounds (8.6:1 on suds) */
  --line: #d5dee8;          /* borders and dividers */
  --blue: #1c5fd4;          /* brand: call buttons, links, "after" (5.8:1 with white) */
  --spray: #6cc7f5;         /* brand light blue: accents on navy (9.2:1 on ink) */
  --grime: #8a5a2b;         /* "before": dirty tags and unwashed text (5.5:1 on suds) */
  --on-ink: #eef4fa;        /* text on navy */
  --on-ink-soft: #b9c8da;   /* secondary text on navy (10:1 on ink) */
  --error: #b3261e;         /* form errors only (5.9:1 on white) */

  /* Type */
  --font-display: "Anybody", "Arial Narrow", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-h2: clamp(2.5rem, 1.55rem + 4vw, 5.25rem);
  --fs-display: clamp(2.5rem, 1.1rem + 7vw, 7rem);

  /* Spacing scale (4 to 128) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(11, 27, 51, 0.45); /* the one shadow: things that float */
  --container: 1240px;
  --gutter: var(--s4);
  --header-h: 64px;

  /* Easing for CSS transitions, matched to GSAP "power3.out" */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring color; navy sections switch it to --spray so it stays visible. */
  --focus: var(--blue);
}

@media (min-width: 640px) { :root { --gutter: var(--s5); } }
@media (min-width: 1024px) { :root { --gutter: var(--s6); --fs-body: 1.125rem; --header-h: 76px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--suds);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
/* Scripts hide and show elements with the hidden attribute; component display
   rules (such as .btn's inline-flex) must never override it. */
[hidden] { display: none !important; }
input, select, textarea, button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Lenis smooth scrolling (rules from the Lenis package). Lenis does the
   smoothing itself, so the browser's own smooth scrolling is switched off. */
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Sections are reached from header links; keep their tops clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }

/* Headlines: the display face only ships in italic (see the font link in index.html). */
h1, h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 850;
  font-stretch: 72%;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
p { text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small label above a section headline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--blue);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons. The call button is the one primary action on every screen;
   the ghost button (navy sections only) is the quieter second choice. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--blue); color: var(--white); }
.btn-call:hover { background: var(--ink); }
.btn-ghost { border-color: var(--on-ink); background: transparent; color: var(--on-ink); }
.btn-ghost:hover { background: var(--on-ink); color: var(--ink); }

/* Before / After tags on photos */
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tag--before { background: var(--grime); }
.tag--after { background: var(--blue); }

/* Five-star row next to the real Google rating */
.stars { display: inline-flex; gap: 2px; color: var(--blue); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Skip link: first thing a keyboard user reaches */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
}
.skip-link:focus { top: var(--s4); }

/* HomeSampleNotice: the "sample website" strip above the header. */
.sample-notice {
  --focus: var(--spray);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}
.sample-notice p { padding-block: var(--s2); }
.sample-notice a { color: var(--on-ink); font-weight: 700; }

/*
  HomeHeader: sticky white bar with the logo, section links and the call button.
  .is-stuck  set by HomeHeader.js once the sample notice has scrolled away:
             the bar gains the shared shadow so it reads as floating.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: var(--header-h);
}

.site-header__logo {
  display: block;
  margin-right: auto;
  border-radius: 4px;
}
/* The logo is wider than tall (about 1.9 : 1); height sets its size. */
.site-header__logo img { width: auto; height: 44px; }

.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--s5); }
.site-nav a {
  display: inline-block;
  padding-block: var(--s3);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
/* A blue line sprays in under the link on hover and keyboard focus. */
.site-nav a:hover,
.site-nav a:focus-visible { background-size: 100% 2px; }

.site-header__call { min-height: 44px; padding-inline: var(--s4); }
.site-header__call-full { display: none; }

@media (min-width: 1024px) {
  .site-header__logo img { height: 52px; }
  .site-nav { display: block; }
  .site-header__call-short { display: none; }
  .site-header__call-full { display: inline; }
}

/*
  HomeHero: headline, rating and call button, plus the half-washed dock photo.
  --p  where the washed part of the photo ends, as a percent of the frame
       width at mid-height. The edge is slanted 6% either side of it.
       50 without motion (a still before and after); HomeHero.js moves it.
*/
.hero { padding-block: var(--s5) var(--s8); }

.hero__grid {
  display: grid;
  gap: var(--s7);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* A small map pin drawn in CSS: one rotated square with a round top. */
.hero__kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  transform: rotate(-45deg);
}

.hero__title {
  max-width: 15ch;
  font-size: var(--fs-display);
}
.hero__blue { color: var(--blue); }

.hero__lead {
  max-width: 34rem;
  margin-top: var(--s5);
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s5);
  font-weight: 600;
}
.hero__score { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
  margin-top: var(--s5);
}
.hero__call { min-height: 56px; padding-inline: var(--s6); font-size: 1.125rem; }

.hero__try {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}
.hero__try svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.hero__try:hover svg { transform: translateY(3px); }

/* The photo pair */
.hero__frame {
  --p: 50;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__after {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, calc((var(--p) + 6) * 1%) 0, calc((var(--p) - 6) * 1%) 100%, 0 100%);
}
.hero__edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__edge line { vector-effect: non-scaling-stroke; }
.hero__edge-wet { stroke: rgba(255, 255, 255, 0.32); stroke-width: 16px; }
.hero__edge-line { stroke: var(--white); stroke-width: 3px; }

.hero__tag {
  position: absolute;
  top: var(--s4);
  transition: opacity 0.3s ease;
}
.hero__tag--after { left: var(--s4); }
.hero__tag--before { right: var(--s4); }
.hero__tag.is-gone { opacity: 0; }

.hero__caption {
  margin-top: var(--s3);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* Starting frame while the scripts load: the dock is all "before", and the
   headline and the lines under it wait for their entrance. If the scripts never
   start, head.js removes .motion after 3 seconds and all of it shows as normal. */
.motion .hero__frame { --p: -8; }
.motion:not(.motion-ready) .hero__tag--after,
.motion:not(.motion-ready) .hero__edge { visibility: hidden; }
.motion .hero__title { visibility: hidden; }
.motion .hero__reveal { opacity: 0; }
/* Second safety net, for a script that starts but then fails: after 3.5 s the
   text shows whatever happened. The entrance is over by then, so this never
   cuts into it. */
.motion .hero__title { animation: hero-failsafe-title 0s linear 3.5s forwards; }
.motion .hero__reveal { animation: hero-failsafe-reveal 0s linear 3.5s forwards; }
@keyframes hero-failsafe-title { to { visibility: visible; } }
@keyframes hero-failsafe-reveal { to { opacity: 1; } }

/* Tablets: the photo spans the full width, so a landscape frame keeps it from
   running taller than the screen (the photos are cropped to fit). */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__frame { aspect-ratio: 5 / 4; }
}

@media (min-width: 1024px) {
  .hero { padding-block: var(--s7) var(--s9); }
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: var(--s8);
  }
  .hero__title { font-size: clamp(4.5rem, 1rem + 5vw, 6.5rem); }
  /* Keep the 4:5 frame inside the first screen on wide, short windows. */
  .hero__wash {
    width: min(100%, calc((100svh - var(--header-h) - 150px) * 0.8));
    min-width: 320px;
    justify-self: end;
  }
}

/*
  HomeServices: intro on the left (it stays put on wide screens while the list
  scrolls past), the list of services on the right.
  --w  0 to 100: how much of a service name is washed. The clean copy shows
       the left w%, the grime copy only the rest, so the two never overlap.
*/
.services {
  padding-block: var(--s9);
  border-top: 1px solid var(--line);
}

.services__grid { display: grid; gap: var(--s7); }

.services__lead {
  max-width: 30rem;
  margin-top: var(--s5);
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

.svc {
  --w: 100;
  position: relative;
  display: grid;
  gap: var(--s2);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
}
.svc:first-child { border-top: 1px solid var(--line); }

/* The blue line fills in as the name is washed. */
.svc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform-origin: left center;
  transform: scaleX(calc(var(--w) / 100));
}

.svc__name {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-style: italic;
  font-weight: 850;
  font-stretch: 75%;
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.svc__dirty {
  display: block;
  color: var(--grime);
  clip-path: inset(-20% -10% -20% calc(var(--w) * 1%));
}
.svc__clean {
  position: absolute;
  inset: 0;
  color: var(--ink);
  clip-path: inset(-20% calc((100 - var(--w)) * 1%) -20% -6%);
}

.svc__detail { color: var(--ink-soft); }

@media (min-width: 1024px) {
  .services { padding-block: var(--s10); }
  .services__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: var(--s8);
  }
  .services__intro {
    position: sticky;
    top: calc(var(--header-h) + var(--s7));
  }
  .svc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
    align-items: baseline;
    gap: var(--s5);
    padding-block: var(--s6);
  }
}

/*
  HomeWash: navy band with the washable driveway photo.
  Without scripts the stage is a still split: "after" on the left half,
  "before" on the right. HomeWash.js adds:
  .is-live     the canvas (painted with the "before" photo) covers the stage
  .is-touched  the visitor has started washing: the hint fades
  .is-clean    washed: the canvas has faded and the "After" tag shows
*/
.wash {
  --focus: var(--spray);
  padding-block: var(--s9);
  background: var(--ink);
  color: var(--on-ink);
}
.wash .eyebrow { color: var(--spray); }

.wash__grid {
  display: grid;
  gap: var(--s6);
  grid-template-areas: "copy" "stage" "panel";
}
.wash__copy { grid-area: copy; }
.wash__stage { grid-area: stage; }
.wash__panel { grid-area: panel; }

.wash__lead {
  max-width: 30rem;
  margin-top: var(--s5);
  color: var(--on-ink-soft);
  font-size: var(--fs-lead);
}

.wash__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}
.wash__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wash__img--before { clip-path: inset(0 0 0 50%); }
.wash__canvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  /* Vertical swipes still scroll the page; sideways swipes wash. */
  touch-action: pan-y;
}

.wash__tag {
  position: absolute;
  top: var(--s4);
  transition: opacity 0.3s ease;
}
.wash__tag--after { left: var(--s4); }
.wash__tag--before { right: var(--s4); }

.wash__hint { display: none; }

/* The ring that shows the width of the wash under the mouse (desktop only). */
.wash__nozzle {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wash__stage.has-nozzle .wash__canvas { cursor: none; }
.wash__stage.has-nozzle .wash__nozzle { opacity: 1; }

/* Live (script running) */
.wash__stage.is-live .wash__img--before { opacity: 0; clip-path: none; }
.wash__stage.is-live .wash__canvas { display: block; }
.wash__stage.is-live .wash__tag--after { opacity: 0; }
.wash__stage.is-live .wash__hint {
  position: absolute;
  left: 50%;
  bottom: var(--s5);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}
.wash__hint svg { width: 20px; height: 20px; }
.wash__stage.is-touched .wash__hint { opacity: 0; }
.wash__stage.is-clean .wash__tag--after { opacity: 1; }
.wash__stage.is-clean .wash__tag--before { opacity: 0; }
.wash__stage.is-clean .wash__canvas { pointer-events: none; }
.wash__stage.is-clean .wash__nozzle { opacity: 0; }

/* A small side-to-side nudge on the hint arrows, only when motion is on. */
.motion-ready .wash__hint svg { animation: wash-nudge 1.6s ease-in-out infinite; }
@keyframes wash-nudge {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
}

.wash__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}
.wash__reset {
  min-height: 44px;
  padding: 0 var(--s2);
  border: 0;
  background: none;
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.wash__status {
  min-height: 1.55em;
  margin-top: var(--s3);
  color: var(--on-ink-soft);
}
.wash__done {
  display: grid;
  justify-items: start;
  gap: var(--s4);
  margin-top: var(--s4);
}
.wash__done[hidden] { display: none; }
.wash__done-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-style: italic;
  font-weight: 850;
  font-stretch: 75%;
  line-height: 1;
}

/* Tablets: a landscape stage, so the photo is not taller than the screen.
   Both photos are cropped the same way, so they still line up. */
@media (min-width: 640px) and (max-width: 1023px) {
  .wash__stage { aspect-ratio: 5 / 4; }
}

@media (min-width: 1024px) {
  .wash { padding-block: var(--s10); }
  .wash__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "copy stage" "panel stage";
    column-gap: var(--s9);
    row-gap: var(--s6);
  }
  .wash__copy { align-self: end; }
  .wash__panel { align-self: start; }
  .wash__stage { width: min(600px, calc((100svh - var(--header-h) - 96px) * 0.8)); min-width: 360px; }
}

/*
  HomeWork: heading row, then two rows of square photos.
  Static (no motion): each row scrolls sideways inside itself, snapping to
  photos. .is-moving (set by HomeWork.js): rows clip their overflow and the
  tracks drift; the copies HomeWork.js adds make the loop seamless.
  .is-paused: the Pause button was pressed.
*/
.work {
  padding-block: var(--s9);
  overflow: clip;
}

.work__head {
  display: grid;
  gap: var(--s5);
  margin-bottom: var(--s7);
}
.work__head h2 { max-width: 16ch; }
.work__lead {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

.work__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  margin-top: var(--s4);
  padding: var(--s2) var(--s4);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.work__toggle[hidden] { display: none; }
.work__toggle svg { width: 16px; height: 16px; }
.work__icon-play { display: none; }
.is-paused .work__icon-play { display: block; }
.is-paused .work__icon-pause { display: none; }

.work__rows { display: grid; gap: var(--s4); }

.work__row {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.work__track {
  display: flex;
  width: max-content;
  padding-inline: var(--gutter);
}
/* Spacing sits inside each tile (not a flex gap) so a copied set of tiles
   lines up exactly one set-width later, which keeps the loop seamless. */
.work__tile {
  flex: none;
  width: 240px;
  padding-right: var(--s4);
  scroll-snap-align: start;
}
.work__tile img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--line);
  object-fit: cover;
}
.work__tile p {
  margin-top: var(--s2);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.work.is-moving .work__row { overflow: hidden; }
.work.is-moving .work__track { padding-inline: 0; will-change: transform; }

.work__more { margin-top: var(--s6); font-weight: 700; }

@media (min-width: 1024px) {
  .work { padding-block: var(--s10); }
  .work__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    align-items: end;
    gap: var(--s8);
  }
  .work__rows { gap: var(--s5); }
  .work__tile { width: 320px; padding-right: var(--s5); }
}

/*
  HomeReviews: white band. The big number is decoration (the heading says the
  same in words); quotes are set as plain type with a rule between them, no
  cards.
*/
.reviews {
  padding-block: var(--s9);
  background: var(--white);
}

.reviews__grid { display: grid; gap: var(--s7); }

.reviews__big {
  font-family: var(--font-display);
  font-size: clamp(7rem, 4rem + 14vw, 13rem);
  font-style: italic;
  font-weight: 900;
  font-stretch: 70%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.reviews__stars { margin-top: var(--s4); }
.reviews__stars svg { width: 26px; height: 26px; }
.reviews__title {
  max-width: 12ch;
  margin-top: var(--s5);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}
.reviews__all {
  display: inline-block;
  margin-top: var(--s5);
  padding-block: var(--s2);
  font-weight: 700;
}

.quote {
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
}
.quote:first-child { border-top: 0; padding-top: 0; }
.quote blockquote p {
  font-size: 1.125rem;
  line-height: 1.55;
}
.quote blockquote p::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}
.quote--lead blockquote p {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.35;
}
.quote__who {
  margin-top: var(--s3);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.quote__who::after { content: " · Google review"; font-weight: 500; }

@media (min-width: 1024px) {
  .reviews { padding-block: var(--s10); }
  .reviews__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: var(--s9);
  }
  .reviews__score {
    position: sticky;
    top: calc(var(--header-h) + var(--s7));
  }
}

/*
  HomeContact: navy band. Phones: details, photo, form. Wide screens: details
  and photo on the left, the form (white panel) on the right.
*/
.contact {
  --focus: var(--spray);
  padding-block: var(--s9);
  background: var(--ink);
  color: var(--on-ink);
}
.contact .eyebrow { color: var(--spray); }
.contact a { color: var(--on-ink); }

.contact__grid {
  display: grid;
  gap: var(--s7);
  grid-template-areas: "main" "photo" "form";
}
.contact__main { grid-area: main; }
.contact__photo { grid-area: photo; }
.contact__form { grid-area: form; }

.contact__lead {
  margin-top: var(--s5);
  color: var(--on-ink-soft);
  font-size: var(--fs-lead);
}

/* The number itself is the biggest button on the page.
   --run  how far the line under it has run out (0 to 1); HomeContact.js
          animates it once, otherwise it stays full. */
.contact__phone {
  --run: 1;
  position: relative;
  display: inline-block;
  margin-top: var(--s5);
  padding-bottom: var(--s2);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);
  font-style: italic;
  font-weight: 900;
  font-stretch: 70%;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--spray);
  transform-origin: left center;
  transform: scaleX(var(--run));
  transition: background-color 0.2s ease;
}
.contact__phone:hover::after { background: var(--on-ink); }

.contact__details {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s6);
}
.contact__details dt {
  color: var(--on-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact__details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.contact__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Form: white panel so the fields read as fields on the navy band. */
.contact__form {
  --focus: var(--blue);
  display: grid;
  gap: var(--s5);
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.contact__form h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-style: italic;
  font-weight: 850;
  font-stretch: 75%;
  line-height: 1;
}

.field { display: grid; gap: var(--s2); }
.field label,
.field legend { font-weight: 700; }
.field__req {
  margin-left: var(--s1);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
}
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-sm); font-weight: 700; }

.field--checks {
  margin: 0;
  padding: 0;
  border: 0;
}
.field--checks legend { margin-bottom: var(--s2); padding: 0; }
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: var(--s2);
}
.checks label {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  padding: var(--s2) var(--s3);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.checks input { width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.checks label:has(input:checked) { border-color: var(--blue); }

.contact__submit { justify-self: start; min-height: 52px; }
.contact__hint { margin-top: calc(-1 * var(--s3)); color: var(--ink-soft); font-size: var(--fs-sm); }
.contact__status { font-weight: 700; }
.contact__status:empty { display: none; }

@media (min-width: 640px) {
  .contact__photo img { aspect-ratio: 16 / 11; object-position: 50% 30%; }
}

@media (min-width: 1024px) {
  .contact { padding-block: var(--s10); }
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "main form" "photo form";
    column-gap: var(--s9);
    row-gap: var(--s7);
    align-items: start;
  }
  .contact__form { padding: var(--s6); }
}

/* HomeFooter: light band (the logo only works on light backgrounds). */
.site-footer {
  padding-block: var(--s8) var(--s6);
  background: var(--suds);
  font-size: var(--fs-sm);
}

.site-footer__grid {
  display: grid;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}
.site-footer__brand img { width: 170px; height: auto; }
.site-footer__brand p { max-width: 22rem; margin-top: var(--s4); color: var(--ink-soft); }

.site-footer__list { display: grid; gap: var(--s2); font-weight: 600; }
.site-footer__list a {
  display: inline-block;
  padding-block: var(--s2);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.site-footer__notice {
  max-width: 48rem;
  padding-top: var(--s5);
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr); }
}
