/* ============================================================
   VOLTERA EV — Global Design System
   Premium EV Dealership — Pali, Gyanpur, Bhadohi, UP
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --electric-blue: #2563EB;
  --electric-blue-light: #3B82F6;
  --electric-blue-dark: #1D4ED8;
  --electric-glow: rgba(37, 99, 235, 0.3);
  --deep-navy: #0F172A;
  --midnight: #1E293B;
  --slate: #334155;
  --slate-light: #475569;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --green-accent: #22C55E;
  --green-light: #4ADE80;
  --whatsapp-green: #25D366;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(37, 99, 235, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-card: rgba(30, 41, 59, 0.7);
  --surface: #1E293B;
  --surface-2: #273549;

  /* Typography */
  --font-heading: 'Poppins', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  --font-body: 'Inter', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Poppins', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-blue: 0 0 30px rgba(37,99,235,0.25);
  --shadow-blue-strong: 0 0 50px rgba(37,99,235,0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
  --mobile-bar-height: 64px;
}

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--deep-navy);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* --- Section Padding --- */
.section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

.text-hindi {
  font-family: var(--font-hindi);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--electric-blue-light);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  font-family: var(--font-hindi);
}

.section-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--electric-blue-light), #60A5FA, var(--green-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  background: rgba(255,255,255,0.1);
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--electric-blue-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(37,99,235,0.6);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--electric-blue-light);
  border-color: var(--electric-blue);
}

.btn-outline:hover {
  background: var(--electric-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-ghost {
  background: var(--glass-card);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue-light);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* --- Cards --- */
.card {
  background: var(--glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

/* --- Badge / Chip --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--electric-blue-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.chip-green {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.25);
  color: var(--green-light);
}

/* --- Divider / Glow Line --- */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
  margin: var(--space-2xl) 0;
  opacity: 0.4;
}

/* --- Animated Background Blobs --- */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-blob-blue {
  background: rgba(37, 99, 235, 0.12);
}

.bg-blob-navy {
  background: rgba(15, 23, 42, 0.8);
}

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--electric-blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* --- Grid Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--electric-blue-light); }
.text-green { color: var(--green-accent); }

/* --- Spacing Utilities --- */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* --- Section Header (Centered) --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--electric-blue-light); }

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-secondary);
}

/* --- Inner Page Hero --- */
.page-hero {
  background: linear-gradient(180deg, rgba(37,99,235,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
}

.page-hero .breadcrumb { margin-bottom: var(--space-lg); }

/* --- Form Styles --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15,23,42,0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select option {
  background: var(--midnight);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.8125rem;
  color: #F87171;
  display: none;
}

.form-error.show { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* --- Success Message --- */
.success-msg {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-lg);
}

.success-msg.show { display: block; }

.success-msg .success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.success-msg h3 {
  color: var(--green-light);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* --- Icon Feature Card --- */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-hindi);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: calc(var(--mobile-bar-height) + 16px);
  right: 16px;
  width: 54px;
  height: 54px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: all var(--transition-base);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
  }
}

/* --- Responsive Show/Hide --- */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
}

/* --- Pulse animation for CTA --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.4); }
  50% { box-shadow: 0 0 40px rgba(37,99,235,0.8); }
}

.pulse-btn {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-btn { animation: none; }
}

/* --- Loading skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Prevent Mobile CTA overlap */
body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 769px) { body { padding-bottom: 0; } }

