:root {
  --orange: #ff6b2c;
  --orange-dark: #e85a1a;
  --teal: #00b4a6;
  --teal-dark: #009688;
  --navy: #1a2744;
  --navy-light: #243352;
  --yellow: #ffc93c;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #64748b;
  --gray-800: #1e293b;
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.12);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

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

.section { padding: 5rem 0; }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-icon { font-size: 1.75rem; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--orange); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 107, 44, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(255, 107, 44, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, #2d4a6f 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 107, 44, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 180, 166, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 60% 60%, rgba(255, 201, 60, 0.1) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 180, 166, 0.25);
  color: var(--teal);
  border: 1px solid rgba(0, 180, 166, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
}
.hero-stats span { font-size: 0.85rem; opacity: 0.75; }

/* Inventory */
.inventory { background: var(--white); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filters input,
.filters select {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.filters input { flex: 1; min-width: 220px; }
.filters input:focus,
.filters select:focus { border-color: var(--teal); }

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.18);
}

.car-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.car-body { padding: 1.25rem; }

.car-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.car-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.car-price small { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); }

/* About */
.about { background: linear-gradient(180deg, var(--gray-50), var(--gray-100)); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card h2, .about-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-list { list-style: none; }
.about-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--gray-800);
}

.about-highlight {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.about-highlight h3 { color: var(--yellow); }
.about-highlight p { opacity: 0.9; margin-bottom: 0.75rem; }

.about-motto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--orange) !important;
  margin-top: 1rem !important;
}

/* Contact */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-item { margin-bottom: 1.5rem; }

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.35rem;
}

.contact-item p { color: var(--gray-800); }
.contact-item a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.contact-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner p { margin-bottom: 0.35rem; }
.footer a { color: var(--yellow); text-decoration: none; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--gray-600);
  z-index: 1;
}

.modal-car-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.modal-body-inner { padding: 1.5rem; }

.modal-body-inner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.modal-details span { color: var(--gray-600); }
.modal-details strong { color: var(--navy); display: block; }

.modal-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
