/* ---------- Base ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #0f0f0f;
  color: #e0e0e0;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  color: #ffffff;
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: #c9a84c;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #e8c96e;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #f0d780;
  text-decoration: underline;
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border-bottom: 3px solid #c9a84c;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

header .sub-title {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: #999;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ---------- Navigation (Bootstrap override) ---------- */
.navbar {
  background-color: #1a1a1a;
  border-bottom: 1px solid #2e2e2e;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #ccc;
  border-radius: 3px;
  padding: 0.5rem 1.2rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: #c9a84c;
  color: #111 !important;
  text-decoration: none;
}

.navbar-toggler {
  border-color: #c9a84c;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c9a84c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero Banner ---------- */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/2003_BMW_330ci_coupe_%28E46%29%2C_front_8.21.19.jpg/1280px-2003_BMW_330ci_coupe_%28E46%29%2C_front_8.21.19.jpg')
              center/cover no-repeat;
  min-height: clamp(200px, 40vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 700px;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #ffffff;
}

.hero-content p {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: #ddd;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ---------- Main Content ---------- */
main {
  flex: 1;
}

/* ---------- Section ---------- */
.section {
  margin-bottom: 3rem;
}

.section-header {
  border-left: 4px solid #c9a84c;
  padding-left: 0.85rem;
  margin-bottom: 1.25rem;
}

/* ---------- Cards (Bootstrap col children) ---------- */
.card {
  background-color: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-top: 3px solid #c9a84c;
  border-radius: 4px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #e0e0e0;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.15);
}

/* ---------- Spec Table (Bootstrap table override) ---------- */
.spec-table {
  font-size: 0.95rem;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #191919;
  --bs-table-border-color: #2a2a2a;
  --bs-table-color: #d8d8d8;
}

.spec-table th {
  background-color: #1a1a1a;
  color: #c9a84c;
  font-weight: 600;
  width: 40%;
  border-bottom-color: #2a2a2a;
}

.spec-table td {
  color: #d8d8d8;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2e2e2e;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9a84c;
  border: 2px solid #0f0f0f;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ---------- Callout ---------- */
.callout {
  background-color: #1a1a1a;
  border-left: 4px solid #c9a84c;
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #bbb;
}

/* ---------- Tag / Badge ---------- */
.tag {
  display: inline-block;
  background-color: #c9a84c;
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* ---------- Page Navigation Links ---------- */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #1c1c1c;
  border: 1px solid #c9a84c;
  color: #c9a84c;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-nav a:hover {
  background-color: #c9a84c;
  color: #111;
  text-decoration: none;
}

/* ---------- Footer ---------- */
footer {
  background-color: #111;
  border-top: 1px solid #2e2e2e;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.82rem;
  color: #555;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 576px) {
  .hero {
    min-height: 180px;
  }

  .spec-table th {
    width: 50%;
  }

  .page-nav {
    flex-direction: column;
  }
}
