/* ==========================================================================
   Brite WorX Car Washery — design system
   Bright, clean, modern. White is the ground; colour arrives in small,
   deliberate moments. Plain CSS, no build step.
   Mobile-first: unprefixed rules are the small-screen case; media queries
   only ever scale UP.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand blue, sampled from the Brite WorX logo blob. */
  --bx-blue:        #2160A8;
  --bx-blue-deep:   #17497F;
  --bx-blue-light:  #3E87D6;
  --bx-blue-bright: #59A6F0;

  /* Sky — the site's real background family. These are what create the
     "bright day outside" feeling, not the blue above. */
  --bx-sky-50:  #F7FBFF;
  --bx-sky-100: #EEF6FF;
  --bx-sky-200: #DDEDFF;
  --bx-sky-300: #C4E0FC;

  /* Sun. Warm accents, used sparingly: the free-wash CTA, one active wash
     stage, the glow behind the hero. If lime shows up twice in a viewport,
     one of them is wrong. */
  --bx-lime:      #F4E04D;
  --bx-lime-deep: #E3CB29;
  --bx-sun-glow:  #FFF0A8;

  /* Neutrals — white ground, soft ink. No near-black anywhere. */
  --bx-white:       #FFFFFF;
  --bx-shell:       #FFFFFF;
  --bx-surface:     #FFFFFF;
  --bx-ink:         #16324F;
  --bx-ink-soft:    #4C6483;
  --bx-ink-faint:   #8298B3;
  --bx-line:        #E4EEF8;
  --bx-line-strong: #C9DCEF;

  /* Type */
  --bx-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --bx-font-body:    "Work Sans", system-ui, -apple-system, sans-serif;
  --bx-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid type. clamp() means no per-breakpoint font-size overrides. */
  --bx-fs-hero:  clamp(2.75rem, 7.5vw, 5.25rem);
  --bx-fs-h1:    clamp(2.25rem, 5.5vw, 3.75rem);
  --bx-fs-h2:    clamp(1.875rem, 4vw, 2.875rem);
  --bx-fs-h3:    clamp(1.3125rem, 2.5vw, 1.625rem);
  --bx-fs-lead:  clamp(1.0625rem, 1.8vw, 1.3125rem);
  --bx-fs-body:  1.0625rem;
  --bx-fs-small: 0.9375rem;
  --bx-fs-micro: 0.75rem;

  /* Spacing — 4px base */
  --bx-s1: 0.25rem;  --bx-s2: 0.5rem;   --bx-s3: 0.75rem;  --bx-s4: 1rem;
  --bx-s5: 1.5rem;   --bx-s6: 2rem;     --bx-s7: 3rem;     --bx-s8: 4rem;
  --bx-s9: 6rem;

  /* Generous section rhythm — the whitespace is the design. */
  --bx-section-y: clamp(4rem, 10vw, 8.5rem);

  --bx-radius:      18px;
  --bx-radius-sm:   10px;
  --bx-radius-lg:   32px;
  --bx-radius-pill: 999px;

  /* Shadows are blue-tinted and soft — daylight, not a dark room. */
  --bx-shadow-sm: 0 1px 2px rgba(33, 96, 168, .04), 0 4px 14px rgba(33, 96, 168, .06);
  --bx-shadow:    0 2px 8px rgba(33, 96, 168, .05), 0 16px 40px rgba(33, 96, 168, .09);
  --bx-shadow-lg: 0 4px 16px rgba(33, 96, 168, .06), 0 32px 80px rgba(33, 96, 168, .13);

  --bx-maxw:       1220px;
  --bx-maxw-prose: 68ch;
  --bx-header-h:   76px;

  --bx-ease:       cubic-bezier(.22, .61, .36, 1);
  --bx-ease-out:   cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bx-header-h) + var(--bx-s5));
}

