/* ==========================================================================
   PASSION SOLAR — COMPLETE DESKTOP & MOBILE RESPONSIVE STYLESHEET
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Eco-Luxe Theme Default (Theme A) */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.94);
  --text-main: #0F172A;
  --text-muted: #475569;
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ECFDF5;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --border-color: #E2E8F0;
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.06), 0 10px 15px -5px rgba(0, 0, 0, 0.02);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);
}

/* High-Tech Obsidian Dark Theme (Theme B) */
[data-theme="tech-dark"] {
  --bg-primary: #0A0F1D;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.90);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.15);
  --accent: #F59E0B;
  --accent-light: rgba(245, 158, 11, 0.15);
  --border-color: #1E293B;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(10, 15, 29, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Solar Gold Theme (Theme C) */
[data-theme="agri-gold"] {
  --bg-primary: #FFFDF5;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.94);
  --text-main: #1E293B;
  --text-muted: #64748B;
  --primary: #D97706;
  --primary-hover: #B45309;
  --primary-light: #FEF3C7;
  --accent: #10B981;
  --accent-light: #D1FAE5;
  --border-color: #FDE68A;
  --shadow-lg: 0 15px 30px rgba(217, 119, 6, 0.12);
  --glass-bg: rgba(255, 253, 245, 0.90);
  --glass-border: rgba(217, 119, 6, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  padding-top: 110px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.sun-particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  transform: translate3d(0, 0, 0);
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 36px;
}

.text-center { text-align: center; }

.section-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Top Demo Toolbar & Sticky Header
   -------------------------------------------------------------------------- */
.demo-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #060911;
  color: #F8FAFC;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid #1E293B;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.demo-label {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #CBD5E1;
  font-size: 11px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-btn {
  background: #1E293B;
  border: 1px solid #334155;
  color: #94A3B8;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.theme-btn.active, .theme-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

.seo-toggle-btn {
  background: #2563EB;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.floating-wa-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 48px;
}

.floating-wa-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.main-header {
  position: fixed;
  top: 33px;
  left: 0;
  width: 100%;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  transition: padding 0.3s ease;
}

.main-header.scrolled {
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn { display: none; }
.drawer-overlay, .mobile-nav-drawer, .mobile-tab-bar { display: none; }

.social-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 20px;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
}

.btn {
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary { background-color: var(--primary); color: #FFFFFF; }
.btn-glow { box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35); }
.btn-accent { background-color: var(--accent); color: #0F172A; font-weight: 800; }
.btn-outline { background: transparent; border: 1.5px solid var(--border-color); color: var(--text-main); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.65s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.65s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   Hero Section & Stats (FIXED 5-CHILD FLEX LAYOUT - NO WRAPPING ON DESKTOP)
   -------------------------------------------------------------------------- */
.hero-section { padding: 50px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--primary);
}

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc { font-size: 17px; color: var(--text-muted); margin-bottom: 24px; }

/* FIXED HERO STATS FLEX LAYOUT */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 18px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.stat-num-row { display: flex; align-items: baseline; white-space: nowrap; }

.stat-num, .stat-suffix {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.stat-divider { width: 1px; height: 38px; background: var(--border-color); margin: 0 16px; flex-shrink: 0; }
.hero-cta-group { display: flex; gap: 12px; }

.glass-card, .glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper { position: relative; border-radius: 16px; overflow: hidden; }
.hero-img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.badge-top-right { top: 16px; right: 16px; }
.badge-bottom-left { bottom: 16px; left: 16px; }
.badge-icon { font-size: 20px; }

/* --------------------------------------------------------------------------
   Product Catalog Grid (4 Columns)
   -------------------------------------------------------------------------- */
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  transition: transform 0.3s ease;
}

.prod-icon { font-size: 36px; margin-bottom: 12px; }
.prod-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.product-card h4 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 6px; }
.product-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   9-Step Net Metering Grid (3 Columns)
   -------------------------------------------------------------------------- */
.netmetering-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.netmetering-step-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  position: relative;
  transition: transform 0.3s ease;
}

.nm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.nm-badge-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary);
  color: white; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}

.nm-tag-time {
  background: var(--accent-light); color: #B45309; border: 1px solid var(--accent);
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 800;
}

.netmetering-step-card h4 { font-family: var(--font-heading); font-size: 16.5px; margin-bottom: 6px; }
.netmetering-step-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.nm-annexure-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--primary); }

