/* =========================================================
   TIRE X LUBE — styles
   Edit brand tokens in :root. Everything else reads from them.
   ========================================================= */

:root {
  /* Brand */
  --red: #e3121b;
  --red-hover: #ff2b33;
  --red-glow: rgba(227, 18, 27, 0.35);
  --cream: #f6efe4;          /* logo cream */
  --ice: #8fd3ff;            /* cold-state accent */

  /* Surfaces */
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #16161a;
  --line: #26262c;

  /* Text */
  --text: #f4f4f5;
  --muted: #9a9aa3;

  /* Type */
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--red); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 10px 30px var(--red-glow); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); }
.logo__mark { width: 34px; height: 34px; color: var(--cream); }
.logo__text { font-family: var(--font-display); font-size: 30px; letter-spacing: .04em; line-height: 1; }
.logo__text b { color: var(--red); font-weight: 400; margin: 0 4px; }
.logo--sm .logo__text { font-size: 24px; }
.logo__img { height: 48px; width: auto; display: block; }
.logo--sm .logo__img { height: 40px; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before, .check::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--red-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  transition: background .6s var(--ease);
}
.check.is-cold::before { background: radial-gradient(circle, rgba(143, 211, 255, .22), transparent 65%); }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero__lead { margin-top: 22px; max-width: 480px; font-size: 18px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__facts li {
  display: flex; flex-direction: column;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px; color: var(--muted);
}
.hero__facts strong { color: var(--text); font-size: 15px; }

.hero__scroll { display: inline-block; margin-top: 36px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.hero__scroll:hover { color: var(--text); }

.hero__bg, .check__bg { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero__bg img, .check__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,.96) 0%, rgba(10,10,11,.82) 45%, rgba(10,10,11,.6) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__bg img { filter: grayscale(.35) contrast(1.05); }
.hero__grid, .check__grid { z-index: 1; }

/* ---------- Quote form ---------- */
.quote {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  scroll-margin-top: 96px;
}
.quote__head { margin-bottom: 22px; }
.quote__title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; }
.quote__head p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; border: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 500 15px var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #5c5c66; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a9aa3' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 36px;
}
.field select option { background: var(--card); }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.field__error { font-size: 12px; color: #ff6b70; min-height: 0; }
.field.has-error input, .field.has-error select { border-color: #ff6b70; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: #3a3a42; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip__box {
  flex: none; width: 22px; height: 22px;
  border: 2px solid #4a4a52; border-radius: 6px; transition: all .2s;
}
.chip__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.chip__text strong { font-size: 15px; font-weight: 700; color: var(--text); }
.chip__text small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.chip:has(input:checked) { border-color: var(--red); background: rgba(227, 18, 27, .07); }
.chip input:checked + .chip__box {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
  border-color: var(--red);
}
.chip input:focus-visible + .chip__box { box-shadow: 0 0 0 3px var(--red-glow); }

.btn--block { width: 100%; padding: 17px 28px; font-size: 16px; margin-top: 6px; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__label { opacity: .7; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn:disabled { cursor: wait; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__msg { font-size: 13px; color: #ff6b70; text-align: center; }
.form__msg:empty { display: none; }
.form__fine { font-size: 12px; color: #6b6b74; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Tire check section ---------- */
.check { position: relative; overflow: hidden; }
.check__bg img { filter: grayscale(.2); }
.check__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.75) 50%, rgba(10,10,11,.9) 100%);
}
.check::before { inset: auto auto -30% -15%; }
.check__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check__copy .section__sub { max-width: 460px; margin-bottom: 30px; }

/* ---------- Temperature gauge ---------- */
.gauge {
  --state: var(--red);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 28px;
  text-align: center;
  transition: border-color .4s var(--ease);
}
.gauge[data-state="frozen"], .gauge[data-state="cold"] { --state: var(--ice); }
.gauge[data-state="warm"] { --state: #f5b301; }

.gauge__tire { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.tire { width: 100%; height: 100%; transition: transform .5s var(--ease); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.tire__hub { fill: var(--state); transition: fill .4s; }
.gauge__frost {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(190, 230, 255, .55) 100%);
  box-shadow: inset 0 0 40px rgba(190, 230, 255, .5);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

.gauge__readout { margin: 22px 0 26px; min-height: 170px; }
.gauge__temp {
  display: block;
  font-family: var(--font-display);
  font-size: 84px; line-height: 1;
  color: var(--text);
}
.gauge__status {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--state);
  margin-top: 6px;
  transition: color .4s;
}
.gauge__note { color: var(--muted); font-size: 15px; max-width: 380px; margin: 8px auto 0; }

.gauge__label { display: block; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.gauge__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Range slider */
.range {
  --fill: 64%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--state) var(--fill), var(--line) var(--fill));
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 5px solid var(--state);
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  transition: transform .2s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 5px solid var(--state);
}
.range:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,.15); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section--dark { background: var(--bg-2); }
.section__head { margin-bottom: 48px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}
.section__sub { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* ---------- Lanes ---------- */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lane {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.lane::after { z-index: 2;
 
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.lane:hover { border-color: #3a3a42; transform: translateY(-4px); }
.lane:hover::after { transform: scaleX(1); }
.lane__media { align-self: stretch;
  margin: -40px -40px 28px; height: 240px; overflow: hidden; background: var(--bg-2); position: relative;
}
.lane__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.lane__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card) 0%, transparent 55%); }
.lane:hover .lane__media img { transform: scale(1.05); }
.lane p { color: var(--muted); margin: 10px 0 22px; }
.lane .btn { margin-top: auto; }
.lane__title { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; text-transform: uppercase; margin-top: 20px; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: #fff;
}
.tag--outline { background: transparent; border: 1px solid var(--red); color: var(--red); }

.checks { margin-bottom: 30px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Shops ---------- */
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shop {
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.shop:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.shop__city { font-family: var(--font-display); font-size: 36px; line-height: 1; letter-spacing: .02em; }
.shop__addr { color: var(--muted); font-size: 14px; margin: 10px 0 22px; line-height: 1.55; }
.shop__phone { font-family: var(--font-display); font-size: 26px; color: var(--red); margin-top: 16px; letter-spacing: .03em; }
.shop__meta { display: grid; gap: 4px; margin: -8px 0 22px; font-size: 14px; color: var(--muted); }
.shop__rating { color: var(--text); }
.shop__rating span { color: #f5b301; }
.shop__soon { font-size: 13px; color: var(--muted); font-style: italic; }
.shop__actions { display: flex; gap: 8px; margin-top: auto; }
.shop__actions .btn { flex: 1; padding: 12px 14px; font-size: 13px; }
.btn.is-disabled { opacity: .35; pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.5vw, 56px); line-height: 1; text-transform: uppercase; max-width: 720px; }
.cta-band .accent { color: #0a0a0b; }
.cta-band .btn--primary { background: #0a0a0b; }
.cta-band .btn--primary:hover { background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* ---------- Thank-you page ---------- */
.thanks { position: relative; padding: 110px 0 120px; text-align: center; overflow: hidden; }
.thanks::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 760px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--red-glow), transparent 65%); filter: blur(40px); pointer-events: none;
}
.thanks__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.thanks__icon { width: 76px; height: 76px; color: var(--red); margin-bottom: 26px; animation: pop .6s var(--ease) both; }
.thanks__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 7.5vw, 104px); line-height: .95; text-transform: uppercase; max-width: 900px; }
.thanks__lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 22px 0 36px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .check__grid { grid-template-columns: 1fr; gap: 48px; }
  .shops { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 72px 0; }
  .lanes, .shops { grid-template-columns: 1fr; }
  .lane { padding: 30px 24px; }
  .lane__media { margin: -30px -24px 24px; height: 190px; }
  .gauge { padding: 28px 20px 22px; }
  .gauge__tire { width: 170px; height: 170px; }
  .gauge__temp { font-size: 68px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .quote { padding: 24px 18px; }
  .form__row, .chips { grid-template-columns: 1fr; }
  .logo__img { height: 40px; }
  .header .btn--sm { padding: 9px 16px; }
  .sticky-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    padding: 16px; border-radius: 999px; text-align: center;
    background: var(--red); color: #fff; font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; }
  .footer { padding-bottom: 96px; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