body {
  margin: 0;
  background: var(--bx-white);
  color: var(--bx-ink);
  font-family: var(--bx-font-body);
  font-size: var(--bx-fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Decorative glows are clipped by their own section (.bx-hero and
   .bx-band--sky both set overflow:hidden). Do NOT put overflow-x:hidden on
   body — it makes body a scroll container, which breaks IntersectionObserver's
   root and leaves scroll-revealed sections stuck invisible. */

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--bx-font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 var(--bx-s4);
  color: var(--bx-ink);
  text-wrap: balance;
}
h1 { font-size: var(--bx-fs-h1); }
h2 { font-size: var(--bx-fs-h2); }
h3 { font-size: var(--bx-fs-h3); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 var(--bx-s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--bx-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bx-blue-deep); }

/* One visible focus ring, everywhere, never removed. The whole site is light
   now, so a single blue ring works on every surface. */
:focus-visible {
  outline: 3px solid var(--bx-blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.bx-skip-link {
  position: absolute; left: var(--bx-s4); top: -100px; z-index: 200;
  background: var(--bx-lime); color: var(--bx-ink);
  padding: var(--bx-s3) var(--bx-s5);
  border-radius: var(--bx-radius-pill);
  font-weight: 600; text-decoration: none;
}
.bx-skip-link:focus { top: var(--bx-s3); }

.bx-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;
}

/* --------------------------------------------------------------------------
   3. Motion
   Every animation is opt-in via a class, and every one of them is switched
   off wholesale below for anyone who asks for reduced motion.
   -------------------------------------------------------------------------- */
@keyframes bx-rise   { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bx-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes bx-drift  {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6px, -22px, 0) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes bx-breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .8;  transform: scale(1.07); }
}
@keyframes bx-sheen {
  from { background-position: -220% 0; }
  to   { background-position: 220% 0; }
}

/* Scroll reveal. nav.js tags sections with .bx-reveal, then flips
   data-shown="true" as they enter the viewport. Without JS the content is
   simply visible — the base state is never hidden by CSS alone. */
.bx-js .bx-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s var(--bx-ease-out), transform .75s var(--bx-ease-out);
}
.bx-js .bx-reveal[data-shown="true"] { opacity: 1; transform: none; }
/* Children stagger in after their section. */
.bx-js .bx-reveal[data-shown="true"] .bx-stagger > * {
  animation: bx-rise .7s var(--bx-ease-out) both;
  animation-delay: calc(var(--bx-i, 0) * 70ms);
}

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

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.bx-wrap {
  width: 100%;
  max-width: var(--bx-maxw);
  margin-inline: auto;
  padding-inline: var(--bx-s5);
}
@media (min-width: 768px) { .bx-wrap { padding-inline: var(--bx-s7); } }

.bx-section { padding-block: var(--bx-section-y); position: relative; }
.bx-section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* Bands. Only three, and all of them are light. */
.bx-band--shell   { background: var(--bx-white); }
.bx-band--surface { background: var(--bx-white); }
.bx-band--alt     { background: linear-gradient(180deg, var(--bx-sky-50), var(--bx-sky-100)); }
.bx-band--sky     {
  background: linear-gradient(135deg, var(--bx-sky-100) 0%, var(--bx-sky-200) 55%, var(--bx-sky-300) 100%);
  position: relative; overflow: hidden;
}
/* A warm shaft of light across the sky band — the "beautiful day" moment. */
.bx-band--sky::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle, var(--bx-sun-glow) 0%, rgba(255,240,168,0) 68%);
  opacity: .55; pointer-events: none;
}
.bx-band--sky > * { position: relative; }

.bx-grid { display: grid; gap: var(--bx-s5); }
@media (min-width: 640px)  { .bx-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .bx-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bx-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .bx-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bx-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.bx-prose { max-width: var(--bx-maxw-prose); }
.bx-prose h2 { margin-top: var(--bx-s8); }
.bx-prose h3 { margin-top: var(--bx-s6); }
.bx-prose h2:first-child, .bx-prose h3:first-child { margin-top: 0; }
.bx-prose ul, .bx-prose ol { margin: 0 0 var(--bx-s4); padding-left: var(--bx-s5); }
.bx-prose li { margin-bottom: var(--bx-s2); }

/* --------------------------------------------------------------------------
   5. Section heading
   -------------------------------------------------------------------------- */
.bx-eyebrow {
  font-family: var(--bx-font-mono);
  font-size: var(--bx-fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bx-blue);
  margin: 0 0 var(--bx-s4);
  display: flex; align-items: center; gap: var(--bx-s3);
}
.bx-eyebrow::before {
  content: ""; width: 26px; height: 3px; flex: none;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bx-blue-bright), var(--bx-lime));
}

.bx-section-head { margin-bottom: var(--bx-s8); max-width: 60ch; }
.bx-section-head p { color: var(--bx-ink-soft); font-size: var(--bx-fs-lead); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.bx-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--bx-s2);
  font-family: var(--bx-font-display);
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: var(--bx-s4) var(--bx-s6);
  min-height: 50px;                       /* comfortable tap target */
  border: 2px solid transparent;
  border-radius: var(--bx-radius-pill);
  text-decoration: none; cursor: pointer;
  overflow: hidden;
  transition: transform .22s var(--bx-ease), box-shadow .22s var(--bx-ease),
              background-color .22s var(--bx-ease), color .22s var(--bx-ease),
              border-color .22s var(--bx-ease);
}
.bx-btn:hover { transform: translateY(-3px); }
.bx-btn:active { transform: translateY(-1px); }

