/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
   APEXCARS - black, classy, performance & luxury
   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */

:root {
  --bg:      #0a0a0b;
  --bg-2:    #111114;
  --bg-3:    #16161a;
  --line:    rgba(255, 255, 255, 0.10);
  --line-2:  rgba(255, 255, 255, 0.18);
  --text:    #f4f2ee;
  --muted:   #8d8a83;
  --muted-2: #6a6862;
  --accent:  #c2a36b;          /* champagne gold - tweak this one var to re-skin */
  --accent-d:#a8884e;

  --display: 'Audiowide', system-ui, sans-serif;
  --body:    'Montserrat', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --pad:  clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

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

/* ── shared bits ── */
.eyebrow, .label {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.label { display: inline-block; position: relative; }

.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
  margin-top: 22px;
  letter-spacing: 0.01em;
}
.section-note { color: var(--muted); margin-top: 18px; max-width: 46ch; font-size: 15px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 17px 30px;
  border: 1px solid var(--line-2);
  transition: all 0.4s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--solid { background: var(--text); color: #0a0a0b; border-color: var(--text); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0b; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 20px 44px; font-size: 13px; }

/* ░░░ NAV ░░░ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.nav__logo {
  font-family: var(--display);
  font-size: 22px; letter-spacing: 0.06em; color: var(--text);
  transition: color 0.3s var(--ease);
}
.nav__logo:hover { color: var(--accent); }
.nav__logo-thin { color: var(--accent); }

.nav__links { display: flex; gap: 38px; }
.nav__links a {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--accent); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang__btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted-2); padding: 6px 7px; transition: color 0.25s var(--ease);
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: var(--accent); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 26px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }

/* ░░░ HERO ░░░ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 75% 25%, #1d1d22 0%, #0c0c0e 55%, #060607 100%);
}
.hero__media::before {           /* diagonal sheen - placeholder car gloss */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.05) 50%, transparent 62%),
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,0.012) 26px 27px);
}
.hero__media::after {            /* vignette + bottom fade into page */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 50% 40%, transparent 40%, rgba(0,0,0,0.45) 100%),
    linear-gradient(to bottom, transparent 45%, var(--bg) 100%);
}
.hero__caption {
  position: absolute; right: var(--pad); top: 38%;
  font-size: 11px; letter-spacing: 0.3em; color: var(--muted-2);
  writing-mode: vertical-rl; text-orientation: mixed;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 6.4vw, 92px); line-height: 1.0;
  letter-spacing: 0.005em; margin: 26px 0 28px;
}
.hero__sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); max-width: 52ch; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__scroll {
  position: absolute; left: var(--pad); bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2);
}
.hero__scroll i { display: block; width: 46px; height: 1px; background: var(--muted-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 2.4s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 60%,100% { transform: translateX(280%); } }

/* ░░░ SECTION RHYTHM ░░░ */
.manifesto, .approach, .collection, .contact { padding: clamp(90px, 13vw, 180px) 0; position: relative; }
.approach { background: var(--bg-2); border-block: 1px solid var(--line); }
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }

/* ░░░ MANIFESTO ░░░ */
.manifesto .wrap { max-width: 1000px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.manifesto__body { margin-top: 38px; }
.manifesto__body p {
  font-family: var(--body); font-weight: 300;
  font-size: clamp(20px, 3vw, 34px); line-height: 1.5; letter-spacing: 0.005em;
}
.manifesto__body p + p { margin-top: 28px; }
.manifesto__body p:first-child { color: var(--text); font-weight: 400; }
.manifesto__body p:not(:first-child) { color: var(--muted); }
.manifesto__sign {
  font-family: var(--display); color: var(--accent);
  font-size: clamp(14px, 1.8vw, 19px); letter-spacing: 0.26em; margin-top: 56px;
  position: relative; padding-top: 40px;
}
.manifesto__sign::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1px; height: 24px; background: var(--accent); }

/* ░░░ APPROACH STEPS ░░░ */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg-2); padding: clamp(32px, 4vw, 54px); transition: background 0.4s var(--ease); }
.step:hover { background: var(--bg-3); }
.step__num { font-family: var(--display); font-size: 14px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.4vw, 28px); margin: 18px 0 14px; letter-spacing: 0.01em; }
.step p { color: var(--muted); font-size: 15px; font-weight: 300; max-width: 42ch; }

/* ░░░ COLLECTION GRID ░░░ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 26px); }
.card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
}
.card__img {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(130% 100% at 70% 20%, #20202a 0%, #101015 60%, #0a0a0d 100%);
  transition: transform 0.7s var(--ease);
}
.card__img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
}
.card__img::after {
  content: attr(data-ph); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.3em; color: var(--muted-2); text-transform: uppercase;
}
.card:hover .card__img { transform: scale(1.06); }
.card__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6,6,8,0.92) 0%, transparent 55%); }
.card__body { position: relative; z-index: 2; padding: clamp(20px, 2.4vw, 30px); }
.card__name { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.9vw, 22px); letter-spacing: 0.02em; }
.card__spec { color: var(--muted); font-size: 12.5px; margin-top: 8px; letter-spacing: 0.04em; }
.card__cta { color: var(--accent); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 16px; display: inline-flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease); }
.card:hover .card__cta { opacity: 1; transform: translateY(0); }

/* ░░░ CONTACT ░░░ */
.contact__inner { max-width: 820px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 56px); line-height: 1.06; margin: 24px 0 22px; }
.contact__body { color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); max-width: 46ch; font-weight: 300; }
.contact .btn { margin-top: 42px; }
.contact__mail { margin-top: 26px; color: var(--muted); font-size: 13px; letter-spacing: 0.16em; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }

/* ░░░ FOOTER ░░░ */
.footer { padding: 56px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__brand { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.footer__logo { font-family: var(--display); font-size: 18px; letter-spacing: 0.05em; }
.footer__tag { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; }
.footer__meta { display: flex; gap: 26px; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.footer__meta a:hover { color: var(--accent); }
.footer__rights { width: 100%; color: var(--muted-2); font-size: 11px; letter-spacing: 0.1em; border-top: 1px solid var(--line); padding-top: 22px; }

/* ░░░ REVEAL ░░░ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll i::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ░░░ RESPONSIVE ░░░ */
/* nav collapses into a slide-in menu before the links can crowd the logo/lang switcher */
@media (max-width: 1024px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(10,10,11,0.97); backdrop-filter: blur(16px);
    padding: var(--pad); transform: translateX(100%); transition: transform 0.5s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 16px; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { align-items: center; }
  .hero__caption { display: none; }
  .lang { gap: 0; }
  .lang__btn { padding: 6px 5px; font-size: 11px; }
}
