/* ============================================
   AM GREEN SOLAR – MAIN STYLESHEET
   Brand Colors:
   - Dark Navy BG:  #0D2137
   - Accent Green:  #CCFF00
   - White:         #FFFFFF
   - Card BG:       #0E2A45
   ============================================ */

:root {
  --bg-dark:       #0D2137;
  --bg-card:       #0E2A45;
  --bg-card2:      #132d4a;
  --accent:        #CCFF00;
  --accent-dim:    #a8d400;
  --accent-glow:   rgba(204, 255, 0, 0.15);
  --white:         #FFFFFF;
  --text-muted:    rgba(255,255,255,0.65);
  --text-faint:    rgba(255,255,255,0.35);
  --border:        rgba(204,255,0,0.15);
  --border-light:  rgba(255,255,255,0.08);
  --shadow:        0 8px 32px rgba(0,0,0,0.45);
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    all 0.3s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SECTION ---- */
.section { padding: 100px 0; }

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

.section-tag {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 17px;
}

.highlight { color: var(--accent); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #0D2137;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #b8e600;
  border-color: #b8e600;
  box-shadow: 0 0 24px rgba(204,255,0,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 36px; font-size: 16px; }

.btn-pdf {
  background: transparent;
  color: #ff6b6b;
  border-color: #ff6b6b;
  border-width: 1.5px;
}
.btn-pdf:hover {
  background: rgba(255,107,107,0.1);
  border-color: #ff4f4f;
  color: #ff4f4f;
  transform: translateY(-2px);
}
.btn-pdf i { margin-right: 6px; }

.btn-full { width: 100%; justify-content: center; }

/* =============================
   NAVBAR
   ============================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: #0D2137;
  backdrop-filter: blur(8px);
}

.navbar.scrolled {
  background: rgba(13, 33, 55, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-wrap { flex-shrink: 0; }
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================
   HERO
   ============================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(204,255,0,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(13,100,200,0.1) 0%, transparent 60%),
    linear-gradient(160deg, #0D2137 0%, #091a2e 60%, #0a1f35 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(204,255,0,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,33,55,0.3) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 80px;
  max-width: 750px;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-content h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease both 0.1s;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s ease both 0.2s;
}

.hero-sub strong { color: var(--accent); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.7s ease both 0.3s;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 32px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.7s ease both 0.4s;
  flex-wrap: wrap;
  gap: 0;
}

.stat-card {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-num sup {
  font-size: 16px;
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-light);
  margin: 0 8px;
}

/* Certification badges row (hero) */
.cert-badges-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(204,255,0,0.2);
  border-radius: var(--radius);
  padding: 16px 28px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease both 0.5s;
  max-width: fit-content;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 20px 4px 0;
}

.cert-badge i {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.cert-badge span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cert-divider {
  width: 1px;
  height: 36px;
  background: rgba(204,255,0,0.2);
  margin: 0 20px 0 0;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cert-badges-row { padding: 14px 20px; gap: 12px; }
  .cert-badge { padding: 0; }
  .cert-divider { display: none; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  animation: bounce 2s infinite;
}

/* =============================
   ABOUT
   ============================= */
.about { background: linear-gradient(180deg, #0a1f35 0%, var(--bg-dark) 100%); }

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

.about-text .section-tag { margin-bottom: 16px; display: inline-block; }

.about-text .section-title { text-align: left; margin-bottom: 20px; }

.about-text p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }

.about-list {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.about-list li i {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.about-visual { position: relative; }

.about-img-wrap {
  position: relative;
  height: 480px;
}

.about-img-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-img-card:hover { transform: translateY(-6px); }

.main-card {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  text-align: center;
  z-index: 2;
}

.about-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.main-card h3 { font-size: 20px; margin-bottom: 8px; }
.main-card p { font-size: 14px; color: var(--text-muted); }

.secondary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
}

.secondary-card i {
  color: var(--accent);
  font-size: 20px;
}

.top-right { top: 60px; right: 0; }
.bottom-left { bottom: 60px; left: 0; }

.about-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--accent);
  color: #0D2137;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(204,255,0,0.3);
}

.badge-num {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* =============================
   SERVICES
   ============================= */
.services { background: var(--bg-dark); }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.service-card:hover::before { background: var(--accent); }

.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, #112840 100%);
}

.service-card.featured::before { background: var(--accent); }

.featured-label {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #0D2137;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-icon-wrap {
  width: 56px; height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-card ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* =============================
   HOW IT WORKS
   ============================= */
.how-it-works {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #091a2e 100%);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.step-number {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0D2137;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 100px;
}

.step-icon {
  width: 64px; height: 64px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  margin: 16px auto 20px;
}

.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 13px; color: var(--text-muted); }

.step-arrow {
  font-size: 20px;
  color: var(--accent);
  opacity: 0.5;
  padding: 0 12px;
  flex-shrink: 0;
}

/* =============================
   CALCULATOR
   ============================= */
.calculator-section {
  background: linear-gradient(160deg, #091a2e 0%, var(--bg-dark) 50%, #091a2e 100%);
  position: relative;
  padding-top: 100px;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(204,255,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ═══════════════════════════════════════
   INPUT PANEL — Redesigned
═══════════════════════════════════════ */
.calc-input-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}

/* Panel header */
.input-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.input-panel-header i {
  color: var(--accent);
  font-size: 16px;
}
.input-panel-header span {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
}

/* Form groups */
.form-group { margin-bottom: 20px; }

/* Field labels */
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Label + tag row */
.field-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.field-label-row .field-label { margin-bottom: 0; }
.field-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Field note (hint row) */
.field-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.field-note i { color: var(--accent); font-size: 11px; flex-shrink: 0; margin-top: 1px; }

/* Select wrapper */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
  font-size: 10px;
}

/* Inputs base */
select, input[type="number"], input[type="text"], textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
select:focus, input[type="number"]:focus, input[type="text"]:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(204,255,0,0.03);
  box-shadow: 0 0 0 3px rgba(204,255,0,0.08);
}
select { padding-right: 38px; cursor: pointer; }
select option { background: #0D2137; color: var(--white); }

/* Input with icon */
.input-with-icon { position: relative; }
.input-prefix {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 13px;
  pointer-events: none;
}
.input-with-icon input { padding-left: 36px; }

/* Discount pill */
.discount-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(204,255,0,0.08);
  border: 1px solid rgba(204,255,0,0.25);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--accent);
}
.discount-pill i { font-size: 11px; flex-shrink: 0; }
.discount-pill strong { font-weight: 700; }
.discount-pill span { color: rgba(204,255,0,0.75); font-size: 12px; }

/* Roof area compact row */
.roof-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.roof-num-input {
  width: 100px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  text-align: center;
}
.roof-unit {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.roof-display-val {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Slider */
.capacity-slider { margin-bottom: 6px; }
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(204,255,0,0.4);
  border: 2px solid #0D2137;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #0D2137;
}

/* Bill range hint */
.bill-range-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.bill-range-hint input[type="range"] { flex: 1; }

/* Import bill box */
.import-bill-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(204,255,0,0.03);
  border: 1px dashed rgba(204,255,0,0.22);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.import-bill-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.import-bill-left > i {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.8;
}
.import-bill-left strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1px;
}
.import-bill-left span {
  font-size: 10.5px;
  color: var(--text-muted);
}
.btn-import-bill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: #0D2137;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.btn-import-bill:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Import status */
.import-status {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.import-status.success {
  background: rgba(95,215,95,0.1);
  border: 1px solid rgba(95,215,95,0.3);
  color: #5fd75f;
}
.import-status.error {
  background: rgba(255,100,100,0.1);
  border: 1px solid rgba(255,100,100,0.3);
  color: #ff7070;
}
.import-status.loading {
  background: rgba(204,255,0,0.05);
  border: 1px solid rgba(204,255,0,0.15);
  color: var(--text-muted);
}

/* Subsidy group */
.subsidy-group { margin-top: 4px; }

/* Toggle switch style */
.subsidy-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}
.subsidy-toggle-label input[type="checkbox"] { display: none; }
.toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  border-radius: 11px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s ease;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.subsidy-toggle-label input:checked ~ .toggle-track {
  background: rgba(204,255,0,0.25);
  border-color: var(--accent);
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}
.subsidy-toggle-label input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(18px);
  background: var(--accent);
}
.toggle-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
}

