/* ================================================================
   ALL AUTO RECYCLERS - MARKETPLACE DESIGN SYSTEM
   Shared across all pages
   ================================================================ */

:root {
  --orange: #e8651f;
  --orange-d: #c2541a;
  --orange-soft: #fff1e8;
  --slate: #2c3e50;
  --slate-d: #1c2a36;
  --slate-l: #4a5b6d;
  --slate-soft: #6b7785;
  --bg: #f4f5f7;
  --paper: #fff;
  --line: #e4e7ea;
  --text: #1c2a36;
  --text-mid: #4a5b6d;
  --text-soft: #6b7785;
  --error: #c0392b;
  --success: #16a34a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== HEADER (sticky, on all pages) ===== */
.hdr {
  background: white;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hdr-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hdr__brand { display: flex; align-items: center; gap: 10px; }
.hdr__logo {
  width: 36px;
  height: 36px;
  background: var(--slate);
  color: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
}
.hdr__name { font-weight: 800; font-size: 15px; }
.hdr__nav { display: flex; align-items: center; gap: 26px; }
.hdr__link { font-size: 14px; font-weight: 600; color: var(--text-mid); transition: color 0.15s; }
.hdr__link:hover, .hdr__link.is-active { color: var(--orange); }
.hdr__cta {
  background: var(--orange);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hdr__cta:hover { background: var(--orange-d); }

/* ===== HERO patterns ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--slate-d) 0%, var(--slate) 100%);
  color: white;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1632323093594-7e8b365e5045?w=1920') center/cover;
  opacity: 0.25;
  filter: grayscale(0.3);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,42,54,0.92) 0%, rgba(44,62,80,0.75) 100%);
}
.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 80px;
  z-index: 2;
}
.hero--lg .hero__inner { padding: 80px 24px 100px; }
.hero--sm .hero__inner { padding: 50px 24px 60px; }
.hero__tag {
  display: inline-block;
  background: rgba(232,101,31,0.18);
  color: var(--orange);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 18px;
  font-family: 'Space Mono', monospace;
}
.hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 720px;
}
.hero--lg .hero__title { font-size: 56px; }
.hero__title span { color: var(--orange); }
.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--orange);
  color: white;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 6px 20px rgba(232,101,31,0.3);
  transition: all 0.15s;
}
.btn-primary:hover { background: var(--orange-d); transform: translateY(-1px); }
.btn-primary--sm { padding: 11px 18px; font-size: 13px; box-shadow: 0 4px 12px rgba(232,101,31,0.25); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-secondary {
  background: var(--slate);
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--slate-d); }
.btn-outline {
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--orange); color: white; }

/* ===== TRUST STRIP ===== */
.trust {
  background: var(--paper);
  padding: 36px 24px;
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust__item { text-align: center; }
.trust__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  font-family: 'Space Mono', monospace;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.trust__label {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ===== SECTION ===== */
.section { padding: 80px 24px; }
.section--alt { background: var(--bg); }
.section--sm { padding: 50px 24px; }
.section__inner { max-width: 1280px; margin: 0 auto; }
.section__inner--narrow { max-width: 880px; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head--left { text-align: left; }
.section__eyebrow {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 12px;
  font-family: 'Space Mono', monospace;
}
.section__title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--slate-d);
}
.section__sub {
  color: var(--text-mid);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
.section__head--left .section__sub { margin-left: 0; }

/* ===== MARKETPLACE CARDS ===== */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mkt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mkt-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.mkt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(28,42,54,0.1);
  border-color: var(--orange);
}
.mkt-card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #cfd5dc 0%, #9aa5b1 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.mkt-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,42,54,0) 0%, rgba(28,42,54,0) 60%, rgba(28,42,54,0.18) 100%);
  pointer-events: none;
}
.mkt-card__img-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--slate-d);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-family: 'Space Mono', monospace;
  z-index: 2;
}
.mkt-card__img-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.4;
}
.mkt-card__body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.mkt-card__part {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.mkt-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mkt-card__spec { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; font-family: 'Space Mono', monospace; }
.mkt-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
}
.mkt-card__meta-item span:first-child {
  font-size: 9px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.mkt-card__meta-item span:last-child { font-size: 12px; color: var(--text); font-weight: 700; }
.mkt-card__price { font-size: 14px; font-weight: 800; color: var(--slate-d); margin-bottom: 12px; }
.mkt-card__price-label {
  font-size: 10px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}
.mkt-card__cta {
  background: var(--slate);
  color: white;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  display: block;
  margin-top: auto;
  transition: background 0.15s;
}
.mkt-card__cta:hover { background: var(--orange); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--slate-d) 0%, var(--slate) 100%);
  color: white;
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-d) 100%);
}
.cta-band__title { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-band__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.ft { background: var(--slate-d); color: rgba(255,255,255,0.6); padding: 50px 24px 24px; }
.ft__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.ft__brand-name { color: white; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.ft__brand-sub { font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
.ft__title { color: white; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.ft__list { list-style: none; }
.ft__list li { margin-bottom: 8px; font-size: 13px; }
.ft__list a:hover { color: var(--orange); }
.ft__bottom { max-width: 1280px; margin: 0 auto; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mkt-grid { grid-template-columns: repeat(3, 1fr); }
  .mkt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .hero__title { font-size: 40px; }
  .hero--lg .hero__title { font-size: 44px; }
}
@media (max-width: 720px) {
  .hdr__nav { display: none; }
  .hero__title { font-size: 30px; }
  .hero--lg .hero__title { font-size: 32px; }
  .hero__sub { font-size: 16px; }
  .section { padding: 60px 16px; }
  .section__title { font-size: 26px; }
  .mkt-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mkt-grid--3 { grid-template-columns: 1fr; }
  .ft__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ft__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-band__title { font-size: 26px; }
}
@media (max-width: 480px) {
  .mkt-grid { grid-template-columns: 1fr; }
}

/* ========================================
   MOBILE NAV TOGGLE
   ======================================== */
.hdr__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
}
@media (max-width: 720px) {
  .hdr__toggle { display: block; }
  .hdr__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(28,42,54,0.08);
  }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav .hdr__link {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .hdr__nav .hdr__link:last-child { border-bottom: 0; }
  .hdr__cta { padding: 8px 14px; font-size: 12px; }
}

/* ===== LEGAL / 404 / THANKS LEGACY ===== */
.section--legal { padding: 60px 16px; background: var(--bg); min-height: calc(100vh - 200px); }
.legal-wrap { max-width: 760px; margin: 0 auto; background: white; border-radius: 12px; padding: 40px 36px; box-shadow: 0 4px 16px rgba(28,42,54,0.05); }
.legal-wrap h1 { font-size: 32px; font-weight: 800; color: var(--slate-d); margin: 0 0 8px; letter-spacing: -0.02em; }
.legal-wrap h2 { font-size: 18px; font-weight: 700; color: var(--slate-d); margin: 28px 0 10px; }
.legal-wrap h3 { font-size: 15px; font-weight: 700; color: var(--slate-d); margin: 20px 0 8px; }
.legal-wrap p { color: var(--text-mid); line-height: 1.65; margin: 0 0 14px; font-size: 14px; }
.legal-wrap ul { color: var(--text-mid); line-height: 1.7; margin: 0 0 14px; padding-left: 22px; font-size: 14px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--orange); font-weight: 600; }
.legal-meta { font-size: 12px; color: var(--text-soft); margin-bottom: 24px !important; font-family: 'Space Mono', monospace; }

.section--thanks { background: var(--bg); padding: 60px 16px 80px; min-height: calc(100vh - 200px); }
.thanks-wrap { max-width: 600px; margin: 0 auto; }
.thanks-card { background: white; padding: 40px 32px; border-radius: 14px; text-align: center; box-shadow: 0 6px 24px rgba(28,42,54,0.08); }
.thanks-card__check { width: 80px; height: 80px; border-radius: 50%; background: var(--orange); color: white; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; margin: 0 auto 20px; }
.thanks-card__check--bad { background: #c0392b; }
.thanks-card h1 { font-size: 28px; font-weight: 800; color: var(--slate-d); margin: 0 0 12px; }
.thanks-card p { color: var(--text-mid); line-height: 1.6; margin: 0 0 22px; }
