/* ==========================================================================
   Cosmetic Wheel Repair, temporary site (v2)
   Violet on near-black, plus the logo's own purple for violet text on dark.
   Shape rule: interactive + badges = pill; containers = 18px; sheet = 22px.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Ground: near-black ink */
  --bg: #0A0912;
  --bg-2: #0F0F1A;
  --bg-3: #15142A;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .13);

  /* Text */
  --text: #F3F1FA;
  --text-2: #B6B2C8;   /* 9.5:1 on --bg */
  --text-3: #8E8AA3;   /* 5.9:1 on --bg */

  /* Accent: violet family */
  --brand: #7C3AED;
  --brand-hover: #6D28D9;
  --brand-deep: #5B21B6;
  --brand-ink: #3B1E8E;
  --brand-soft: rgba(124, 58, 237, .08);
  --brand-soft-2: rgba(124, 58, 237, .14);
  --brand-lite: #AB59FF; /* the logo's own purple; violet text on dark, 5.3:1 */

  --f-display: "Syncopate", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 18px;
  --r-sheet: 22px;
  --pill: 999px;

  --wrap: 1180px;
  --gutter: 16px;
  --bar-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 36px; --bar-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand-lite); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.ico--accent { color: var(--brand-lite); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 1rem + 1.25vw, 32px);
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(28px, 1.2rem + 3vw, 52px); line-height: 1.08; }
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .02em;
}
.lead {
  max-width: 54ch;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.6;
}
.eyebrow,
.kicker {
  color: var(--brand-lite);
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .ico { font-size: 18px; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(20, 0, 50, .35);
}
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--line-2);
  color: var(--text);
  letter-spacing: .04em;
}
.btn--ghost:hover { border-color: rgba(171, 89, 255, .55); background: var(--brand-soft); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 12.5px; }
.btn--lg { --h: 56px; font-size: 15px; }

/* ---------- Header ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.bar.is-docked {
  background: rgba(10, 9, 18, .8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.bar__in { height: 100%; display: flex; align-items: center; gap: 10px; }
.bar__brand {
  display: block;
  height: 46px;
  margin-right: auto;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
}
.bar__brand img { width: auto; height: 100%; }
.js .bar:not(.is-docked) .bar__brand {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.bar__nav { display: none; }
.bar__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bar__call:hover { border-color: rgba(171, 89, 255, .55); background: var(--brand-soft); }
.bar__call .ico { font-size: 18px; color: var(--brand-lite); }
.bar__num { display: none; }

@media (min-width: 720px) {
  .bar__num { display: inline; }
  .bar__call { padding: 0 16px; }
}
@media (min-width: 1024px) {
  .bar__brand { height: 54px; }
  .bar__nav { display: flex; gap: 30px; margin-right: 18px; }
  .bar__nav a {
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s var(--ease);
  }
  .bar__nav a:hover { color: var(--text); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0 0 36px; }
.hero__grid { display: grid; gap: 18px; }

.mark { position: relative; display: block; width: 100%; max-width: 360px; margin-inline: auto; }
.mark__wrap { position: relative; display: block; aspect-ratio: 728 / 358; }
.mark__logo { position: relative; z-index: 2; width: 100%; height: auto; }

/* Wheel geometry inside the logo box (measured in a 2x render): rim centre 49.8% / 60.5%, outer rim radius 38% of width */
.mark__glow {
  position: absolute;
  z-index: 0;
  left: 16.6%;
  top: 39%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, .42), rgba(124, 58, 237, .16) 55%, rgba(124, 58, 237, 0) 78%);
  pointer-events: none;
}
.rimlight {
  position: absolute;
  z-index: 1;
  left: calc(11.8% - 5.5px);
  top: calc(3.92% - 5.5px);
  width: calc(76% + 11px);
  aspect-ratio: 1;
  overflow: hidden; /* the rotating ring must never add page width */
  clip-path: inset(0 0 46% 0);
  pointer-events: none;
}
.rimlight__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(171, 89, 255, 0) 0deg 262deg,
    rgba(171, 89, 255, .55) 300deg,
    rgba(245, 236, 255, .95) 318deg,
    rgba(171, 89, 255, 0) 344deg 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 5px), #000 calc(100% - 2px), transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 5px), #000 calc(100% - 2px), transparent 100%);
  filter: blur(1.2px);
}

.plate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.plate img { width: auto; height: 14px; filter: brightness(0) invert(1); opacity: .88; }
.plate span { padding-left: 14px; border-left: 1px solid var(--line-2); }

