/* ===== 920 Detail — design system + polish (loaded last on every page) =====
   One place for the shared rules: colors, text contrast, type, numbers, icons,
   radii, buttons, loading states and feedback. Page CSS still handles layout. */

/* ---------- 1. Tokens ---------- */
:root{
  --accent:#d9361f;             /* the one accent colour: buttons, links, highlights */
  --accent-hover:#c22f1a;
  --bg-0:#0b0b0b; --bg-1:#111; --bg-2:#161616;
  --text-1:rgba(255,255,255,.94);  /* headlines, key text */
  --text-2:rgba(255,255,255,.74);  /* body text */
  --text-3:rgba(255,255,255,.60);  /* captions, meta (still passes contrast on near-black) */
  --line:rgba(255,255,255,.09);
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:20px;
  --ease:cubic-bezier(.22,.61,.24,1);
  /* home.css text tokens, raised for contrast */
  --h-dim:var(--text-2);
  --h-faint:var(--text-3);
}

/* ---------- 2. Text contrast ----------
   Faint white text (20–40% opacity) was hard to read on the dark background.
   Same classes, readable values. */
.text-white\/20,.text-white\/25{color:rgba(255,255,255,.52)!important}
.text-white\/30{color:rgba(255,255,255,.56)!important}
.text-white\/35{color:rgba(255,255,255,.60)!important}
.text-white\/40{color:rgba(255,255,255,.64)!important}
.text-white\/45{color:rgba(255,255,255,.68)!important}
.text-white\/50{color:rgba(255,255,255,.70)!important}
.text-white\/55{color:rgba(255,255,255,.72)!important}
a.text-white\/20:hover,a.text-white\/25:hover,a.text-white\/30:hover,a.text-white\/35:hover,a.text-white\/40:hover,a.text-white\/45:hover{color:#fff!important}

/* ---------- 3. Type ---------- */
h1,h2,h3{text-wrap:balance}
p,li,figcaption,summary{text-wrap:pretty}
em,i{font-style:normal}                       /* no random italic words */
/* Big condensed display type: nudge left so the letters line up with body text by eye */
h1{margin-left:-.03em}
/* Numbers that sit in columns or change (prices, stats, steps, phone numbers) */
.h-pkg-price,.m-amt,.h-fact b,.h-tier em,.h-step-n,.mp-from b,.mp-prices b,.mp-save-t b,
.mb .price,.mb .brow em,.mb .offer b,.mb .spots,.mb .step .num,.mb .why b,
[data-count],[data-price],a[href^="tel:"],.obx-foot,.tabular{font-variant-numeric:tabular-nums}

/* ---------- 4. Embellishments removed ---------- */
.grain:after{display:none!important}          /* film-grain overlay */
.h-btn-red{box-shadow:none}                   /* red glow under buttons */
.h-btn-red:hover{transform:none}
.h-pkg.feat{box-shadow:0 1px 0 rgba(255,255,255,.04) inset}
.mobile-callbar a[style*="box-shadow"]{box-shadow:none!important}
.m-band{background:linear-gradient(135deg,#1a1c20 0%,#131417 100%)}
.mb .btn{box-shadow:none}
.mb .card .badge{box-shadow:none}

/* ---------- 5. One accent colour ----------
   The winter cards used a second, icy-blue accent. Bring them back to the site's neutrals + red. */
.w-card{background:var(--bg-2);border-color:var(--line)}
.w-ico{background:rgba(217,54,31,.12);color:var(--accent)}

/* ---------- 6. Icons: one line weight, one style ---------- */
svg[stroke="currentColor"],svg[stroke="currentColor"] *{stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- 7. Radii: inner radius = outer radius − padding ---------- */
.h-sizes{border-radius:var(--r-md);padding:4px}
.h-sizes .vehicle-btn{border-radius:calc(var(--r-md) - 4px)}
.mb .toggle{padding:4px}
.mb .card{border-radius:var(--r-lg)}
.mb .pbox{border-radius:var(--r-sm)}           /* 16px card, ~22px padding → small inner radius */
.mp-works-note{border-radius:var(--r-sm)}
.h-pkg .h-btn{border-radius:var(--r-md)}
.obx{border-radius:var(--r-xl)}
.obx-frame iframe{border-radius:0}

/* ---------- 8. Spacing: related things close, sections apart ---------- */
.h-eyebrow{margin:0 0 10px}
.h-head{margin-bottom:40px}
.h-lead{margin-top:14px}

/* ---------- 9. Calls to action ----------
   Primary = solid red, big, bold. Secondary = quiet outline. Nothing else competes. */
.h-btn{min-height:52px;border-radius:var(--r-md);transition:background .2s,opacity .2s,transform .12s var(--ease)}
.h-btn-red,.bg-primary,.mb .btn:not(.line){background:var(--accent)}
.h-btn-red:hover,.mb .btn:not(.line):hover{background:var(--accent-hover);opacity:1}
.h-btn-ghost{background:transparent;border-color:rgba(255,255,255,.28)}
.h-hero .h-btn-red,.mb .hero .btn:not(.line){min-height:56px;padding:0 30px;font-size:16px}
/* Button arrows look off-centre at true centre; nudge them by eye */
.h-btn svg,.h-link svg{position:relative;top:.5px}

/* ---------- 10. Main feature: The Works is the package most people book ---------- */
@media (min-width:900px){
  .h-pkgs{align-items:center}
  .h-pkg.feat{padding-top:40px;padding-bottom:36px;transform:scale(1.04);z-index:1}
  .h-pkg.feat .h-pkg-price{font-size:48px}
}

/* ---------- 11. Show the real thing: photos on the winter cards ---------- */
.w-photo{margin:-28px -26px 22px;aspect-ratio:16/10;overflow:hidden;border-radius:17px 17px 0 0;background:var(--bg-1)}
.w-photo img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- 12. Loading states ---------- */
img[loading="lazy"]{background:var(--bg-2)}   /* placeholder until the photo arrives */
form[data-lead-form] [type="submit"][disabled]{cursor:progress;opacity:.85}
form[data-lead-form] [type="submit"][disabled]::before{content:"";width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:p-spin .7s linear infinite;flex:none;display:inline-block;vertical-align:-3px}
.obx-wait-t::before{content:"";display:block;width:26px;height:26px;margin:0 auto 14px;border-radius:50%;border:2.5px solid #e5e5e5;border-top-color:var(--accent);animation:p-spin .8s linear infinite}
.obx-wait .obx-open{animation:none}
@keyframes p-spin{to{transform:rotate(360deg)}}

/* ---------- 13. Useful feedback ---------- */
.h-btn:active,.mb .btn:active,button:active,.chip:active{transform:scale(.98)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[data-form-success]{animation:p-in .45s var(--ease) both}
@keyframes p-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
form[data-lead-form] input:user-invalid,form[data-lead-form] select:user-invalid,form[data-lead-form] textarea:user-invalid{border-color:#e0533f!important;box-shadow:0 0 0 3px rgba(224,83,63,.18)}
.chip{transition:background .15s,border-color .15s,color .15s,transform .12s var(--ease)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .h-pkg.feat{transform:none}
}

/* Glows written inline on some buttons */
a[style*="box-shadow"],button[style*="box-shadow"]{box-shadow:none!important}

/* =====================================================================
   Impeccable audit fixes (2026-11-09)
   ===================================================================== */
:root{
  --accent-text:#ef5a41;        /* red for small text on dark: 4.9–5.8:1 (brand #d9361f was 3.6–4.2:1) */
  --accent-text-light:#b52c17;  /* red for text on light backgrounds: 5.2–6.3:1 */
  --accent-deep:#b52c17;        /* red behind white text on featured cards: 6.3:1 */
}

/* Readable red text. Buttons keep the brand red; only red *text* changes. */
.h-eyebrow,.mb .label,.mb legend,.text-primary,
[style*="color:#d9361f"]:not(svg):not([style*="-color:#d9361f"]),[style*="color: #d9361f"]:not(svg){color:var(--accent-text)!important}
.light [style*="color:#d9361f"],.bg-white [style*="color:#d9361f"],.bg-gray-50 [style*="color:#d9361f"],
[style*="background:#fff"] [style*="color:#d9361f"],[style*="background:#F"] [style*="color:#d9361f"],
.mb .light .label,.mb .toggle span small,.mb .card:not(.pop) .bill b{color:var(--accent-text-light)!important}
.mb .card.pop .bill b{color:#ff8b78}
/* Hover should darken a red button, not lighten it (lighter red failed contrast) */
.bg-primary:hover,.hover\:bg-primary\/85:hover{background:var(--accent-hover)!important}

/* Red featured cards: deeper red so the white text reads; no pale-pink text */
.reveal[style*="background:#d9361f"]{background:var(--accent-deep)!important}
.reveal[style*="#d9361f 0%"]{background:linear-gradient(135deg,var(--accent-deep) 0%,#7d1f11 100%)!important}
.reveal[style*="background:#d9361f"] [class*="text-white/"],.reveal[style*="#d9361f 0%"] [class*="text-white/"],
.reveal[style*="background:#d9361f"] [style*="color:rgba(255,255,255"],.reveal[style*="#d9361f 0%"] [style*="color:rgba(255,255,255"]{color:rgba(255,255,255,.94)!important}
.reveal[style*="background:#d9361f"] [style*="background:rgba(255,255,255,0.2)"],
.reveal[style*="#d9361f 0%"] [style*="background:rgba(255,255,255,0.12)"]{background:rgba(0,0,0,.2)!important;color:#fff!important}
div.text-center[style*="background:#d9361f"]{background:var(--accent-deep)!important;color:#fff!important}

/* Faint text written inline (20–35% white) */
[style*="color:rgba(255,255,255,0.2)"],[style*="color:rgba(255,255,255,0.25)"],
[style*="color:rgba(255,255,255,0.3)"],[style*="color:rgba(255,255,255,0.35)"]{color:rgba(255,255,255,.62)!important}
.vehicle-btn.vehicle-active .vehicle-sub{color:inherit!important;opacity:.7}
.chip .opacity-70{opacity:.85}
/* Form placeholders were 2.2:1 */
.form-field::placeholder,.field-dark::placeholder,.m-form ::placeholder,.mb .f ::placeholder{color:rgba(255,255,255,.55)!important}
/* Paint correction step numbers were decoration-faint (1.2:1) */
[style*="color:rgba(217,54,31,0.25)"]{color:var(--accent-text)!important}

/* Glows: remove every red box-shadow / drop-shadow written inline or in the booking widget */
[style*="box-shadow"][style*="217,54,31"],[style*="box-shadow"][style*="217, 54, 31"]{box-shadow:none!important}
[style*="drop-shadow"][style*="217,54,31"]{filter:none!important}
.bw-b,.bw-b.p{box-shadow:none!important}

/* No card inside a card */
.mp-works-note{background:none;border:0;padding:0;margin:0 0 16px}
.mb .pbox,.mb .card.prem .pbox,.mb .card.pop .pbox{background:none;border:0;padding:0}
/* No red spotlight on the Most popular card */
.mb .card.pop{background:linear-gradient(180deg,#171717,#0b0b0b)}

/* Hero headline was 96px; cap it */
.mb .hero h1{font-size:clamp(42px,6vw,76px)}

/* Comfortable line length (was ~100+ characters) */
article .space-y-4 > p{max-width:70ch}
.max-w-3xl > p.text-base{max-width:70ch;margin-inline:auto}
main p.text-base:not(.text-center){max-width:70ch}

/* Giant faint background word on Paint Correction: decoration only */
span[style*="color:rgba(255,255,255,0.03)"]{display:none}

/* Red text on light surfaces must use the darker red. :not(#_) only raises priority over the dark-surface rule. */
.light [style*="color:#d9361f"]:not(#_),.bg-white [style*="color:#d9361f"]:not(#_),.bg-gray-50 [style*="color:#d9361f"]:not(#_),
[style*="background:#fff"] [style*="color:#d9361f"]:not(#_),[style*="background:#F"] [style*="color:#d9361f"]:not(#_),
[style*="background:#f"] [style*="color:#d9361f"]:not(#_),[style*="background:white"] [style*="color:#d9361f"]:not(#_),
[style*="background:#fff"][style*="color:#d9361f"]:not(#_),[style*="background:white"][style*="color:#d9361f"]:not(#_),
.bg-white[style*="color:#d9361f"]:not(#_),.bg-white.text-primary:not(#_),.bg-white .text-primary:not(#_){color:var(--accent-text-light)!important}
/* ~80 characters per line */
article .space-y-4 > p,.max-w-3xl > p.text-base,main p.text-base:not(.text-center){max-width:62ch}

/* Last glows: Tailwind shadow-primary CTAs, booking widget pieces */
[class*="shadow-primary"]{--tw-shadow-color:transparent;box-shadow:none!important}
.pkg-btn.pkg-active,.bw-done .rg{box-shadow:none!important}
/* Focus: a crisp outline instead of a soft red glow (same job, no glow) */
.m-form input:focus,.m-form select:focus,.m-form textarea:focus,
.mb .f input:focus,.mb .f select:focus,.mb .f textarea:focus{box-shadow:none!important;outline:2px solid var(--accent);outline-offset:1px}
form[data-lead-form] input:user-invalid,form[data-lead-form] select:user-invalid,form[data-lead-form] textarea:user-invalid{box-shadow:none!important}
/* Long-form text: keep lines under ~80 characters */
article .space-y-4 > p{max-width:58ch}
main.max-w-3xl .space-y-8 p,main.max-w-3xl .space-y-8 li{max-width:62ch}
[data-accordion-panel] p{max-width:66ch}
