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

  Brand: the business's own trailer and sign use sky blue and a yellow sun, so
  the tokens follow that: crisp white like a just-washed wall, deep navy text,
  sky blue for links and surfaces, one sunshine-yellow accent for the call.
  Tone: bright, friendly, trustworthy. Not flashy, not corporate, not cheap.
  Type: Bricolage Grotesque (one variable family): bold and slightly condensed
  for headings, plain for reading.
  Motion: the owner of this outreach asked for a wow effect, so sections move on
  scroll (GSAP). Everything is readable without it: motion only starts when
  <html> has the "motion-ready" class (set by src/scripts/base.js).
*/

:root {
  /* Colors */
  --white: #fbfdff;        /* page background */
  --mist: #eaf3fc;         /* light blue surfaces */
  --navy: #0b2545;         /* text, dark sections */
  --slate: #45607f;        /* secondary text on light (6.2:1 on white) */
  --line: #d3e2f1;         /* borders on light */
  --sky: #1b6fd8;          /* links, outlines, accents (4.8:1 on white) */
  --sun: #ffc53d;          /* the one accent: call buttons, highlights */
  --sun-deep: #f5b014;     /* hover on sun buttons */
  --on-navy: #f2f7fd;      /* text on navy */
  --on-navy-muted: #b9cbe0;/* secondary text on navy (8.6:1) */

  /* Type */
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-h2: clamp(2.375rem, 1.3rem + 4.4vw, 5rem);
  --fs-display: clamp(3.25rem, 1.4rem + 7.2vw, 8.25rem);

  /* 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: 20px;         /* one generous radius: photos, cards, buttons */
  --container: 1220px;
  --gutter: var(--s4);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --focus: var(--sky);
}

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

*, *::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(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-variation-settings: "opsz" 14;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
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). */
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; }

[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }

h1, h2, h3 {
  font-weight: 800;
  font-stretch: 85%;
  font-variation-settings: "opsz" 96;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); line-height: 1.05; }
p { text-wrap: pretty; }

a { color: var(--sky); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

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

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

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

/* Buttons: sun (the call), outline (text us). 52px tall for thumbs. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: var(--s3) var(--s6);
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: var(--sun-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }

.stars { display: inline-flex; gap: 2px; color: var(--sun-deep); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 8px;
}
.skip-link:focus { top: var(--s4); }

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

/* HomeHeader: plain white sticky bar with the sun mark, links and call button. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}
.brand__sun { width: 38px; height: 38px; flex: none; fill: var(--sun); stroke: var(--sun); stroke-width: 4; stroke-linecap: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.02em;
}
.brand__sub { margin-top: 3px; color: var(--sky); font-size: 0.8rem; font-weight: 700; }

.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--s6); }
.site-nav a {
  display: inline-block;
  padding-block: var(--s3);
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--sky); text-decoration: underline; }

.site-header__text { display: none; padding: var(--s3) var(--s2); color: var(--navy); font-weight: 750; }
.site-header__call { min-height: 44px; padding-inline: var(--s5); }

@media (min-width: 640px) { .site-header__text { display: inline-block; } }
@media (min-width: 1000px) { .site-nav { display: block; } }

/*
  HomeHero: light first screen. Phone: text, then the photo with the rating card
  on its corner. Desktop (960px+): text left, photo right running off the edge.
  "brand new." is two copies in the same spot: the solid fill (real text) and an
  outline (decoration). With motion the fill starts clipped away and is wiped in.
*/
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s7) var(--s8);
  background: linear-gradient(to bottom, var(--white), var(--mist));
}
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
/* Hidden for the first frames only, while the motion script sets its starting states. */
.motion .hero:not(.is-ready) .hero__grid { visibility: hidden; }