/* A light sweeps across the button on hover. */
.bx-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 220% 100%;
  opacity: 0; pointer-events: none;
}
.bx-btn:hover::after { opacity: 1; animation: bx-sheen .8s var(--bx-ease) 1; }

.bx-btn--primary {
  background: var(--bx-blue); color: #fff;
  box-shadow: 0 6px 18px rgba(33, 96, 168, .28);
}
.bx-btn--primary:hover { background: var(--bx-blue-deep); color: #fff; box-shadow: 0 12px 30px rgba(33, 96, 168, .34); }

/* The one warm element. Reserved for "Get Your Free Wash". */
.bx-btn--free {
  background: var(--bx-lime); color: var(--bx-ink);
  box-shadow: 0 6px 18px rgba(227, 203, 41, .40);
}
.bx-btn--free:hover { background: var(--bx-lime-deep); color: var(--bx-ink); box-shadow: 0 12px 30px rgba(227, 203, 41, .48); }

.bx-btn--outline { background: var(--bx-white); color: var(--bx-blue); border-color: var(--bx-line-strong); }
.bx-btn--outline:hover { background: var(--bx-sky-50); border-color: var(--bx-blue-light); color: var(--bx-blue-deep); }

/* Kept for callers that ask for a quiet secondary on a light band. */
.bx-btn--ghost-light { background: rgba(255,255,255,.7); color: var(--bx-blue); border-color: var(--bx-line-strong); }
.bx-btn--ghost-light:hover { background: #fff; border-color: var(--bx-blue-light); color: var(--bx-blue-deep); }

.bx-btn--sm { padding: var(--bx-s3) var(--bx-s5); min-height: 42px; font-size: var(--bx-fs-small); }
.bx-btn--block { width: 100%; }

.bx-btn-row { display: flex; flex-wrap: wrap; gap: var(--bx-s4); }

/* --------------------------------------------------------------------------
   7. Header — nav left, centred wordmark, actions right.
   Two states: transparent over a photo hero, or solid white everywhere else.
   -------------------------------------------------------------------------- */
.bx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bx-line);
  box-shadow: 0 4px 24px rgba(33, 96, 168, .07);
  transition: background-color .35s var(--bx-ease), box-shadow .35s var(--bx-ease),
              border-color .35s var(--bx-ease), backdrop-filter .35s var(--bx-ease);
}

/* Overlay mode: the header floats on the hero photo. It occupies no layout
   space so the image runs to the very top of the page. */
.bx-header--overlay {
  position: absolute; top: 0; left: 0; right: 0;
  padding-block: var(--bx-s3);
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* nav.js flips data-scrolled once you leave the top of the page, at which
   point the overlay header re-solidifies and sticks. */
.bx-header--overlay[data-scrolled="true"] {
  position: fixed;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--bx-line);
  box-shadow: 0 4px 24px rgba(33, 96, 168, .07);
  animation: bx-header-drop .35s var(--bx-ease-out) both;
}
@keyframes bx-header-drop { from { transform: translateY(-100%); } to { transform: none; } }

/* Three columns keep the wordmark optically centred no matter how wide the
   nav or the CTA get. */
/* Equal 1fr flanks are what actually centre the wordmark — the nav splits
   across them because six items will not fit beside a centred mark. */
.bx-header .bx-wrap { max-width: 1560px; }
.bx-header__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--bx-s4);
  min-height: var(--bx-header-h);
}
@media (min-width: 1280px) {
  .bx-header__bar { grid-template-columns: 1fr minmax(max-content, auto) 1fr; }
}

.bx-header__logo { grid-column: 1; justify-self: start; display: flex; align-items: center; flex: none; }
@media (min-width: 1280px) { .bx-header__logo { grid-column: 2; justify-self: center; } }

.bx-logo { height: 44px; width: auto; flex: none; }
@media (min-width: 1280px) { .bx-logo { height: 58px; } }

.bx-header__nav { display: none; }
.bx-header__end { display: contents; }
.bx-header__actions { display: none; }
@media (min-width: 1280px) {
  .bx-header__nav--left { grid-column: 1; justify-self: start; }
  .bx-header__end {
    grid-column: 3; justify-self: end;
    display: flex; align-items: center; gap: var(--bx-s5);
  }
  .bx-header__actions .bx-btn--sm { padding-inline: var(--bx-s5); }
}
/* The CTA label is four words; it must never wrap to two lines. */
.bx-header__actions .bx-btn { white-space: nowrap; }

