/* ==========================================================================
   PEAK CONDITION DETAILING — Design System
   Palette derived from the company logo: black badge field, electric blue
   ring, chrome/silver wordmark. Mountain geometry drives the section shapes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700&family=Barlow:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ink / surfaces — from the logo's black badge */
  --ink:          #05070A;
  --ink-2:        #0A0E14;
  --surface:      #10151E;
  --surface-2:    #161D29;
  --surface-3:    #1E2735;

  /* Electric blue — from the logo ring + "CONDITION" */
  --blue:         #1E9BFF;
  --blue-bright:  #5CBBFF;
  --blue-deep:    #0A6FD8;
  --blue-ghost:   rgba(30, 155, 255, 0.12);
  --blue-line:    rgba(30, 155, 255, 0.30);

  /* Chrome ramp — from the "PEAK" metallic lettering */
  --chrome-1:     #F4F8FC;
  --chrome-2:     #C3CEDC;
  --chrome-3:     #8494A8;

  /* Text */
  --text:         #E9EEF5;
  --text-muted:   #9AA9BC;
  --text-dim:     #6B7A8D;
  --on-blue:      #04121F;   /* dark on blue: 6.47:1. White would be 2.9:1 — never use it */

  --border:       #1F2937;
  --border-soft:  rgba(255, 255, 255, 0.07);

  --danger:       #FF5A5A;
  --success:      #34D399;

  /* Spacing — density 4/10 (standard, marketing-page breathing room) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius:    4px;
  --radius-lg: 8px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -24px rgba(0,0,0,0.9);
  --shadow-blue: 0 0 0 1px var(--blue-line), 0 18px 50px -20px rgba(30,155,255,0.45);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur:      240ms;

  --maxw: 1200px;
  --nav-h: 72px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Visible focus everywhere — never removed */
:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; translate: -50% -200%;
  background: var(--blue); color: var(--on-blue);
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 700; z-index: 200; transition: translate var(--dur) var(--ease-out);
}
.skip-link:focus { translate: -50% 0; }

/* --------------------------------------------------------------------------
   3. TYPE SCALE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.9rem, 8.5vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: 0; }
h4 { font-size: 1.15rem; letter-spacing: 0; }

p { margin: 0 0 var(--space-2); max-inline-size: 68ch; }
.lede { font-size: 1.15rem; color: var(--text-muted); max-inline-size: 60ch; }

/* Chrome-gradient text, echoing the "PEAK" lettering */
.chrome {
  background: linear-gradient(176deg, var(--chrome-1) 8%, var(--chrome-2) 46%, var(--chrome-3) 74%, var(--chrome-1) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Fallback for engines without background-clip:text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome { color: var(--chrome-1); background: none; }
}

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--blue); flex: none;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space-7); position: relative; }
.section--tight { padding-block: var(--space-6); }

.section-head { margin-bottom: var(--space-5); }
.section-head p { color: var(--text-muted); }

/* Faint topographic ridge divider — mountain motif from the logo */
.ridge {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--border), var(--blue-line), var(--border), transparent);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: var(--on-blue);          /* 6.47:1 — dark on blue */
  box-shadow: 0 10px 30px -12px rgba(30,155,255,0.7);
}
.btn--primary:hover { background: var(--blue-bright); box-shadow: 0 16px 40px -12px rgba(30,155,255,0.85); }

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-ghost); }

.btn--block { width: 100%; }

/* Light sweep across the button — the "polish pass" */
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.55) 50%, transparent 62%);
  translate: -110% 0;
}
.btn--primary:hover::after { animation: sweep 720ms var(--ease-out); }
@keyframes sweep { to { translate: 110% 0; } }

/* --------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5, 7, 10, 0.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav[data-scrolled='true'] {
  background: rgba(5, 7, 10, 0.92);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-3);
}

/* Badge + wordmark lockup. The badge carries its own lettering, but at 46px
   that lettering is unreadable — so it works as a mark and the type beside it
   carries the full company name. */
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; min-height: 48px; }
.brand img { height: 46px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 0.98; }
.brand__peak {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.22rem; letter-spacing: 0.01em; text-transform: uppercase;
  white-space: nowrap;
}
.brand__cond {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); white-space: nowrap;
}
/* Very narrow phones: the badge alone is enough, the <a> keeps its aria-label */
@media (max-width: 380px) {
  .brand__peak { font-size: 1.05rem; }
  .brand__cond { font-size: 0.64rem; letter-spacing: 0.22em; }
}

.nav__links { display: flex; align-items: center; gap: var(--space-3); }
.nav__link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 10px 2px; position: relative;
  transition: color var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--text); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--blue);
  scale: 0 1; transform-origin: left;
  transition: scale var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current='page']::after { scale: 1 1; }

/* Shows in the mobile menu too. This was display:none below 900px, which meant
   a phone visitor opened the menu and found no way to book. */
.nav__cta { display: inline-flex; }
@media (min-width: 900px) { .nav__cta { min-height: 44px; padding: 0 20px; font-size: 1rem; } }

/* Mobile menu */
.nav__toggle {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  position: relative; transition: background-color var(--dur);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text);
  transition: transform var(--dur) var(--ease-out);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--border);
    padding: var(--space-2) 1.25rem var(--space-3);
    transform-origin: top;
  }
  .nav__links[data-open='false'] { display: none; }
  .nav__link { padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--border-soft); }
  .nav__link::after { display: none; }
  .nav__links .btn { margin-top: var(--space-2); }
}
@media (min-width: 900px) { .nav__toggle { display: none; } }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}

