:root {
  /* B7 Automotive — black + orange logo palette */
  --navy: #0a0a0b;       /* near-black (header/footer/stats) */
  --navy-2: #161618;
  --steel: #8b9096;      /* metallic silver-grey */
  --accent: #f4761d;     /* logo orange */
  --accent-2: #ff9a3d;   /* lighter orange highlight */
  --accent-deep: #e0530f;
  --ink: #f3f4f5;        /* primary text on dark */
  --muted: #9aa0a6;      /* secondary text */
  --line: #2a2a2e;       /* borders on dark */
  --bg: #0b0b0d;         /* page background */
  --bg-alt: #131315;     /* alternating sections */
  --surface: #17171a;    /* cards / inputs */
  --white: #ffffff;
  --maxw: 1200px;
  --radius: 4px;
  --font: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.logo .mark { width: 50px; height: 50px; object-fit: contain; }
.footer-logo { width: 190px; height: auto; margin-bottom: 16px; }
.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a.active { color: var(--accent-2); }

.lang {
  display: none; /* language switcher hidden */
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.lang a { color: rgba(255,255,255,0.5); font-weight: 600; }
.lang a.active, .lang a:hover { color: var(--accent-2); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(120deg, #000000 0%, #101012 55%, #1a120b 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 82% -10%, rgba(244,118,29,0.28), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 2; }
.hero-tag {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 34px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #16110a; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-dark:hover { background: #202024; border-color: var(--accent); }

/* ---------- Stats bar ---------- */
.stats {
  background: var(--navy);
  color: var(--white);
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: 0; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--accent-2); }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.rev .media { order: 2; }
.split .body p { margin-bottom: 16px; }
.split h2 { margin-bottom: 18px; }

.media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: 0 20px 50px rgba(14,32,51,0.15);
}
.media.gA { background: linear-gradient(135deg, #101012, #2a1a0d 90%); }
.media.gB { background: linear-gradient(135deg, #141416, #3a2410); }
.media.gC { background: linear-gradient(135deg, #1a1206, #f4761d 260%); }
.media .badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,32,51,0.1); }
.card .icon {
  width: 46px; height: 46px;
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }

/* ---------- Brands grid ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.brand-logo {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.brand-logo:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.45); }
.brand-logo img { max-height: 44px; max-width: 82%; width: auto; object-fit: contain; }

@media (max-width: 900px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #000000, #1c1208 70%, #e0530f 200%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 0 auto 30px; }

/* ---------- Stock grid ---------- */
.page-hero {
  background: linear-gradient(120deg, #000000, #17120c 60%, #2a1a0d);
  color: var(--white);
  padding: 80px 0 60px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 52ch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0;
}
.filters button {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.filters button.active, .filters button:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 90px;
}
.vehicle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.vehicle:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,32,51,0.12); }
.vehicle .thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.vehicle .thumb span {
  background: var(--accent);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vehicle .info { padding: 20px; }
.vehicle .info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.vehicle .info .sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.vehicle .meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.vehicle .price { color: var(--navy); font-weight: 800; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #6a6f75; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.info-block { margin-bottom: 26px; }
.info-block h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 6px; }
.info-block p { color: var(--ink); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.form-ok {
  background: #e8f5ec; border: 1px solid #b7e0c3; color: #1e6b3a;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; display: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 30px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer h5 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,0.72); }
.footer a:hover { color: var(--accent-2); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer .brand { color: var(--white); font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.footer .brand small { display:block; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--accent-2); font-weight: 500; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-bottom a, .footer-bottom .cc-reopen { margin-left: 18px; }

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .lang { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-toggle { display: block; }
  .split, .cards, .stock-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .cards, .stock-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .cards, .stock-grid { grid-template-columns: 1fr 1fr; }
}
