/* ===========================================================================
   JP Sudz Detailing: craft layer. Loads AFTER styles.css.
   Source of truth: tools/jp-sudz-craft/custom.css. tools/build-jp-sudz-craft.js
   copies it to sites/jp-sudz-detailing/custom.css. Edit here, not there.

   Palette from Jacob's logo: electric blue (#01A7FC) and white on black.
   The form colors (#F15A22, #0E2746) are form defaults and are not used.

   Dark bands (header, hero, stats, work strip, CTA, footer) carry the logo look.
   Body sections stay light so text never goes dark on dark.

   Mobile-nav safety: never put transform, filter or backdrop-filter on
   .site-header. Never blanket z-index body children.
   =========================================================================== */

html:root {
  --js-blue: #01A7FC;
  --js-blue-ink: #006FA8;   /* blue for small text on white (AA) */
  --js-black: #07090C;
  --js-panel: #11161D;
  --js-mist: #F3F6F9;
  --js-line: #DCE3EA;
  --js-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --js-body: Inter, system-ui, sans-serif;

  --brand-primary: var(--js-blue);
  --brand-secondary: var(--js-black);
  --brand-bg-alt: var(--js-mist);
  --brand-border: var(--js-line);
}

body { font-family: var(--js-body); }
h1, h2, h3, h4, .x-head h2, .section-head h1 { font-family: var(--js-display); font-weight: 700; letter-spacing: .01em; }
h1 { text-transform: uppercase; font-style: italic; line-height: 1; }
.x-head h2 { text-transform: uppercase; font-style: italic; }
.x-head .k, .x-eyebrow, .section-head .eyebrow { color: var(--js-blue-ink); font-weight: 700; letter-spacing: .14em; }
/* The SEO H2 under each H1 reads as a subtitle, not a second heading. */
h2.seo-description { font-family: var(--js-body); font-weight: 500; font-style: normal; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; text-transform: none; letter-spacing: 0; }

/* Header: brush wordmark on black, blue rule. */
.site-header { background: var(--js-black); border-bottom: 2px solid var(--js-blue); }
.site-header a, .site-header .nav-links > li > a, .site-header button { color: #fff; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img.js-mark { width: auto; height: 44px; display: block; }
.nav-cta, .x-btn-primary { background: var(--js-blue) !important; color: var(--js-black) !important; border-color: var(--js-blue) !important; font-weight: 700; }
.nav-cta:hover, .x-btn-primary:hover { background: #3CBDFF !important; }
.nav-dropdown { background: var(--js-panel); border-color: #26303B; }
.nav-dropdown a { color: #fff; }
.nav-dropdown a:hover { color: var(--js-blue); }
@media (max-width: 900px) {
  .nav-links { background: var(--js-black); }
  .nav-toggle span { background: #fff; }
  .nav-toggle { color: #fff; }
  .nav-logo img.js-mark { height: 36px; }
}

/* Hero: his blue M3 under the hex lights. Scrim on the left only. */
.x-hero { min-height: min(88vh, 780px); background-color: var(--js-black); }
.x-hero img, .x-hero .x-hero-media img { object-position: center 62%; }
.x-hero .x-hero-scrim { background: linear-gradient(90deg, rgba(7,9,12,.92) 0%, rgba(7,9,12,.66) 46%, rgba(7,9,12,.12) 100%), linear-gradient(180deg, transparent 58%, rgba(7,9,12,.7) 100%); }
.x-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); max-width: 13ch; }
.x-hero .x-eyebrow, .x-banner .x-eyebrow { background: var(--js-blue); color: var(--js-black); }
.x-hero .x-sub { font-family: var(--js-display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--js-blue); font-size: 1.15rem; }
.x-chip svg { color: var(--js-blue); }

/* Stat band. */
.x-stats { background: var(--js-black); border-top: 1px solid #1B232D; }
.x-stats .num { color: var(--js-blue); font-family: var(--js-display); font-style: italic; }
.x-stats .lbl { color: #C9D3DD; }

/* Service cards: photo first, blue rule. */
.x-svc { border-top: 4px solid var(--js-blue); }
.x-svc img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 60%; }
/* Bright shop lights wash out the white text: tint the whole photo, darker at the bottom. */
.x-svc::after { background: linear-gradient(180deg, rgba(7,9,12,.28) 0%, rgba(7,9,12,.5) 40%, rgba(7,9,12,.92) 72%, rgba(7,9,12,.96) 100%); }
.x-svc h3, .x-svc p { text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Work strip on the home page. */
.js-work { background: var(--js-black); color: #fff; padding: 64px 0; }
.js-work h2 { color: #fff; text-transform: uppercase; font-style: italic; }
.js-work p { color: #C9D3DD; max-width: 60ch; }
.js-work .k { color: var(--js-blue); font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; }
.js-work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.js-work-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.js-work-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.js-work-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
@media (max-width: 760px) { .js-work-grid { grid-template-columns: repeat(2, 1fr); } }

/* Service page photo banner and the tint price plate. */
.js-service-photo { margin: 0 0 28px; }
.js-service-photo img { width: 100%; height: 440px; object-fit: cover; object-position: center 60%; border-radius: 8px; display: block; }
.js-service-photo figcaption { font-size: .85rem; color: var(--brand-text-muted); margin-top: 6px; }
@media (max-width: 760px) { .js-service-photo img { height: 300px; } }
.js-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: var(--js-black); color: #fff; border-left: 4px solid var(--js-blue); border-radius: 6px; padding: 16px 20px; margin: 0 0 28px; }
.js-price strong { font-family: var(--js-display); font-style: italic; font-size: 1.9rem; color: var(--js-blue); line-height: 1; }
.js-price span { color: #C9D3DD; }
.js-price a { color: #fff; font-weight: 600; }

/* Before and after sliders sit on black. */
.x-transform { background: var(--js-black); }
.x-transform .x-head h2 { color: #fff; }
.x-transform .x-head p { color: #C9D3DD; }
.x-transform .x-head .k { color: var(--js-blue); }

/* Big CTA and footer. */
.x-bigcta { background: linear-gradient(120deg, #006FA8 0%, var(--js-black) 75%); }
footer, .site-footer { background: var(--js-black); }

/* Four services and four main towns: one even row on desktop, two by two on tablets. */
@media (min-width: 1000px) {
  .x-services { grid-template-columns: repeat(4, 1fr); }
  .x-services .x-svc-body p { font-size: .9rem; }
  .js-towns .card-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .x-services, .js-towns .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Book page split and per-service booking blocks (2026-10-22). */
.js-choice { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 32px; }
.js-choice .x-btn { min-width: 220px; justify-content: center; text-transform: uppercase; font-family: var(--js-display); font-style: italic; letter-spacing: .04em; }
#calendar, #quote, #book { scroll-margin-top: 96px; }
.js-book .section-head h2, .js-quote .section-head h2 { text-transform: uppercase; font-style: italic; }
@media (max-width: 520px) { .js-choice .x-btn { width: 100%; } }
/* GHL resizes the calendar after load. The floor keeps it usable if that message is late. */
.js-book iframe[src*="/booking/"] { min-height: 760px; }
