/* ==========================================================================
   BackupSolar.co.za - Master CSS Stylesheet
   Lead Generation, Revenue-Driven Advertising & High-Performance SEO Layout
   ========================================================================== */

:root {
  /* Color Palette based on Brand Logo */
  --primary-navy: #0b1329;
  --navy-dark: #060a17;
  --navy-light: #162447;
  --navy-surface: #1e293b;
  
  --solar-gold: #f59e0b;
  --solar-gold-hover: #d97706;
  --solar-amber: #fbbf24;
  --solar-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  
  --energy-green: #10b981;
  --energy-green-hover: #059669;
  --energy-lime: #84cc16;
  --energy-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --brand-gradient: linear-gradient(135deg, #0b1329 0%, #162447 50%, #0b1329 100%);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.1) 40%, rgba(11, 19, 41, 0) 70%);
  
  /* Neutral Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #10b981;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --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.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
  
  /* Typography & Sizing */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --container-width: 1240px;
}

/* Base Reset & Typography */
*, *::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-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.text-gold { color: var(--solar-gold); }
.text-green { color: var(--energy-green); }
.text-navy { color: var(--primary-navy); }
.text-muted { color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-dark {
  background: rgba(11, 19, 41, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Notification / Sponsor Announcement Bar */
.top-announcement-bar {
  background: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item a:hover {
  color: var(--solar-amber);
}

.sponsor-tag {
  background: rgba(245, 158, 11, 0.2);
  color: var(--solar-amber);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Main Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(11, 19, 41, 0.04);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  max-width: 210px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.site-logo:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, 
.nav-link.active,
.has-dropdown:hover > .nav-link {
  color: var(--energy-green);
  background: rgba(16, 185, 129, 0.07);
}

.nav-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  display: inline-block;
  color: #94a3b8;
}

.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
  color: var(--energy-green);
}

/* Solutions Mega Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 330px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(11, 19, 41, 0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.dropdown-icon {
  font-size: 1.35rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
  background: rgba(16, 185, 129, 0.15);
  transform: scale(1.05);
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.dropdown-desc {
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Badge link for Advertise */
.nav-link-badge {
  color: #b45309 !important;
  background: #fef3c7;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-left: 2px;
}

.nav-link-badge:hover {
  background: #fde68a !important;
  color: #92400e !important;
}

/* Actions Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-phone {
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-phone:hover {
  border-color: var(--energy-green);
  color: var(--energy-green);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-primary {
  background: var(--energy-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--solar-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy-light);
  color: var(--navy-light);
}

.btn-outline:hover {
  background: var(--navy-light);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-navy);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-ad {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.btn-ad:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary-navy);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 7px 11px;
  line-height: 1;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: #e2e8f0;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
  padding: 18px 16px 85px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.mobile-drawer.open {
  display: block;
  animation: slideDown 0.22s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-group {
  margin-bottom: 16px;
}

.mobile-group-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  background: #e2e8f0;
  color: var(--energy-green);
  border-color: #cbd5e1;
}

.mobile-nav-icon {
  font-size: 1.25rem;
  width: 26px;
  text-align: center;
}

/* ==========================================================================
   Advertising Banners & Revenue Slots (IAB Standards)
   ========================================================================== */
.ad-slot-container {
  margin: 20px auto;
  text-align: center;
}

.ad-slot-leaderboard {
  max-width: 970px;
  min-height: 90px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px auto;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ad-slot-leaderboard:hover {
  border-color: var(--solar-gold);
  box-shadow: var(--shadow-md);
}

.ad-slot-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.ad-content-box {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.ad-sponsor-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--solar-amber);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ad-sponsor-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.ad-sponsor-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ad-slot-sidebar-mpu {
  width: 100%;
  max-width: 336px;
  min-height: 280px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.ad-slot-sidebar-mpu.premium-spot {
  border: 2px solid var(--solar-gold);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.ad-slot-cta-claim {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 8px;
  display: block;
}

.ad-slot-cta-claim:hover {
  color: var(--energy-green);
  text-decoration: underline;
}

/* Sticky Bottom Sponsor Strip */
.sticky-sponsor-bar {
  display: none !important;
}

.sticky-sponsor-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-sponsor-text strong {
  color: var(--solar-amber);
}

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

.sticky-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.sticky-close-btn:hover {
  color: #ffffff;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: var(--brand-gradient);
  position: relative;
  color: #ffffff;
  padding: 60px 0 90px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content h1 span.highlight-green {
  color: var(--energy-green);
}

.hero-content h1 span.highlight-gold {
  color: var(--solar-gold);
}

.hero-lead-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-usps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.hero-usp-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-usp-icon {
  color: var(--energy-green);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-proof-text {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Quick Form Card */
.hero-card-form {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-xl), 0 0 35px rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.hero-form-header {
  text-align: center;
  margin-bottom: 20px;
}

.hero-form-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.hero-form-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Lead Generation & Quote Form (AJAX Powered)
   ========================================================================== */
.quote-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #166534;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 6px;
}

.form-ref-badge .ref-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.form-ref-badge strong {
  font-family: monospace;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  color: #0b1329;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--energy-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.form-privacy-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* AJAX Form States */
.form-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status-alert {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.form-status-alert.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-status-alert.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-success-card {
  text-align: center;
  padding: 20px 10px;
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--energy-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
}

.lead-ref-code {
  display: inline-block;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  color: var(--primary-navy);
  margin: 10px 0;
  letter-spacing: 1px;
}

/* ==========================================================================
   Interactive Solar Sizing & Savings Calculator
   ========================================================================== */
.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.calc-range-wrapper {
  margin-bottom: 22px;
}

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

.calc-range-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--energy-green);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--energy-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calc-results-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.calc-rec-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--solar-amber);
  font-weight: 700;
  letter-spacing: 1px;
}

.calc-system-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 6px 0 14px;
  color: #ffffff;
}

.calc-specs-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.calc-specs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.calc-specs-list li svg {
  color: var(--energy-green);
  flex-shrink: 0;
}

.calc-savings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  margin-bottom: 20px;
}

.savings-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.savings-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--energy-green);
}

/* ==========================================================================
   Section Layouts & Packages
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-bg-light {
  background-color: #ffffff;
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
}

.section-bg-dark {
  background: var(--brand-gradient);
  color: #ffffff;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-bg-dark .section-header h2 {
  color: #ffffff;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.section-bg-dark .section-header p {
  color: #cbd5e1;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.package-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 34px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--energy-green);
}

.package-card.popular {
  border: 2px solid var(--energy-green);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18);
}

.package-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--energy-green);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.package-tier {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.package-target {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.package-pricing {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.package-price-est {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.package-price-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.package-features li svg {
  color: var(--energy-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Equipment / Hardware Showcase */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.brand-badge {
  font-weight: 800;
  font-size: 1.1rem;
  color: #64748b;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.brand-badge:hover {
  color: var(--primary-navy);
  border-color: var(--energy-green);
  transform: scale(1.05);
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--solar-gold);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--energy-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--energy-green);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* SEO Content & Local Footprint */
.seo-content-block {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}

.seo-content-block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.seo-content-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-top: 22px;
  margin-bottom: 10px;
}

.seo-content-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.locations-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.location-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--navy-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.location-tag:hover {
  background: var(--energy-green);
  color: #ffffff;
  border-color: var(--energy-green);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding-top: 60px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-logo {
  max-width: 220px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 18px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--solar-gold);
}

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

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: all 0.2s ease;
}

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

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
}

