/* ==========================================================================
   BLENDED, THE CONTROL'S LOOK (built as a preview 4 Dec 2026, made the
   control the same day; Robin: "blended is good to go imo, A"). Every
   visitor the site_design test gives the control, and every crawler, gets
   data-brand-skin="blended" (SiteDesign::SKIN_FOR). docs/BLENDED_PREVIEW.md.

   Robin: "I personally don't doubt the hero on lacquer is better, but Barry
   doesn't like the serif font or the logo; I prefer the squiggly logo as
   well." "Booking form might be better just going with current control,
   light." "Use the cream control version in general for most sections,
   other than maybe 1 or 2 dark sections outside of the hero, like paint and
   protection." "Footer I'd probably stick with light."

   So this is the control, painted in four places and no more:
     1. the script mark (the old logo.png) in the header, the booking bar
        and the footer (the bundle and gwmc/_header pick the file);
     2. no serif anywhere: every --font-display heading in Poppins 600,
        the bundle's own face;
     3. the home page's fold in Lacquer's treatment: dark, the photograph
        full bleed, the words on it;
     4. one dark band, paint and protection.
   Everything else, the booking form and the pay step included, is the
   control's. PAINT ONLY: nothing here hides, adds or moves a thing a
   visitor can act on; the routes, the boxes and the events are the
   control's (spec/requests/site_design_symmetry_spec.rb).
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
html[data-brand-skin="blended"] {
  /* Ink-tinted, so the dark relates to the control's navy buttons. */
  --bl-dark: #12141b;
  --bl-dark-2: #1b1e27;
  --bl-cream: #f1ede4;
  --bl-cream-hover: #ffffff;
  --bl-brass: #c4a466;
  --bl-on-dark: #ffffff;
  --bl-on-dark-dim: #d6d3cc;
  --bl-rule-dark: rgba(255, 255, 255, 0.16);

  /* Poppins, the bundle's own sans, at its heaviest face. */
  --bl-sans: Poppins, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--bl-sans);
  --bl-head-weight: 600;
  --bl-head-track: -0.02em;
  /* A bold sans fills more of the line than the serif it replaces, so the
     two biggest steps come down a little; everything else is the control's. */
  --fs-h1: 34px;
  --lh-h1: 40px;
  --fs-h2: 27px;
  --lh-h2: 34px;
}

@media (min-width: 960px) {
  html[data-brand-skin="blended"] {
    --fs-h1: 54px;
    --lh-h1: 60px;
    --fs-h2: 36px;
    --lh-h2: 44px;
  }
}

/* ---- 2. The headings: every rule that set --font-display at 400 --------- */
html[data-brand-skin="blended"] :is(
  .hero-h1, .hh-headline, .gwmc-h2, .wash-h1, .legal-h1, .legal-h2,
  .faq-intro-h1, .svc-intro-h1, .wah-barry-name, .wah-step-n,
  .hiw-step-number, .reviews-score-value, .valets-price, .svc-price,
  .wash-price-figure, .hero-trust-figure
) {
  font-weight: var(--bl-head-weight);
  letter-spacing: var(--bl-head-track);
}

/* Book & pay's title names its serif outright rather than by the token. */
html[data-brand-skin="blended"] .bk-book-page-title {
  font-family: var(--font-display);
  font-weight: var(--bl-head-weight);
  letter-spacing: var(--bl-head-track);
}

/* ---- 1. The script mark and the slogan --------------------------------- */
/* THE MARK BIGGER, AND BARRY'S SLOGAN BESIDE IT (Barry, 5 Dec 2026,
   docs/BARRY_FEEDBACK_2026-12.md item 13: the logo "50 to 100% bigger" and
   the line "in italics, not bold"; Robin: "let me try it"). The slogan is
   quieter than the mark by every measure: caption size, regular weight,
   italic, --mute, so the mark stays the first thing read.

   LAPTOP (960 up): the mark 54px tall (36 before, +50%), the slogan beside
   it behind a hairline, two lines at most, inside the same 72px bar.
   TABLET (480 to 959): the mark 44px (30 before).
   PHONE: the bar keeps everything it holds (the mark, WhatsApp, Book now,
   the menu) in its 56px row, so the mark grows only as far as that row
   allows (35px at 390, 29px under 390). The slogan is a line under the bar
   that slides under it as the page scrolls, so the pinned height stays 56. */
html[data-brand-skin="blended"] {
  --bl-mark-h: 54px;
  /* The phone's slogan line: two 16px lines, 12px clear below. */
  --bl-tagline-h: 44px;
}