.hero__copy { display: grid; gap: 22px; }
.kicker { display: block; margin-bottom: 14px; }
.hero__title {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(30px, 8.3vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.hero__title .l { display: block; white-space: nowrap; }
.hero__title .l--accent { color: var(--brand-lite); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.tick {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: var(--pill);
  background: var(--brand-soft-2);
  color: var(--brand-lite);
}
.tick .ico { font-size: 14px; }
.hero__ctas { display: grid; gap: 12px; }

@media (min-width: 560px) {
  .hero__ctas { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .hero { padding: 4px 0 76px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: 48px;
    min-height: min(calc(100svh - var(--bar-h) - 120px), 560px);
  }
  .hero__copy { grid-column: 1; grid-row: 1; gap: 28px; }
  .hero__title { font-size: clamp(40px, 4vw, 54px); }
  .hero .mark { grid-column: 2; grid-row: 1; max-width: 580px; }
  .plate { margin-top: 10px; font-size: 12px; }
  .plate img { height: 16px; }
}

/* ---------- Bands ---------- */
.band { position: relative; padding: 44px 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .band { padding: 104px 0; } }

/* Services + about */
.svc { display: grid; gap: 28px; }
.svc__intro { display: grid; gap: 14px; }
.svc__item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.svc__item + .svc__item { border-top: 1px solid var(--line); }
.svc__item:first-child { padding-top: 0; }
.svc__item:last-child { padding-bottom: 0; }
.svc__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--pill);
  background: var(--brand-soft-2);
  border: 1px solid rgba(171, 89, 255, .22);
  color: var(--brand-lite);
}
.svc__icon .ico { font-size: 23px; }
.svc__item p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

@media (min-width: 1024px) {
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .svc__item { grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding: 30px 0; }
  .svc__icon { width: 56px; height: 56px; }
  .svc__icon .ico { font-size: 26px; }
  .h3 { font-size: 14px; }
}

/* Recent repairs */
.work { display: grid; gap: 24px; }
.work__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-3);
}
.work__cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
}
.work__copy { display: grid; gap: 14px; align-content: start; }
.facts { display: grid; gap: 14px; margin-top: 6px; }
.facts li { display: flex; align-items: flex-start; gap: 12px; }
.facts .ico { font-size: 22px; color: var(--brand-lite); }
.facts b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .07em; line-height: 1.6; }
.facts small { display: block; color: var(--text-3); font-size: 14.5px; }

@media (min-width: 1024px) {
  .work { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .work__copy { gap: 18px; }
  .facts { margin-top: 10px; gap: 18px; }
}

/* Quote: the centerpiece */
.band--quote {
  background:
    radial-gradient(70% 420px at 50% 0%, rgba(124, 58, 237, .13), rgba(124, 58, 237, 0) 75%),
    var(--bg-2);
}
.quote { display: grid; gap: 22px; }
.quote__head { display: grid; gap: 12px; }
.sheet {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-sheet);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .14), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.sheet__wait { position: absolute; inset: 0 0 auto; display: grid; gap: 14px; padding: 44px 32px; }
.sheet__wait i {
  display: block;
  height: 14px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, #ECEAF3 0%, #F6F5FA 50%, #ECEAF3 100%);
  background-size: 200% 100%;
}
.sheet__wait i:first-child { width: 70%; height: 26px; margin-bottom: 10px; }
.sheet__wait i:nth-child(3) { width: 82%; }
.sheet.is-ready { min-height: 0; }
.sheet.is-ready .sheet__wait { display: none; }

.quote__side { display: grid; gap: 28px; align-content: start; }
.callcard { display: none; }
.faq__title { margin-bottom: 6px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { font-size: 18px; color: var(--brand-lite); transition: transform .25s var(--ease); }
.qa[open] summary .ico { transform: rotate(180deg); }
.qa summary:hover { color: #fff; }
.qa p { max-width: 62ch; padding: 0 0 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }

@media (max-width: 599px) {
  .sheet {
    margin-inline: calc(var(--gutter) * -1 + 8px);
    border-radius: 20px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .16), 0 30px 60px -30px rgba(0, 0, 0, .9);
  }
}
@media (min-width: 1024px) {
  .quote { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; row-gap: 44px; align-items: start; }
  .quote__head { grid-column: 1 / -1; max-width: 760px; }
  .quote__side { position: sticky; top: calc(var(--bar-h) + 28px); }
  .callcard {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--bg-3);
  }
  .callcard__label { margin-top: 10px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
  .callcard__num {
    font-family: var(--f-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: color .2s var(--ease);
  }
  .callcard__num:hover { color: var(--brand-lite); }
  .callcard__hours { color: var(--text-2); font-size: 14.5px; }
}

/* ---------- Footer ---------- */
.foot { padding: 32px 0 24px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.foot__brand { display: none; }
.foot__col--areas { display: none; }
.foot__col p + p { margin-top: 4px; }
.foot__h {
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.foot a { text-decoration: none; transition: color .2s var(--ease); }
.foot a:hover { color: var(--text); }
.foot__ig { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.foot__ig .ico { font-size: 18px; color: var(--brand-lite); }
.foot__base { margin-top: 22px; }
.foot__base p { padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
@media (min-width: 720px) {
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__col--areas { display: block; }
}

@media (min-width: 1024px) {
  .foot { padding: 64px 0 36px; }
  .foot__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
  .foot__brand { display: block; }
  .foot__brand img { width: 220px; height: auto; }
}

/* ---------- Thank-you ---------- */
.ty { min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter); text-align: center; }
.ty__in { display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 560px; }
.ty .mark { max-width: 320px; }
.ty__title {
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: clamp(34px, 9vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.ty__sub { color: var(--text-2); font-size: 18px; }
.ty__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.ty__foot { margin-top: 28px; color: var(--text-3); font-size: 13px; }
.ty__foot a { text-decoration: none; }

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .85s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .mark__wrap { animation: logo-in 1.1s var(--ease) both; }
  .rimlight__ring { animation: rim-sweep 7.5s linear -5.6s infinite; }
  .sheet__wait i { animation: shimmer 1.4s linear infinite; }
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.965); } }
@keyframes rim-sweep { to { transform: rotate(1turn); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
