/* Willys CJ Jeep Website Styles */
:root {
  --olive: #4a5d23;
  --olive-dark: #2f3d16;
  --tan: #c4a574;
  --tan-light: #e8d5b5;
  --black: #1a1a1a;
  --off-white: #f8f6f2;
  --gray: #666;
  --white: #ffffff;
  --accent: #8b7355;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--black);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

a {
  color: var(--olive);
  text-decoration: none;
}

a:hover {
  color: var(--olive-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.navbar {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--tan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--tan);
}

.cart-link {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--olive);
  padding: 8px 14px;
  border-radius: 4px;
}

.cart-link:hover {
  background: var(--olive-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(47,61,22,0.75), rgba(74,93,35,0.65)), url('images/cj5-red.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 20px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23000000" opacity="0.1" width="100" height="100"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--tan);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--tan-light);
  color: var(--black);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--olive-dark);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--olive-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image img,
.article-image img,
.teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image,
.article-image,
.teaser-image {
  height: 180px;
  overflow: hidden;
}

.teaser-image {
  height: 280px;
}

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--olive);
  margin: 0.5rem 0;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  background: var(--olive);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart:hover {
  background: var(--olive-dark);
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.teaser-image .image-placeholder,
.article-image.placeholder,
.image-placeholder {
  height: 280px;
  background: linear-gradient(135deg, var(--tan), #a08050);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-image {
  height: 160px;
}

.article-content {
  padding: 1.2rem;
}

.article-content h3 {
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
}

.article-content h3 a {
  color: var(--black);
}

.article-content h3 a:hover {
  color: var(--olive);
}

/* History timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--olive);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 60px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--tan);
  border: 3px solid var(--olive);
  border-radius: 50%;
}

.timeline-item h3 {
  color: var(--olive-dark);
  margin-bottom: 0.4rem;
  text-transform: none;
}

.timeline-item .years {
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: var(--olive);
  color: white;
}

.qty-input {
  width: 60px;
  padding: 6px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cart-summary {
  margin-top: 2rem;
  text-align: right;
  font-size: 1.2rem;
}

.cart-summary strong {
  font-size: 1.5rem;
  color: var(--olive);
}

.empty-cart {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 8px;
}

/* Contact form */
.contact-form,
.checkout-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--black);
  color: #ccc;
  padding: 50px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h3, footer h4 {
  color: var(--tan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: var(--tan);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filters button {
  padding: 8px 16px;
  background: white;
  border: 2px solid var(--olive);
  color: var(--olive);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}

.filters button.active,
.filters button:hover {
  background: var(--olive);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 20px;
  }
}