/* ==========================================================================
   VoltRide EV — Layout & Grid Structures (Clean Light Theme)
   ========================================================================== */

:root {
  --header-height: 80px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
}

/* Main Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: clamp(12px, 2vw, 24px);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .brand-logo img {
    max-height: 36px;
    max-width: 140px;
  }
}

.logo-bolt {
  color: var(--volt-primary);
  font-size: 1.4rem;
}

.logo-badge {
  background: var(--volt-primary-light);
  color: var(--volt-primary);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  margin-left: 2px;
  letter-spacing: 0.05em;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 24px);
  flex-wrap: nowrap;
}

.nav-link {
  font-size: clamp(0.84rem, 0.92vw, 0.94rem);
  font-weight: 600;
  color: var(--text-heading);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--volt-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--volt-primary);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: #FFFFFF;
  padding: 20px 16px calc(80px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--volt-primary-light);
  color: var(--volt-primary);
  border-left: 3px solid var(--volt-primary);
}

/* Sticky Mobile Bottom CTA Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 900;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-bottom-bar.hidden {
  display: none !important;
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-size: clamp(0.78rem, 2.5vw, 0.85rem);
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 950;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  animation: waPulse 2.8s infinite;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  background: #20BA5A;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

/* Main View Port Container */
#main-view {
  min-height: calc(100vh - var(--header-height));
  position: relative;
  z-index: 1;
}

/* Responsive Media Queries */
@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-bottom-bar {
    display: flex;
  }
  .floating-whatsapp-btn {
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: var(--header-height);
    gap: 10px;
  }
  .nav-desktop-btn {
    display: none !important;
  }
  .nav-actions {
    gap: 6px;
  }
}

/* Footer */
.site-footer {
  background: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 4vw, 40px);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-body);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--volt-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

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

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 8px;
  }
}
