/* On The Spot Auto Detailing. Motion and polish pass (Claude, Nov 20 2026). Loads after styles.css.
   Tokens, layout, copy, prices, forms and tracking are untouched. This file only changes how things feel.

   One voice: refined premium auto care. Clean like a freshly detailed car: glossy, not empty.
   The system is one idea, light passing over paint:
   - soft corners and layered warm shadows give depth (no hard boxes)
   - the same Caslon headlines, with the Archivo caps lightened so they stop shouting
   - the plate red gets depth and a clear-coat sheen instead of flat blocks
   - a slow gloss sweep on the hero, cards that lift, buttons that catch the light
   Restraint wins: nothing bounces, nothing flashes, motion uses transform and opacity only (no layout shift),
   and everything turns off for visitors who ask for reduced motion. */

/* ---------- Tokens: new ones only, built from the locked badge colors ---------- */
:root {
  --r: 14px;                      /* was 3px. The default corner for buttons-in-forms, inputs, chips and small panels */
  --r-sm: 10px;
  --r-lg: 20px;                   /* big surfaces: cards, tiers, forms, panels */
  --ease: cubic-bezier(.22, .8, .24, 1);       /* smooth and confident, no overshoot */
  --ease-io: cubic-bezier(.45, 0, .2, 1);
  --mo-dist: 28px;
  /* Layered, warm charcoal shadows with a hairline of light on top, like a shop lamp on paint. Replaces the two lifts in styles.css */
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 2px rgba(35, 34, 34, .06), 0 12px 24px -14px rgba(35, 34, 34, .30), 0 30px 50px -38px rgba(35, 34, 34, .34);
  --lift-2: inset 0 1px 0 rgba(255, 255, 255, .85), 0 2px 4px rgba(35, 34, 34, .06), 0 20px 36px -16px rgba(35, 34, 34, .34), 0 46px 72px -38px rgba(35, 34, 34, .44);
}

/* ---------- Type: same fonts, one calmer voice ----------
   The clash was the wide, heavy Archivo caps next to the light Caslon. Weight and width come down together,
   so serif headlines and the badge feel like one system. */
h1, h2 { letter-spacing: -.012em; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga"; }
h3 { font-weight: 600; font-stretch: 100%; letter-spacing: 0; }
.kicker, .label, .menu-label, .pq-step, .sign-head, .form legend, .card .price-q, .card .price span, .card .quote, .way em, .tile em,
.windows dt, .rate-head, .offer .offer-price span, .foot h3, .card-no::after, .tag, .bk-sum .tbd, .pq-price .tbd, .pq-tier .tbd { font-weight: 500; font-stretch: 112%; }
.kicker, .label { letter-spacing: .22em; }
.offer b, .way b, .tile b { font-weight: 600; font-stretch: 100%; }
.nav a { font-weight: 500; font-stretch: 108%; letter-spacing: .16em; }

/* ---------- Buttons: lighter, rounder, catch the light ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 999px; padding: 0 28px;
  font-weight: 500; font-stretch: 112%; font-size: .76rem; letter-spacing: .16em;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 22px -14px rgba(35, 34, 34, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn-sm { padding: 0 20px; font-size: .7rem; }
.btn-lg { padding: 0 34px; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%); transform: translate3d(-120%, 0, 0); transition: transform .8s var(--ease); }
.btn:hover { transform: translate3d(0, -2px, 0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 18px 28px -14px rgba(35, 34, 34, .62); }
.btn:hover::after { transform: translate3d(120%, 0, 0); }
.btn:active { transform: translate3d(0, 0, 0) scale(.985); transition-duration: .08s; }
.btn:disabled { transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }
.btn-light { box-shadow: inset 0 1px 0 #fff, 0 14px 26px -14px rgba(0, 0, 0, .6); }
.btn-ghost, .btn-ghost-ink { background-image: none; box-shadow: none; }
.btn-ghost { border-color: rgba(53, 52, 52, .4); }
.btn-ghost:hover { background: rgba(53, 52, 52, .07); border-color: var(--char); color: var(--char); box-shadow: none; }
.btn-ghost-ink { border-color: rgba(255, 254, 255, .42); }
.btn-ghost-ink:hover { background: rgba(255, 254, 255, .1); border-color: rgba(255, 254, 255, .85); color: var(--white); box-shadow: none; }
.link-arrow::after { display: inline-block; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translate3d(4px, 0, 0); }

/* ---------- Focus ring: it eases in ---------- */
@keyframes mo-ring { from { outline-color: transparent; outline-offset: 9px; } }
:focus-visible { animation: mo-ring .3s var(--ease); }

/* ---------- Header: glass over the page, settles when you scroll ---------- */
.top { transition: box-shadow .45s var(--ease), background-color .45s var(--ease); }
/* solid at the top of the page, a touch of glass once you scroll so the page slides under it */
.top.is-scrolled { background: color-mix(in srgb, var(--ink) 96%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .7); }
.mark img { transform-origin: 0 50%; transition: transform .5s var(--ease); }
.top.is-scrolled .mark img { transform: scale(.84); }
.nav a { position: relative; border-bottom: 0; padding-bottom: 9px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--silver); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero: the plate with depth, and light passing over it ---------- */
.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 62% at 20% 8%, color-mix(in srgb, var(--plate-hi) 78%, transparent), transparent 66%),
    radial-gradient(ellipse 130% 90% at 100% 115%, rgba(0, 0, 0, .24), transparent 72%),
    linear-gradient(168deg, color-mix(in srgb, var(--plate) 90%, var(--plate-hi)) 0%, var(--plate) 46%, color-mix(in srgb, var(--plate) 64%, black) 100%);
}
.hero::before { content: ""; position: absolute; inset: -20% -40%; z-index: 0; pointer-events: none;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .06) 55%, transparent 62%);
  transform: translate3d(-60%, 0, 0); animation: mo-sweep 11s var(--ease-io) 1.6s 4 both; }
