/* ═══════════════════════════════════════
   ATAV AUTO PARTS — Global Stylesheet
   Industrial Premium Dark Theme
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Barlow+Condensed:wght@400;600;700&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --navy:       #080F1D;
  --navy-mid:   #0F1E35;
  --navy-card:  #152847;
  --navy-hover: #1D3560;
  --gold:       #F0C325;
  --gold-dim:   #B8921C;
  --gold-glow:  rgba(240,195,37,0.18);
  --gold-border:rgba(240,195,37,0.22);
  --white:      #EEE9DF;
  --muted:      #7A8BA8;
  --muted2:     #4E607A;
  --border:     rgba(255,255,255,0.06);
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --ease-out: cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: transform 0.18s var(--ease-out), width 0.25s, height 0.25s, opacity 0.2s;
  opacity: 0.6;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  opacity: 1;
}

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(8,15,29,0.96);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo span { color: var(--white); }
.nav-logo em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-left: 8px;
  margin-top: 4px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 18px;
  position: relative;
  transition: color 0.2s;
  font-family: var(--font-cond);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 18px; right: 18px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 22px !important;
  border-radius: 3px;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
  margin-left: 8px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #fff !important; transform: translateY(-1px); }
.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-mid);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-close {
  position: absolute;
  top: 24px; right: 5%;
  font-size: 32px;
  cursor: pointer;
  color: var(--muted);
  background: none; border: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 0 var(--gold-glow); }
.btn-gold:hover { box-shadow: 0 8px 32px var(--gold-glow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); }
.btn-dark { background: var(--navy-mid); color: var(--gold); border: 1px solid var(--gold-border); }
.btn-dark:hover { background: var(--navy-card); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── SECTION SHARED ── */
.section { padding: 104px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.label::before { content: '//'; opacity: 0.5; }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 0.96;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
}
.sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.75;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── TICKER ── */
.ticker { background: var(--gold); overflow: hidden; padding: 11px 0; white-space: nowrap; }
.ticker-inner { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker-item {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0 28px;
}
.ticker-dot { color: rgba(8,15,29,0.35); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── FOOTER ── */
footer {
  background: #040A14;
  padding: 72px 5% 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.75; max-width: 280px; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: var(--muted); font-size: 14px; margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-bottom p { font-size: 12px; color: var(--muted2); }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 12px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 4px 30px rgba(240,195,37,0.35);
  transition: transform 0.2s, opacity 0.3s, box-shadow 0.2s;
}
.sticky-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(240,195,37,0.5); }
.sticky-cta.hide { opacity: 0; pointer-events: none; }

/* ── PAGE HERO SHARED ── */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 5% 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(240,195,37,0.07) 0%, transparent 65%),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.018) 59px, rgba(255,255,255,0.018) 60px),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.018) 59px, rgba(255,255,255,0.018) 60px);
}
.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero-eyebrow span {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 0.01em;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }

/* ── CARD SHARED ── */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--gold-border);
}
.gold-line {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 5%; }
  body { cursor: auto; }
  .cursor { display: none; }
}