.subsidy-info {
  margin-top: 0;
  font-size: 11.5px;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(204,255,0,0.05);
  border-radius: 8px;
  border: 1px solid rgba(204,255,0,0.12);
  line-height: 1.5;
}
.subsidy-info i { flex-shrink: 0; margin-top: 1px; font-size: 11px; }

/* Calculate button */
.calc-main-btn {
  margin-top: 4px;
  font-size: 15px !important;
  padding: 14px 24px !important;
  letter-spacing: 0.3px;
  border-radius: 10px !important;
}

/* Tech badges */
.tech-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.tech-badge i { color: var(--accent); font-size: 9px; }

/* ── System Type Buttons (legacy, kept for compat) ── */
.system-type-btns {
  display: flex;
  gap: 10px;
}

.sys-btn {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sys-btn:hover { border-color: var(--accent); color: var(--white); }

.sys-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* RESULT PANEL */
.calc-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  min-height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.result-placeholder {
  text-align: center;
  color: var(--text-faint);
  padding: 40px 20px;
}

.result-placeholder-icon {
  font-size: 64px;
  color: rgba(204,255,0,0.2);
  margin-bottom: 20px;
  display: block;
}

.result-placeholder p {
  font-size: 15px;
  line-height: 1.7;
}

.result-placeholder strong { color: var(--accent); }

.result-content { width: 100%; }

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.result-header h3 { font-size: 22px; font-weight: 800; }

.result-badge {
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
}

/* Highlight Card */
.result-highlight-card {
  background: linear-gradient(135deg, rgba(204,255,0,0.08), rgba(204,255,0,0.03));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.result-cost-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cost-label { color: var(--text-muted); font-size: 14px; }

.cost-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  display: none;
}

.cost-value.show { display: block; }

/* Capacity value — no strikethrough, accent colored */
.cost-value.capacity-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
}