.bx-nav-list { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.bx-nav-link {
  position: relative;
  color: var(--bx-ink-soft); text-decoration: none;
  font-family: var(--bx-font-display);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: var(--bx-s2) 0;
  white-space: nowrap;
  transition: color .2s var(--bx-ease);
}
/* Underline sweeps out from the centre rather than snapping on. */
.bx-nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--bx-blue-bright), var(--bx-lime));
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--bx-ease-out);
}
.bx-nav-link:hover { color: var(--bx-blue-deep); }
.bx-nav-link:hover::after { transform: scaleX(1); }
.bx-nav-link[aria-current="page"] { color: var(--bx-blue-deep); }
.bx-nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* White type while the header floats on the photo. */
.bx-header--overlay[data-scrolled="false"] .bx-nav-link { color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(12, 34, 58, .45); }
.bx-header--overlay[data-scrolled="false"] .bx-nav-link:hover,
.bx-header--overlay[data-scrolled="false"] .bx-nav-link[aria-current="page"] { color: #fff; }
.bx-header--overlay[data-scrolled="false"] .bx-nav-link::after { background: var(--bx-lime); }
.bx-header--overlay[data-scrolled="false"] :focus-visible { outline-color: var(--bx-lime); }
.bx-header--overlay[data-scrolled="false"] .bx-nav-toggle {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.bx-header--overlay[data-scrolled="false"] .bx-nav-toggle__bars span { background: #fff; }

.bx-nav-toggle {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: var(--bx-s2);
  background: var(--bx-white); border: 2px solid var(--bx-line-strong);
  color: var(--bx-blue-deep); border-radius: var(--bx-radius-pill);
  padding: var(--bx-s2) var(--bx-s4); min-height: 44px;
  font-family: var(--bx-font-display); font-weight: 600; font-size: var(--bx-fs-small);
  cursor: pointer;
  transition: background-color .3s var(--bx-ease), border-color .3s var(--bx-ease), color .3s var(--bx-ease);
}
.bx-nav-toggle__bars { display: grid; gap: 3px; }
.bx-nav-toggle__bars span {
  display: block; width: 18px; height: 2px; background: var(--bx-blue); border-radius: 2px;
  transition: transform .3s var(--bx-ease), opacity .2s var(--bx-ease), background-color .3s var(--bx-ease);
}
.bx-nav-toggle[aria-expanded="true"] .bx-nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.bx-nav-toggle[aria-expanded="true"] .bx-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.bx-nav-toggle[aria-expanded="true"] .bx-nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.bx-mobile-nav {
  display: none;
  grid-column: 1 / -1;
  background: var(--bx-white);
  border-top: 1px solid var(--bx-line);
  padding-block: var(--bx-s4) var(--bx-s6);
}
.bx-mobile-nav[data-open="true"] { display: block; animation: bx-fade .25s var(--bx-ease) both; }
.bx-mobile-nav ul { list-style: none; margin: 0 0 var(--bx-s5); padding: 0; }
.bx-mobile-nav li + li { border-top: 1px solid var(--bx-line); }
.bx-mobile-nav a {
  display: block; padding: var(--bx-s4) 0;
  color: var(--bx-ink); text-decoration: none;
  font-family: var(--bx-font-display); font-weight: 500;
}
.bx-mobile-nav a:hover { color: var(--bx-blue); }
/* The open panel is solid white, so it never inherits the overlay's white type. */
.bx-header--overlay .bx-mobile-nav { box-shadow: 0 12px 32px rgba(33, 96, 168, .12); }

/* Six nav items plus a centred wordmark plus a CTA need real room — hold the
   mobile menu until 1280px rather than the usual 1024px. */
@media (min-width: 1280px) {
  .bx-nav-toggle, .bx-mobile-nav { display: none !important; }
  .bx-header__nav { display: block; }
  .bx-header__actions { display: flex; align-items: center; gap: var(--bx-s3); }
}

/* --------------------------------------------------------------------------
   8. Hero — bright, open, two columns on desktop
   -------------------------------------------------------------------------- */
.bx-hero {
  position: relative;
  background: linear-gradient(170deg, var(--bx-sky-100) 0%, var(--bx-white) 62%);
  overflow: hidden;
}

/* ---- Full-bleed photo hero -------------------------------------------------
   The image runs edge to edge behind an overlaid header. Copy sits on the left
   over a blue-tinted scrim: the photograph measures 118-142 luminance across
   that area, which leaves white type at only ~3.6:1 on its own. The scrim is
   deliberately one-sided so the sunny right of the frame stays bright. */
.bx-hero--photo {
  background: var(--bx-blue-deep);
  min-height: min(88vh, 840px);
  display: flex; align-items: center;
}
.bx-hero__photo { position: absolute; inset: 0; }
.bx-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.bx-hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(115% 78% at 10% 52%,
      rgba(9, 34, 60, .90) 0%,
      rgba(9, 34, 60, .80) 26%,
      rgba(9, 34, 60, .52) 46%,
      rgba(9, 34, 60, .18) 64%,
      rgba(9, 34, 60, 0) 78%),
    linear-gradient(180deg,
      rgba(9, 34, 60, .68) 0%,
      rgba(9, 34, 60, .54) 9%,
      rgba(9, 34, 60, .22) 19%,
      rgba(9, 34, 60, 0) 31%);
}
.bx-hero--photo .bx-hero__inner {
  width: 100%;
  padding-block: calc(var(--bx-header-h) + var(--bx-s7)) clamp(3rem, 8vw, 5rem);
  display: block;
}
.bx-hero--photo .bx-hero__copy { max-width: 34rem; }
.bx-hero--photo h1 { color: #fff; }
.bx-hero--photo .bx-hero__lead { color: rgba(255,255,255,.93); }
.bx-hero--photo .bx-eyebrow { color: #fff; }
.bx-hero--photo .bx-eyebrow::before { background: var(--bx-lime); }
.bx-hero--photo :focus-visible { outline-color: var(--bx-lime); }
.bx-hero--photo .bx-btn--ghost-light {
  background: rgba(255,255,255,.94); color: var(--bx-blue-deep); border-color: transparent;
}
.bx-hero--photo .bx-btn--ghost-light:hover { background: #fff; color: var(--bx-blue-deep); }

/* On narrow screens the frame is cropped hard, so the scrim goes top-to-bottom
   instead of left-to-right — a side gradient leaves nothing legible at 390px. */
@media (max-width: 767px) {
  .bx-hero--photo { min-height: min(86vh, 680px); }
  .bx-hero__photo img { object-position: 58% 50%; }
  .bx-hero__scrim {
    background: linear-gradient(180deg,
      rgba(9, 34, 60, .74) 0%,
      rgba(9, 34, 60, .62) 26%,
      rgba(9, 34, 60, .70) 58%,
      rgba(9, 34, 60, .86) 100%);
  }
}

/* ---- Trust strip ----------------------------------------------------------
   Thin band directly under the hero. build.py renders nothing at all unless
   real review copy exists, so this never ships as an empty badge. */
.bx-trustbar {
  background: var(--bx-white);
  border-bottom: 1px solid var(--bx-line);
  padding-block: var(--bx-s4);
}
.bx-trustbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--bx-s2) var(--bx-s4);
  font-size: var(--bx-fs-small); color: var(--bx-ink-soft);
  text-align: center;
}
.bx-trustbar__rating { font-family: var(--bx-font-display); font-weight: 700; color: var(--bx-ink); }
.bx-trustbar__detail { font-family: var(--bx-font-mono); font-size: var(--bx-fs-micro); font-variant-numeric: tabular-nums; }
.bx-trustbar__source { font-weight: 600; color: var(--bx-blue); }

/* Sun low on the horizon, just off the right edge. */
.bx-hero__glow {
  position: absolute; top: -22rem; right: -14rem;
  width: 54rem; height: 54rem; border-radius: 50%;
  background: radial-gradient(circle,
    var(--bx-sun-glow) 0%,
    rgba(255, 240, 168, .45) 34%,
    rgba(196, 224, 252, .30) 58%,
    rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
  animation: bx-breathe 11s ease-in-out infinite;
}
/* Soap bubbles drifting up. Decorative only. */
.bx-hero__bubbles { position: absolute; inset: 0; pointer-events: none; }
.bx-hero__bubbles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.85), rgba(196, 224, 252, .18) 60%, rgba(196,224,252,0) 78%);
  border: 1px solid rgba(255, 255, 255, .6);
  opacity: .7;
  animation: bx-drift linear infinite;
}
/* Bubbles stay clear of the copy column so they never drift behind a headline
   or a CTA. They live in the right-hand air and along the very bottom edge. */
.bx-hero__bubbles span:nth-child(1) { width: 96px;  height: 96px;  right: 8%;  bottom: 14%; animation-duration: 15s; }
.bx-hero__bubbles span:nth-child(2) { width: 38px;  height: 38px;  right: 26%; bottom: 52%; animation-duration:  9s; animation-delay: -3s; }
.bx-hero__bubbles span:nth-child(3) { width: 140px; height: 140px; right: 34%; bottom: -6%; animation-duration: 18s; animation-delay: -6s; }
.bx-hero__bubbles span:nth-child(4) { width: 24px;  height: 24px;  right: 16%; top: 20%;    animation-duration: 11s; animation-delay: -2s; }
.bx-hero__bubbles span:nth-child(5) { width: 56px;  height: 56px;  right: 48%; bottom: -3%; animation-duration: 14s; animation-delay: -8s; }

.bx-hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  display: grid; gap: var(--bx-s7);
  align-items: center;
}
@media (min-width: 940px) {
  .bx-hero--split .bx-hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--bx-s8); }
}
.bx-hero__copy { max-width: 40rem; }
.bx-hero h1 { font-size: var(--bx-fs-hero); }
.bx-hero__lead {
  font-size: var(--bx-fs-lead);
  color: var(--bx-ink-soft);
  max-width: 44ch;
  margin-bottom: var(--bx-s7);
}
.bx-hero--compact .bx-hero__inner { padding-block: clamp(2.75rem, 6.5vw, 4.5rem); }

