/* ═══════════════════════════════════════════════════════════════════════
   THE HONEST EV - Design System
   Logo-based color palette with conversion-optimized components
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Brand Colors - from logo */
  --primary-blue: #2563EB;
  --primary-blue-dark: #1E40AF;
  --primary-blue-light: #60A5FA;
  --charcoal: #1F2937;
  --charcoal-light: #374151;
  
  /* Accent Colors - psychology-based */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  
  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html { scroll-behavior: smooth; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--charcoal); 
  background: var(--white); 
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════ */

h1 { 
  font-size: clamp(2.25rem, 5vw, 3.75rem); 
  font-weight: 800; 
  line-height: 1.1; 
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

h2 { 
  font-size: clamp(1.875rem, 4vw, 3rem); 
  font-weight: 700; 
  line-height: 1.2; 
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

h3 { 
  font-size: clamp(1.25rem, 2.5vw, 1.875rem); 
  font-weight: 700; 
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-500); }

p { line-height: 1.75; color: var(--gray-600); }
.lead { font-size: 1.125rem; line-height: 1.75; color: var(--gray-600); max-width: 48rem; }

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  gap: 0.5rem;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link:hover { 
  color: var(--primary-blue); 
  background: var(--gray-50); 
}

.nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
  color: var(--gray-700);
}

.nav-dropdown a:hover {
  background: var(--gray-50);
}

.nav-dropdown-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nav-dropdown-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
}

.nav-dropdown-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: block;
  margin-top: 0.125rem;
}

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

.nav-actions .btn-text {
  color: var(--gray-600);
  font-weight: 500;
}

.nav-actions .btn-text:hover {
  color: var(--primary-blue);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 5%;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a, .mobile-nav button {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  display: block;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav a:hover, .mobile-nav button:hover {
  background: var(--gray-50);
  color: var(--primary-blue);
}

.mobile-section {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  padding: 1rem 1rem 0.5rem;
  margin-top: 0.5rem;
}

.mobile-cta {
  background: var(--primary-blue) !important;
  color: white !important;
  text-align: center;
  font-weight: 600;
  margin-top: 0.5rem;
}

.mobile-cta:hover {
  background: var(--primary-blue-dark) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--gray-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--charcoal);
}

.btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn-text:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

section {
  padding: 90px 5%;
}

.section-hero {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-narrow {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.section-gray {
  background: var(--gray-50);
}

.section-dark {
  background: var(--charcoal);
  color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: white;
}

.section-dark .text-muted {
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════════════
   GRID SYSTEMS
   ═══════════════════════════════════════════════════════════════════════ */

.grid {
  display: grid;
  gap: 2rem;
}

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

.flex {
  display: flex;
  gap: 1rem;
}

.flex-col {
  flex-direction: column;
}

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ═══════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card-flat {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════════════════════════════
   BADGES & CHIPS
   ═══════════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
}

.badge-success {
  background: var(--success-light);
  color: #047857;
}

.badge-warning {
  background: var(--warning-light);
  color: #B45309;
}

.badge-danger {
  background: var(--danger-light);
  color: #B91C1C;
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

input, select, textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer-brand img {
  height: 32px;
  /* Remove white background and invert colors */
  filter: brightness(0) saturate(100%) invert(1);
  /* Alternative: If logo has white background, this removes it */
  /* filter: invert(1) brightness(2); */
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-blue-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2.5rem; }
.mt-lg { margin-top: 4rem; }
.mb-sm { margin-bottom: 1.5rem; }
.mb-md { margin-bottom: 2.5rem; }
.mb-lg { margin-bottom: 4rem; }

.gap-sm { gap: 1rem; }
.gap-md { gap: 2rem; }
.gap-lg { gap: 3rem; }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  section { padding: 60px 5%; }
  .section-hero { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  /* Testimonials - show 1 at a time on tablet */
  #testimonials-track > div { min-width: 100% !important; }
}

@media (max-width: 600px) {
  nav { padding: 0 4%; height: 64px; }
  .mobile-nav { top: 64px; }
  
  section { padding: 48px 4%; }
  .section-hero { padding-top: 100px; padding-bottom: 48px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .flex {
    flex-direction: column;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