/* ---- Scroll-driven wash ---------------------------------------------------
   Two aligned frames of the same wheel: the AI-generated dry "before" sits
   underneath, the real foamed photo on top. Scroll grows a radial mask on the
   top frame outward from the wheel, so foam appears to land on the tyre.
   --wash (0→1) is written by main.js from the ScrollTrigger progress.
   -------------------------------------------------------------------------- */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__frame { position: absolute; inset: 0; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 58%; }

/* Defaults to the FULL real photograph. main.js resets --wash to 0 only once it
   has taken control, so a JS failure, a reduced-motion visitor, or a phone
   still gets the genuine foamed shot rather than a permanently dry hero. */
.hero {
  --wash: 1;
  --wipe-op: 0;
  /* How far the diagonal front travels. >100% so both corners fully clear. */
  --wash-span: 150%;
}

.hero__frame--foam {
  /* A diagonal front sweeps down from the top-left corner. Foam is opaque
     behind the front, clear ahead of it, with a soft band between — that band
     is the visible edge of the wash. wash:0 leaves the inner stop at or below
     zero (fully dry); wash:1 pushes it past the far corner (fully foamed). */
  /* Narrow band (12%) so the whole swap fits underneath the opaque part of
     the spray bar below and is never visible in the open. */
  -webkit-mask-image: linear-gradient(135deg,
      #000 calc(var(--wash) * var(--wash-span) - 12%),
      transparent calc(var(--wash) * var(--wash-span)));
          mask-image: linear-gradient(135deg,
      #000 calc(var(--wash) * var(--wash-span) - 12%),
      transparent calc(var(--wash) * var(--wash-span)));
}

/* The spray bar: a thick band of foam riding the front. Its opaque core spans
   the mask's transition zone, so the frames change underneath it rather than
   in view — the same reason you can't see a wheel the instant foam hits it.
   Fades to nothing at both ends of the scroll, so the resting states are clean. */
.hero__wipe {
  position: absolute; inset: 0; pointer-events: none;
  opacity: var(--wipe-op);
  background: linear-gradient(135deg,
      rgba(255,255,255,0)    calc(var(--wash) * var(--wash-span) - 24%),
      rgba(232,246,255,0.26) calc(var(--wash) * var(--wash-span) - 17%),
      rgba(255,255,255,0.94) calc(var(--wash) * var(--wash-span) - 13%),
      rgba(255,255,255,0.94) calc(var(--wash) * var(--wash-span) + 1%),
      rgba(228,243,255,0.30) calc(var(--wash) * var(--wash-span) + 6%),
      rgba(255,255,255,0)    calc(var(--wash) * var(--wash-span) + 13%));
}
/* Without mask support, fall back to a plain cross-fade — same story, less flair */
@supports not ((-webkit-mask-image: radial-gradient(#000, transparent)) or (mask-image: radial-gradient(#000, transparent))) {
  .hero__frame--foam { opacity: var(--wash); }
}

/* Foam particle layer, painted by main.js */
.hero__suds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Legibility scrim + the fade that hands off to the dark page below */
/* Dark enough on the left for the headline, close to clear over the wheel —
   the photograph is the point, so the scrim earns its keep only where type sits. */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,10,0.92) 0%, rgba(5,7,10,0.86) 26%, rgba(5,7,10,0.55) 48%, rgba(5,7,10,0.12) 72%, rgba(5,7,10,0) 100%),
    linear-gradient(180deg, rgba(5,7,10,0.55) 0%, transparent 14%, transparent 70%, var(--ink) 99%);
}
@media (max-width: 760px) {
  .hero__frame img { object-position: 50% 60%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(5,7,10,0.92) 0%, rgba(5,7,10,0.62) 38%, rgba(5,7,10,0.78) 68%, var(--ink) 98%);
  }
  /* Phones get the finished photo outright — no pin, no mask, no particles.
     Pinning plus a scrubbed mask is the fragile combination on mobile, and the
     static shot is the one that has to look right. */
  .hero__suds, .hero__wipe { display: none; }
}

/* A single ridgeline keeps the logo's mountain in the frame without competing
   with the photograph, and hides the image's bottom edge. */
.hero__ridge { position: absolute; left: -2%; width: 104%; bottom: -1px; z-index: -1; pointer-events: none; }
.hero__ridge svg { width: 100%; height: auto; display: block; }

.hero__grid { position: relative; z-index: 1; display: grid; gap: var(--space-4); }
.hero h1 { max-inline-size: 15ch; text-wrap: balance; }
/* The mask that drives the line-reveal. It needs vertical padding or the
   font's ascent/descent gets clipped at line-height 1.02; the negative
   margin pulls the lines back to their intended tight rhythm. */
.hero h1 .line {
  display: block; overflow: hidden;
  padding-block: 0.13em; margin-block: -0.11em;
}
.hero h1 .line > span { display: block; }

/* The scrim can't be dark everywhere without burying the photo, so the type
   carries its own shadow. drop-shadow (not text-shadow) because the headline is
   background-clip:text — text-shadow paints nothing behind transparent glyphs. */
.hero h1 .chrome { filter: drop-shadow(0 2px 16px rgba(5,7,10,0.9)) drop-shadow(0 1px 3px rgba(5,7,10,0.8)); }
.hero__sub, .hero__badge { text-shadow: 0 1px 12px rgba(5,7,10,0.95), 0 1px 3px rgba(5,7,10,0.9); }