.hero__title { margin-bottom: var(--s5); }
.hero__big {
  display: block;
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero__wash { position: relative; display: inline-block; color: var(--sky); white-space: nowrap; }
.hero__wash-line {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 2px var(--sky);
  pointer-events: none;
}
/* Without motion the outline copy is not needed. */
.hero__wash-line { display: none; }
.motion .hero__wash-line { display: block; }
.motion .hero__wash-fill { clip-path: inset(0% 100% 0% 0%); }

.hero__sub {
  display: block;
  margin-top: var(--s4);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  font-stretch: 95%;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.hero__lead {
  max-width: 34rem;
  margin-bottom: var(--s5);
  color: var(--slate);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__actions .btn { flex: 1 1 auto; }

.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* The bright sheen that passes over the photo once on load. */
.hero__sheen {
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 30%;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.55), rgb(255 255 255 / 0));
  transform: skewX(-16deg);
  opacity: 0;
  pointer-events: none;
}

.hero__rating {
  position: absolute;
  left: var(--s4);
  bottom: calc(-1 * var(--s5));
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5) var(--s3) var(--s4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgb(11 37 69 / 0.14);
}
.hero__score {
  font-size: 2.25rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__rating-text { display: grid; gap: 2px; color: var(--slate); font-size: var(--fs-sm); font-weight: 650; line-height: 1.2; }

@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }

@media (min-width: 960px) {
  .hero { padding-block: var(--s9) var(--s10); }
  .hero__grid { grid-template-columns: 5fr 6fr; gap: var(--s8); }
  .hero__photo { margin-right: calc(-1 * var(--gutter) - 4vw); border-radius: var(--radius) 0 0 var(--radius); }
  .hero__photo img { aspect-ratio: 5 / 4; }
  .hero__rating { left: calc(-1 * var(--s7)); bottom: var(--s7); }
}

/*
  HomeWash: before-and-after frames.
  Default (no motion): before and after side by side, each labelled.
  Motion (.motion-ready): the after half is laid over the before half in one
  frame, clipped away, and HomeWash.js wipes it in behind the bright bar.
*/
.wash { padding-block: var(--s9); }

.wash__head { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
.wash__head h2 em { color: var(--sky); font-style: normal; }
.wash__head p { max-width: 30rem; color: var(--slate); font-size: var(--fs-lead); }

.wash__job + .wash__job { margin-top: var(--s8); }
.wash__job h3 { margin-top: var(--s4); }

.wash__frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}
.wash__half { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.wash__half img { width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.wash__half figcaption {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  padding: var(--s1) var(--s3);
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.8125rem;
  font-weight: 750;
}
.wash__half--after figcaption { background: var(--sun); color: var(--navy); }
.wash__bar { display: none; }

/* Motion: one frame, after laid over before. */
.motion-ready .wash__frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2 / 1;
}
.motion-ready .wash__half { position: absolute; inset: 0; border-radius: 0; }
.motion-ready .wash__half--after { clip-path: inset(0% 100% 0% 0%); }
.motion-ready .wash__half--after figcaption { left: auto; right: var(--s3); }
.motion-ready .wash__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 6px;
  margin-left: -3px;
  background: var(--white);
  box-shadow: 0 0 0 2px rgb(27 111 216 / 0.35), 0 0 30px 8px rgb(255 255 255 / 0.65);
  border-radius: 6px;
  opacity: 0;
}

@media (min-width: 960px) {
  .wash { padding-block: var(--s10); }
  .wash__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .wash__job + .wash__job { margin-top: var(--s9); }
  .motion-ready .wash__frame { aspect-ratio: 21 / 10; }
}

/*
  HomeMethods: two big cards, soft wash (sky blue) and pressure washing (navy).
  Phone: stacked. Desktop: side by side, the second set lower for rhythm.
*/
.methods { padding-block: var(--s9); background: var(--mist); overflow-x: clip; }
.methods__title span { color: var(--sky); }
.methods__intro { margin: var(--s4) 0 var(--s7); color: var(--slate); font-size: var(--fs-lead); }

.methods__grid { display: grid; gap: var(--s4); }
.method { padding: var(--s6) var(--s5); border-radius: var(--radius); }
.method h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); margin-bottom: var(--s2); }
.method > p { margin-bottom: var(--s5); font-size: var(--fs-lead); }
.method__list { display: grid; gap: var(--s2); }
.method__list li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s2);
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 25%, transparent);
  font-size: 1.125rem;
  font-weight: 700;
}
/* A small drop shape marks each item. */
.method__list li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  background: var(--sun);
}
.method--soft { --focus: var(--navy); background: var(--sky); color: var(--white); }
.method--pressure { --focus: var(--sun); background: var(--navy); color: var(--on-navy); }

