/* assets/css/style.css - CAMX Solar Energy Solutions & Dealership Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --camx-blue-900: #07192f;
  --camx-blue-800: #0b2545;
  --camx-blue-700: #134074;
  --camx-blue-600: #1d4ed8;
  --camx-amber-500: #f59e0b;
  --camx-amber-600: #d97706;
  --camx-gold: #fbbf24;
  --camx-emerald: #10b981;
  --camx-slate-900: #0f172a;
  --camx-slate-800: #1e293b;
  --camx-slate-100: #f1f5f9;
  --camx-slate-50: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Solar Amber Accent Glow */
.solar-glow {
  box-shadow: 0 0 35px -5px rgba(245, 158, 11, 0.35);
}

.solar-glow-blue {
  box-shadow: 0 10px 40px -10px rgba(11, 37, 69, 0.4);
}

.solar-gradient-bg {
  background: linear-gradient(135deg, #07192f 0%, #0b2545 60%, #134074 100%);
}

.solar-hero-pattern {
  background-image: radial-gradient(rgba(245, 158, 11, 0.15) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.solar-card-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.solar-border-gradient {
  border-image: linear-gradient(to right, #f59e0b, #3b82f6) 1;
}

/* Waaree-style Top Strip */
.top-utility-bar {
  background: #07192f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Styling */
.header-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Navigation Links */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--camx-amber-500);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Solar Badges */
.badge-tier1 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.badge-almm {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* Product Cards */
.product-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(11, 37, 69, 0.12);
  border-color: #cbd5e1;
}

/* Solar Cell Grid SVG Pattern */
.solar-cell-pattern {
  background-color: #0c1a2d;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom Range Slider for Solar Calculator */
input[type=range].solar-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
}
input[type=range].solar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  border: 3px solid #ffffff;
  transition: transform 0.15s ease;
}
input[type=range].solar-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Animated Pulse Dot */
.pulse-dot {
  position: relative;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.75;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* RFQ Drawer Floating Pill */
.rfq-floating-trigger {
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rfq-floating-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.38);
}

/* Tab Active State */
.filter-tab.active {
  background-color: #0b2545;
  color: #ffffff;
  border-color: #0b2545;
}
.filter-tab:not(.active) {
  background-color: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}
.filter-tab:not(.active):hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Mobile Quick Bar */
@media (max-width: 768px) {
  .mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 40;
  }
}