.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-muted); max-inline-size: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero__badges {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
}
.hero__badge {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.98rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero__badge svg { width: 17px; height: 17px; color: var(--blue); flex: none; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
}
.scroll-cue__rail { width: 1px; height: 44px; background: linear-gradient(var(--blue), transparent); }
/* On narrow screens the cue collides with the trust badges — it's decorative, so drop it */
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* --------------------------------------------------------------------------
   8. CARDS / PACKAGES
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Packages step 1 → 2×2 → 1×4. Explicit rather than auto-fit, because auto-fit
   lands on 3 columns at mid widths and orphans the featured card on its own row. */
.grid--pkg { grid-template-columns: 1fr; }
/* 1000px, not 880: at 880 the three cards land at ~262px each, which squeezes
   the duration into the "Best value" badge and wraps the button labels. */
@media (min-width: 1000px) { .grid--pkg { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-line); box-shadow: var(--shadow-card); }

/* Package cards */
.pkg { display: flex; flex-direction: column; }
.pkg__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.pkg__name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0; }
.pkg__time { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.pkg__price { display: flex; align-items: baseline; gap: 6px; margin: var(--space-1) 0 var(--space-2); }
.pkg__from { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.pkg__amt { font-family: 'Barlow Condensed', sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--text); line-height: 1; }

.pkg__desc { color: var(--text-muted); font-size: 0.98rem; margin-bottom: var(--space-2); }

.pkg__list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 9px; }
.pkg__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--text-muted); }
.pkg__list svg { width: 16px; height: 16px; margin-top: 5px; color: var(--blue); flex: none; }

/* Equal height whether or not the label wraps, so the three buttons line up */
.pkg .btn { margin-top: auto; min-height: 56px; }

.pkg--featured { border-color: var(--blue-line); box-shadow: var(--shadow-blue); }
.pkg--featured::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
/* The tag is absolutely positioned in the same corner as the duration, so the
   featured card has to reserve room for it or the two collide. */
.pkg--featured .pkg__top { padding-right: 104px; }

/* In the 3-column range the cards are too narrow to sit the name and duration
   side by side, so stack them. Above that there's room for one row. */
@media (min-width: 1000px) and (max-width: 1259px) {
  .pkg__top { flex-direction: column; align-items: flex-start; gap: 3px; }
}

.pkg__tag {
  position: absolute; top: var(--space-3); right: 0;
  background: var(--blue); color: var(--on-blue);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px 5px 12px; border-radius: var(--radius) 0 0 var(--radius);
}

/* Add-ons */
.addon { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.addon__name { font-weight: 600; }
.addon__price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--blue); white-space: nowrap; }
.addon__note { font-size: 0.9rem; color: var(--text-dim); margin: 4px 0 0; }

/* --------------------------------------------------------------------------
   9. PROCESS (numbered — content genuinely is a sequence)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); } }

.step { position: relative; padding-top: var(--space-3); border-top: 1px solid var(--border); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.1em; color: var(--blue);
  position: absolute; top: -0.85em; left: 0;
  background: var(--ink); padding-right: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

/* --------------------------------------------------------------------------
   10. SERVICE AREA
   -------------------------------------------------------------------------- */
.area { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

.area__towns { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area__towns li {
  border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px; font-size: 0.95rem; color: var(--text-muted);
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.area__towns li:hover { border-color: var(--blue-line); color: var(--text); }

.area__map {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3;
  position: relative;
}
.area__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* --------------------------------------------------------------------------
   11. REVIEWS
   -------------------------------------------------------------------------- */
.review { display: flex; flex-direction: column; gap: var(--space-2); }
.review__stars { display: flex; gap: 3px; color: var(--blue); }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.05rem; color: var(--text); }
.review__who { display: flex; flex-direction: column; margin-top: auto; }
.review__name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.review__meta { font-size: 0.88rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 22px 0; min-height: 56px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
  transition: color var(--dur) var(--ease-out);
}
.faq__q:hover { color: var(--blue); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--blue);
  transition: transform var(--dur) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded='true'] .faq__icon::after { transform: rotate(0deg); }

.faq__a { overflow: hidden; height: 0; }
.faq__a > div { padding-bottom: 22px; color: var(--text-muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. FORMS
   -------------------------------------------------------------------------- */
.form-page { padding-top: calc(var(--nav-h) + var(--space-5)); }

.field { margin-bottom: var(--space-3); }
.field > label, .field > .field__label, .fieldset__legend {
  display: block; margin-bottom: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.02rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.field__hint { display: block; font-family: 'Barlow', sans-serif; font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-dim); margin-top: 3px; }
.req { color: var(--blue); }

.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--chrome-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); background: var(--surface-2); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA9BC' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}

.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--danger); }

.error {
  display: flex; align-items: center; gap: 7px;
  color: var(--danger); font-size: 0.9rem; margin-top: 7px;
  min-height: 0;
}
.error svg { width: 15px; height: 15px; flex: none; }
.error:empty { display: none; }

.field-row { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* Selectable option tiles (radio / checkbox) — 44px+ targets */
.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-3); }
.options { display: grid; gap: 12px; }
@media (min-width: 700px) { .options--2 { grid-template-columns: 1fr 1fr; } }

