/* ============================================
   SolarCompare — Lead-Gen Landing Page
   Color: #0a1628 navy | #f59e0b amber | #fff | #f8fafc gray
   ============================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #0f2240;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

/* ── NAV ───────────────────────────────────── */
.nav {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.btn-nav {
  font-size: 13px;
  font-weight: 600;
  background: var(--amber);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--amber-light); }

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.72) 0%,
    rgba(10, 22, 40, 0.82) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  max-width: 760px;
  animation: fadeUp 0.8s ease-out both;
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.5;
}
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}
.btn-hero { font-size: 18px; padding: 16px 40px; }
.trust-badges {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-badges span {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ── SHARED SECTIONS ────────────────────────── */
.section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  text-align: center;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 52px;
}

/* ── HOW IT WORKS ───────────────────────────── */
.how-it-works { background: var(--gray-50); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--amber);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── FORM SECTION ───────────────────────────── */
.form-section { background: var(--white); padding: 80px 24px; }
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 48px 44px;
  box-shadow: 0 4px 24px rgba(10,22,40,0.08);
}
.form-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
}
.form-sub {
  font-size: 15px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 32px;
}
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.btn-full { width: 100%; text-align: center; }
.form-disclaimer {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* Thank you state */
.form-success { text-align: center; }
.success-icon {
  width: 64px;
  height: 64px;
  background: #10b981;
  color: white;
  font-size: 32px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h2 { margin-bottom: 12px; }
.form-success p { font-size: 15px; color: var(--gray-500); margin-bottom: 8px; }
.success-sub { font-size: 14px; color: var(--gray-500); margin-top: 8px; }

/* ── STATS BAR ──────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 36px 24px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ── WHY SOLAR ──────────────────────────────── */
.why-solar { background: var(--gray-50); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}
.benefit-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.benefit-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ── FAQ ────────────────────────────────────── */
.faq-section { background: var(--gray-100); }
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--gray-300); }
.faq-item:last-child { border-bottom: none; }
.faq-toggle {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font);
  transition: background 0.15s;
}
.faq-toggle:hover { background: var(--gray-50); }
.faq-icon { font-size: 20px; color: var(--amber); flex-shrink: 0; transition: transform 0.2s; }
.faq-body {
  display: none;
  background: var(--white);
  padding: 0 24px 20px;
  border-top: 1px solid var(--gray-100);
}
.faq-body p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ── FINAL CTA ─────────────────────────────── */
.final-cta {
  background: var(--navy);
  text-align: center;
  padding: 80px 24px;
}
.final-cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}
.cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  margin-bottom: 0 !important;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: #060e1a;
  padding: 40px 24px;
  text-align: center;
}
.footer .container { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 8px;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

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

.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 24px; }
  .stat-divider { display: none; }
  .hero-content h1 { font-size: 34px; }
  .form-card { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .section { padding: 60px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 20px; }
  .hero-content h1 { font-size: 28px; }
  .btn-hero { padding: 14px 28px; font-size: 16px; }
  .trust-badges { gap: 16px; }
  .stats-inner { gap: 20px; }
  .stat-num { font-size: 26px; }
  .section-title { font-size: 26px; }
  .final-cta h2 { font-size: 28px; }
  .form-card { padding: 28px 20px; }
}