.bx-hero__media {
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  box-shadow: var(--bx-shadow-lg);
  background: var(--bx-white);
}
.bx-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.bx-hero__media .bx-imgslot { border-radius: var(--bx-radius-lg); }

/* Entrance: the hero animates itself on load rather than waiting to scroll. */
.bx-js .bx-hero__copy > * { animation: bx-rise .85s var(--bx-ease-out) both; }
.bx-js .bx-hero__copy > *:nth-child(1) { animation-delay: .05s; }
.bx-js .bx-hero__copy > *:nth-child(2) { animation-delay: .15s; }
.bx-js .bx-hero__copy > *:nth-child(3) { animation-delay: .25s; }
.bx-js .bx-hero__copy > *:nth-child(4) { animation-delay: .35s; }
.bx-js .bx-hero__media { animation: bx-rise 1s var(--bx-ease-out) .3s both; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.bx-card {
  background: var(--bx-white);
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-radius);
  box-shadow: var(--bx-shadow-sm);
  padding: var(--bx-s6);
  display: flex; flex-direction: column;
  transition: transform .3s var(--bx-ease-out), box-shadow .3s var(--bx-ease-out),
              border-color .3s var(--bx-ease-out);
}
.bx-card:hover { transform: translateY(-6px); box-shadow: var(--bx-shadow); border-color: var(--bx-sky-300); }
.bx-card h3 { margin-bottom: var(--bx-s3); }
.bx-card__body { color: var(--bx-ink-soft); flex: 1; }
.bx-card__foot { margin-top: var(--bx-s6); }