.opt { position: relative; display: block; }
.opt input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.opt__box {
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 60px; padding: 15px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.opt__box:hover { border-color: var(--chrome-3); transform: translateY(-2px); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.opt input:checked + .opt__box { border-color: var(--blue); background: var(--blue-ghost); }

.opt__mark {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border: 2px solid var(--chrome-3); border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.opt--check .opt__mark { border-radius: 4px; }
.opt__mark svg { width: 13px; height: 13px; color: var(--on-blue); opacity: 0; transition: opacity var(--dur); }
.opt input:checked + .opt__box .opt__mark { border-color: var(--blue); background: var(--blue); }
.opt input:checked + .opt__box .opt__mark svg { opacity: 1; }

.opt__body { flex: 1; min-width: 0; }
.opt__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.opt__label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.opt__price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--blue); white-space: nowrap; }
.opt__desc { font-size: 0.92rem; color: var(--text-muted); margin: 3px 0 0; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: var(--space-4); }
.stepper__item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.stepper__item:last-child { flex: none; }
.stepper__dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--border); background: var(--ink);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--text-dim);
  transition: all var(--dur) var(--ease-out);
}
.stepper__label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
  white-space: nowrap;
}
@media (max-width: 700px) { .stepper__label { display: none; } }
.stepper__bar { flex: 1; height: 2px; background: var(--border); margin: 0 12px; min-width: 12px; position: relative; overflow: hidden; }
.stepper__bar::after {
  content: ''; position: absolute; inset: 0; background: var(--blue);
  scale: 0 1; transform-origin: left; transition: scale 420ms var(--ease-out);
}
.stepper__item[data-done='true'] .stepper__bar::after { scale: 1 1; }
.stepper__item[data-state='active'] .stepper__dot { border-color: var(--blue); color: var(--blue); }
.stepper__item[data-state='active'] .stepper__label { color: var(--text); }
.stepper__item[data-state='done'] .stepper__dot { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.stepper__item[data-state='done'] .stepper__label { color: var(--text-muted); }

.step-panel[hidden] { display: none; }
.form-nav { display: flex; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.form-nav .btn { flex: 1; }
@media (min-width: 640px) { .form-nav .btn { flex: none; min-width: 170px; } }
.form-nav__spacer { flex: 1; }

/* Summary rail */
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary__row { display: flex; justify-content: space-between; gap: var(--space-2); padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.96rem; }
.summary__row dt { color: var(--text-muted); }
.summary__row dd { margin: 0; text-align: right; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-2); margin-top: var(--space-1); }
.summary__total span:first-child { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.summary__amt { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.summary__note { font-size: 0.85rem; color: var(--text-dim); margin: var(--space-2) 0 0; }

.form-layout { display: grid; gap: var(--space-4); }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: var(--space-5); } }

/* Alerts / status */
.alert {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  margin-bottom: var(--space-3);
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert p { margin: 0; font-size: 0.95rem; }
.alert--info { border-color: var(--blue-line); background: var(--blue-ghost); }
.alert--info svg { color: var(--blue); }
.alert--error { border-color: rgba(255,90,90,0.4); background: rgba(255,90,90,0.08); }
.alert--error svg { color: var(--danger); }

.error-summary { border-color: rgba(255,90,90,0.5); background: rgba(255,90,90,0.08); }
.error-summary h2 { font-size: 1.15rem; margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: var(--danger); text-decoration: underline; }

/* Success state */
.done { text-align: center; padding: var(--space-5) var(--space-2); }
.done__ring {
  width: 84px; height: 84px; margin: 0 auto var(--space-3);
  border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--blue); background: var(--blue-ghost);
}
.done__ring svg { width: 38px; height: 38px; color: var(--blue); }
.done h2 { margin-bottom: var(--space-2); }
.done p { margin-inline: auto; }
.done__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-4); }

/* Spinner in button */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(4,18,31,0.3); border-top-color: var(--on-blue);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-2), var(--surface));
  border-block: 1px solid var(--border);
  padding-block: var(--space-6);
  text-align: center;
}
.cta-band__glow {
  position: absolute; left: 50%; bottom: -60%; translate: -50% 0;
  width: min(900px, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(30,155,255,0.18), transparent 62%);
  pointer-events: none;
}
.cta-band h2 { margin-inline: auto; max-inline-size: 18ch; text-wrap: balance; }
.cta-band p { margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; margin-top: var(--space-3); }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); padding-block: var(--space-5) var(--space-4); border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: var(--space-4); }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-5); } }

.footer h4 {
  font-size: 0.95rem; letter-spacing: 0.16em; color: var(--text-dim);
  margin-bottom: var(--space-2);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer a { color: var(--text-muted); transition: color var(--dur) var(--ease-out); }
.footer a:hover { color: var(--blue); }
/* Footer links were 20px tall — under the 24px minimum target size and
   genuinely hard to hit on a phone. Give every one a 32px box and tighten the
   list gap so the footer doesn't grow much. The gap is small on purpose: the
   targets should touch, leaving no dead strip between them. */
.footer ul a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__contact a { gap: 10px; }
.footer__contact svg { width: 17px; height: 17px; color: var(--blue); flex: none; }

.footer__bottom {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between;
  font-size: 0.9rem; color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   16. SCROLL-REVEAL BASE STATE
   Only applied when JS is running AND motion is allowed (see main.js).
   -------------------------------------------------------------------------- */
[data-reveal] { will-change: transform, opacity; }
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); }

/* One button instead of a carousel. Centred under the grid, full width on a
   phone where a narrow centred button is an easy thing to miss. */
.quote__more {
  display: block;
  margin: var(--space-3) auto 0;
}
@media (max-width: 560px) {
  .quote__more { inline-size: 100%; }
}

/* --------------------------------------------------------------------------
   17. REDUCED MOTION — render final state immediately
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  /* Show the finished, foamed photo outright instead of scrubbing to it */
  .hero { --wash: 1 !important; }
  .hero__suds { display: none; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
  .opt__box:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   18. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .nav, .scroll-cue, .hero__suds, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   19. BEFORE / AFTER SLIDERS (gallery.html)
   The range input is the real control — it carries keyboard and screen-reader
   support for free. `--ba` (0-100) follows its value and drives a clip-path.
   clip-path rather than a shrinking container: both images stay full-size and
   perfectly superimposed, so nothing shifts as the handle moves.
   -------------------------------------------------------------------------- */
.ba-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }

.ba { margin: 0; }
.ba[hidden] { display: none; }