html[data-brand-skin="blended"] .gwmc-header-mark.bl-header-mark {
  --mark-h: var(--bl-mark-h);
  width: auto;
}

html[data-brand-skin="blended"] .gwmc-header-slogan {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--mute);
  text-wrap: balance;
}

@media (min-width: 960px) {
  /* Laid over the bar, starting just past the mark, so the bar's own row
     (the mark left, the nav right) is untouched and the slogan can never
     push the nav. pointer-events: none keeps the bar's links live under
     the box it spans; the text itself takes them back. */
  html[data-brand-skin="blended"] .gwmc-header-tagline {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: var(--header-h);
    /* The nav's side of the bar (Services, Prices, FAQs, Chat to us and
       Book now take 455px) stays clear: the slogan wraps rather than run
       under it at a narrow laptop width. */
    padding-right: calc(var(--gutter) + 480px);
    pointer-events: none;
  }

  /* At 54px the script's ink sits low in the 72px bar: 2px up (header.css
     drops the brand 4px for the smaller mark's tail). */
  html[data-brand-skin="blended"] .gwmc-header-brand {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
  }

  /* 360 x 82 is logo.png, so the mark's drawn width follows its height. */
  html[data-brand-skin="blended"] .gwmc-header-slogan {
    max-width: 23em;
    margin-top: var(--space-4);
    margin-left: calc(var(--bl-mark-h) * 360 / 82 + var(--space-20));
    padding-left: var(--space-16);
    border-left: 1px solid var(--line);
    font-size: 13px;
    line-height: 18px;
    pointer-events: auto;
  }
}

/* Between 960 and 1100 the nav needs the room: one size down. */
@media (min-width: 960px) and (max-width: 1099.98px) {
  html[data-brand-skin="blended"] {
    --bl-mark-h: 42px;
  }

  html[data-brand-skin="blended"] .gwmc-header-slogan {
    font-size: 12px;
    line-height: 16px;
  }
}

@media (max-width: 959.98px) {
  html[data-brand-skin="blended"] {
    --bl-mark-h: 44px;
  }

  /* header.css pins the header below 960. Pinned at minus the slogan's
     height, with the bar pinned inside it at 0: on the way down the line
     slides under the bar and what stays on screen is the bar's 56. */
  /* The hairline is the header's own bottom edge: at rest it sits under the
     slogan, and once the slogan has slid away it is the pinned bar's edge,
     so the page never runs flush into the bar (design review, 5 Dec). */
  html[data-brand-skin="blended"] .gwmc-header {
    border-bottom: 1px solid var(--line);
  }

  html[data-brand-skin="blended"] .gwmc-header--home {
    top: calc(var(--bl-tagline-h) * -1);
  }

  html[data-brand-skin="blended"] .gwmc-header-bar {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
  }

  /* THE HOME PAGE ONLY on a phone or tablet (5 Dec 2026). Under the bar on
     every page, the line's 44px pushed a wash page's top Book (the price's,
     which the sticky bar's rule needs on the first screen) off the first
     screen of a 390 x 664 phone. The slogan is the home page's welcome;
     every other page keeps the bar alone, and on a laptop the slogan sits
     beside the mark on every page, as before. Both headers set
     .gwmc-header--home on "/" only (components/header, gwmc/_header). */
  html[data-brand-skin="blended"] .gwmc-header-tagline {
    display: none;
  }

  html[data-brand-skin="blended"] .gwmc-header--home .gwmc-header-tagline {
    display: flex;
    align-items: flex-start;
    height: var(--bl-tagline-h);
  }
}

/* A phone: the row is the mark, WhatsApp, Book now and the menu, and every
   one of them stays. The WhatsApp glyph's 44px box is mostly air, so the
   gaps either side of it close to 4 and Book now is set a point smaller
   with 10px a side; the 24px that frees goes to the mark: 37px tall at 390
   (30 before), 162 wide, the row 385 of 390. */
