/* ============================================================
   JJ's Pressure Washing — one-page site
   Tokens follow the "Industry" design system, dark variant.
   ============================================================ */

:root {
  /* color */
  --bg: #0b0d0f;
  --bg-elevated: #15181b;
  --ink: #f4f5f6;
  --ink-muted: #b7b7ba;
  --ink-faint: #98989b;
  --divider: rgba(244, 245, 246, 0.16);

  --accent: #5980a6;
  --accent-200: #d6ebff;
  --accent-300: #b5d9fd;
  --accent-400: #94bce3;
  --accent-500: #749dc4;
  --accent-600: #597ea3;
  --accent-900: #1d2d3d;

  /* type */
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* layout */
  --page-max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(56px, 8vw, 116px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

a { color: var(--accent-300); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; }

::selection { background: var(--accent-600); color: var(--ink); }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.kicker {
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-300);
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
}

.lede {
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* --- buttons ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: #0b0d0f;
}
.btn--primary:hover { background: var(--accent-400); border-color: var(--accent-400); color: #0b0d0f; }
.btn--primary:active { background: var(--accent-600); border-color: var(--accent-600); }

.btn--outline {
  background: transparent;
  border-color: var(--divider);
  color: var(--ink);
}
.btn--outline:hover { background: rgba(244, 245, 246, 0.08); color: var(--ink); }
.btn--outline:active { background: rgba(244, 245, 246, 0.14); }

.btn--light {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent-900);
  min-height: 56px;
  padding: 0 28px;
  font-size: 20px;
}
.btn--light:hover { background: #fff; border-color: #fff; color: var(--accent-900); }

.btn--compact { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* --- blueprint frame (Industry registration marks) ---------- */

.frame {
  position: relative;
  border: 1px solid var(--divider);
}
.frame__mark {
  position: absolute;
  width: 11px;
  height: 11px;
  color: rgba(244, 245, 246, 0.55);
}
.frame__mark::before,
.frame__mark::after { content: ""; position: absolute; background: currentColor; }
.frame__mark::before { left: 5px; top: 0; width: 1px; height: 100%; }
.frame__mark::after { top: 5px; left: 0; width: 100%; height: 1px; }
.frame__mark--tl { top: -6px; left: -6px; }
.frame__mark--tr { top: -6px; right: -6px; }
.frame__mark--bl { bottom: -6px; left: -6px; }
.frame__mark--br { bottom: -6px; right: -6px; }

/* --- header / nav ------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 36px);
  padding-block: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__brand:hover { color: var(--ink); }
.nav__rule { display: block; width: 24px; height: 2px; background: var(--accent); }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.nav__link {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav__link:hover { color: var(--accent-300); }

/* .nav__right is a no-op wrapper at desktop widths: display:contents removes
   it from the box tree so its children (call button, toggle) lay out exactly
   as if they were direct flex children of .nav, matching the original markup. */
.nav__right { display: contents; }
.nav__call-icon { display: none; }
.nav__toggle { display: none; }

/* --- hero ---------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(36px, 6vw, 80px);
  padding-bottom: var(--section-y);
}

.hero__title {
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero__lede {
  margin: clamp(20px, 2.5vw, 28px) 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.4vw, 18px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.5vw, 40px);
}

/* --- social links (hero) --------------------------------------- */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(18px, 2.4vw, 24px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 4px;
  color: var(--ink-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.18s ease;
}
.social-link:hover,
.social-link:focus-visible { color: var(--ink); }

.social-link__icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--divider);
  color: var(--ink-muted);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.social-link__icon { width: 16px; height: 16px; }

.social-link:hover .social-link__icon-box,
.social-link:focus-visible .social-link__icon-box {
  border-color: var(--accent-400);
  color: var(--accent-300);
  background: rgba(148, 188, 227, 0.08);
}
.social-link:active .social-link__icon-box {
  background: rgba(148, 188, 227, 0.14);
  transform: scale(0.94);
}

/* photograph bleeds off the right edge and fades into the ground */
.hero__figure {
  position: relative;
  margin: 0;
  justify-self: stretch;
  margin-right: calc(-1 * var(--gutter));
}
.hero__figure img {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 56vh, 620px);
  max-height: 680px;
  object-fit: cover;
  object-position: 50% 44%;
}
.hero__fade {
  position: absolute;
  pointer-events: none;
}
.hero__fade--left {
  top: 0; bottom: 0; left: 0; width: 55%;
  background: linear-gradient(to right, var(--bg) 0%, rgba(11,13,15,0.92) 18%, rgba(11,13,15,0.55) 48%, rgba(11,13,15,0) 100%);
}
.hero__fade--top {
  top: 0; left: 0; right: 0; height: 26%;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,13,15,0.55) 45%, rgba(11,13,15,0) 100%);
}
.hero__fade--bottom {
  bottom: 0; left: 0; right: 0; height: 22%;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11,13,15,0.6) 45%, rgba(11,13,15,0) 100%);
}