/* Location card */
.bx-loc-card { padding: 0; overflow: hidden; }
.bx-loc-card__media { aspect-ratio: 16 / 10; background: var(--bx-sky-100); overflow: hidden; }
.bx-loc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bx-ease-out); }
.bx-loc-card:hover .bx-loc-card__media img { transform: scale(1.05); }
.bx-loc-card__inner { padding: var(--bx-s6); display: flex; flex-direction: column; flex: 1; }
.bx-loc-card__state {
  font-family: var(--bx-font-mono); font-size: var(--bx-fs-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--bx-blue);
  margin-bottom: var(--bx-s2);
}
.bx-loc-card__addr, .bx-loc-card__hours { color: var(--bx-ink-soft); font-size: var(--bx-fs-small); margin: 0 0 var(--bx-s2); }
.bx-loc-card__phone { font-family: var(--bx-font-mono); font-size: var(--bx-fs-small); }
.bx-loc-card__foot { margin-top: auto; padding-top: var(--bx-s6); }

/* Pricing card. Numbers are mono — that rule holds across the whole site. */
.bx-price-card { position: relative; }
.bx-price-card--featured {
  border-color: var(--bx-blue-bright);
  box-shadow: var(--bx-shadow);
}
.bx-price-card__flag {
  position: absolute; top: calc(-1 * var(--bx-s3)); left: var(--bx-s6);
  background: var(--bx-lime); color: var(--bx-ink);
  font-family: var(--bx-font-mono); font-size: var(--bx-fs-micro);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: var(--bx-s1) var(--bx-s4); border-radius: var(--bx-radius-pill);
  box-shadow: 0 4px 12px rgba(227, 203, 41, .4);
}
.bx-price-card__price {
  font-family: var(--bx-font-mono);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700; line-height: 1;
  color: var(--bx-blue);
  margin: var(--bx-s4) 0 var(--bx-s1);
  font-variant-numeric: tabular-nums;
}
.bx-price-card__term {
  font-family: var(--bx-font-mono); font-size: var(--bx-fs-small);
  color: var(--bx-ink-faint); margin-bottom: var(--bx-s6);
}
.bx-feature-list { list-style: none; margin: 0 0 var(--bx-s6); padding: 0; }
.bx-feature-list li {
  position: relative; padding-left: var(--bx-s6); margin-bottom: var(--bx-s3);
  color: var(--bx-ink-soft); font-size: var(--bx-fs-small);
}
.bx-feature-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bx-sky-100);
  border: 2px solid var(--bx-blue-bright);
}