.ba__stage {
  --ba: 50;
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* The "before" is revealed from the left up to --ba% */
.ba__img--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba) * 1%) 0 0);
}

.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--ba) * 1%);
  width: 2px; background: var(--blue);
  transform: translateX(-1px); pointer-events: none; z-index: 3;
  box-shadow: 0 0 18px rgba(30,155,255,0.7);
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--ink);
}
.ba__handle span::before,
.ba__handle span::after {
  content: ''; position: absolute; top: 50%; translate: 0 -50%;
  border: solid var(--on-blue); border-width: 0 2px 2px 0;
  width: 7px; height: 7px;
}
.ba__handle span::before { transform: rotate(135deg); left: 11px; }
.ba__handle span::after  { transform: rotate(-45deg); right: 11px; }

/* The range covers the whole stage so it can be grabbed anywhere */
.ba__range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 48px; height: 200px; background: transparent; cursor: ew-resize;
}
.ba__range::-moz-range-thumb {
  width: 48px; height: 200px; background: transparent; border: 0; cursor: ew-resize;
}
.ba__range:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.ba__tag {
  position: absolute; bottom: 12px; z-index: 3;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(5,7,10,0.82); color: var(--text);
  padding: 6px 12px; border-radius: var(--radius);
  pointer-events: none;
}
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; }

.ba__cap { margin-top: var(--space-2); color: var(--text-muted); font-size: 0.96rem; }
.ba__cap strong { color: var(--text); }

/* Empty state, shown when no photos have been added yet */
.empty {
  text-align: center; padding: var(--space-6) var(--space-3);
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: var(--ink-2);
}
.empty svg { width: 48px; height: 48px; color: var(--blue); margin: 0 auto var(--space-3); }
.empty p { color: var(--text-muted); margin-inline: auto; max-inline-size: 58ch; }
.empty code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 3px; color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .ba__img--before { transition: none; }
}

/* --------------------------------------------------------------------------
   20. LEGAL / LONG-FORM TEXT (privacy.html)
   -------------------------------------------------------------------------- */
.legal { max-inline-size: 68ch; }
.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: var(--space-5) 0 var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.legal h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal p { color: var(--text-muted); }
.legal ul { color: var(--text-muted); margin: 0 0 var(--space-2); padding-left: 1.25rem; }
.legal li { margin-bottom: 0.6rem; }
.legal strong { color: var(--text); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 3px; color: var(--blue);
}

/* --------------------------------------------------------------------------
   21. FEATURED TESTIMONIAL
   One review presented large reads as confident; the same review shrunk into
   a 3-column card grid reads as "we only have one".
   -------------------------------------------------------------------------- */
.quote {
  margin: 0 auto;
  max-inline-size: 62ch;
  text-align: center;
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  position: relative; overflow: hidden;
}
.quote::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.quote__stars { display: flex; justify-content: center; gap: 5px; color: var(--blue); margin-bottom: var(--space-3); }
.quote__stars svg { width: 22px; height: 22px; }

.quote blockquote {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}
.quote blockquote::before { content: '\201C'; }
.quote blockquote::after  { content: '\201D'; }

.quote__who { display: flex; flex-direction: column; gap: 4px; }
.quote__name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
}
.quote__meta { font-size: 0.9rem; color: var(--text-dim); }

.quote__cta { text-align: center; margin: var(--space-3) 0 0; }
.quote__cta a {
  color: var(--blue); font-size: 0.98rem;
  text-decoration: underline; text-underline-offset: 4px;
}
.quote__cta[hidden] { display: none; }
.quote__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.quote__sep { color: var(--text-dim); }
.quote__sep[hidden], .quote__cta a[hidden] { display: none !important; }
/* The separator is its own flex item, so once the two links stop fitting on
   one line it strands as a lone dot at the end of the first. Below the width
   where they can share a line, drop it — the flex gap already separates them. */
@media (max-width: 599px) { .quote__sep { display: none; } }

/* --------------------------------------------------------------------------
   22. HEADER CALL BUTTON
   Always visible, including on phones where the rest of the nav collapses —
   tap-to-call is the single most valuable action on a mobile service site.
   -------------------------------------------------------------------------- */
.nav__call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); background: transparent;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.nav__call svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.nav__call:hover { border-color: var(--blue); background: var(--blue-ghost); }
.nav__call:hover svg { color: var(--blue-bright); }

@media (min-width: 900px) {
  /* Sit it after the links so the header reads: nav … Book … Call */
  .nav__links { order: 1; }
  .nav__call  { order: 2; min-height: 44px; }
}

/* On phones the label is dropped — the icon alone is unambiguous next to the
   hamburger, and the aria-label carries the meaning for screen readers. */
@media (max-width: 899px) {
  .nav__call { padding: 0; width: 48px; }
  .nav__call-text { display: none; }
}

/* --------------------------------------------------------------------------
   23. FOOTER SOCIAL LINKS
   -------------------------------------------------------------------------- */
.social { display: flex; gap: 10px; margin-top: var(--space-3); }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted);
  transition: border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.social a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-ghost); }
.social svg { width: 20px; height: 20px; }
.social a[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   24. OWNER NOTE (about section)
   --------------------------------------------------------------------------
   A word from Nicholas, set apart from the surrounding body copy so it reads
   as him speaking rather than as more marketing prose. Deliberately NOT the
   `.quote` treatment from section 21 — that one is a *customer* testimonial,
   and the two must not look alike or the note reads as a review of itself.

   Roman, not italic: this runs to five lines, and italics at that length cost
   real readability for no gain. The left rule carries the "set apart" job. */
.owner-note {
  margin: var(--space-3) 0;
  padding: 2px 0 2px var(--space-3);
  border-left: 2px solid var(--blue-line);
}
.owner-note blockquote { margin: 0; }
.owner-note blockquote p {
  margin: 0;
  color: var(--text);            /* brighter than --text-muted: this is the human bit */
  font-size: 1.02rem;
  line-height: 1.62;
}
.owner-note__sign {
  display: flex; flex-direction: column; gap: 1px;
  margin-top: var(--space-2);
}
.owner-note__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--chrome-2);
}
.owner-note__role {
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 599px) {
  .owner-note { padding-left: var(--space-2); }
}

