/* ==========================================================
   FATBOY'S HOBBIES + 4WAY SPEEDWAY
   Main visual design file
   ----------------------------------------------------------
   Change site colors, fonts, spacing, cards, buttons, layout,
   and responsive behavior here. HTML files contain content.
   ========================================================== */

/* ---------- 1. DESIGN TOKENS / EASY GLOBAL CHANGES ---------- */
:root {
  --bg: #080b0d;
  --bg-soft: #101519;
  --panel: #141a1f;
  --panel-2: #1b2228;
  --line: #2b343c;
  --text: #f4f7f5;
  --muted: #a9b1b5;
  --green: #39ff14;
  --green-soft: #86ff70;
  --clay: #b85e35;
  --clay-light: #e58a58;
  --white: #ffffff;
  --black: #000000;
  --danger: #ff4d4d;
  --max: 1240px;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 20px 55px rgba(0, 0, 0, .35);
  --speed: 180ms ease;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

/* ---------- 2. RESET / BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(57,255,20,.08), transparent 26rem),
    linear-gradient(180deg, #090d0f 0%, #080b0d 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body.menu-open, body.cart-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--green); color: #051006; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 58px 0; }
.section--panel { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--green); box-shadow: 0 0 14px rgba(57,255,20,.65); }
.section-title { margin: 0; max-width: 800px; font: 900 clamp(2rem, 5vw, 4rem)/.98 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.section-copy { color: var(--muted); max-width: 760px; margin: 16px 0 0; }
.center { text-align: center; }
.center .section-title, .center .section-copy { margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--green); }
.clay { color: var(--clay-light); }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 900; letter-spacing: .035em; transition: transform var(--speed), background var(--speed), border-color var(--speed), color var(--speed), box-shadow var(--speed);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #041004; background: var(--green); box-shadow: 0 0 0 1px rgba(57,255,20,.15), 0 10px 35px rgba(57,255,20,.14); }
.btn--primary:hover { background: #70ff59; box-shadow: 0 10px 42px rgba(57,255,20,.24); }
.btn--dark { background: #0b0f12; border-color: #30383e; color: #fff; }
.btn--dark:hover { border-color: var(--green); }
.btn--ghost { border-color: #536067; color: #fff; background: rgba(5,8,10,.55); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 4. TOP BAR / HEADER / NAVIGATION ---------- */
.topbar { background: #020303; border-bottom: 1px solid #22292e; color: #d7dcde; font-size: .84rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar a:hover { color: var(--green); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(8,11,13,.9); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { min-height: 78px; display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand__mark { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #111; border: 1px solid #334038; }
.brand__text { font: 900 1.34rem/1 var(--font-display); letter-spacing: .045em; text-transform: uppercase; }
.brand__text small { display: block; margin-top: 5px; color: var(--green); font: 800 .65rem/1 var(--font-body); letter-spacing: .15em; }
.nav__links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px 8px;
}
.nav__links a {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 10px 9px;
  border-radius: 9px;
  color: #d9dddf;
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a.active { color: #071008; background: var(--green); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #344047; background: #101519; color: #fff; display: grid; place-items: center; position: relative; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.cart-count { position: absolute; right: -3px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--green); color: #071007; font-size: .68rem; font-weight: 900; }
.menu-btn { display: none; }

/* ---------- 5. HEROES ---------- */
.hero { position: relative; isolation: isolate; min-height: 720px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: var(--hero-image, linear-gradient(135deg,#171d21,#0c0f11)) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(2,3,4,.94) 0%, rgba(2,3,4,.72) 44%, rgba(2,3,4,.25) 72%, rgba(2,3,4,.48) 100%), linear-gradient(0deg, #080b0d 0%, transparent 28%); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; padding: 80px 0 105px; }
.hero__content { max-width: 760px; }
.hero__kicker { display: inline-flex; border: 1px solid rgba(57,255,20,.5); background: rgba(57,255,20,.07); color: var(--green); border-radius: 999px; padding: 7px 12px; font-weight: 900; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { margin: 20px 0 18px; font: 900 clamp(3.4rem, 8vw, 7.4rem)/.86 var(--font-display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.hero h1 span { color: var(--green); text-shadow: 0 0 22px rgba(57,255,20,.14); }
.hero p { margin: 0; color: #d2d7da; max-width: 660px; font-size: clamp(1rem, 2vw, 1.18rem); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 38px; background: #354047; border: 1px solid #354047; border-radius: 14px; overflow: hidden; max-width: 720px; }
.hero__stat { background: rgba(8,11,13,.9); padding: 16px; }
.hero__stat strong { display: block; color: #fff; font: 900 1.15rem/1.1 var(--font-display); text-transform: uppercase; }
.hero__stat span { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; }
.hero__badge { justify-self: end; width: min(100%, 390px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); background: radial-gradient(circle at 50% 45%, rgba(57,255,20,.14), rgba(0,0,0,.75) 58%, #020303 70%); box-shadow: 0 0 90px rgba(57,255,20,.09); position: relative; }
.hero__badge::before, .hero__badge::after { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; }
.hero__badge::after { inset: 20%; border-color: rgba(57,255,20,.32); }
.hero__badge img { width: 62%; height: 62%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 10px 22px #000); }
.hero-mini { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 105px 0 80px; background: linear-gradient(120deg,#0b0f12 0%,#12191d 68%,rgba(57,255,20,.08)); }
.hero-mini::after { content: ""; position: absolute; right: -6%; top: -50%; width: 42%; height: 220%; border: 1px solid rgba(57,255,20,.15); transform: rotate(20deg); background: repeating-linear-gradient(90deg,transparent 0 22px,rgba(255,255,255,.02) 22px 23px); }
.hero-mini .container { position: relative; z-index: 1; }
.hero-mini h1 { margin: 9px 0 12px; max-width: 900px; font: 900 clamp(2.7rem, 7vw, 6rem)/.9 var(--font-display); text-transform: uppercase; }
.hero-mini p { max-width: 760px; color: #c2c8cb; }

/* ---------- 6. CARDS / GRIDS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card__body { padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.feature-card { padding: 28px; min-height: 220px; position: relative; overflow: hidden; }
.feature-card::after { content: attr(data-number); position: absolute; right: 14px; bottom: -22px; font: 900 6rem/1 var(--font-display); color: rgba(255,255,255,.035); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: rgba(57,255,20,.09); color: var(--green); border: 1px solid rgba(57,255,20,.25); font-weight: 900; }
.feature-card h3 { margin-top: 20px; }

/* ---------- 7. SPLIT FEATURE / TRACK ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: #0a0d0f; }
.split__media { min-height: 520px; background: #15191b center/cover no-repeat; position: relative; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 65%,#0a0d0f); }
.split__content { display: flex; align-items: center; padding: 70px clamp(28px,6vw,95px); }
.split__content-inner { max-width: 610px; }
.check-list { padding: 0; margin: 24px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: #d7dcde; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* ---------- 8. PRODUCT SHOP ---------- */
.shop-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin: 34px 0 26px; }
.search-box { position: relative; }
.search-box input, .select, .form-control {
  width: 100%; min-height: 48px; padding: 0 15px; border-radius: 12px; border: 1px solid #344047; background: #0d1215; color: #fff; outline: none;
}
.search-box input { padding-left: 44px; }
.search-box::before { content: "⌕"; position: absolute; left: 16px; top: 9px; color: #90999e; font-size: 1.3rem; }
.search-box input:focus, .select:focus, .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(57,255,20,.08); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-chip { border: 1px solid #344047; background: #0d1215; color: #cbd0d2; padding: 8px 13px; border-radius: 999px; font-weight: 800; }
.filter-chip:hover, .filter-chip.active { background: var(--green); border-color: var(--green); color: #061006; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-card__image { aspect-ratio: 1 / .82; background: #e9eceb; overflow: hidden; position: relative; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(1.045); }
.product-badge { position: absolute; left: 12px; top: 12px; padding: 5px 9px; background: var(--green); color: #061006; font-size: .68rem; font-weight: 950; text-transform: uppercase; border-radius: 6px; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.product-card__category { color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.product-card h3 { font-size: 1rem; margin: 5px 0 10px; min-height: 2.5em; }
.product-card__price { margin-top: auto; font: 900 1.35rem/1 var(--font-display); }
.product-card .btn { margin-top: 16px; width: 100%; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed #3b454b; border-radius: 14px; }

/* ---------- 9. BRAND STRIP ---------- */
.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.brand-pill { padding: 10px 16px; border: 1px solid #354047; border-radius: 999px; background: #0b0f12; color: #e0e4e6; font-weight: 900; }
.brand-pill:hover { border-color: var(--green); color: var(--green); }

/* ---------- 10. FORMS ---------- */
.form-card { padding: clamp(24px,4vw,42px); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 900; color: #dce1e3; }
textarea.form-control { min-height: 140px; padding-top: 12px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; color: var(--green); font-weight: 800; }

/* ---------- 11. HOURS / INFO / FAQ ---------- */
.info-list { display: grid; gap: 12px; }
.info-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #2c353b; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { font-weight: 900; text-align: right; }
.faq { display: grid; gap: 11px; margin-top: 34px; }
.faq details { border: 1px solid var(--line); border-radius: 13px; background: #0e1316; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; font-weight: 900; padding: 18px 20px; display: flex; justify-content: space-between; gap: 15px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--green); font-size: 1.3rem; }
.faq details[open] summary::after { content:"–"; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- 12. CALLOUT / CTA ---------- */
.cta { position: relative; overflow: hidden; border: 1px solid #334037; border-radius: 24px; background: linear-gradient(120deg, rgba(57,255,20,.12), rgba(255,255,255,.025) 42%, rgba(184,94,53,.12)); padding: clamp(28px,5vw,58px); }
.cta::after { content:"4WAY"; position:absolute; right:-18px; bottom:-40px; color:rgba(255,255,255,.035); font:900 8rem/1 var(--font-display); }
.cta > * { position: relative; z-index: 1; }

/* ---------- 13. CART DRAWER ---------- */
.overlay { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.66); opacity: 0; visibility: hidden; transition: opacity var(--speed), visibility var(--speed); }
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 200; right: 0; top: 0; width: min(460px, 100%); height: 100dvh; transform: translateX(100%); transition: transform .28s ease; background: #0c1013; border-left: 1px solid #354047; display: grid; grid-template-rows: auto 1fr auto; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.cart-drawer.open { transform: translateX(0); }
.cart-header, .cart-footer { padding: 20px; border-bottom: 1px solid var(--line); }
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { margin: 0; font: 900 1.8rem/1 var(--font-display); text-transform: uppercase; }
.cart-items { overflow: auto; padding: 18px; display: grid; align-content: start; gap: 12px; }
.cart-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.cart-item__meta strong { display: block; line-height: 1.2; }
.cart-item__meta span { color: var(--muted); font-size: .82rem; }
.cart-item__actions { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid #3a464d; background: #151b1f; color: white; }
.cart-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 900; font-size: 1.15rem; }
.cart-footer .btn { width: 100%; margin-top: 8px; }

/* ---------- 14. FOOTER ---------- */
.footer { background: #030405; border-top: 1px solid #242c31; padding: 62px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr; gap: 34px; }
.footer__brand p { color: var(--muted); max-width: 470px; }
.footer h4 { margin: 0 0 14px; font-size: .86rem; letter-spacing: .11em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: #bcc4c8; }
.footer a:hover { color: var(--green); }
.footer__bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid #20272b; color: #7f898e; font-size: .78rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- 15. MOBILE MENU ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 180; background: #070a0c; padding: 24px; transform: translateY(-105%); transition: transform .28s ease; overflow: auto; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu nav { display: grid; gap: 8px; }
.mobile-menu nav a { font: 900 clamp(1.8rem,8vw,3rem)/1 var(--font-display); text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid #253037; }
.mobile-menu nav a:hover { color: var(--green); padding-left: 8px; }

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .menu-btn { display: grid; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .section { padding: 68px 0; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; padding: 74px 0 85px; }
  .hero__badge { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media::after { background: linear-gradient(0deg,#0a0d0f,transparent 40%); }
  .grid-4, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar__inner { justify-content: center; }
  .topbar__inner > span { display: none; }
  .brand__text { font-size: 1.05rem; }
  .brand__mark { width: 42px; height: 42px; }
  .header-actions .btn { display: none; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .grid-2, .grid-3, .grid-4, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .shop-toolbar { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta::after { font-size: 5rem; }
}

/* ---------- 17. PAGE-SPECIFIC PRESENTATION CLASSES ----------
   Kept here so the HTML contains no inline visual styling. ---------- */
.hero--track { --hero-image: url('../images/track.svg'); }
.hero--speedway { --hero-image: url('../images/track.svg'); min-height: 620px; }
.split__media--track { background-image: url('../images/track.svg'); }
.split__media--shop { background-image: url('../images/shop.svg'); }
.about-photo { min-height: 480px; background: url('../images/shop.svg') center/cover no-repeat; }

/* ---------- PIT-LANE FINISH: sharper edges, strong contrast ---------- */
.btn { border-radius: 5px; border-width: 2px; padding-block: 10px; }
.btn--primary { box-shadow: 4px 4px 0 #1b5710; }
.btn--clay { background: #bc5024; }
.feature-card { border-top: 3px solid var(--green); }
.feature-card:hover { border-color: var(--green); }
.feature-icon, .hero__kicker, .brand-pill { border-radius: 4px; }
.hero__kicker { border-left: 5px solid var(--green); }
.hero h1, .hero-mini h1, .section-title { line-height: 1.06; }
.hero-mini { border-bottom: 4px solid var(--green); }
.cta { border-radius: 8px; border-left: 6px solid var(--green); }
.topbar { border-bottom: 2px solid #335226; }
.section--panel { border-top: 2px solid #303a2b; }
.footer__bottom { font-weight: 700; }
.faq a, .section-copy a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
.grid--spaced { margin-top: 38px; }
.product-grid--spaced { margin-top: 34px; }
.brand-strip--left { justify-content: flex-start; }
.form-submit { margin-top: 18px; }
.section-title--small { font-size: 2.8rem; }
.info-list--spaced { margin-top: 22px; }
.speedway-badge { text-align: center; z-index: 2; }
.speedway-badge__mark { font: 900 5.2rem/.8 var(--font-display); color: var(--green); }
.speedway-badge__name { font: 900 2.1rem/1 var(--font-display); margin-top: 8px; }
.speedway-badge__city { margin-top: 12px; }
