/* ==========================================================================
   DualSport Parts — dualsportparts.eu
   Typography-first. Light, industrial, lots of air.
   ========================================================================== */

:root {
  --bg: #F8F7F5;
  --ink: #1A1A1A;
  --ink-soft: #5C5C5C;
  --ink-faint: #9A9A9A;
  --steel: #1E3A5F;
  --steel-hover: #2A5080;
  --card: #2A2A2A;
  --line: rgba(26, 26, 26, .14);
  --line-strong: rgba(26, 26, 26, .3);
  --white: #FFFFFF;

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-sub: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--steel); color: #fff; padding: 10px 14px;
  font-family: var(--font-sub); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.skip:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .92;
  font-size: clamp(40px, 6vw, 72px);
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 88px);
  line-height: .85;
  color: var(--steel);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1.5px solid var(--steel);
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}

/* Fill sweeps in from the left on hover */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--steel-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

.btn--fill { background: var(--steel); color: #fff; }
.btn--fill:hover, .btn--fill:focus-visible { border-color: var(--steel-hover); }

.btn--line { background: transparent; color: var(--steel); }
.btn--line:hover, .btn--line:focus-visible { color: #fff; border-color: var(--steel-hover); }

.btn--block { width: 100%; }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 245, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav__brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--steel);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__cart {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px;
  transition: color .2s;
}
.nav__cart:hover { color: var(--steel-hover); }
.nav__count {
  font-family: var(--font-sub); font-weight: 500; font-size: 11px;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--steel); color: #fff;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__count[data-empty="true"] { opacity: .35; background: var(--ink); }
.nav__count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(64px, 12vh, 140px) 0; }

.hero__grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(58px, 14vw, 100px);
  line-height: .88;
  letter-spacing: .015em;
}

.hero__side { display: flex; flex-direction: column; gap: 32px; }

.hero__sub {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  display: flex; flex-wrap: wrap; gap: 6px 0;
}
.hero__stats li {
  font-family: var(--font-sub); font-weight: 500;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center;
}
.hero__stats li + li::before {
  content: "·"; margin-inline: 18px; color: var(--steel);
}

/* --------------------------------------------------------------------------
   Why
   -------------------------------------------------------------------------- */

.why { padding-block: clamp(80px, 12vw, 160px); }

.why__list {
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
}

.why__item { border-top: 1px solid var(--line); padding-top: 28px; }
.why__item h2 {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 34px; letter-spacing: .04em; line-height: 1;
  margin: 22px 0 14px;
}
.why__item p { color: var(--ink-soft); max-width: 36ch; }

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */

.parts { padding-bottom: clamp(80px, 12vw, 160px); }

.grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}

.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(26, 26, 26, .35);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--card);
  overflow: hidden;
  display: grid; place-items: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder: part number as watermark until real photos exist */
.card__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: rgba(255, 255, 255, .22);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 13px; letter-spacing: .3em;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 24px 100%;
}
.card__ph svg { width: 48px; height: 48px; stroke: rgba(255,255,255,.18); }

.card__stock {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-sub); font-weight: 500; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: var(--steel);
  padding: 5px 9px;
}

.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.card__sku {
  font-family: var(--font-sub); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; color: var(--steel);
}
.card__name {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 28px; line-height: 1; letter-spacing: .03em;
  margin-top: 2px;
}
.card__fit { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .02em; }

.card__row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.card__price { font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.card__vat { font-size: 11px; color: var(--ink-faint); }

.card .btn { margin-top: 16px; }
.card .btn.is-added { background: var(--ink); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   About (dark band)
   -------------------------------------------------------------------------- */

.about { background: var(--ink); color: #fff; padding-block: clamp(80px, 12vw, 160px); }

.about__grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }

.about__title {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 112px); line-height: .88; letter-spacing: .015em;
}
.about__body p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 44ch; }
.about__sig {
  display: block; margin-top: 26px;
  font-family: var(--font-sub); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* --------------------------------------------------------------------------
   How
   -------------------------------------------------------------------------- */

.how { padding-block: clamp(80px, 12vw, 160px); }

.how__list { display: grid; gap: 40px; grid-template-columns: 1fr; }
.how__item { border-top: 1px solid var(--line); padding-top: 24px; }
.how__item p {
  margin-top: 18px;
  font-family: var(--font-sub); font-weight: 500;
  font-size: 18px; line-height: 1.4; max-width: 26ch;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { padding-bottom: clamp(80px, 12vw, 160px); }
.contact__grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong); padding-top: clamp(40px, 6vw, 72px);
}
.contact__body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact__body p { color: var(--ink-soft); max-width: 40ch; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line-strong); }