@media (max-width: 479.98px) {
  html[data-brand-skin="blended"] {
    --bl-mark-h: 37px;
  }

  html[data-brand-skin="blended"] .gwmc-header-bar {
    gap: var(--space-8);
  }

  html[data-brand-skin="blended"] .gwmc-header-actions {
    gap: var(--space-4);
  }

  html[data-brand-skin="blended"] .gwmc-btn.gwmc-header-book {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Under 390 the same row has 30px less: 30px tall, 132 wide (26 before),
   the row 356 of 360. */
@media (max-width: 389.98px) {
  html[data-brand-skin="blended"] {
    --bl-mark-h: 30px;
  }
}

html[data-brand-skin="blended"] .bk-stepper-logo-img.bl-stepper-mark {
  height: 32px;
  width: auto;
}

html[data-brand-skin="blended"] .bl-footer-mark {
  display: block;
  height: 36px;
  width: auto;
}

/* ---- 3. The fold, Lacquer's treatment ----------------------------------- */
/* The control's classes and markup (gwmc/_home_hero and its React twin),
   re-tokened dark: the photograph is the same file, the words, the Book and
   the box the same elements. Phone: the picture as a band on top, the words
   on black beneath it, as Lacquer's phone fold. Wide: the street full bleed,
   darkened on the left where the words are, the operator and the car on
   the right left clear. */
html[data-brand-skin="blended"] .gwmc-section.hh {
  --ink: var(--bl-on-dark);
  --ink-hover: var(--bl-cream-hover);
  --on-ink: var(--bl-dark);
  --mute: var(--bl-on-dark-dim);
  --line: var(--bl-rule-dark);
  --paper: var(--bl-dark-2);
  --stone: var(--bl-dark-2);
  --accent: var(--bl-brass);
  --focus-color: var(--bl-cream);
  background: var(--bl-dark);
  color: var(--bl-on-dark);
}

html[data-brand-skin="blended"] .hh .gwmc-btn--primary {
  background: var(--bl-cream);
  border-color: var(--bl-cream);
  color: var(--bl-dark);
}

html[data-brand-skin="blended"] .hh .gwmc-btn--primary:hover {
  background: var(--bl-cream-hover);
  border-color: var(--bl-cream-hover);
}

html[data-brand-skin="blended"] .hh-headline {
  text-wrap: balance;
}

html[data-brand-skin="blended"] .hh .gwmc-eyebrow.hh-kicker {
  color: var(--bl-brass);
}

html[data-brand-skin="blended"] .hh input {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bl-on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}

html[data-brand-skin="blended"] .hh input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

html[data-brand-skin="blended"] .hh-photo {
  position: relative;
}

/* The fall to black under the phone band, as Lacquer's. */
html[data-brand-skin="blended"] .hh-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 20, 27, 0) 55%, rgba(18, 20, 27, 0.55) 80%, var(--bl-dark) 100%);
}

@media (min-width: 960px) {
  html[data-brand-skin="blended"] .hh > .gwmc-container {
    align-items: flex-start;
    min-height: clamp(600px, calc(100svh - var(--header-h) - 64px), 740px);
    padding-top: var(--space-24);
  }

  /* Room for the headline on two lines at the bold sans's width. */
  html[data-brand-skin="blended"] .hh-grid {
    max-width: 600px;
  }

  html[data-brand-skin="blended"] .hh-photo {
    position: absolute;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
  }

  html[data-brand-skin="blended"] .hh--street .hh-photo-img {
    object-position: 50% 62%;
  }

  html[data-brand-skin="blended"] .hh--rinse .hh-photo-img {
    object-position: 50% 40%;
  }

  html[data-brand-skin="blended"] .hh-photo::after {
    background: linear-gradient(180deg, rgba(18, 20, 27, 0.8) 0%, rgba(18, 20, 27, 0.62) 50%, rgba(18, 20, 27, 0.3) 72%, rgba(18, 20, 27, 0.3) 100%);
  }
}

/* ---- 4. Paint and protection, the one dark band ------------------------ */
html[data-brand-skin="blended"] .gwmc-section.paint {
  --ink: var(--bl-on-dark);
  --ink-hover: var(--bl-cream-hover);
  --on-ink: var(--bl-dark);
  --mute: var(--bl-on-dark-dim);
  --line: var(--bl-rule-dark);
  --paper: var(--bl-dark);
  --stone: var(--bl-dark-2);
  --accent: var(--bl-cream);
  --focus-color: var(--bl-cream);
  background: var(--bl-dark);
  color: var(--bl-on-dark);
  border-top: 0;
  border-bottom: 0;
}

html[data-brand-skin="blended"] .paint .paint-label.gwmc-eyebrow,
html[data-brand-skin="blended"] .paint .paint-price {
  color: var(--bl-brass);
}

html[data-brand-skin="blended"] .paint .paint-label.gwmc-eyebrow {
  margin-bottom: var(--space-16);
}

html[data-brand-skin="blended"] .paint .paint-line,
html[data-brand-skin="blended"] .paint .gwmc-link.paint-extras {
  font-size: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.78);
}

html[data-brand-skin="blended"] .paint .gwmc-link.paint-extras {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--bl-brass);
}

html[data-brand-skin="blended"] .paint .paint-photo {
  border-radius: 12px;
}