/* --------------------------------------------------------------------------
   10. Wash-cycle motif — the signature element
   A progress bar of wash stages that fills as it scrolls into view. Home page
   and wash menu only; it stops meaning anything if it runs on every page.
   -------------------------------------------------------------------------- */
.bx-cycle { --bx-cycle-fill: 100%; padding-block: var(--bx-s7); }
.bx-cycle__track {
  position: relative; height: 10px;
  border-radius: var(--bx-radius-pill);
  background: var(--bx-sky-100);
  border: 1px solid var(--bx-line);
  overflow: hidden;
}
.bx-cycle__fill {
  position: absolute; inset: 0 auto 0 0;
  width: var(--bx-cycle-fill);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bx-blue-bright), var(--bx-blue-light) 45%, var(--bx-lime));
}
/* JS sets data-animate, then flips data-run to sweep the bar out from zero. */
.bx-js .bx-cycle[data-animate="true"] .bx-cycle__fill { width: 0; transition: width 1.5s var(--bx-ease-out); }
.bx-js .bx-cycle[data-run="true"] .bx-cycle__fill { width: var(--bx-cycle-fill); }

.bx-cycle__stages {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: var(--bx-s2); margin-top: var(--bx-s4);
}
.bx-cycle__stage {
  font-family: var(--bx-font-mono);
  font-size: var(--bx-fs-micro);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bx-ink-faint);
  text-align: center; position: relative; padding-top: var(--bx-s4);
}
.bx-cycle__stage::before {
  content: ""; position: absolute; top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bx-line-strong);
  border: 2px solid var(--bx-white);
}
.bx-cycle__stage[data-active="true"] { color: var(--bx-blue-deep); font-weight: 700; }
.bx-cycle__stage[data-active="true"]::before {
  background: var(--bx-lime);
  box-shadow: 0 0 0 4px rgba(244, 224, 77, .35);
}

/* Below 560px the five labels collide — keep the track plus the first, last,
   and active labels so the motif still reads. */
@media (max-width: 559px) {
  .bx-cycle__stages { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; }
  .bx-cycle__stage { text-align: left; padding-top: var(--bx-s2); }
  .bx-cycle__stage::before { display: none; }
  .bx-cycle__stage:not([data-active="true"]):not(:first-child):not(:last-child) { display: none; }
  .bx-cycle__stage:last-child { text-align: right; }
}

/* --------------------------------------------------------------------------
   11. Image + copy placeholders
   -------------------------------------------------------------------------- */
.bx-imgslot {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: var(--bx-imgslot-ratio, 4 / 3);
  background:
    repeating-linear-gradient(45deg,
      var(--bx-sky-50) 0 14px, var(--bx-sky-100) 14px 28px);
  border: 1px dashed var(--bx-line-strong);
  border-radius: var(--bx-radius-sm);
  color: var(--bx-ink-faint);
  font-family: var(--bx-font-mono);
  font-size: var(--bx-fs-micro);
  letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: var(--bx-s5);
}

/* Copy still awaiting the live text. Deliberately loud. */
.bx-todo {
  display: block;
  background: #FFFBEB;
  border: 1px solid #F5E6A8;
  border-left: 4px solid var(--bx-lime-deep);
  color: #7A6608;
  font-family: var(--bx-font-mono);
  font-size: var(--bx-fs-small);
  line-height: 1.55;
  padding: var(--bx-s4) var(--bx-s5);
  border-radius: 0 var(--bx-radius-sm) var(--bx-radius-sm) 0;
  margin-bottom: var(--bx-s4);
}

/* --------------------------------------------------------------------------
   12. Detail blocks
   -------------------------------------------------------------------------- */
.bx-detail-list { display: grid; gap: var(--bx-s5); margin: 0; }
@media (min-width: 640px) { .bx-detail-list { grid-template-columns: repeat(2, 1fr); } }
.bx-detail-list dt {
  font-family: var(--bx-font-mono); font-size: var(--bx-fs-micro);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bx-ink-faint); margin-bottom: var(--bx-s2);
}
.bx-detail-list dd { margin: 0; font-size: var(--bx-fs-body); }
.bx-detail-list dd a { font-family: var(--bx-font-mono); }