/* --------------------------------------------------------------------------
   25. ACCENT WORD IN A CHROME HEADING
   --------------------------------------------------------------------------
   Lifts a single word out of a `.chrome` heading in the brand blue — used on
   the reviews heading to land the "peak" pun.

   `.chrome` sets `color: transparent` and clips its gradient to the text, so a
   nested word inherits invisible text. The accent therefore has to bring its
   own background and clip it itself; every element clips its own background,
   so the two nest cleanly. The @supports fallback mirrors section 3's —
   without it, engines that can't clip to text would render the word as an
   invisible gap in the middle of the heading. */
.chrome .accent {
  background: linear-gradient(176deg, var(--blue-bright) 6%, var(--blue) 58%, var(--blue-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* Same drop-shadow trick the hero uses — a glow that follows the glyphs
     rather than a box behind them. */
  filter: drop-shadow(0 0 14px rgba(30, 155, 255, 0.40));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome .accent { color: var(--blue); background: none; filter: none; }
}

/* --------------------------------------------------------------------------
   26. DERIVED START-TIME READOUT (book.html)
   --------------------------------------------------------------------------
   Not a control — an <output>. There is one slot per day (3:30 PM weekdays,
   9:00 AM weekends), so the time follows from the date and the customer has
   nothing to pick. Sized to match `.input` so it sits level with the date
   field beside it. */
.slot {
  display: flex; align-items: center;
  min-height: 52px; padding: 13px 16px;   /* same box metrics as .input */
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.slot.is-set { border-color: var(--blue-line); background: var(--surface-2); }

.slot__time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.slot__empty { font-size: 0.92rem; color: var(--text-dim); }

/* Sits under the box the way `.error` does, so the two controls in the row
   keep identical heights and line up top and bottom. */
.slot__meta { font-size: 0.84rem; color: var(--text-dim); margin: 7px 0 0; }
.slot__meta:empty { display: none; }

/* Date and its derived start time sit side by side. Both labels are kept to a
   single line so the controls line up on their own — an earlier attempt pinned
   them to the bottom instead, which fought the meta line under the readout. */
.field-row--bottom .field { margin-bottom: 0; }
.field-row--bottom .slot { min-height: 58px; }   /* matches the date input */

/* --------------------------------------------------------------------------
   27. FOOTER SLOGAN
   --------------------------------------------------------------------------
   Was reusing `.brand__cond` — the wordmark's "DETAILING" style. Two problems
   with that: it made the slogan compete with the wordmark for the same blue,
   and it inherited `white-space: nowrap`, so on a narrow phone the line could
   not break. Its own class, dimmer, and free to wrap. */
.brand__slogan {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------------------
   28. BOOKINGS ADMIN (admin.html)
   --------------------------------------------------------------------------
   Private page, so it favours density over drama: you are scanning for what's
   on today, not being sold anything. */
.admin__login { max-width: 460px; margin: var(--space-5) auto var(--space-7); }
.admin__signout { padding: 9px 16px; font-size: 0.85rem; }

.admin__bar {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
}
.admin__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin__filter {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 40px; padding: 8px 16px;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.admin__filter:hover { border-color: var(--chrome-3); color: var(--text); }
.admin__filter[aria-pressed="true"] {
  border-color: var(--blue); color: var(--blue); background: var(--blue-ghost);
}
.admin__refresh { padding: 9px 18px; font-size: 0.85rem; }

/* ---- One booking ---- */
.bk {
  display: grid; gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: 12px;
}
@media (min-width: 700px) { .bk { grid-template-columns: 120px 1fr; } }

.bk__when {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .bk__when { padding: 0 var(--space-3) 0 0; border-bottom: 0; border-right: 1px solid var(--border); }
}
.bk__date {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.bk__time {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.5rem; line-height: 1.1; color: var(--blue);
}

.bk__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.bk__who {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); margin: 0;
}
.bk__status, .bk__sync {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius); border: 1px solid;
}
.bk__status--requested { color: #FFC46B; border-color: rgba(255,196,107,0.4); background: rgba(255,196,107,0.10); }
.bk__status--confirmed { color: var(--success); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.10); }
.bk__status--done      { color: var(--text-dim); border-color: var(--border); background: var(--surface-2); }
.bk__status--cancelled { color: var(--danger); border-color: rgba(255,90,90,0.4); background: rgba(255,90,90,0.10); }
.bk__sync--yes { color: var(--success); border-color: rgba(52,211,153,0.35); }
.bk__sync--no  { color: var(--text-dim); border-color: var(--border); }

.bk__what { margin: 0 0 10px; color: var(--text-muted); font-size: 0.95rem; }
.bk__what strong { color: var(--text); }

.bk__meta { margin: 0 0 var(--space-3); display: grid; gap: 5px; }
.bk__meta > div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 0.9rem; }
.bk__meta dt { color: var(--text-dim); }
.bk__meta dd { margin: 0; color: var(--text-muted); }
.bk__meta a { color: var(--blue); }
.bk__dim { color: var(--text-dim); }

.bk__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bk__btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 40px; padding: 8px 16px;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.bk__btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.bk__btn--danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.bk__btn:disabled { opacity: 0.5; cursor: default; }

.bk__loading { color: var(--text-dim); padding: var(--space-3) 0; }

/* --------------------------------------------------------------------------
   29. AVAILABILITY CALENDAR (book.html)
   --------------------------------------------------------------------------
   Real buttons in a grid, not a custom widget. Keyboard and screen-reader
   support comes free that way, and a disabled day genuinely cannot be
   activated rather than merely looking inert. */
.cal {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-2);
  max-width: 420px;
}
.cal:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.cal__status { color: var(--text-dim); margin: 0; padding: var(--space-3) 0; text-align: center; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal__month {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
}
.cal__nav {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  font-size: 1.4rem; line-height: 1;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.cal__nav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }

.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  margin-bottom: 4px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
  text-align: center;
}

.cal__pad { aspect-ratio: 1; }
.cal__day {
  aspect-ratio: 1; min-height: 40px;
  display: grid; place-items: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.cal__day:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: var(--blue-ghost); }
.cal__day:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.cal__day[aria-pressed="true"] {
  background: var(--blue); border-color: var(--blue);
  color: var(--on-blue);      /* 6.47:1 — never white on this blue */
}

/* A taken day and a past day are both unusable, but they are not the same
   thing. Past days recede; taken days stay legible and struck through, so the
   customer can see the day exists and is spoken for rather than wondering
   whether the calendar is broken. */
.cal__day[data-state="taken"] {
  color: var(--text-dim); background: var(--surface);
  border-style: dashed; text-decoration: line-through;
  cursor: not-allowed;
}
.cal__day[data-state="past"],
.cal__day[data-state="far"] {
  color: var(--text-dim); background: transparent;
  border-color: transparent; opacity: 0.45; cursor: default;
}

.cal__legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 12px 0 0; font-size: 0.82rem; color: var(--text-dim);
}
.cal__key { width: 13px; height: 13px; border-radius: 3px; display: inline-block; margin-right: -6px; }
.cal__key--open  { background: var(--surface-2); border: 1px solid var(--border); }
.cal__key--taken { background: var(--surface); border: 1px dashed var(--border); }

@media (max-width: 420px) {
  .cal { padding: 10px; }
  .cal__day { min-height: 38px; font-size: 0.92rem; }
}

/* --------------------------------------------------------------------------
   30. DAYS OFF (admin.html)
   -------------------------------------------------------------------------- */
.blk {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 12px 16px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.blk__day {
  display: block;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text);
}
.blk__reason { display: block; font-size: 0.86rem; color: var(--text-dim); margin-top: 1px; }

/* --------------------------------------------------------------------------
   31. RECURRING DAYS OFF (admin.html)
   --------------------------------------------------------------------------
   Pressed means "never works this day". Inverted from the usual reading of a
   toggle, so it is coloured like a warning rather than like a confirmation —
   a lit-up button here means less availability, not more. */
.dow { display: flex; flex-wrap: wrap; gap: 8px; }
.dow__btn {
  min-width: 56px; min-height: 44px; padding: 8px 12px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.dow__btn:hover:not(:disabled) { border-color: var(--chrome-3); color: var(--text); }
.dow__btn:disabled { opacity: 0.5; cursor: default; }
.dow__btn[aria-pressed="true"] {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.45);
  color: var(--danger);
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   32. WORK GRID (gallery.html)
   --------------------------------------------------------------------------
   A masonry-ish grid of finished-work photos. Replaces the before/after
   sliders as the default view - those need matched pairs shot from a fixed
   camera, and the slider code (section 19) is still here for when there are
   some. Photos are mostly portrait off a phone, so the grid is sized for that
   and lets the odd landscape shot span two columns. */
/* CSS columns rather than a grid, so every photo keeps its own shape.
   A uniform grid forced one aspect ratio on all of them, which meant cropping
   - and cropping a wheel shot or a grille close-up throws away the subject.
   Here a tall interior stays tall and the one landscape shot stays wide. */
.shot-grid {
  columns: 1;
  column-gap: var(--space-3);
}
@media (min-width: 620px)  { .shot-grid { columns: 2; } }
@media (min-width: 1040px) { .shot-grid { columns: 3; } }

.shot {
  /* inline-block + full width is what stops a card being split down the
     middle across two columns. */
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.shot:hover { border-color: var(--blue-line); transform: translateY(-3px); }
.shot[hidden] { display: none !important; }

.shot img {
  display: block;
  width: 100%;
  height: auto;              /* natural shape, nothing cropped */
  background: var(--surface-2);
  border-radius: calc(var(--radius-lg) - 1px);
}


@media (prefers-reduced-motion: reduce) {
  .shot:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   33. ADMIN — manual booking
   -------------------------------------------------------------------------- */
.admin__ok {
  display: block;
  padding: 12px 16px; margin: 0 0 var(--space-3);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.10);
  color: var(--success);
  font-size: 0.92rem;
}
.admin__ok[hidden] { display: none !important; }

/* Phone bookings get their own marker so it's obvious at a glance which jobs
   the website actually brought in. */
.bk__sync--phone { color: #FFC46B; border-color: rgba(255, 196, 107, 0.4); }

/* --------------------------------------------------------------------------
   34. REVIEW GRID
   --------------------------------------------------------------------------
   Section 21 above centres a SINGLE review and caps it at 62ch, on the
   reasoning that one review shown large reads as confident while one shrunk
   into a card grid reads as "we only have one". With two that flips - side by
   side they read as a pattern rather than a lucky one-off - so the cap comes
   off and the type comes down a notch.

   Newest first, and stretched to equal height so a long review beside a short
   one doesn't leave a ragged edge. */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: stretch;
}
@media (min-width: 860px) {
  .quote-grid { grid-template-columns: repeat(2, 1fr); }

  /* An odd number of reviews leaves the last one stranded beside an empty
     half-row. Centre it at the same width as the rest rather than letting it
     sit off to one side. */
  .quote-grid .quote:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    inline-size: calc(50% - (var(--space-3) / 2));
  }
}

.quote-grid .quote {
  max-inline-size: none;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
}
.quote-grid .quote blockquote {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  /* Pushes the attribution to the bottom of the card, so both names sit on
     the same line however unevenly the quotes run. */
  flex: 1 0 auto;
}

/* The customer's actual vehicle, above their words. A testimonial is a claim;
   the same testimonial with a photo of the car it describes is evidence.

   Full-bleed via negative margins rather than restructuring the card: the
   figure already has overflow:hidden, so the image clips to the rounded
   corners on its own. `onerror` removes the image rather than the card - a
   missing photo should cost the photo, never the review. */
.quote__photo {
  display: block;
  width: calc(100% + (2 * var(--space-3)));
  /* The global img rule caps images at max-width:100%, which clamps the
     negative-margin bleed straight back to the content box. The calc is fine;
     it was being overruled. */
  max-width: none;
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-3)) var(--space-3);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}


