/* ==========================================================================
   Lil Rag Automotive Towing and Tire Sale, LLC — lilrag.com
   Single stylesheet. No build step.

   Palette derived from the shop's printed flyer (black / red / gold),
   with every value contrast-checked rather than eyeballed:

     white   #FFFFFF on ink  19.42:1  AAA
     gold    #F2A81D on ink   9.61:1  AAA   (text + accents)
     gold-hi #FFC148 on ink  12.00:1  AAA   (focus ring, gold button fill)
     muted   #B6B6C2 on ink   9.67:1  AAA   (body copy)
     dim     #8E8E9C on ink   6.01:1  AA    (fine print)
     red-txt #FF6B70 on ink   7.02:1  AAA   (red used as TEXT)
     red     #D01E27 fill, white on it 5.39:1 AA  (buttons only)
     ink     #0D0D0F on gold  9.61:1  AAA   (gold button label)
     line    #6E6E7A on ink   3.86:1  passes 3:1 for UI boundaries

   The flyer's brand red (#D01E27) is only 3.60:1 on black, so it is used
   as a FILL (with white type over it) and never as small text.
   ========================================================================== */

:root {
  --ink:        #0D0D0F;
  --surface:    #16161A;
  --card:       #1C1C22;
  --card-hi:    #23232B;

  --line:       #6E6E7A;   /* interactive borders, >= 3:1 */
  --line-soft:  #2A2A31;   /* decorative hairlines */

  --red:        #D01E27;
  --red-deep:   #A9151D;
  --red-text:   #FF6B70;

  --gold:       #F2A81D;
  --gold-hi:    #FFC148;
  --gold-deep:  #C6850B;

  --white:      #FFFFFF;
  --muted:      #B6B6C2;
  --dim:        #8E8E9C;

  --display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --head-h: 58px;

  --wrap: 1120px;
  --gut: clamp(16px, 5vw, 36px);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  --dur: 160ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }

/* An author `display` rule beats the UA's `[hidden] { display: none }`, which
   silently un-hides anything toggled with the `hidden` attribute (this bit the
   tire search panel: it stayed on screen during the API-down state). Make the
   attribute authoritative once, here, rather than per component. */
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; color: var(--white); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold); }

/* ---------- a11y ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold-hi); color: var(--ink); font-weight: 700;
  padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; }

/* Not :where() — zero specificity means any later rule silently wins and the
   keyboard ring disappears. Real selectors, so the ring always lands. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- icons ---------- */
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.svc-ic, .trust-ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 100;
  height: var(--head-h);
  background: rgba(13, 13, 15, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.head-row {
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--display); text-decoration: none; letter-spacing: .02em;
}
.wm-lil, .wm-rag {
  font-size: 25px; font-weight: 700; line-height: 1;
}
.wm-lil { color: var(--white); }
.wm-rag { color: var(--red-text); margin-left: -2px; }
.wm-sub {
  font-size: 11px; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--display); font-weight: 600;
  font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px; min-height: 50px;
  border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-red  { --btn-bg: var(--red);     --btn-fg: var(--white); }
.btn-red:hover  { background: var(--red-deep); }
.btn-gold { --btn-bg: var(--gold-hi); --btn-fg: var(--ink); }
.btn-gold:hover { background: var(--gold); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--card-hi); border-color: var(--gold); }

.btn-sm { font-size: 15px; padding: 9px 16px; min-height: 40px; gap: 8px; }

.btn-xl {
  font-size: 19px; padding: 16px 26px; min-height: 68px;
  text-align: left; flex: 1 1 260px; max-width: 340px;
}
.btn-stack { display: flex; flex-direction: column; line-height: 1.12; }
.btn-kicker {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; opacity: .82;
}
.btn-phone { font-size: 25px; font-weight: 700; letter-spacing: .01em; }
.btn-xl .ic { width: 26px; height: 26px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row-tight .btn { flex: 0 1 auto; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--head-h));
  display: flex; align-items: center;
  padding-block: clamp(28px, 6vh, 64px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
/* Restrained atmosphere: a single off-centre garage-light bloom.
   No diagonal streaks, no distressing — the flyer's loudness does not
   translate to a screen someone is squinting at beside a flat tire. */
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 48% at 78% 18%, rgba(242, 168, 29, .17), transparent 68%),
    radial-gradient(64% 54% at 8% 88%, rgba(208, 30, 39, .20), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(12px, 3vw, 14px); letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: clamp(10px, 2vh, 18px);
}

