/* NUA Motors Static Website Styles */

/* CSS Variables */
:root {
  --brand-blue: #3b82f6;
  --brand-gray: #1f2937;
  --brand-red: #dc2626;
  --brand-green: #10b981;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --background-primary: #ffffff;
  --background-secondary: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}

/* Header Styles */
.header {
  background-color: var(--background-primary);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--brand-blue);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.contact-item svg {
  color: var(--brand-blue);
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--brand-blue);
}

.mobile-menu-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--brand-blue);
}

.nav {
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-right: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.mobile-menu {
  background-color: var(--background-secondary);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  display: none;
}

.mobile-menu.show {
  display: block;
}

.mobile-menu .contact-item {
  margin-bottom: 0.5rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-secondary:hover {
  background-color: var(--brand-blue);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2563eb 100%);
  color: white;
  padding: 4rem 0;
}

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

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: var(--background-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

.about-image {
  background-color: var(--background-secondary);
  border-radius: 0.75rem;
  padding: 2rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--background-secondary);
}

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

.section-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

.contact-card {
  background-color: var(--background-primary);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.contact-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #2563eb;
}

/* Inventory Page Styles */
.inventory-page {
  padding: 3rem 0;
}

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

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.inventory-section {
  margin-bottom: 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 2rem;
}

.section-title.incoming svg {
  color: var(--brand-green);
}

.section-title.sold svg {
  color: var(--brand-red);
}

/* Vehicle Card Styles */
.vehicle-card {
  background-color: var(--background-primary);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.vehicle-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.vehicle-image-section img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.vehicle-info-section {
  padding: 2rem;
}

.vehicle-status {
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.badge.incoming {
  background-color: var(--brand-green);
}

.badge.sold {
  background-color: var(--brand-red);
}

.vehicle-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.vehicle-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.detail-item svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}

.vehicle-pricing {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.price-note {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Sold Vehicles Grid */
.sold-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.vehicle-card.sold {
  padding: 1.5rem;
}

.vehicle-placeholder {
  width: 100%;
  height: 8rem;
  background-color: var(--background-secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  margin-top: 4rem;
  background-color: var(--brand-blue);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.cta-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.cta-buttons .btn {
  min-width: 200px;
}

.cta-buttons .btn-primary {
  background-color: white;
  color: var(--brand-blue);
}

.cta-buttons .btn-primary:hover {
  background-color: var(--background-secondary);
}

.cta-buttons .btn-secondary {
  border-color: white;
  color: white;
}

.cta-buttons .btn-secondary:hover {
  background-color: white;
  color: var(--brand-blue);
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Footer Styles */
.footer {
  background-color: var(--brand-gray);
  color: white;
  padding: 3rem 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--brand-blue);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer h3,
.footer h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer p {
  color: #d1d5db;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d1d5db;
}

.footer-contact-item a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: white;
}

.hours {
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #d1d5db;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .vehicle-card.featured {
    grid-template-columns: 1fr;
  }
  
  .vehicle-image-section img {
    height: 12rem;
  }
  
  .sold-vehicles-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .contact-item a {
    word-break: break-all;
  }
}