/* ============================================
   SPARE PARTS AFTERMARKET — Bold Red Theme
   ============================================ */

:root {
  /* Brand colors — bold-red palet */
  --primary-red: #c41e3a;      /* Bold crimson red */
  --primary-dark: #8b1429;     /* Deep maroon accent */
  --accent-gold: #ffa500;      /* Warm gold highlight */
  --accent-orange: #ff6b35;    /* Vibrant orange accent */
  --bg-light: #f8f6f3;         /* Warm off-white */
  --bg-dark: #1a1a1a;          /* Deep charcoal */
  --text-dark: #2c2c2c;        /* Dark text */
  --text-light: #ffffff;       /* White text */
  --border-light: #e5e0db;     /* Light border */
  --success: #2ecc71;          /* Green */
  --danger: #e74c3c;           /* Red for errors */

  /* Typography */
  --font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

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

/* ============================================
   DEMO BAR
   ============================================ */

.demo-bar {
  background-color: var(--primary-red);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.demo-bar a {
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.demo-bar a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  text-decoration: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: var(--text-light);
  border-bottom: 3px solid var(--primary-red);
  position: sticky;
  top: 40px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.logo-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
  border-radius: var(--radius-md);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text span {
  color: var(--accent-orange);
  font-weight: 900;
  font-size: 0.9rem;
}

/* Navigation toggle checkbox (mobile burger) */
#nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-burger span {
  width: 24px;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navigation menu */
nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--primary-red);
  background-color: rgba(196, 30, 58, 0.1);
  text-decoration: none;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.nav-cta a {
  background-color: var(--primary-red);
  color: var(--text-light);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
}

.nav-cta a:hover {
  background-color: var(--primary-dark);
  color: var(--accent-gold);
  text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  #nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  #nav-toggle:checked + .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  #nav-toggle:checked ~ nav {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--text-light);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 3px solid var(--primary-red);
    box-shadow: var(--shadow-md);
  }

  nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
  }

  nav a.active::after {
    display: none;
  }

  .nav-cta a {
    text-align: center;
    background-color: var(--primary-red);
  }

  .nav-wrap {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   SECTIONS & SPACING
   ============================================ */

section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-md);
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.9;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,165,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: var(--spacing-2xl) var(--spacing-md);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-red);
  text-decoration: none;
}

/* Mobile hero */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ============================================
   CARDS & GRID
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background-color: var(--text-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

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

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.card-image svg {
  width: 60%;
  height: 60%;
  max-width: 120px;
}

.card-body {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-dark);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.card-footer a {
  color: var(--primary-red);
  font-weight: 600;
}

.card-footer a:hover {
  color: var(--accent-orange);
}

/* ============================================
   FEATURES & BENEFITS
   ============================================ */

.features {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.features .section-title {
  color: var(--text-light);
}

.feature-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-light);
}

.feature-content p {
  color: rgba(255,255,255,0.85);
  opacity: 0.9;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

footer a {
  color: var(--accent-gold);
}

footer a:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto var(--spacing-lg);
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--accent-gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-left {
  text-align: left;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.pt-md { padding-top: var(--spacing-md); }
.pb-md { padding-bottom: var(--spacing-md); }

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.opacity-75 {
  opacity: 0.75;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-2xl: 2rem;
    --spacing-xl: 2rem;
    --font-size-base: 15px;
  }

  section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

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

@media (max-width: 480px) {
  :root {
    --font-size-base: 14px;
    --spacing-lg: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  nav ul {
    gap: var(--spacing-xs);
  }

  nav a {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}