.lockup { line-height: .88; margin-bottom: clamp(10px, 2vh, 16px); }
.lock-line { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.005em; }
.lock-lil { color: var(--white); font-size: clamp(56px, 15vw, 128px); }
/* The hero wordmark uses the TRUE flyer red, not the lightened --red-text the
   small header lockup needs. At clamp(56px…128px) bold this is WCAG "large
   text", where the threshold is 3:1, and #D01E27 on #0D0D0F measures 3.60:1 —
   so the brand red is compliant here and only here. Anywhere the same red would
   appear at body size it must stay --red-text (7.02:1). Don't unify these two. */
.lock-rag { color: var(--red); font-size: clamp(56px, 15vw, 128px); }
.lock-sub {
  display: block; margin-top: clamp(6px, 1.4vh, 12px);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(15px, 3.6vw, 26px); letter-spacing: .2em;
  text-transform: uppercase; color: var(--white);
}
.lock-amp { color: var(--gold); display: inline-block; }

.tagline {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 7vw, 52px); line-height: 1.04;
  letter-spacing: .01em; text-transform: uppercase; color: var(--white);
  margin-bottom: 6px;
}
.subline {
  font-size: clamp(15px, 3.4vw, 19px); color: var(--muted);
  margin-bottom: clamp(18px, 3.2vh, 32px);
}

.hero-note {
  margin-top: clamp(16px, 3vh, 28px);
  font-size: clamp(12px, 3vw, 14px); color: var(--dim);
  letter-spacing: .04em;
}

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.band { padding-block: clamp(56px, 9vw, 104px); border-bottom: 1px solid var(--line-soft); }
.band-services { background: var(--surface); }
.band-tires { background: var(--ink); }
.band-pricing { background: var(--surface); }
.band-trust { background: var(--ink); padding-block: clamp(36px, 6vw, 60px); }
.band-close {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(208, 30, 39, .22), transparent 70%),
    var(--ink);
  text-align: center;
}

.kicker {
  font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 26px; height: 2px; background: var(--red); margin-right: 12px;
  transform: translateY(-2px);
}
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 6vw, 52px); line-height: 1.04;
  letter-spacing: .005em; text-transform: uppercase;
  margin-bottom: 14px;
}
.lede { font-size: clamp(16px, 2.4vw, 19px); max-width: 60ch; margin-bottom: 34px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.svc-grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 8px;
}
.svc {
  position: relative;
  background: var(--card);
  padding: 34px 26px 30px;
  transition: background var(--dur) var(--ease);
}
.svc:hover { background: var(--card-hi); }
.svc-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--display); font-weight: 700; font-size: 34px;
  color: var(--line-soft); line-height: 1;
}
.svc-ic { width: 40px; height: 40px; color: var(--gold); margin-bottom: 18px; }
.svc-h {
  font-family: var(--display); font-weight: 600;
  font-size: 22px; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 8px;
}
.svc-h::after {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--red); margin-top: 12px;
}
.svc-p { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* Once the cards sit side by side, reserve two lines for the title so the red
   rule and the body copy share a baseline across all four. Below that the
   cards stack and the reservation would just be a hole. */
@media (min-width: 760px) {
  .svc-h { min-height: 2.2em; }
}

/* ==========================================================================
   TIRE CATALOG
   ========================================================================== */
.filters {
  display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end;
  padding: 22px; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.field { flex: 1 1 320px; min-width: 0; }
.field-label {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--white); margin-bottom: 8px; padding: 0;
}
.input {
  width: 100%; padding: 13px 15px;
  background: var(--ink); color: var(--white);
  border: 2px solid var(--line); border-radius: var(--r);
  font-family: var(--body); font-size: 17px;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--gold-hi); }
.field-hint { font-size: 13px; color: var(--dim); margin-top: 7px; }

.chips { border: 0; margin: 0; padding: 0; flex: 0 1 auto; }
.chips > .field-label { margin-bottom: 8px; }
.chip { display: inline-block; margin-right: 8px; }
.chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.chip span {
  display: inline-block; padding: 10px 18px; min-height: 44px; line-height: 24px;
  border: 2px solid var(--line); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip input:checked + span {
  background: var(--gold-hi); color: var(--ink); border-color: var(--gold-hi);
}
.chip input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.chip span:hover { border-color: var(--gold); color: var(--white); }

.result-count { font-size: 15px; color: var(--dim); margin-bottom: 14px; min-height: 1.6em; }

.tire-list { display: grid; gap: 10px; }
.tire {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px; align-items: center;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--red);
  border-radius: var(--r);
}
.tire-main { min-width: 0; }
.tire-size {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 5vw, 28px); letter-spacing: .02em;
  color: var(--white); line-height: 1.1;
}
.tire-facts {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  margin-top: 8px; font-size: 14px; color: var(--muted);
}
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
}
.tag-new { border-color: var(--gold); color: var(--gold); }
.tag-used { border-color: var(--line); color: var(--muted); }