/* --------------------------------------------------------------------------
   3 Easy Steps Grid (Desktop 3 Columns)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.step-card {
  padding: 28px;
  border-radius: 16px;
  position: relative;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.25;
}

.step-icon { font-size: 38px; margin-bottom: 12px; }
.step-card h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Mission & Vision Grid (Desktop 2 Columns)
   -------------------------------------------------------------------------- */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.mv-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
}

.mv-icon { font-size: 36px; margin-bottom: 12px; }
.mv-card h3 { font-family: var(--font-heading); font-size: 22px; margin-bottom: 8px; }
.mv-card p { font-size: 14px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Load Sizer Appliance Selector
   -------------------------------------------------------------------------- */
.load-card { padding: 28px; }

.guide-banner {
  background: var(--primary-light); border: 1px solid var(--primary);
  padding: 12px 18px; border-radius: 10px; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: var(--primary);
}

.appliance-selector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px;
}

.appliance-item {
  background: var(--bg-surface); border: 1.5px solid var(--border-color);
  padding: 16px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.2s ease; min-height: 64px;
}

.appliance-item.active { border-color: var(--primary); background: var(--primary-light); }
.app-icon { font-size: 26px; }
.app-info strong { font-size: 14px; display: block; }
.app-info small { font-size: 11px; color: var(--text-muted); }

.app-check {
  padding: 6px 12px; border-radius: 20px; background: var(--border-color); color: var(--text-muted);
  font-weight: 700; font-size: 11px; min-width: 64px; text-align: center;
}

.appliance-item.active .app-check { background: var(--primary); color: white; }

.load-summary-bar {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  padding: 18px 24px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}

.load-stat span { font-size: 12px; color: var(--text-muted); }
.load-stat strong { font-family: var(--font-heading); font-size: 18px; }

/* --------------------------------------------------------------------------
   Solar ROI Calculator Grid (Desktop 2 Columns)
   -------------------------------------------------------------------------- */
.calculator-card { padding: 32px; }
.calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
.property-toggle { display: flex; gap: 8px; margin-top: 10px; }

.prop-btn {
  flex: 1; padding: 12px 8px; min-height: 44px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-surface); color: var(--text-main); font-size: 13px; font-weight: 600; cursor: pointer;
}

.prop-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bill-display { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--primary); }

.custom-range {
  width: 100%; height: 10px; border-radius: 5px; accent-color: var(--primary); cursor: pointer; margin: 10px 0 4px;
}

.subsidy-callout { background: var(--accent-light); border: 1px solid var(--accent); padding: 12px 16px; border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-top: 16px; }

.calc-results {
  background: var(--bg-surface); border: 1px solid var(--border-color); padding: 24px; border-radius: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}

