/* ===== Variables ===== */
:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #c9a227;
  --accent-hover: #d4af37;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #e5e9f0;
  --success: #0d9488;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-hover: 0 12px 32px rgba(10, 37, 64, 0.15);
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: var(--primary);
  color: #fff;
}

.btn-sm:hover {
  background: var(--primary-light);
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  transition: all var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-footer .logo-img {
  height: 48px;
  /* Make logo white on dark footer */
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0d3b66 100%);
  background-image: 
    linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.85)),
    url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&h=900&fit=crop');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: 72px;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Section common ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Vehicles ===== */
.vehicles {
  padding: 90px 0;
  background: var(--bg-alt);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.vehicle-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.vehicle-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--success);
  color: #fff;
}

.badge-used {
  background: var(--primary);
  color: #fff;
}

.vehicle-info {
  padding: 22px;
}

.vehicle-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary);
}

.vehicle-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.vehicle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.price small {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== About ===== */
.about {
  padding: 90px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-list {
  margin-top: 24px;
}

.about-list li {
  padding: 8px 0;
  font-weight: 500;
  color: var(--primary);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ===== Services ===== */
.services {
  padding: 90px 0;
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Contact ===== */
.contact {
  padding: 90px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-alt);
  padding: 36px;
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: #fff;
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer-links a,
.footer-links p {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 280px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: 85vh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