/* --------------------------------------------------------------------------
   ADMIN CALENDAR
   --------------------------------------------------------------------------
   A month at a glance. Colour alone never carries the meaning - every state
   also has a word or a name in the cell, because red and green are the pair
   most people with colour blindness cannot separate.                       */

.acal__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-2);
}
.acal__title {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 1.3rem; margin: 0; min-inline-size: 9ch;
}
.acal__nav {
  inline-size: 34px; block-size: 34px; flex: none;
  display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
}
.acal__nav:hover { border-color: var(--chrome-3); }
.acal__today { margin-inline-start: auto; }

.acal__legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  list-style: none; padding: 0; margin: 0 0 var(--space-2);
  font-size: 0.85rem; color: var(--text-muted);
}
.acal__legend li { display: flex; align-items: center; gap: 7px; }
.acal__swatch {
  inline-size: 12px; block-size: 12px; border-radius: 3px;
  border: 1px solid var(--border); flex: none;
}
.acal__swatch--open      { background: var(--blue-ghost);           border-color: var(--blue-line); }
.acal__swatch--confirmed { background: rgba(52, 211, 153, 0.22);    border-color: rgba(52,211,153,0.5); }
.acal__swatch--requested { background: rgba(255, 196, 107, 0.22);   border-color: rgba(255,196,107,0.5); }
.acal__swatch--off       { background: rgba(255, 90, 90, 0.18);     border-color: rgba(255,90,90,0.45); }