.results-heading { font-family: var(--font-heading); font-size: 20px; margin-bottom: 14px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.res-card { background: var(--bg-primary); border: 1px solid var(--border-color); padding: 12px; border-radius: 10px; }
.res-card.highlighted { border-color: var(--primary); background: var(--primary-light); }
.res-card.green-accent { border-color: var(--primary); }
.res-card.gold-accent { border-color: var(--accent); background: var(--accent-light); }

.res-label { font-size: 11px; color: var(--text-muted); }
.res-value { font-family: var(--font-heading); font-size: 18px; font-weight: 800; margin: 2px 0; }
.res-sub { font-size: 10.5px; color: var(--text-muted); }

.roi-summary-box { background: var(--bg-primary); padding: 12px; border-radius: 10px; display: flex; justify-content: space-between; margin-bottom: 16px; border: 1px dashed var(--border-color); }
.roi-item { display: flex; flex-direction: column; align-items: center; }
.roi-label { font-size: 10.5px; color: var(--text-muted); }
.roi-val { font-family: var(--font-heading); font-size: 14px; color: var(--primary); }

.bill-comparison-wrapper {
  position: relative; width: 100%; max-width: 800px; height: 260px; margin: 0 auto;
  overflow: hidden; border-radius: 16px; user-select: none;
}

.bill-card {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 30px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}

.bill-before { background: #FEF2F2; color: #991B1B; }
.bill-after { background: #ECFDF5; color: #065F46; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); transition: clip-path 0.05s linear; }

.bill-stamp { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.red-stamp { background: #FEE2E2; color: #DC2626; }
.green-stamp { background: #D1FAE5; color: #059669; }

.bill-amount { font-family: var(--font-heading); font-size: 44px; font-weight: 900; margin-bottom: 6px; }
.red-text { color: #DC2626; }
.green-text { color: #059669; }
.bill-detail { font-size: 13px; }

.bill-slider-handle { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background: #F59E0B; cursor: ew-resize; z-index: 10; }
.handle-arrows { position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); width: 76px; height: 36px; background: #F59E0B; color: #0F172A; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; white-space: nowrap; }

.simulator-card { padding: 28px; }
.sim-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sim-time-badge { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 14px; }
.sim-efficiency-badge { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 12px; }

.sim-sky-viewport {
  height: 200px; max-width: 100%; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #38BDF8 0%, #BAE6FD 100%); transition: background 0.6s ease;
  display: flex; justify-content: center; align-items: flex-end; margin-bottom: 20px;
}

.sun-orb {
  position: absolute; width: 50px; height: 50px; background: #F59E0B; border-radius: 50%;
  box-shadow: 0 0 30px #F59E0B; top: 30px; left: 50%; transform: translate3d(-50%, 0, 0); transition: left 0.4s ease, top 0.4s ease;
}

.solar-house-graphic { position: relative; z-index: 2; background: var(--bg-surface); border: 2px solid var(--border-color); border-radius: 12px 12px 0 0; padding: 16px 30px; text-align: center; }
.roof-panels { background: #1E293B; color: #38BDF8; font-weight: 800; font-size: 11px; padding: 8px 16px; border-radius: 6px; border: 1px solid #38BDF8; position: relative; }
.panel-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(245, 158, 11, 0.2); box-shadow: 0 0 15px rgba(245, 158, 11, 0.6); opacity: 1; }

.sim-controls { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 20px; border-radius: 12px; }
.sim-time-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.sim-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.sim-metric-card { background: var(--bg-primary); border: 1px solid var(--border-color); padding: 12px; border-radius: 10px; }
.sim-lbl { font-size: 10.5px; color: var(--text-muted); }
.sim-val { font-family: var(--font-heading); font-size: 16px; font-weight: 800; margin-top: 2px; }
.sim-val.highlight { color: var(--accent); }
.sim-val.green { color: var(--primary); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.service-card { padding: 22px; border-radius: 16px; }
.service-icon-box { font-size: 28px; margin-bottom: 10px; }
.service-card h3 { font-family: var(--font-heading); font-size: 17px; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--text-muted); }

.why-choose-box { padding: 24px; border-radius: 16px; margin-top: 20px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.why-item { font-size: 13px; background: var(--bg-surface); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 8px; }

.industry-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ind-card { padding: 14px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 13px; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.exp-card { padding: 20px; border-radius: 12px; }
.exp-card h4 { font-family: var(--font-heading); font-size: 17px; margin-bottom: 6px; color: var(--primary); }
.exp-card p { font-size: 13px; color: var(--text-muted); }

.contact-card { padding: 28px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; }
.contact-info-col h3 { font-family: var(--font-heading); font-size: 26px; margin-bottom: 4px; }
.contact-tagline { color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.contact-details-list { list-style: none; }
.contact-details-list li { margin-bottom: 10px; font-size: 14px; }
.contact-details-list a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* FOOTER BRANDING & LOGO FIX */
.footer { background: #060911; color: white; padding: 50px 0 24px; margin-top: 50px; border-top: 1px solid #1E293B; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-logo-img { height: 60px; max-height: 70px; width: auto; object-fit: contain; display: block; margin-bottom: 14px; border-radius: 8px; }
.footer-desc { color: #94A3B8; font-size: 13px; margin: 10px 0 14px; max-width: 480px; }
.footer-location { color: #F59E0B; font-size: 12px; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 13px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 20px; font-size: 12px; color: #64748B; }

.seo-drawer {
  position: fixed; bottom: -500px; right: 20px; width: 500px; max-width: 90vw; height: 460px;
  background: #090D16; color: white; border-radius: 16px 16px 0 0; z-index: 2000; transition: bottom 0.4s ease;
}
.seo-drawer.open { bottom: 0; }
.seo-drawer-header { padding: 14px 18px; background: #1E293B; display: flex; justify-content: space-between; align-items: center; border-radius: 16px 16px 0 0; }
.close-drawer { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; }
.seo-drawer-body { padding: 16px; overflow-y: auto; height: calc(100% - 55px); }
.seo-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.seo-tab { background: #1E293B; border: none; color: #94A3B8; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.seo-tab.active { background: #2563EB; color: white; }
.seo-content { display: none; }
.seo-content.active { display: block; }
.serp-box { background: white; color: #1A0DAB; padding: 14px; border-radius: 8px; font-family: Arial, sans-serif; margin-bottom: 14px; }
.serp-url { font-size: 11px; color: #202124; }
.serp-title { font-size: 16px; color: #1a0dab; margin: 4px 0; }
.serp-rating { font-size: 12px; color: #4d5156; }
.serp-desc { font-size: 12px; color: #4d5156; margin-top: 4px; }
.seo-note { font-size: 11px; color: #94A3B8; background: #1E293B; padding: 10px; border-radius: 8px; }
.code-block { background: #020617; color: #38BDF8; padding: 12px; border-radius: 8px; font-family: monospace; font-size: 11px; white-space: pre-wrap; max-height: 260px; overflow-y: auto; }

/* --------------------------------------------------------------------------
   ISOLATED MOBILE MEDIA QUERIES (< 768px ONLY) — NATIVE MOBILE APP VIEW MODE
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body {
    padding-top: 92px;
    padding-bottom: 70px;
    overflow-x: hidden;
  }

  section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 1. Mobile Bottom Native Tab Bar */
  .mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-surface);
    border-top: 1.5px solid var(--border-color);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  }

  .mobile-tab-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
  }

  .mobile-tab-item.active {
    color: var(--primary);
  }

  .mobile-tab-icon {
    font-size: 18px;
    margin-bottom: 2px;
  }

  /* MOBILE TAB FEATURE VIEW ISOLATION (< 768px ONLY) */
  body[data-mobile-view="home"] section:not(#hero):not(#how-it-works):not(#about):not(#gst-info) {
    display: none !important;
  }

  body[data-mobile-view="calculator"] section:not(#load-calc):not(#calculator):not(#bill-slice):not(#simulator) {
    display: none !important;
  }

  body[data-mobile-view="net-metering"] section:not(#net-metering) {
    display: none !important;
  }

  body[data-mobile-view="products"] section:not(#products) {
    display: none !important;
  }

  body[data-mobile-view="services"] section:not(#services):not(#industries):not(#expertise) {
    display: none !important;
  }

  body[data-mobile-view="contact"] section:not(#contact) {
    display: none !important;
  }

  /* 2. Header & Navigation */
  .nav-menu, .social-cluster { 
    display: none !important; 
  }
  
  .main-header {
    padding: 8px 0;
  }

  .header-container {
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

  .brand-logo-img {
    height: 50px;
  }

  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    width: 44px;
    height: 44px;
  }

  .drawer-overlay { display: block; }
  .mobile-nav-drawer { display: flex; }
  .demo-label { display: none; }

  /* 3. Hero Section & Stat Counters */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 10px;
  }

  .stat-divider { margin: 0 8px; height: 30px; }
  .stat-item { align-items: center; text-align: center; }
  .stat-num, .stat-suffix { font-size: 17px; }
  .stat-lbl { font-size: 8.5px; }

  /* 4. Hardware Catalog, Services & Steps Grids */
  .product-catalog-grid, .services-grid, .expertise-grid, .steps-grid, .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card .btn, .service-card {
    min-height: 48px;
    width: 100%;
  }

  /* 5. Net Metering 9-Step Vertical Connected Timeline */
  .netmetering-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
    padding-left: 12px;
  }

  .netmetering-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 27px;
    width: 3px;
    height: calc(100% - 40px);
    background: var(--primary);
    opacity: 0.4;
    z-index: 0;
  }

  .netmetering-step-card {
    position: relative;
    z-index: 1;
    margin-left: 20px;
    padding: 20px 16px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
  }

  /* 6. Interactive Tools Touch Optimization */
  .appliance-selector-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .appliance-item {
    width: 100%;
    padding: 16px;
  }

  .load-summary-bar {
    position: sticky;
    bottom: 60px;
    z-index: 100;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 14px 14px 0 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    padding: 16px;
  }

  .load-summary-bar .btn { width: 100%; }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .custom-range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .custom-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sim-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sim-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sim-sky-viewport {
    height: 170px;
    width: 100%;
    max-width: 100%;
  }

  .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-action-btns {
    flex-direction: column;
    width: 100%;
  }

  .contact-action-btns .btn {
    width: 100%;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }

  .floating-wa-btn {
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 16px;
    z-index: 9999;
    padding: 10px 16px;
    font-size: 13px;
  }

  .footer-logo-img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .sim-metrics-grid { grid-template-columns: 1fr; }
}