@media (min-width: 960px) {
  .methods { padding-block: var(--s10); }
  .methods__grid { grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
  .method { padding: var(--s8) var(--s7); }
  .method--pressure { margin-top: var(--s8); }
}

/* HomeRig: two large photos. Phone: stacked. Desktop: 5/7 split, the roof set lower. */
.rig { padding-block: var(--s9); overflow-x: clip; }
.rig__grid { display: grid; gap: var(--s6); }
.rig__img { overflow: hidden; border-radius: var(--radius); background: var(--line); }
.rig__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rig__item figcaption { margin-top: var(--s2); color: var(--slate); font-size: var(--fs-sm); font-weight: 600; }

@media (min-width: 960px) {
  .rig__grid { grid-template-columns: 5fr 7fr; gap: var(--s5); align-items: start; }
  .rig__item--roof { margin-top: var(--s9); }
}

/*
  HomeReviews: navy section. Phone: score, topics, quotes stacked.
  Desktop: score column left (sticky), quotes right.
*/
.reviews {
  --focus: var(--sun);
  background: var(--navy);
  color: var(--on-navy);
  padding-block: var(--s9);
  overflow-x: clip;
}
.reviews a { color: var(--sun); font-weight: 750; }
.reviews__grid { display: grid; gap: var(--s7); }

.reviews__value {
  display: block;
  font-size: clamp(5rem, 3rem + 8vw, 10rem);
  line-height: 0.85;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}
.reviews__on { display: block; margin-top: var(--s2); font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); }
.reviews__count { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); color: var(--on-navy-muted); }
.reviews .stars { color: var(--sun); }
.reviews__topics-label { margin-top: var(--s6); margin-bottom: var(--s3); color: var(--on-navy-muted); font-size: var(--fs-sm); font-weight: 700; }
.reviews__topics { display: flex; flex-wrap: wrap; gap: var(--s2); }
.reviews__topics li {
  padding: var(--s2) var(--s4);
  border: 1.5px solid var(--on-navy-muted);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.reviews__quotes { display: grid; gap: var(--s4); }
.quote {
  padding: var(--s6) var(--s5);
  background: color-mix(in srgb, var(--white) 8%, var(--navy));
  border-radius: var(--radius);
}
.quote blockquote p { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 600; line-height: 1.35; }
.quote figcaption { margin-top: var(--s4); font-weight: 750; }
.quote figcaption span { margin-left: var(--s2); color: var(--on-navy-muted); font-weight: 500; }

@media (min-width: 960px) {
  .reviews { padding-block: var(--s10); }
  .reviews__grid { grid-template-columns: 4fr 7fr; gap: var(--s9); align-items: start; }
  .reviews__score { position: sticky; top: calc(var(--header-h) + var(--s7)); }
  .quote { padding: var(--s7) var(--s6); }
}

/* HomeAreas: the places in large type, separated by small suns. */
.areas { padding-block: var(--s9); }
.areas__title { margin-bottom: var(--s6); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); color: var(--slate); }
.areas__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.areas__list li {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem);
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.areas__list li:not(:last-child)::after {
  content: "";
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--sun);
}
@media (min-width: 960px) { .areas { padding-block: var(--s10); } }

/* HomeContact: centered closing section on light blue, with a big sun behind the number. */
.contact { position: relative; overflow: hidden; padding-block: var(--s10); background: var(--mist); text-align: center; }
.contact__inner { position: relative; }
.contact__sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 120vw);
  height: auto;
  translate: -50% -50%;
  fill: var(--sun);
  stroke: var(--sun);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.22;
  pointer-events: none;
}
.contact__title { position: relative; max-width: 14ch; margin: 0 auto var(--s6); }
.contact__number {
  position: relative;
  display: inline-block;
  margin-bottom: var(--s6);
  color: var(--navy);
  font-size: clamp(2.75rem, 1.2rem + 7vw, 7.5rem);
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.contact__number:hover { color: var(--sky); }
.contact__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-bottom: var(--s5); }
.contact__email { position: relative; color: var(--slate); overflow-wrap: anywhere; }
.contact__email a { display: inline-block; padding-block: 10px; font-weight: 750; }

/* HomeFooter: navy footer with contact details and the sample notice. */
.site-footer { --focus: var(--sun); background: var(--navy); color: var(--on-navy); padding-block: var(--s8) var(--s6); }
.site-footer a { color: var(--on-navy); font-weight: 750; }
.site-footer__inner { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
.site-footer__name { margin-bottom: var(--s2); font-size: 1.5rem; font-weight: 800; font-stretch: 85%; letter-spacing: -0.02em; }
.site-footer__desc { max-width: 30rem; color: var(--on-navy-muted); }
.site-footer__contact { display: grid; gap: var(--s1); }
.site-footer__contact a { display: inline-block; padding-block: var(--s2); overflow-wrap: anywhere; }
.site-footer__notice {
  padding-top: var(--s5);
  border-top: 1px solid color-mix(in srgb, var(--on-navy) 20%, transparent);
  color: var(--on-navy-muted);
  font-size: var(--fs-sm);
}
.site-footer__notice a { color: var(--sun); }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 3fr 2fr; align-items: start; } }