/* --- sections ------------------------------------------------ */

.section { border-top: 1px solid var(--divider); scroll-margin-top: var(--header-h); }
.section > .container { padding-block: var(--section-y); }

/* --- services (spec sheet) ----------------------------------- */

.services__layout { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 88px); }
.services__intro { flex: 1 1 260px; max-width: 360px; }
.services__intro p { margin: 20px 0 0; max-width: 34ch; }
.services__list { flex: 3 1 420px; min-width: 0; }

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding-block: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--divider);
}
.service:last-child { border-bottom: 1px solid var(--divider); }
.service__number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.service__title { font-size: clamp(23px, 2.8vw, 30px); line-height: 1.1; }
.service p { margin: 8px 0 0; max-width: 52ch; color: var(--ink-muted); }

/* --- work ---------------------------------------------------- */

.work__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}
.work__hint { margin: 0; max-width: 36ch; font-size: 15px; color: var(--ink-muted); }

.work__pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.project { margin: 0; }
.project__caption {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.project__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project__note { font-size: 14px; color: var(--ink-muted); }

.project--wide { margin-top: clamp(44px, 6vw, 90px); }
.project--wide img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 62%; }

/* --- before / after comparison ------------------------------- */

.compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}
.compare__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.compare__before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.compare__label {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  background: rgba(11, 13, 15, 0.78);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.compare__label--before { left: 14px; }
.compare__label--after { right: 14px; }

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-600);
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: ew-resize;
}

/* --- call to action ------------------------------------------ */

.cta { background: var(--accent-900); color: var(--ink); }
.cta > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 8vw, 110px);
}
.cta__copy { flex: 1 1 420px; min-width: 0; }
.cta__title { font-size: clamp(32px, 5vw, 60px); line-height: 1; text-wrap: balance; }
.cta__copy p { margin: 20px 0 0; max-width: 44ch; font-size: clamp(16px, 1.4vw, 18px); color: #c9d3dd; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta__email {
  color: #c9d3dd;
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(201, 211, 221, 0.45);
}
.cta__email:hover { color: #fff; }

/* --- contact -------------------------------------------------- */

.contact__layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 88px); }
.contact__details { flex: 1 1 300px; min-width: 0; }
.contact__details .section-title { margin-bottom: clamp(24px, 3vw, 36px); }

.detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--divider);
}
.detail:last-of-type { border-bottom: 1px solid var(--divider); }
.detail__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.detail__value { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink); word-break: break-word; }
.detail__value--phone {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.03em;
}
a.detail__value:hover { color: var(--accent-300); }

.contact-form {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: flex-start;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 0;
  caret-color: var(--accent-400);
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.field input:hover,
.field textarea:hover { border-color: rgba(244, 245, 246, 0.4); }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--accent-400); outline-offset: 0; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-faint); }

/* --- footer --------------------------------------------------- */

