/* ════════════════════════════════════════════════════════════════════
   SHLOMO CAR — "GRID / NIGHT RACE" redesign  (v1, 2026-08-13)
   Inspired by Project Cars (awwwards): near-black stage, dual neon
   identity — RED #EE2629 (right/action) + ELECTRIC BLUE #0096E7 (left/
   info) — huge display type, technical numbered sections, sharp edges.
   Loaded AFTER style.css: token redefinition + component overrides.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #060608;
  --bg-2:      #0A0A0E;
  --surface:   #0E0E13;
  --surface-2: #14141B;
  --border:    #22222D;
  --text:      #F7F7FA;
  --muted:     #9A9AA8;
  --muted-2:   #6C6C7A;

  --red:       #EE2629;
  --blue:      #0096E7;
  --accent:    #EE2629;      /* action */
  --accent-2:  #FF4D50;
  --accent-3:  #0096E7;      /* info   */
  --info:      #0096E7;
  --good:      #19C37D;
  --warn:      #F2994A;
  --bad:       #EE2629;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-soft:  0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8);
  --shadow-amber: 0 18px 50px -18px rgba(238,38,41,.45);
  --glow-red:     0 0 0 1px rgba(238,38,41,.35), 0 10px 40px -12px rgba(238,38,41,.5);
  --glow-blue:    0 0 0 1px rgba(0,150,231,.35), 0 10px 40px -12px rgba(0,150,231,.5);

  --tw-display: 'Secular One', 'Heebo', system-ui, sans-serif;
  --tw-body:    'Heebo', system-ui, sans-serif;
}

