/* =========================
   INDEX.HTML SPECIFIC STYLES
========================= */
:root {
  --primary: #0f2a4f;
  --accent: #ff8c1a;
  --light: #f2f4f7;
  --dark: #1a1a1a;
  --text-muted: #6b7280;
  --radius: 16px;
}

/* Global Box Sizing Fix */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Container */
.container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 80vh;
  background: url("images/vehicle2.jpeg") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(10, 25, 47, 0.85) 0%,
    rgba(15, 42, 79, 0.85) 60%,
    rgba(100, 149, 237, 0.75) 80%,
    rgba(255, 140, 26, 0.8) 90%,
    rgba(255, 215, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-section h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 6vw, 58px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 100%;
  word-wrap: break-word;
}

.hero-section h1 .highlight {
  color: var(--accent);
}

.hero-section .subtitle {
  position: relative;
  z-index: 2;
  color: #e5e7eb;
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: 28px;
  max-width: min(700px, 90vw);
  line-height: 1.6;
}

.hero-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.btn {
  padding: 14px 26px;
  min-height: 48px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

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

.btn.secondary {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.card-body .btn {
  background: var(--primary);
  color: #fff;
  width: 100%;
  border: none;
}

/* Featured Vehicles Section */
.featured-section {
  padding: 80px 20px;
  background: var(--light);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 100%;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 10px;
  color: var(--dark);
  max-width: 100%;
  word-wrap: break-word;
}

.section-header h2 .highlight {
  color: var(--accent);
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: min(800px, 90vw);
  margin: 0 auto;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 40px;
  padding: 0 10px;
  box-sizing: border-box;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-6px);
}

.image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.image-wrapper:hover img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 6px;
  z-index: 10;
  white-space: nowrap;
}

.badge.featured {
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
}

.badge.year {
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
}

.card-body {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--dark);
  word-wrap: break-word;
}

.price {
  color: var(--accent);
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 12px;
}

.specs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.specs span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.card-body p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.view-all-container {
  text-align: center;
  width: 100%;
}

.view-all-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--primary);
}

/* About Section */
.about-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.about-section h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 16px;
  color: var(--dark);
  max-width: 100%;
  word-wrap: break-word;
}

.about-section h2 .highlight {
  color: var(--accent);
}

.section-subtitle {
  max-width: min(700px, 90vw);
  margin: 0 auto 50px;
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 25px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.feature-card {
  background: var(--light);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
  word-wrap: break-word;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================
   CTA SECTION
========================= */
.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
  background-color: #102f57;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  color: #fff;
  max-width: 100%;
  word-wrap: break-word;
}

.cta-section h2 .highlight {
  color: var(--accent);
}

.cta-section p {
  max-width: min(600px, 90vw);
  margin: 0 auto 2rem;
  color: #d0d8e5;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
}

.cta-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.cta-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cta-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.cta-column {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.cta-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #fff;
  background: var(--accent);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  display: block;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 140, 26, 0.3);
  box-sizing: border-box;
}

.cta-column p {
  color: #d0d8e5;
  text-align: left;
  line-height: 1.6;
}

.post-list,
.resource-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.post-list li,
.resource-list li {
  margin-bottom: 0.8rem;
  word-wrap: break-word;
}

.post-list a,
.resource-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
  word-wrap: break-word;
}

.post-list a:hover,
.resource-list a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 1200px) {
  .container {
    padding: 0;
  }
  
  .vehicle-grid {
    max-width: 95%;
    padding: 0 5px;
  }
  
  .features-grid {
    max-width: 95%;
    padding: 0 5px;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 70vh;
    padding: 50px 20px;
  }
  
  .about-section,
  .featured-section {
    padding: 60px 20px;
  }
  
  .vehicle-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 20px;
  }
  
  .cta-section {
    padding: 3rem 1.5rem;
  }
  
  .cta-columns {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0;
  }

  .hero-section {
    padding: 40px 15px;
    min-height: 60vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    min-height: 50px;
  }

  .specs {
    justify-content: space-between;
  }

  .about-section,
  .featured-section {
    padding: 50px 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .cta-section {
    padding: 2.5rem 1rem;
  }

  .cta-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 30px 10px;
    min-height: 50vh;
  }

  .about-section,
  .featured-section {
    padding: 40px 10px;
  }

  .card-body {
    padding: 15px;
  }

  .cta-section {
    padding: 2rem 0.5rem;
  }

  .cta-column {
    padding: 1rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix for images in social links */
.social-links img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}