.tire-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tire-price {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 5.5vw, 34px); color: var(--gold); line-height: 1;
  white-space: nowrap;
}
.tire-price .unit {
  display: block; font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin-top: 5px; text-align: right;
}
.tire-actions { display: flex; gap: 8px; }
.tire-actions .btn { font-size: 14px; padding: 9px 14px; min-height: 44px; gap: 7px; }

/* fallback / empty state */
.fallback {
  padding: clamp(26px, 5vw, 40px);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--gold);
  border-radius: var(--r-lg);
}
.fb-h {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 5vw, 34px); letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 12px;
}
.fb-p { max-width: 62ch; margin-bottom: 10px; }
.fb-size { color: var(--dim); font-size: 15px; margin-bottom: 22px; }
.fb-size strong { color: var(--white); font-family: var(--display); letter-spacing: .04em; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.price-list {
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; background: var(--card);
}
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name amt" "meta amt";
  gap: 2px 20px; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-name {
  grid-area: name;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(18px, 3.4vw, 21px); letter-spacing: .05em; text-transform: uppercase;
  color: var(--white);
}
.price-meta { grid-area: meta; font-size: 14.5px; color: var(--dim); }
.price-amt {
  grid-area: amt; text-align: right; white-space: nowrap;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 5vw, 34px); color: var(--gold); line-height: 1;
}
.price-unit {
  display: block; font-family: var(--body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 5px;
}
.price-foot { margin-top: 18px; font-size: 15px; color: var(--dim); }
/* padding-block lifts these inline links over the WCAG 2.2 24px target
   minimum without changing how they look. */
.lnk {
  color: var(--gold);
  text-underline-offset: 3px;
  display: inline-block;
  padding-block: 4px;
}
.lnk:hover { color: var(--gold-hi); }

/* ==========================================================================
   TRUST
   ========================================================================== */
.trust-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: var(--card);
}
.trust-ic { width: 30px; height: 30px; color: var(--gold); flex: none; }
.trust-t {
  font-family: var(--display); font-weight: 600;
  font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--white);
}

/* ==========================================================================
   CLOSING
   ========================================================================== */
.close-inner { display: flex; flex-direction: column; align-items: center; }
.close-h { margin-bottom: 8px; }
.close-p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(17px, 3.6vw, 22px); letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 30px;
}
.band-close .cta-row { justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { background: var(--surface); padding-top: clamp(44px, 7vw, 72px); }
.foot-grid {
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 40px;
}
.foot-wm { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; margin-bottom: 12px; }
.foot-legal { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.foot-tag { color: var(--dim); font-size: 14.5px; }
.foot-h {
  font-family: var(--display); font-weight: 600;
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.foot-p { font-size: 15.5px; margin-bottom: 8px; }
.foot-phone {
  font-family: var(--display); font-weight: 700; font-size: 30px;
  color: var(--white); text-decoration: none; letter-spacing: .01em;
}
.foot-phone:hover { color: var(--gold-hi); }
.tbd-badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  border: 1px dashed var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
}
.foot-bar {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 20px; border-top: 1px solid var(--line-soft);
}
.foot-copy { font-size: 13.5px; color: var(--dim); }

/* ==========================================================================
   MOBILE THUMB BAR
   ========================================================================== */
.thumbbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom);
}
.thumbbar[hidden] { display: none; }
.tb {
  flex: 1 1 50%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 60px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: .08em; text-transform: uppercase;
}
.tb-call { background: var(--red); color: var(--white); }
.tb-text { background: var(--gold-hi); color: var(--ink); }
.tb .ic { width: 20px; height: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
  .head-call { display: none; }
  .thumbbar:not([hidden]) { display: flex; }
  body.has-thumbbar { padding-bottom: 60px; }
  .btn-xl { flex: 1 1 100%; max-width: none; }
  .tire {
    grid-template-columns: minmax(0, 1fr);
    border-left-width: 4px;
  }
  .tire-right { align-items: stretch; }
  .tire-price { text-align: left; font-size: 30px; }
  .tire-price .unit { text-align: left; }
  .tire-actions .btn { flex: 1 1 0; }
  .price-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "meta" "amt";
    gap: 4px;
  }
  .price-amt { text-align: left; margin-top: 10px; }
  .price-unit { margin-top: 3px; }
  .filters { padding: 18px; gap: 18px; }
}

@media (max-width: 400px) {
  .wm-sub { display: none; }
}

/* ==========================================================================
   MOTION / PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

@media print {
  .thumbbar, .site-head, .filters, .hero-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .h2, h1, h3 { color: #000; }
}