.cost-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* System price row */
.cost-breakdown-row #system-price-gross {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

/* Subsidy deduction row */
.subsidy-deduct-row {
  background: rgba(95, 215, 95, 0.07);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  color: #5fd75f !important;
}
.subsidy-deduct-row span:first-child { color: #5fd75f; font-weight: 600; }
.subsidy-amount { color: #5fd75f; font-weight: 700; font-size: 15px; }

/* Not-applicable subsidy row */
.subsidy-na-row {
  background: rgba(255, 160, 60, 0.07);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.subsidy-na-row span:first-child { color: #ffa03c; }
.subsidy-na-text { color: rgba(255,255,255,0.45); font-size: 12px; }

.savings-row span:first-child { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.savings-val { font-size: 22px !important; color: #5fd75f !important; font-weight: 800 !important; }

.cost-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Client name strip in result */
.client-name-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,255,0,0.06);
  border: 1px solid rgba(204,255,0,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--white);
}
.client-name-strip i { color: var(--accent); font-size: 16px; }
.client-name-strip strong { color: var(--accent); }
.res-area-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

/* Sanctioned load strip */
.sanctioned-load-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,200,50,0.06);
  border: 1px solid rgba(255,200,50,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.sanctioned-load-strip i { color: #ffc832; font-size: 13px; flex-shrink: 0; }
.sanctioned-load-strip strong { color: #ffc832; font-weight: 700; }

/* Total price row */
.price-row {
  font-size: 15px !important;
  color: rgba(255,255,255,0.75) !important;
}
.price-total-val {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

/* Discount row */
.discount-row {
  background: rgba(204,255,100,0.07);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  color: #ccff64 !important;
}
.discount-row span:first-child { color: #ccff64; font-weight: 600; }
.discount-amount { color: #ccff64; font-weight: 700; font-size: 15px; }

.net-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.net-cost-row span:first-child { font-size: 15px; font-weight: 600; }

.net-cost-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
}

/* Metrics */
.result-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}

.metric-card:hover { border-color: var(--border); }

.metric-card i {
  color: var(--accent);
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.metric-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-faint);
}

/* Breakdown */
.result-breakdown {
  margin-bottom: 24px;
}

.result-breakdown h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.breakdown-item:last-child { border-bottom: none; }

.breakdown-item span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.breakdown-item span:first-child i { color: var(--accent); font-size: 14px; }

.breakdown-item span:last-child { font-weight: 700; }

/* ROI Banner */
.result-roi-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 24px;
}

.result-roi-banner i {
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
}

.result-roi-banner strong { color: var(--accent); font-size: 15px; }
.result-roi-banner p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.result-actions { display: flex; flex-direction: column; gap: 12px; }

/* =============================
   CALCULATOR – PACKAGE GRID &
   NEW ELEMENTS
   ============================= */

/* Calc wrapper full-width on stack */
.calc-wrapper {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

/* Make input panel narrower, result panel wider */
.calc-input-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: sticky;
  top: 90px;
}

.calc-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Big calculate button (override in media queries) */

/* Waiting / empty state */
.calc-waiting-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  height: 100%;
  min-height: 320px;
}

.waiting-icon {
  width: 80px; height: 80px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  animation: pulse-waiting 3s ease-in-out infinite;
}

@keyframes pulse-waiting {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,255,0,0.15); }
  50%       { box-shadow: 0 0 0 12px rgba(204,255,0,0); }
}

.calc-waiting-state h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.calc-waiting-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.calc-waiting-state p strong { color: var(--accent); }

.waiting-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.ws-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.ws-num {
  width: 20px; height: 20px;
  background: var(--accent);
  color: #0D2137;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-arrow {
  color: var(--text-faint);
  font-size: 12px;
}

/* Base price disclaimer */
.base-price-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 180, 0, 0.07);
  border: 1px solid rgba(255, 180, 0, 0.25);
  border-left: 3px solid rgba(255, 180, 0, 0.6);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.base-price-notice i {
  color: #FFB400;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.base-price-notice strong { color: #FFB400; display: block; margin-bottom: 3px; }
.base-price-notice em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Bill fit note */
.bill-fit-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  border-left: 3px solid rgba(204,255,0,0.3);
  line-height: 1.5;
}

.bill-fit-note i { color: var(--accent); flex-shrink: 0; }

/* Responsive overrides for new layout */
@media (max-width: 1100px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-input-panel { position: static; }
  .pkg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .calc-input-panel,
  .calc-result-panel { padding: 24px 18px; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .calc-input-panel,
  .calc-result-panel { padding: 18px 14px; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pkg-card { padding: 12px 10px; }
  .pkg-kw { font-size: 20px; }
  .roof-num-input { width: 80px !important; }
}

/* ============================= */

.accent-hint {
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px !important;
  margin-top: 0;
}
.accent-hint i { color: var(--accent) !important; }

/* ─── placeholder-anchors ─── */
.placeholder-anchors {
  margin-top: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pa-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.pa-row:last-of-type { border-bottom: none; }
.pa-row:hover { background: rgba(204,255,0,0.04); }
.pa-row span:first-child { color: var(--accent); font-weight: 700; }
.pa-row span:last-child  { color: rgba(255,255,255,0.7); }
.pa-label {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  padding: 8px;
  background: rgba(255,255,255,0.02);
  font-style: italic;
}

/* Spec strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.spec-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  transition: var(--transition);
}
.spec-item:hover { border-color: var(--border); }
.spec-item i {
  color: var(--accent);
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}
.spec-item span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.3;
}
.spec-item small {
  font-size: 10px;
  color: var(--text-faint);
  display: block;
}

/* Cable spec row */
.cable-spec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.cable-spec-row i { color: var(--accent); }
.cable-spec-row strong { color: var(--white); }

/* Perk banner */
.perk-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(204,255,0,0.12), rgba(204,255,0,0.04));
  border: 1px solid rgba(204,255,0,0.4);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.perk-banner i {
  color: var(--accent);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.perk-banner strong { color: var(--accent); font-size: 14px; display: block; margin-bottom: 4px; }
.perk-banner p { color: var(--text-muted); font-size: 13px; }

/* Interpolation note */
.interp-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  border-left: 3px solid rgba(204,255,0,0.3);
}
.interp-note i { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Cost value – capacity display (no strikethrough) */

/* Responsive: spec-strip on small screens */
@media (max-width: 600px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
}

/* =============================
   WHY LOCAL / COMPARISON SECTION
   ============================= */
.why-local-section {
  background: linear-gradient(180deg, #091a2e 0%, var(--bg-dark) 100%);
}

/* Neighbourhood proof bar */
.nbr-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(204,255,0,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 40px;
  margin-bottom: 56px;
}

.nbr-proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 180px;
  padding: 8px 16px;
}

.nbr-proof-item i {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.nbr-proof-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.nbr-proof-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.nbr-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 8px;
}

/* Comparison table wrapper */
.compare-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Main table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

/* Column widths */
.compare-table .feat-col    { width: 22%; }
.compare-table .amgreen-col { width: 42%; }
.compare-table .national-col{ width: 36%; }

/* Header row */
.compare-table thead tr {
  background: rgba(0,0,0,0.3);
  border-bottom: 2px solid var(--border);
}

.compare-table th {
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  vertical-align: middle;
}

.compare-table th.feat-col {
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Column header cards */
.col-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.col-head span {
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.col-head small {
  font-size: 12px;
  font-weight: 400;
  display: block;
}

.amgreen-head {
  color: var(--accent);
}

.amgreen-head small { color: rgba(204,255,0,0.6); }

.national-head {
  color: rgba(255,255,255,0.5);
}

.national-head small { color: rgba(255,255,255,0.3); }

/* Column logo */
.col-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
  mix-blend-mode: lighten;
}

.col-logo-placeholder {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  margin-bottom: 4px;
}

/* Highlighted AMGreen column header bg */
.compare-table th.amgreen-col {
  background: rgba(204,255,0,0.06);
  border-left: 2px solid rgba(204,255,0,0.3);
  border-right: 2px solid rgba(204,255,0,0.3);
}

/* Body rows */
.compare-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.compare-table tbody tr:last-child { border-bottom: none; }

.compare-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.compare-table tbody tr.alt-row {
  background: rgba(0,0,0,0.12);
}

.compare-table tbody tr.alt-row:hover {
  background: rgba(255,255,255,0.02);
}

/* Feature label cell */
.feat-label {
  padding: 20px 20px 20px 24px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  vertical-align: top;
  line-height: 1.5;
}

.feat-label i {
  color: var(--accent);
  margin-right: 8px;
  font-size: 13px;
  width: 14px;
  text-align: center;
}

/* AMGreen column cell */
.amgreen-cell {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  vertical-align: top;
  background: rgba(204,255,0,0.03);
  border-left: 2px solid rgba(204,255,0,0.2);
  border-right: 2px solid rgba(204,255,0,0.2);
}

.amgreen-cell strong { color: var(--white); font-weight: 700; }

/* National column cell */
.national-cell {
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  vertical-align: top;
}

/* Check badge */
.check-badge {
  display: inline-block;
  margin-right: 4px;
  font-size: 15px;
  line-height: 1;
}

/* Bottom CTA strip */
.compare-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(204,255,0,0.08), rgba(204,255,0,0.03));
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.compare-cta-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}

.compare-cta-text i {
  color: var(--accent);
  font-size: 22px;
  flex-shrink: 0;
}

.compare-cta-text strong { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .nbr-proof-bar { padding: 20px 24px; gap: 0; }
  .nbr-divider { display: none; }
  .nbr-proof-item { min-width: 50%; padding: 12px 16px; }
}

@media (max-width: 600px) {
  .nbr-proof-item { min-width: 100%; }
  .compare-cta-strip { flex-direction: column; align-items: flex-start; }
  .compare-cta-strip .btn { width: 100%; justify-content: center; }
  .compare-table th, .compare-table td { padding: 14px 14px; }
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonials {
  background: linear-gradient(180deg, #091a2e 0%, var(--bg-dark) 100%);
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card.featured-testimonial {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), #112840);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(204,255,0,0.1);
}

.stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card > p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #0D2137;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }

/* =============================
   CONTACT
   ============================= */
.contact-section {
  background: linear-gradient(160deg, var(--bg-dark) 0%, #091a2e 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-tag { display: inline-block; margin-bottom: 16px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; }

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 14px; font-weight: 700; }
.contact-item span { font-size: 15px; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

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

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  margin-top: 16px;
  background: rgba(95, 215, 95, 0.1);
  border: 1px solid rgba(95, 215, 95, 0.3);
  color: #5fd75f;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================
   FOOTER
   ============================= */
.footer {
  background: #070f1c;
  border-top: 1px solid var(--border-light);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
  display: block;
  mix-blend-mode: lighten;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 13px; color: var(--text-faint); }

/* =============================
   WHATSAPP FLOAT
   ============================= */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}

/* =============================
   ANIMATIONS
   ============================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   RESPONSIVE – FULL OVERHAUL
   ============================= */

/* ---- 1100px: tablet landscape ---- */
@media (max-width: 1100px) {
  .services-grid         { grid-template-columns: repeat(2, 1fr); }
  .about-grid            { gap: 48px; }
  .calc-wrapper          { grid-template-columns: 1fr; }
  .calc-result-panel     { min-height: auto; align-items: flex-start; }
  .result-metrics        { grid-template-columns: repeat(2, 1fr); }
  .spec-strip            { grid-template-columns: repeat(2, 1fr); }
  .footer-grid           { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

/* ---- 900px: tablet portrait ---- */
@media (max-width: 900px) {
  .section               { padding: 72px 0; }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid          { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid     { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .testimonial-card.featured-testimonial { transform: none; }
  .steps-grid            { flex-direction: column; align-items: center; gap: 32px; }
  .step-card             { max-width: 360px; width: 100%; }
  .step-arrow            { transform: rotate(90deg); font-size: 18px; }

  /* Comparison table */
  .compare-table .feat-col    { width: 28%; }
  .compare-table .amgreen-col { width: 38%; }
  .compare-table .national-col{ width: 34%; }
}

/* ---- 768px: mobile landscape / large phones ---- */
@media (max-width: 768px) {

  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,25,45,0.99);
    backdrop-filter: blur(16px);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    z-index: 1001;
  }
  .nav-links.open         { display: flex; }
  .nav-links a            { padding: 14px 24px; border-bottom: 1px solid var(--border-light); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after     { display: none; }
  .nav-cta                { display: none; }
  .hamburger              { display: flex; }
  .navbar                 { position: relative; }
  .navbar.scrolled        { position: fixed; }

  /* Hero */
  .hero                   { min-height: auto; }
  .hero-content           { padding: 96px 20px 56px; max-width: 100%; }
  .hero-content h1        { font-size: clamp(30px, 8vw, 48px); }
  .hero-sub               { font-size: 16px; }
  .hero-actions           { flex-direction: column; }
  .hero-actions .btn-lg   { width: 100%; justify-content: center; }
  .hero-stats             { flex-direction: column; gap: 0; padding: 20px 24px; }
  .stat-card              { width: 100%; padding: 12px 0; text-align: left; display: flex; align-items: center; gap: 16px; }
  .stat-num               { font-size: 26px; min-width: 60px; }
  .stat-label             { margin-top: 0; }
  .stat-divider           { width: 100%; height: 1px; }
  .cert-badges-row        { flex-direction: column; gap: 14px; padding: 18px 20px; max-width: 100%; }
  .cert-divider           { display: none; }
  .cert-badge             { padding: 0; }
  .hero-scroll-hint       { display: none; }

  /* About */
  .about-grid             { grid-template-columns: 1fr; }
  .about-visual           { display: none; }
  .about-text .section-title { font-size: 26px; }

  /* Services */
  .services-grid          { grid-template-columns: 1fr; }

  /* How it works */
  .steps-grid             { flex-direction: column; align-items: center; }
  .step-arrow             { transform: rotate(90deg); }

  /* Calculator */
  .system-type-btns       { flex-wrap: wrap; }
  .sys-btn                { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .calc-input-panel       { padding: 24px 20px; }
  .calc-result-panel      { padding: 24px 20px; }
  .result-metrics         { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .spec-strip             { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .metric-val             { font-size: 14px; }
  .net-cost-val           { font-size: 26px; }
  .result-roi-banner      { flex-direction: column; gap: 10px; }

  /* Comparison section */
  .nbr-proof-bar          { padding: 20px; }
  .nbr-divider            { display: none; }
  .nbr-proof-item         { min-width: 50%; padding: 10px 12px; }
  .compare-cta-strip      { flex-direction: column; align-items: stretch; padding: 20px; }
  .compare-cta-strip .btn { width: 100%; justify-content: center; }
  .compare-cta-text       { font-size: 14px; }

  /* Contact */
  .form-row               { grid-template-columns: 1fr; }
  .contact-form-wrap      { padding: 28px 20px; }

  /* Footer */
  .footer-grid            { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-brand p         { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }

  /* Section header */
  .section-title          { font-size: clamp(24px, 6vw, 36px); }
  .section-sub            { font-size: 15px; }
}

/* ---- 480px: small phones ---- */
@media (max-width: 480px) {
  .container              { padding: 0 16px; }
  .section                { padding: 60px 0; }

  /* Hero */
  .hero-content           { padding: 88px 16px 48px; }
  .hero-content h1        { font-size: clamp(28px, 9vw, 40px); }
  .hero-content .badge    { font-size: 11px; padding: 6px 14px; }
  .hero-stats             { padding: 16px; }
  .stat-num               { font-size: 22px; }

  /* Buttons */
  .btn                    { padding: 13px 22px; font-size: 14px; }
  .btn-lg                 { padding: 15px 22px; font-size: 15px; }

  /* Services */
  .service-card           { padding: 24px 20px; }

  /* Steps */
  .step-card              { padding: 28px 20px; }

  /* Calculator */
  .calc-input-panel       { padding: 20px 16px; }
  .calc-result-panel      { padding: 20px 16px; }
  .capacity-display       { font-size: 28px; }
  .sys-btn                { flex: 1 1 100%; }
  .result-metrics         { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .spec-strip             { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .spec-item              { padding: 10px 8px; }
  .spec-item span         { font-size: 11px; }
  .result-highlight-card  { padding: 18px 16px; }
  .net-cost-val           { font-size: 22px; }
  .perk-banner            { flex-direction: column; gap: 8px; }
  .tech-badge-row         { gap: 6px; }
  .tech-badge             { font-size: 10px; padding: 4px 10px; }
  .placeholder-anchors    { display: none; } /* hide on very small */

  /* Comparison section */
  .nbr-proof-item         { min-width: 100%; }
  .compare-table th,
  .compare-table td       { padding: 12px 12px; font-size: 12px; }
  .col-head span          { font-size: 13px; }
  .col-head small         { font-size: 11px; }
  .col-logo               { height: 28px; }
  .feat-label             { font-size: 12px; padding: 12px 10px 12px 12px; }
  .amgreen-cell,
  .national-cell          { padding: 12px 12px; font-size: 12px; }

  /* Testimonials */
  .testimonial-card       { padding: 24px 20px; }

  /* Contact */
  .contact-form-wrap      { padding: 20px 16px; }
  .contact-item           { gap: 12px; }
  .contact-icon           { width: 42px; height: 42px; font-size: 16px; }

  /* Footer */
  .footer                 { padding: 48px 0 0; }
  .social-links a         { width: 34px; height: 34px; font-size: 13px; }
  .footer-bottom          { padding: 18px 0; }

  /* WhatsApp button */
  .whatsapp-float         { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 22px; }

  /* Section tags */
  .section-tag            { font-size: 11px; padding: 5px 13px; }
  .section-title          { font-size: clamp(22px, 7vw, 32px); }
}