/* Modal for Ad Space Booking */
.ad-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 41, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ad-modal.open {
  display: flex;
}

.ad-modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 34px 30px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.ad-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs-nav {
  padding: 14px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.breadcrumbs-list li::after {
  content: '/';
  margin-left: 8px;
  color: #cbd5e1;
}

.breadcrumbs-list li:last-child::after {
  content: '';
}

.breadcrumbs-list a {
  color: var(--energy-green);
}

/* ==========================================================================
   Responsive Utility Grids & Components
   ========================================================================== */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-sidebar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

/* Pricing Table Responsive Wrapper */
.pricing-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.pricing-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background: var(--navy-dark);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-table tr.highlight {
  background: rgba(245, 158, 11, 0.08);
}

/* Mobile Quick Action Floating Bar */
.mobile-bottom-bar {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints: Desktop -> Tablet -> Cellphone
   ========================================================================== */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-card-form {
    max-width: 580px;
    margin: 0 auto;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ad-slot-leaderboard {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 14px;
  }
  .ad-content-box {
    flex-direction: column;
    text-align: center;
  }
  .content-sidebar-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .responsive-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-phone {
    display: none;
  }
}

/* Cellphones & Small Tablets (768px and below) */
@media (max-width: 768px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .section {
    padding: 45px 0;
  }

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

  /* Header & Navigation on Cellphone */
  .site-header {
    padding: 0;
  }
  .navbar {
    height: 64px;
  }
  .mobile-toggle {
    display: block;
    padding: 6px 10px;
    font-size: 1.35rem;
    line-height: 1;
  }
  .site-logo {
    max-width: 170px;
  }
  .site-logo img {
    height: 38px;
    width: auto;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn-sm {
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 700;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 85px 16px;
    background: #ffffff;
  }
  .mobile-drawer ul {
    gap: 10px;
  }
  .mobile-drawer a {
    display: block;
    padding: 11px 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--primary-navy);
    font-weight: 600;
  }
  .mobile-drawer a:active {
    background: #e2e8f0;
  }

  /* Top Bar on Cellphone */
  .top-announcement-bar {
    padding: 6px 0;
    font-size: 0.78rem;
  }
  .top-bar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .top-bar-left, .top-bar-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Typography on Cellphone */
  h1, .hero-content h1 {
    font-size: clamp(1.65rem, 5.8vw, 2.25rem);
    line-height: 1.22;
  }
  h2, .section-header h2 {
    font-size: clamp(1.4rem, 4.8vw, 1.85rem);
    line-height: 1.28;
  }
  .section-header {
    margin-bottom: 30px;
  }

  /* Hero Section */
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-usps {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .hero-card-form {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  /* Grids Collapse to 1 Column on Cellphone */
  .responsive-grid-2,
  .responsive-grid-3,
  .features-grid,
  .footer-grid,
  .form-row-2,
  .contact-grid-layout,
  .content-sidebar-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Calculator on Cellphone */
  .calculator-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }
  .calc-results-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .calc-savings-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .calc-slider {
    height: 10px;
  }
  .calc-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  /* Forms & Touch Targets on Cellphone */
  .form-control,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  select {
    font-size: 16px !important; /* Critical: Prevents iOS Safari auto-zoom */
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 8px;
  }
  textarea.form-control {
    font-size: 16px !important;
    min-height: 90px;
  }
  .form-submit-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    padding: 14px 18px !important;
  }

  /* Floating bottom bars removed per user request */
  .sticky-sponsor-bar,
  .mobile-bottom-bar {
    display: none !important;
  }
  .mobile-bar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    min-height: 46px;
    border: none;
    cursor: pointer;
  }
  .mobile-bar-btn.btn-call {
    background: #f59e0b;
    color: #0b1329;
  }
  .mobile-bar-btn.btn-whatsapp {
    background: #16a34a;
    color: #ffffff;
  }

  /* Ad Modal on Mobile */
  .ad-modal-content {
    width: 94%;
    max-width: 440px;
    padding: 24px 18px;
    max-height: 88vh;
    overflow-y: auto;
  }
}

/* Small Cellphones (400px and below, e.g. iPhone SE, Galaxy A-series) */
@media (max-width: 400px) {
  .site-logo img {
    height: 36px;
    max-width: 145px;
  }
  .nav-actions .btn-sm {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  .hero-content h1 {
    font-size: 1.55rem;
  }
  .mobile-bar-btn {
    font-size: 0.82rem;
    padding: 10px 8px;
  }
  .badge {
    font-size: 0.72rem;
    padding: 3px 8px;
  }
}