.bx-hours { width: 100%; border-collapse: collapse; font-size: var(--bx-fs-small); }
.bx-hours th, .bx-hours td { text-align: left; padding: var(--bx-s3) 0; border-bottom: 1px solid var(--bx-line); }
.bx-hours th { font-weight: 500; color: var(--bx-ink-soft); }
.bx-hours td { font-family: var(--bx-font-mono); font-variant-numeric: tabular-nums; text-align: right; }

.bx-map {
  border: 0; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--bx-radius-lg);
  box-shadow: var(--bx-shadow);
}

.bx-app-badges { display: flex; flex-wrap: wrap; gap: var(--bx-s4); align-items: center; }
.bx-app-badges img { height: 46px; width: auto; }

/* --------------------------------------------------------------------------
   13. Embeds and forms
   -------------------------------------------------------------------------- */
.bx-embed {
  background: var(--bx-white);
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-radius-lg);
  padding: var(--bx-s6);
  box-shadow: var(--bx-shadow);
}
.bx-embed__label {
  font-family: var(--bx-font-mono); font-size: var(--bx-fs-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--bx-ink-faint);
  margin-bottom: var(--bx-s5);
}
.bx-embed iframe { width: 100%; border: 0; min-height: 620px; border-radius: var(--bx-radius-sm); }

label { font-family: var(--bx-font-display); font-weight: 500; font-size: var(--bx-fs-small); }
input, textarea, select {
  width: 100%;
  font-family: var(--bx-font-body); font-size: var(--bx-fs-body);
  color: var(--bx-ink);
  background: var(--bx-white);
  border: 1px solid var(--bx-line-strong);
  border-radius: var(--bx-radius-sm);
  padding: var(--bx-s3) var(--bx-s4);
  margin-top: var(--bx-s2);
  transition: border-color .2s var(--bx-ease), box-shadow .2s var(--bx-ease);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--bx-blue-light);
  box-shadow: 0 0 0 4px rgba(89, 166, 240, .18);
}

details.bx-card summary { cursor: pointer; font-family: var(--bx-font-display); }

/* --------------------------------------------------------------------------
   14. Footer — light, not a dark slab
   -------------------------------------------------------------------------- */
.bx-footer {
  background: linear-gradient(180deg, var(--bx-white) 0%, var(--bx-sky-100) 100%);
  border-top: 1px solid var(--bx-line);
  color: var(--bx-ink-soft);
  padding-block: var(--bx-s9) var(--bx-s6);
  font-size: var(--bx-fs-small);
}
.bx-footer__grid { display: grid; gap: var(--bx-s7); }
@media (min-width: 720px)  { .bx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .bx-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.bx-footer h2 {
  font-size: var(--bx-fs-micro); font-family: var(--bx-font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bx-blue); margin-bottom: var(--bx-s5);
}
.bx-footer ul { list-style: none; margin: 0; padding: 0; }
.bx-footer li { margin-bottom: var(--bx-s3); }
.bx-footer a { color: var(--bx-ink-soft); text-decoration: none; transition: color .2s var(--bx-ease); }
.bx-footer a:hover { color: var(--bx-blue); text-decoration: underline; }
.bx-footer__logo img { height: 72px; width: auto; margin-bottom: var(--bx-s5); }
.bx-footer__social { display: flex; gap: var(--bx-s3); margin-top: var(--bx-s5); }
.bx-footer__social a, .bx-footer__social span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bx-white);
  border: 1px solid var(--bx-line-strong);
  color: var(--bx-blue);
  transition: transform .25s var(--bx-ease), border-color .25s var(--bx-ease),
              box-shadow .25s var(--bx-ease);
}
.bx-footer__social a:hover {
  transform: translateY(-3px);
  border-color: var(--bx-blue-light);
  box-shadow: var(--bx-shadow-sm);
}
.bx-footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.bx-footer__legal {
  margin-top: var(--bx-s8); padding-top: var(--bx-s5);
  border-top: 1px solid var(--bx-line);
  display: flex; flex-wrap: wrap; gap: var(--bx-s4);
  justify-content: space-between; align-items: center;
  font-size: var(--bx-fs-micro); color: var(--bx-ink-faint);
}
.bx-footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */
.bx-mono { font-family: var(--bx-font-mono); font-variant-numeric: tabular-nums; }
.bx-lead { font-size: var(--bx-fs-lead); color: var(--bx-ink-soft); }
.bx-center { text-align: center; margin-inline: auto; }
.bx-mt-0 { margin-top: 0; }
.bx-mb-0 { margin-bottom: 0; }

@media print {
  .bx-header, .bx-footer, .bx-cycle, .bx-btn,
  .bx-hero__glow, .bx-hero__bubbles { display: none !important; }
  body { background: #fff; }
}
