:root {
  /* Zack's palette (from the original site) */
  --bg: #212529;
  --surface: #2C3136;
  --ink: #F5F0E8;
  --body: #CCC9C2;
  --muted: #8E8A84;
  --line: #383E45;
  --accent: #FFD700;
  --green: #2D6A4F;
  --green-dark: #1B4332;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--body); font: 400 17px/1.6 Barlow, system-ui, sans-serif; }
h1, h2, h3, b, summary, .card__price { color: var(--ink); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, .cat__name, .nav__logo, .btn, .pill {
  font-family: 'Barlow Condensed', Barlow, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
}
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: var(--radius); text-decoration: none; font-size: 1.05rem; cursor: pointer; border: 0;
}
.btn--accent { background: var(--accent); color: #16191C; }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); }
.btn:hover { filter: brightness(.95); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav__logo { font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.nav__logo span { color: var(--accent); margin-left: .25em; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: short on purpose, shop starts right below */
/* Height follows the copy, so the headline can never ride up under the nav */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(300px, 46vh, 480px); color: #fff; }
.hero img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(22 25 28 / .82), rgb(22 25 28 / .2) 70%), linear-gradient(transparent 50%, rgb(22 25 28 / .6)); }
.hero__copy { position: relative; z-index: 1; padding: 48px var(--gutter) clamp(24px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.4rem, min(6vw, 8vh), 5rem); max-width: 14ch; margin-bottom: 20px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; }
.cat {
  position: relative; height: clamp(220px, 34vh, 420px); overflow: hidden; border-radius: var(--radius);
  color: #fff; text-decoration: none;
}
.cat img { transition: transform .5s ease; }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, oklch(0.15 0.02 60 / .8)); }
.cat__name, .cat__sub { position: absolute; z-index: 1; left: 20px; }
.cat__name { bottom: 44px; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.cat__sub { bottom: 18px; font-size: .9rem; opacity: .9; }

/* Shop */
.shop { padding-block: clamp(48px, 8vw, 96px); }
.shop__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); font-size: 1.05rem; cursor: pointer;
}
.pill.is-on { background: var(--green); border-color: var(--green); }
.vehicle { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.vehicle select {
  min-height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 20px; }
.card { display: flex; flex-direction: column; }
.card__img { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.card__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.card h3 { font-size: 1.6rem; margin: 4px 0 8px; }
.card__price { font-weight: 700; }
.card__lead { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.empty { padding: 24px 0; }

/* Build */
.build { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--green-dark); }
.build img { min-height: 420px; }
.build__copy { padding: clamp(32px, 6vw, 80px); align-self: center; }
.build ol { padding-left: 1.2em; margin: 24px 0 32px; display: grid; gap: 12px; font-size: 1.1rem; }

/* About + FAQ */
.about, .faq { padding-block: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.about__body { display: grid; gap: 16px; font-size: 1.15rem; max-width: 60ch; }
.faq { border-top: 1px solid var(--line); }
.faq h2 { grid-row: span 5; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; max-width: 65ch; }

.foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted);
}
.foot .nav__logo { margin-right: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cat img { transition: none; } }

@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .build { grid-template-columns: 1fr; }
  .build img { min-height: 260px; max-height: 340px; }
  .about, .faq { grid-template-columns: 1fr; }
  .faq h2 { grid-row: auto; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav__links { gap: 14px; font-size: .95rem; }
  .nav__cta { display: none; }
  .nav__logo span { display: none; }
  .cat { height: auto; aspect-ratio: 4 / 5; }
  .cat__name { left: 14px; bottom: 38px; }
  .cat__sub { left: 14px; bottom: 14px; font-size: .8rem; }
  .vehicle, .vehicle select { flex: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card h3 { font-size: 1.3rem; }
  .card .btn { align-self: stretch; padding: 0 10px; font-size: .85rem; }
}