::selection { background: rgba(238,38,41,.85); color: #fff; }
html { scrollbar-color: #2A2A36 #0A0A0E; }
body { background: var(--bg); }

h1,h2,h3 { font-family: var(--tw-display); font-weight: 400; letter-spacing: .01em; }
h4 { font-family: var(--tw-body); font-weight: 700; }

/* ── Racing hairline under everything section-ish ─────────────────── */
.eyebrow {
  background: none; border: 0; padding: 0;
  color: var(--blue);
  font-weight: 600; font-size: .82rem; letter-spacing: .14em;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

/* ════════════ TOPBAR (new) ════════════ */
.topbar {
  background: #050507;
  border-bottom: 1px solid #17171F;
  font-size: .8rem;
  position: relative; z-index: 60;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 34px;
}
.topbar__contact { display: flex; gap: 18px; align-items: center; }
.topbar__contact a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); transition: color .15s;
}
.topbar__contact a:hover { color: #fff; }
.topbar__contact a svg { flex: none; }
.topbar__contact a.is-wa:hover { color: #25D366; }
.topbar__note { color: var(--muted-2); }
@media (max-width: 640px) { .topbar__note { display: none; } }

/* ════════════ NAV ════════════ */
.nav {
  background: rgba(6,6,8,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #1A1A24;
  box-shadow: none;
}
.nav__inner { min-height: 62px; }
.brand__name { font-family: var(--tw-display); font-weight: 400; }
.brand__name span { color: var(--red); }

/* show ALL links — the "missing" secondary ones included (DESKTOP only;
   below 821px style.css collapses every link into the hamburger drawer) */
@media (min-width: 821px) {
  .nav__links a[data-secondary] { display: inline-block; }
}
.nav__links a {
  color: var(--muted); font-weight: 500; font-size: .92rem;
  position: relative; padding-block: 6px;
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.nav__cta {
  background: var(--red); color: #fff; border-radius: var(--radius-sm);
  font-weight: 700; box-shadow: var(--glow-red);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .15s, transform .15s;
}
.nav__cta:hover { background: #FF3336; transform: translateY(-1px); }
.auth-btn {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.auth-btn:hover { border-color: var(--blue); box-shadow: var(--glow-blue); }

/* ════════════ HERO — full-bleed neon stage ════════════ */
.hero--neon {
  position: relative; overflow: hidden;
  min-height: clamp(620px, 92vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 90px 0;
  background: #050507;
}
.hero--neon .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
  transform: translate(calc(var(--hero-px, 0) * -18px), calc(var(--hero-py, 0) * -10px)) scale(1.07);
  transition: transform .25s ease-out;
  filter: saturate(1.08);
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,7,.88) 0%, rgba(5,5,7,.25) 30%, rgba(5,5,7,.22) 55%, rgba(5,5,7,.94) 92%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(5,5,7,.75) 100%);
}
.hero--neon .hero__inner {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* technical meta line: 01 ── label */
.hero__meta {
  display: inline-flex; align-items: center; gap: 12px;
  color: #CFCFDA; font-size: .84rem; font-weight: 500; letter-spacing: .12em;
  margin-bottom: 22px;
}
.hero__meta-num { color: var(--red); font-weight: 700; }
.hero__meta-line { width: 46px; height: 1px; background: linear-gradient(90deg, var(--red), var(--blue)); }

.hero--neon .hero__title {
  font-family: var(--tw-display); font-weight: 400;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.04; margin: 0 0 18px;
  text-shadow: 0 6px 40px rgba(0,0,0,.65);
}
.hero--neon .hero__title-top { display: block; color: #fff; }
.hero--neon .hero__title-bot { display: block; color: #fff; }
.hero--neon .hero__title-bot em {
  font-style: normal;
  background: linear-gradient(94deg, var(--red) 10%, #FF6B6D 45%, var(--blue) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--neon .hero__sub {
  max-width: 640px; color: #C9C9D6; font-size: 1.06rem; line-height: 1.7;
  margin-bottom: 34px; text-shadow: 0 2px 18px rgba(0,0,0,.8);
}

/* lookup — dark glass, blue focus, red action */
.hero--neon .lookup { gap: 12px; }
.hero--neon .plate {
  background: rgba(10,10,16,.82); backdrop-filter: blur(8px);
  border: 1px solid #2C2C3A; border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.hero--neon .plate:focus-within { border-color: var(--blue); box-shadow: var(--glow-blue); }
.hero--neon .plate__stripe {
  background: var(--blue); color: #fff; font-weight: 800;
}
.hero--neon .plate__input {
  background: transparent; color: #fff;
  font-family: 'Heebo', monospace; font-weight: 800; letter-spacing: .14em;
}
.hero--neon .plate__input::placeholder { color: #4B4B5C; }
.hero--neon .btn-primary {
  background: var(--red); color: #fff; border-radius: var(--radius-sm);
  font-weight: 800; letter-spacing: .02em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: var(--glow-red);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.hero--neon .btn-primary:hover { background: #FF3336; transform: translateY(-2px); }

.hero--neon .alt-btn {
  background: rgba(10,10,16,.7); border: 1px solid #26262f; color: #C9C9D6;
  border-radius: var(--radius-sm);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.hero--neon .alt-btn:hover { border-color: var(--blue); color: #fff; box-shadow: var(--glow-blue); }

.hero--neon .hero__bullets { margin-top: 8px; }
.hero--neon .hero__bullets li { color: #B9B9C8; }
.hero--neon .hero__bullets span { color: var(--good); }

/* quick action chips (new) */
.hero__quick {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 26px;
}
.hero__quick a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: .88rem; font-weight: 600; color: #D6D6E2;
  background: rgba(12,12,18,.66); border: 1px solid #26262F;
  border-radius: 999px; backdrop-filter: blur(6px);
  transition: border-color .15s, color .15s, transform .15s;
}
.hero__quick a:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }
.hero__quick a b { color: var(--blue); font-weight: 700; }

/* HUD stat row bottom of hero (new) */
.hero__hud {
  position: relative; z-index: 2;
  margin-top: 54px; width: 100%;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(6,6,10,.4), rgba(6,6,10,.85));
  backdrop-filter: blur(10px);
}
.hero__hud-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
  gap: 14px; text-align: center;
}
.hero__hud-grid > div {
  display: flex; flex-direction: column; gap: 2px;
  border-inline-start: 1px solid rgba(255,255,255,.07);
}
.hero__hud-grid > div:first-child { border-inline-start: 0; }
.hero__hud-grid strong {
  font-family: var(--tw-display); font-weight: 400; font-size: 1.55rem; color: #fff;
}
.hero__hud-grid strong i { font-style: normal; color: var(--red); }
.hero__hud-grid span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 720px) {
  .hero__hud-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__hud-grid > div:nth-child(3) { border-inline-start: 0; }
}

/* marquee — outlined ghost type, racing stripe */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid #16161E; border-bottom: 1px solid #16161E;
  background: #050507; opacity: 1;
}
.marquee__track span {
  color: transparent;
  -webkit-text-stroke: 1px #2E2E3C;
  font-family: 'Heebo', sans-serif; font-weight: 900;
}

/* ════════════ SECTION HEADERS — numbered, technical ════════════ */
.section-head h2, .how h2, .inventory h2 { font-weight: 400; }
.section-head { position: relative; }

/* ════════════ CARDS / SURFACES ════════════ */
.step, .car, .save-card, .t-card, .g-card, .faq__item, .calc__card,
.history__grid > *, .contact__form, .auth-modal__card, .admin__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step:hover, .car:hover, .save-card:hover, .t-card:hover {
  border-color: #33333F;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.9);
}
.car:hover { border-color: rgba(238,38,41,.45); box-shadow: var(--glow-red); }
.step:hover { border-color: rgba(0,150,231,.45); box-shadow: var(--glow-blue); }

.step__num, .save-card__num, .g-num {
  font-family: var(--tw-display); font-weight: 400;
  color: transparent; -webkit-text-stroke: 1.4px var(--red);
}

/* buttons everywhere */
.btn-primary {
  background: var(--red); color: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--glow-red);
}
.btn-primary:hover { background: #FF3336; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.btn-secondary:hover { border-color: var(--blue); box-shadow: var(--glow-blue); }

.chip { border-radius: var(--radius-sm); }
.hist-tab.is-active { background: var(--red); color: #fff; }

/* trust strip */
.trust { border-block: 1px solid #14141C; background: #050507; }

/* footer */
.footer { background: #050507; border-top: 1px solid #16161E; }

/* ════════════ WHATSAPP FLOAT (new) ════════════ */
/* pinned to the PHYSICAL left — the chat bubble owns the bottom-right */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; right: auto; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 34px -10px rgba(37,211,102,.65);
  transition: transform .15s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* keep old hero leftovers dead if any page still has them */
.hero__bg-orb, .hero__bg-grid, .hero__stage, .hero__scrim, .hero__beam, .hero__ground { display: none !important; }
.hero--neon .hero__photo { display: block !important; }

/* page-hero (inner pages) — match the night stage */
.page-hero {
  background:
    linear-gradient(180deg, rgba(5,5,7,.92), rgba(5,5,7,.65)),
    radial-gradient(ellipse 90% 120% at 85% -10%, rgba(238,38,41,.22), transparent 55%),
    radial-gradient(ellipse 90% 120% at 15% -10%, rgba(0,150,231,.22), transparent 55%),
    #060608;
  border-bottom: 1px solid #16161E;
}

/* result cards inherit tokens; give verdict accents */
.result .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .hero__photo { transition: none; transform: none; }
}

/* ── kill legacy amber gradients (page-hero, hero title, KPIs) ────── */
.page-hero h1 {
  background: linear-gradient(105deg, #FFFFFF 45%, #FF6B6D 75%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-bot {
  background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff;
}
.kpi strong {
  background: linear-gradient(105deg, #FFFFFF 20%, #FF6B6D 65%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 400; font-family: var(--tw-display);
}

/* ── mobile nav drawer polish ─────────────────────────────────────── */
/* the ≤420px drawer CTA inherited dark-navy text on the new red/blue
   gradient — force white */
@media (max-width: 420px) {
  .nav.is-open .nav__links::after { color: #fff; }
}
/* drawer panel on the new palette */
.nav.is-open .nav__links { background: #0A0A0E; border-color: #22222D; }

/* mobile hero tuning: keep the car visible under the content */
@media (max-width: 720px) {
  .hero--neon { padding-block: 56px 0; min-height: auto; }
  .hero__photo { object-position: 72% 70%; }
  .hero__hud { margin-top: 40px; }
  .wa-float { width: 48px; height: 48px; bottom: 18px; left: 18px; }
  .wa-float svg { width: 24px; height: 24px; }
}