.acal__dows, .acal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.acal__dows {
  margin-bottom: 5px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); text-align: center;
}

.acal__day {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  min-block-size: 68px; padding: 6px 7px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-align: center; font: inherit;
  cursor: pointer; overflow: hidden;
}
.acal__day:hover:not(:disabled) { border-color: var(--chrome-3); }
.acal__day:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.acal__day--blank { visibility: hidden; }
.acal__day--pad   { opacity: 0.35; }

/* The cell centres its contents, but the date belongs in the corner - it is
   what you scan down the grid by, not part of the label. */
.acal__num {
  font-weight: 700; font-size: 0.95rem; line-height: 1.1;
  align-self: flex-start; text-align: start;
}
.acal__note {
  font-size: 0.85rem; line-height: 1.25; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acal__dot { display: none; inline-size: 8px; block-size: 8px; border-radius: 50%; }

.acal__day--open      { background: var(--blue-ghost);         border-color: var(--blue-line); }
.acal__day--confirmed { background: rgba(52, 211, 153, 0.16);  border-color: rgba(52,211,153,0.45); }
.acal__day--requested { background: rgba(255, 196, 107, 0.16); border-color: rgba(255,196,107,0.45); }
.acal__day--off       { background: rgba(255, 90, 90, 0.13);   border-color: rgba(255,90,90,0.38); }

.acal__day--confirmed .acal__dot { background: var(--success); }
.acal__day--requested .acal__dot { background: #FFC46B; }
.acal__day--off       .acal__dot { background: var(--danger); }

/* Days before today, and past the 60-day booking window, are context only. */
.acal__day--past { opacity: 0.45; }
.acal__day--far  { background: var(--surface); border-style: dashed; }

.acal__day--today { box-shadow: inset 0 0 0 2px var(--blue); }
.acal__day--sel   { box-shadow: inset 0 0 0 2px var(--chrome-1); }

.acal__detail {
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.acal__detail h3 {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;
  font-size: 1.1rem; margin: 0 0 var(--space-1);
}
.acal__detail dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px;
  margin: 0 0 var(--space-2); font-size: 0.92rem;
}
.acal__detail dt { color: var(--text-dim); }
.acal__detail dd { margin: 0; }
.acal__actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  /* Names do not fit in a phone-width square, so the state becomes a dot and
     the name moves to the panel underneath. */
  .acal__day { min-block-size: 52px; padding: 5px; align-items: center; }
  .acal__note { display: none; }
  .acal__day--confirmed .acal__dot,
  .acal__day--requested .acal__dot,
  .acal__day--off .acal__dot { display: block; }
  .acal__dows { font-size: 0.6rem; letter-spacing: 0.04em; }

  /* Claw back the card's side padding so each square is a comfortable tap
     target rather than a 36px sliver. */
  #calPanel .card { padding-inline: 10px; }
  .acal__dows, .acal__grid { gap: 4px; }
  .acal__detail dl { grid-template-columns: 1fr; gap: 2px; }
  .acal__detail dt { margin-top: 6px; }
}
