/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-light);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dealer-login {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dealer-login:hover {
  background: var(--accent-color);
  color: var(--text-light);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  color: var(--text-light);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  height: 600px;
background: 
  linear-gradient(
    rgba(0, 0, 0, 0.6),  
    rgba(0, 0, 0, 0.6)
  ),
  url("../img/bg.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px var(--text-shadow);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--neutral-100);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--neutral-400);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Improved Button Styles */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: 2px solid transparent;
  background: none;
  font-family: inherit;
  line-height: 1.4;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--shadow-primary);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: var(--hover-lift);
  box-shadow: 0 4px 12px var(--shadow-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--text-light);
  transform: var(--hover-lift);
  box-shadow: 0 4px 12px var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--text-light);
  transform: var(--hover-lift);
  box-shadow: 0 4px 12px var(--shadow-accent);
}

/* Additional button styles for consistency */
button:not(.btn) {
  padding: 8px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  background: var(--neutral-50);
  color: var(--neutral-900);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

button:not(.btn):hover {
  background: var(--neutral-200);
  border-color: var(--neutral-500);
}

/* Form buttons */
form button[type="submit"],
form button[type="button"] {
  padding: 12px 24px;
  background: var(--cargo-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button[type="submit"]:hover,
form button[type="button"]:hover {
  background: var(--cargo-primary-hover);
  transform: translateY(-1px);
}

/* Contact Bar */
.contact-bar {
  background: var(--neutral-700);
  color: white;
  padding: 15px 0;
}

.contact-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.messaging-apps {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.messaging-apps i {
  background: var(--accent-color);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.services-preview {
  padding: 80px 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--neutral-50);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-box);
}

.service-card.featured {
  background: var(--primary-color);
  color: white;
  border-color: var(--cargo-accent);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--cargo-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.service-card.featured h3 {
  color: white;
}

.service-card p {
  margin-bottom: 20px;
  color: var(--neutral-600);
}

.service-card.featured p {
  color: var(--neutral-400);
}

.service-card ul {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}

.service-card li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cargo-accent);
  font-weight: bold;
}

/* Calculator Preview */
.calculator-preview {
  padding: 80px 0;
  background: var(--neutral-50);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.calculator-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow-box);
}

.calculator-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.calculator-card h3 i {
  color: var(--accent-color);
  margin-right: 10px;
}

.calculator-card p {
  margin-bottom: 25px;
  color: var(--neutral-600);
}

.quick-calc {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-calc input,
.quick-calc select {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 1rem;
}

.quick-calc input:focus,
.quick-calc select:focus {
  outline: none;
  border-color: var(--cargo-accent);
}

.calc-result {
  padding: 15px;
  background: var(--neutral-100);
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--cargo-primary);
}

/* Car Showcase */
.showcase-preview {
  padding: 80px 0;
  background: white;
}

.car-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-top: 50px;
}

.car-slide {
  display: none;
  background: var(--neutral-50);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-box);
}

.car-slide.active {
  display: block;
}

.car-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.car-info {
  padding: 30px;
}

.car-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--cargo-primary);
}

.price-breakdown {
  margin-bottom: 25px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-border);
}

.price-item.total {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cargo-accent);
  border-bottom: 2px solid var(--cargo-accent);
  margin-top: 10px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.slider-btn {
  background: var(--cargo-accent);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--cargo-accent-hover);
  transform: scale(1.1);
}

.text-center {
  text-align: center;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-backdrop);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--disabled-gray);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--cargo-accent);
}

.import-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--cargo-primary);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin-bottom: 25px;
  color: var(--cargo-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--neutral-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--neutral-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cargo-accent);
  box-shadow: 0 0 0 3px rgba(157, 116, 58, 0.1);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: white;
}

.footer-section p {
  color: var(--neutral-400);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--cargo-accent);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--cargo-accent);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--cargo-accent-hover);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--neutral-700);
  color: var(--neutral-400);
}

/* Sticky Contact Button */
.sticky-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.sticky-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cargo-accent);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 5px 20px var(--shadow-cargo-accent);
  transition: all 0.3s;
}

.sticky-btn:hover {
  background: var(--cargo-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-cargo-accent-hover);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--cargo-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .dealer-login {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .dealer-login {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}
