/* ============================================
   Car Donation Raleigh NC — Clean Modern Styles
   Improved UX/UI with better contrast & spacing
   ============================================ */

:root {
  /* Primary — keeping your green brand color */
  --primary: #5a9a2e;
  --primary-dark: #4a7d25;
  --primary-light: #e8f5e0;
  --primary-rgb: 90, 154, 46;
  
  /* Text — high contrast for accessibility */
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  /* Backgrounds */
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --bg-dark: #0f172a;
  
  /* Borders */
  --border: #e2e8f0;
  --border-light: #edf2f7;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.02);
  
  /* Layout */
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { 
  color: var(--primary); 
  text-decoration: none; 
  transition: color var(--transition); 
}

a:hover { 
  color: var(--primary-dark); 
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============ NAVIGATION ============ */
.site-nav {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand:hover { 
  color: var(--primary); 
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-phone {
  font-weight: 700 !important;
  color: var(--primary) !important;
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }

.nav-arrow {
  font-size: 0.65em;
  margin-left: 0.25em;
  display: inline-block;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  z-index: 100;
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 0;
}

.nav-dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  font-size: 1.5rem;
  color: var(--text);
}

/* ============ HERO SECTIONS ============ */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%);
  color: white;
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

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

.btn-light:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

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

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ============ SECTIONS ============ */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

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

/* ============ FEATURES GRID ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg);
  padding: var(--space-xl);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ LOCATIONS GRID ============ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.location-card {
  background: var(--bg);
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
}

.location-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.location-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.location-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.location-card-more {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.location-card-more h3 {
  color: var(--primary);
}

.location-card-more:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.location-card-more:hover h3,
.location-card-more:hover p {
  color: white;
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ PROGRAMS/CHARITIES ============ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.program-card {
  background: var(--bg);
  padding: var(--space-xl);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

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

.program-placeholder-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.program-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.program-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ CTA SECTION ============ */
.cta-section {
  padding: var(--space-3xl) 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-section .lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ PAGE CONTENT ============ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: var(--space-xl) 0 var(--space-sm);
}

.page-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-content ul,
.page-content ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
}

.page-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-contact h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-contact p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
  color: rgba(255,255,255,0.7);
}

.footer-contact a {
  color: rgba(255,255,255,0.9);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: white;
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--text-secondary); }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    padding: var(--space-3xl) 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .features-grid,
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
