/* =========================================================
   🎨 AutoNAFRICA Gold & Black Theme (v2025-10-28)
   Elegant, premium UI — Gold accents on dark base
   ======================================================= */

/* ---- Design tokens ---- */
:root {
  --gold: #caa24f;
  --gold-light: #d9b65f;
  --gold-dark: #b28b3d;
  --black: #000000;
  --charcoal: #0a0a0a;
  --dark-gray: #1a1a1a;
  --muted: #b8b8b8;
  --white: #ffffff;
  --line: #2a2a2a;
}

/* ---- Reset ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body { height: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---- Containers ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section { padding: 60px 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  color: var(--white);
  margin-bottom: 10px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--gold-light); }

/* =========================================================
   HEADER / NAVBAR
   ======================================================= */
.site-topbar {
  background: var(--black);
  color: var(--gold);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.site-topbar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.site-nav {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand a { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }

/* Desktop nav */
.nav {
  display: flex;
  list-style: none;
  gap: 12px;
}
.nav li { display: inline-block; }
.nav a {
  color: #ddd;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover,
.nav a.active {
  background: var(--gold);
  color: var(--black);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  border-radius: 2px;
}

/* =========================================================
   MOBILE MENU
   ======================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu__panel {
  position: absolute;
  top: 0; left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--charcoal);
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu__panel .close-btn {
  background: var(--gold);
  color: var(--black);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.mobile-nav {
  list-style: none;
  margin-top: 20px;
}
.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--dark-gray);
  color: var(--white);
  font-weight: 600;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--gold);
  color: var(--black);
}
.mobile-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

/* =========================================================
   HERO
   ======================================================= */
.hero {
  text-align: center;
  padding: 100px 0 60px;
  background: linear-gradient(to bottom, #000, #111);
}
.hero h1 {
  font-size: 64px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero p {
  color: #ddd;
  font-size: 18px;
  margin-bottom: 30px;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 30px;
  padding: 14px 30px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.btn-gold:hover { background: var(--gold-light); }

/* =========================================================
   CARDS (Grid + Premium Style)
   ======================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--dark-gray);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255,215,130,0.15);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  background-color: var(--charcoal);
  border-bottom: 1px solid #222;
}
.card-body {
  padding: 16px;
}
.card .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.card .sub {
  font-size: 13px;
  color: #ccc;
  margin: 4px 0;
}
.card .price {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}

/* Premium Badge */
.card.premium::before {
  content: "PREMIUM";
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 5;
}

/* =========================================================
   SECTION HEADS
   ======================================================= */
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.section__head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}
.section__head a {
  background-color: var(--gold);
  color: var(--black);
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}
.section__head a:hover {
  background: var(--gold-light);
}

/* =========================================================
   FOOTER
   ======================================================= */
.site-footer--gold {
  background: var(--black);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.footer-brand img {
  width: 280px;
  object-fit: contain;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding: 14px 16px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer-icons div:hover {
  border-color: #caa24f;
  box-shadow: 0 0 8px rgba(202,162,79,0.4);
}

/* =========================================================
   RESPONSIVE DESIGN
   ======================================================= */
@media (max-width: 992px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .brand img { height: 48px; }
  .hero h1 { font-size: 36px; }
  .card img { height: 160px; }
}