.hero > * { position: relative; z-index: 1; }
@keyframes mo-sweep { 0% { transform: translate3d(-60%, 0, 0); } 20%, 100% { transform: translate3d(60%, 0, 0); } }
/* Entrance: each line rises in turn. The headline also comes into focus. */
@keyframes mo-rise { from { opacity: 0; transform: translate3d(0, var(--mo-dist), 0); } to { opacity: 1; transform: none; } }
@keyframes mo-focus { from { opacity: .01; transform: translate3d(0, 26px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mo-fade { from { opacity: 0; } to { opacity: 1; } }
.hero .kicker, .hero .lead, .hero .cta, .hero-facts, .hero .sign { animation: mo-rise 1s var(--ease) both; --mo-dist: 22px; }
.hero h1 { animation: mo-focus 1.05s var(--ease) .12s both; }
.hero .kicker { animation-delay: .04s; }
.hero .lead { animation-delay: .3s; }
.hero .cta { animation-delay: .44s; }
.hero-facts { animation-delay: .6s; }
.hero .sign { animation-delay: .5s; }
.top, .bar { animation: mo-fade .7s var(--ease) both; }
/* the content eases up slower than the page as you scroll away (set from motion.js) */
.hero-in { transform: translate3d(0, calc(var(--mo-y, 0) * .12px), 0); }
.hero-photo { border-radius: var(--r-lg); }

/* ---------- Sections: soft transitions instead of hard edges ---------- */
.sec-tint { background: linear-gradient(180deg, var(--paper) 0, var(--light) clamp(56px, 9vw, 140px), var(--light) calc(100% - clamp(56px, 9vw, 140px)), var(--paper) 100%); }
.bf, .offers { background: radial-gradient(ellipse 60% 120% at 12% 0, rgba(158, 23, 22, .16), transparent 60%), var(--ink); box-shadow: inset 0 1px 0 rgba(189, 176, 180, .16); }
.last { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 100% at 50% 0, color-mix(in srgb, var(--plate-hi) 70%, transparent), transparent 66%), linear-gradient(170deg, var(--plate), color-mix(in srgb, var(--plate) 66%, black)); }
.last > * { position: relative; z-index: 1; }
.bf { position: relative; overflow: hidden; isolation: isolate; }
.bf > * { position: relative; z-index: 1; }
/* one pass of light when these two bands first scroll into view (class added by motion.js) */
.last::before, .bf::before { content: ""; position: absolute; inset: -30% -40%; z-index: 0; pointer-events: none; background: linear-gradient(104deg, transparent 40%, rgba(255, 255, 255, .06) 46%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .06) 54%, transparent 60%); transform: translate3d(-60%, 0, 0); }
.last.mo-seen::before, .bf.mo-seen::before { animation: mo-sweep-once 2.6s var(--ease-io) .15s both; }
@keyframes mo-sweep-once { from { transform: translate3d(-60%, 0, 0); } to { transform: translate3d(60%, 0, 0); } }

/* ---------- Surfaces: one corner, one depth ---------- */
.card, .tier, .way, .place, .tiles, .form, .deposit, .sign, .pq-members, .bk-sum { border-radius: var(--r-lg); }
.card { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.card:hover { transform: translate3d(0, -6px, 0); border-color: color-mix(in srgb, var(--plate) 22%, var(--line)); }
.card-star { box-shadow: inset 0 2px 0 var(--plate), var(--lift-1); }
.card-star:hover { box-shadow: inset 0 2px 0 var(--plate), var(--lift-2); }
.tier { border-top-width: 1px; box-shadow: inset 0 2px 0 var(--char), var(--lift-1); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tier-fleet { box-shadow: inset 0 2px 0 var(--plate), var(--lift-1); }
.tier:hover { transform: translate3d(0, -4px, 0); box-shadow: inset 0 2px 0 var(--char), var(--lift-2); }
.tier-fleet:hover { box-shadow: inset 0 2px 0 var(--plate), var(--lift-2); }
.way { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.way:hover { transform: translate3d(0, -4px, 0); }
.way em { transition: transform .35s var(--ease); }
.way:hover em { transform: translate3d(4px, 0, 0); }
.place { box-shadow: var(--lift-1); }
.form { border-top-width: 1px; box-shadow: inset 0 2px 0 var(--plate), var(--lift-2); }
.form input, .form select, .form textarea { border-radius: var(--r-sm); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.form input:focus, .form select:focus, .form textarea:focus { box-shadow: 0 0 0 4px rgba(183, 36, 34, .12); background: var(--white); }
.towns li { box-shadow: 0 1px 2px rgba(35, 34, 34, .05); transition: border-color .25s, transform .3s var(--ease); }
.towns li:hover { border-color: var(--plate); transform: translate3d(0, -1px, 0); }
.offer { border-radius: var(--r); transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.offer:hover { transform: translate3d(0, -3px, 0); }
.pq-drop, .pq-thumbs li, .pq-privacy, .pq-attached, .pay-msg, .bk-code { border-radius: var(--r); }

/* ---------- FAQ: opens smoothly ---------- */
summary { transition: color .25s; }
summary::after { transition: transform .45s var(--ease); transform-origin: 50% 56%; }
details[open] summary::after { content: "+"; transform: rotate(45deg); }
details[open] > :not(summary) { animation: mo-fade .55s var(--ease) both; }
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}

/* ---------- Prices: rows rise, then respond to the pointer ---------- */
.rate-row { position: relative; isolation: isolate; }
/* the hover tint is its own soft layer, so the hairlines stay straight and the table keeps its edges */
.rate-row:not(.rate-head)::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: var(--r); background: rgba(255, 254, 255, 0); transition: background-color .35s var(--ease); pointer-events: none; }
.rate-row:not(.rate-head):hover::before { background: rgba(255, 254, 255, .8); }
.rate-p { transition: color .3s; }
.rate-row:not(.rate-head):hover .rate-p { color: var(--plate); }

/* ---------- Booking: choices respond, steps arrive ---------- */
.bk-offer { border-radius: var(--r); transition: transform .4s var(--ease), border-color .25s, box-shadow .3s; }
.bk-offer:hover { transform: translate3d(0, -3px, 0); }
.bk-chip { border-radius: var(--r-sm); transition: transform .3s var(--ease), border-color .25s, background-color .25s, box-shadow .3s, color .25s; }
.bk-chip:hover { transform: translate3d(0, -1px, 0); }
.bk-chip[aria-checked="true"] { transform: translate3d(0, -1px, 0); box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--plate) 80%, black), inset 0 1px 0 rgba(255, 255, 255, .2); animation: mo-pop .35s var(--ease); }
.bk-offer[aria-pressed="true"] { animation: mo-pop .35s var(--ease); }
@keyframes mo-pop { from { transform: scale(.97); } }
.bk-slots .bk-chip, .bk-days .bk-chip { animation: mo-chip .45s var(--ease) backwards; }
@keyframes mo-chip { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.bk-slots .bk-chip:nth-child(2), .bk-days .bk-chip:nth-child(2) { animation-delay: .03s; }
.bk-slots .bk-chip:nth-child(3), .bk-days .bk-chip:nth-child(3) { animation-delay: .06s; }
.bk-slots .bk-chip:nth-child(4), .bk-days .bk-chip:nth-child(4) { animation-delay: .09s; }
.bk-slots .bk-chip:nth-child(5), .bk-days .bk-chip:nth-child(5) { animation-delay: .12s; }
.bk-slots .bk-chip:nth-child(n+6), .bk-days .bk-chip:nth-child(n+6) { animation-delay: .15s; }
/* a chosen day or time does a small press, and wins over the entrance above */
.bk-days .bk-chip[aria-checked="true"]:nth-child(n), .bk-slots .bk-chip[aria-checked="true"]:nth-child(n) { animation: mo-pop .35s var(--ease); }
/* things that appear when you act: they ease in each time they are shown */
.gift-form:not([hidden]), #pq:not([hidden]), .bk-visits:not([hidden]), .pq-attached:not([hidden]), .bk-code:not([hidden]),
#bk-town-other-wrap:not([hidden]), #pq-town-other-wrap:not([hidden]), .pq-result:not([hidden]), .after-send:not([hidden]) { animation: mo-rise .55s var(--ease) both; --mo-dist: 14px; }
.form-msg:not(:empty), .pay-msg:not([hidden]) { animation: mo-rise .45s var(--ease) both; --mo-dist: 8px; }
.bk-visit { border-radius: var(--r); animation: mo-chip .4s var(--ease) backwards; }
.mo-tick { animation: mo-tick 1.1s var(--ease); }
@keyframes mo-tick { 0% { background: rgba(183, 36, 34, .1); } 100% { background: transparent; } }
.bk-sum { overflow: hidden; }

/* ---------- Other pages: the first screen eases in like the hero ---------- */
.prices-hero .sec-head > *, .bk-copy > *, .page .wrap > :nth-child(-n+5) { animation: mo-rise .9s var(--ease) both; --mo-dist: 20px; }
:is(.prices-hero .sec-head, .bk-copy, .page .wrap) > :nth-child(2) { animation-delay: .08s; }
:is(.prices-hero .sec-head, .bk-copy, .page .wrap) > :nth-child(3) { animation-delay: .16s; }
:is(.prices-hero .sec-head, .bk-copy, .page .wrap) > :nth-child(4) { animation-delay: .24s; }
:is(.prices-hero .sec-head, .bk-copy, .page .wrap) > :nth-child(n+5) { animation-delay: .32s; }
.actions { animation: mo-up .7s var(--ease) .5s both; }
@keyframes mo-up { from { transform: translate3d(0, 100%, 0); } }

/* ---------- Scroll reveals (classes come from motion.js, only for things below the first screen) ---------- */
.mo-r { opacity: 0; transform: translate3d(0, var(--mo-dist), 0); }
.mo-in { animation: mo-rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Reduced motion and print: everything still, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mo-r { opacity: 1 !important; transform: none !important; }
  .hero-in { transform: none !important; }
  .btn::after, .hero::before, .last::before, .bf::before { display: none !important; }
}
@media print { .mo-r { opacity: 1 !important; transform: none !important; } .hero::before, .last::before, .bf::before, .btn::after { display: none; } }