.footer__top {
  display: flex; flex-direction: column; gap: 22px;
  padding-block: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand span {
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .26em; text-transform: uppercase;
}
.footer__brand a { font-size: 13px; color: var(--ink-faint); }
.footer__brand a:hover { color: var(--steel-hover); }

.footer__links { display: flex; gap: 28px; }
.footer__links a, .footer__social {
  font-family: var(--font-sub); font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: color .2s;
}
.footer__links a:hover, .footer__social:hover { color: var(--steel-hover); }

.footer__bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}
.footer__bottom nav { display: flex; gap: 18px; }
.footer__bottom a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

.cart-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(26, 26, 26, .45);
  opacity: 0; transition: opacity .35s var(--ease);
}
.cart-backdrop.is-open { opacity: 1; }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(100%, 420px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  visibility: hidden;
}
.cart.is-open { transform: none; visibility: visible; }

.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-h);
  border-bottom: 1px solid var(--line);
}
.cart__head h2 {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .2em; font-size: 18px;
}
.cart__close { font-size: 28px; line-height: 1; width: 40px; height: 40px; margin-right: -10px; }
.cart__close:hover { color: var(--steel-hover); }

.cart__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__empty {
  padding: 48px 0; text-align: center; color: var(--ink-faint); font-size: 14px;
}

.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item__thumb { width: 56px; height: 56px; background: var(--card); }
.cart-item__name {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 17px; line-height: 1; letter-spacing: .03em;
}
.cart-item__sku { font-size: 11px; color: var(--steel); letter-spacing: .1em; margin-top: 3px; }
.cart-item__ctl { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.cart-item__ctl button {
  width: 26px; height: 26px; border: 1px solid var(--line-strong);
  font-size: 14px; display: grid; place-items: center; transition: background .2s, color .2s;
}
.cart-item__ctl button:hover { background: var(--steel); color: #fff; border-color: var(--steel); }
.cart-item__ctl span { min-width: 28px; text-align: center; font-size: 13px; }
.cart-item__price { font-size: 15px; font-weight: 500; white-space: nowrap; }
.cart-item__rm { font-size: 11px; color: var(--ink-faint); margin-top: 6px; display: block; margin-left: auto; }
.cart-item__rm:hover { color: var(--ink); text-decoration: underline; }

.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total span { font-family: var(--font-sub); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.cart__total strong { font-size: 24px; font-weight: 500; }
.cart__note { font-size: 11px; color: var(--ink-faint); margin: 6px 0 16px; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  font-family: var(--font-sub); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .btn::before, .cart, .cart-backdrop { transition: none; }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal { padding-block: clamp(56px, 10vh, 120px); }
.legal .section-title { margin-bottom: 40px; }
.legal h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 26px; letter-spacing: .04em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); max-width: 70ch; margin-bottom: 12px; }
.legal .placeholder {
  border-left: 2px solid var(--steel); padding: 14px 18px; margin: 24px 0;
  font-size: 14px; color: var(--ink-soft); background: rgba(30, 58, 95, .05);
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  /* Legal pages: no burger, plain inline links */
  .nav__links--static {
    position: static; transform: none; opacity: 1; visibility: visible;
    flex-direction: row; gap: 20px; padding: 0; border: 0; background: none;
  }
  .nav__links--static a { padding: 6px 0; border: 0; font-size: 12px; }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__burger { display: flex; }

  .hero__stats { flex-direction: column; gap: 10px; }
  .hero__stats li + li::before { display: none; }
}

@media (min-width: 768px) {
  .why__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .how__list { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  :root { --nav-h: 72px; }
  .hero__grid { grid-template-columns: 1.55fr 1fr; gap: 64px; }
  .hero__side { padding-bottom: 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .about__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