.site-footer { border-top: 1px solid var(--divider); }
.site-footer > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 44px);
}
.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3vw, 36px); font-size: 15px; }
.site-footer__contact a { color: var(--ink-muted); }
.site-footer__contact a:hover { color: var(--accent-300); }

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.18s ease;
}
.site-footer__social-icon {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.18s ease;
}
.site-footer__social:hover .site-footer__social-icon,
.site-footer__social:focus-visible .site-footer__social-icon { transform: scale(1.1); }
.site-footer__social:active .site-footer__social-icon { transform: scale(0.92); }

/* --- scroll reveal (progressive enhancement) ------------------ */

.js-reveal { opacity: 0; transform: translateY(14px); }
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==================================================================
   Mobile (≤768px)
   Everything below is additive and gated behind this media query, so
   it only takes effect on phone-width viewports. Nothing here alters
   a rule outside this block — desktop (>768px) renders exactly as
   the rules above it define, untouched.
   ================================================================== */
@media (max-width: 768px) {

  :root {
    --section-y: clamp(40px, 10vw, 64px);
    --gutter: clamp(20px, 6vw, 28px);
    --header-h: 60px;
  }

  /* --- header / nav: single row, hamburger menu ----------------- */
  .nav { position: relative; padding-block: 10px; gap: 12px; }
  .nav__brand { font-size: 17px; }

  .nav__right { display: flex; align-items: center; gap: 8px; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    padding-inline: var(--gutter);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.22s ease;
  }
  .nav.is-open .nav__links {
    max-height: 260px;
    opacity: 1;
    visibility: visible;
    padding-block: 6px 14px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  }
  .nav__links .nav__link {
    padding: 15px 2px;
    border-top: 1px solid var(--divider);
    font-size: 15px;
  }
  .nav__links .nav__link:first-child { border-top: none; }

  .nav__call { padding: 0; width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: none; }
  .nav__call-icon { display: block; }
  .nav__call-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--divider);
    color: var(--ink);
    cursor: pointer;
  }
  .nav__toggle-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
  }
  .nav__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  /* --- hero ------------------------------------------------------- */
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .hero__title { font-size: clamp(38px, 11vw, 50px); }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 22px; }
  .hero__actions .btn { width: 100%; }

  .social-links { margin-top: 18px; gap: 8px; }
  .social-link { gap: 10px; }
  .social-link__icon-box { width: 34px; height: 34px; }

  /* full-bleed edge-to-edge photo reads as intentional on a single
     stacked column, instead of the desktop's asymmetric right-bleed */
  .hero__figure {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
  .hero__figure img {
    min-height: min(46vh, 400px);
    max-height: 420px;
    object-position: 50% 38%;
  }
  /* the left fade existed to blend the photo into an adjacent text
     column; on a stacked mobile layout there's nothing beside it */
  .hero__fade--left { display: none; }

  /* --- services ----------------------------------------------------- */
  .service { padding-block: 18px; gap: 18px; }

  /* --- work / before-after ------------------------------------------- */
  .work__header { align-items: flex-start; gap: 14px; }
  .compare__handle { width: 56px; height: 56px; }
  .project--wide img { aspect-ratio: 4 / 3; object-position: 50% 55%; }

  /* --- cta band ---------------------------------------------------------- */
  .cta > .container { align-items: stretch; gap: 28px; }
  .cta__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .cta__actions .btn { width: 100%; }
  .cta__email { text-align: center; }

  /* --- contact ------------------------------------------------------------- */
  .detail { padding-block: 16px; }
  .contact-form .btn { align-self: stretch; width: 100%; }

  /* --- footer ---------------------------------------------------------------- */
  .site-footer > .container { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* --- motion: shorter, snappier reveal on phones ----------------------------- */
  .js-reveal { transform: translateY(10px); }
  .js-reveal.is-visible { transition: opacity 0.5s ease, transform 0.5s ease; }
}

@media (max-width: 400px) {
  .hero__title { font-size: clamp(34px, 12vw, 42px); }
}

@media (max-width: 360px) {
  .nav { gap: 8px; }
  .nav__brand { font-size: 15px; gap: 8px; }
  .nav__rule { display: none; }
  .nav__right { gap: 6px; }
}
