/* ==========================================================================
   Solar Recourse — Stylesheet
   Colors pulled from the logo:
     Navy:   #1E4A7B
     Green:  #5BA838
     Gold:   #F5B921
     Orange: #F26A1F  (CTA)
   ========================================================================== */

:root {
  --navy: #1E4A7B;
  --navy-dark: #143358;
  --navy-deep: #0E2745;
  --green: #5BA838;
  --green-dark: #468a28;
  --gold: #F5B921;
  --orange: #F26A1F;
  --orange-dark: #d8580e;
  --text: #1f2937;
  --text-muted: #4b5563;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-alt: #eef2f7;
  --border: #d8dee6;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 30, 60, 0.12);
  --shadow-lg: 0 16px 48px rgba(15, 30, 60, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--orange); }

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

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

ul { padding-left: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 64px 0; }
.alt-bg { background: var(--bg-soft); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(242, 106, 31, 0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 106, 31, 0.45);
}
.btn-primary:active { transform: translateY(1px); }

.btn-full { width: 100%; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn-header { padding: 10px 20px; font-size: 0.95rem; }

.btn-submit { margin-top: 8px; font-size: 1.1rem; padding: 16px 28px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { height: 80px; width: auto; }
.logo-link { display: inline-flex; align-items: center; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, var(--navy-deep) 100%);
  color: #fff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 168, 56, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--gold); display: block; margin-bottom: 6px; }

.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 540px;
}

.trust-heading {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}
.trust-list .check {
  color: var(--green);
  background: rgba(255, 255, 255, 0.95);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Quiz Card
   ========================================================================== */

.quiz-wrap { position: relative; }

.quiz-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  position: sticky;
  top: 100px;
}

.quiz-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.quiz-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  transition: width 0.35s ease;
  border-radius: 999px;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.35;
}

.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.choice {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}
.choice:hover {
  border-color: var(--navy);
  background: var(--bg-soft);
}
.choice.selected {
  border-color: var(--orange);
  background: rgba(242, 106, 31, 0.06);
  color: var(--orange-dark);
}

.select-input,
.text-input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  margin-bottom: 12px;
}
.select-input:focus,
.text-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 74, 123, 0.15);
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 8px 0 6px;
}

.result-heading {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}
.result-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tcpa-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 14px;
  margin-bottom: 0;
}
.tcpa-text a { color: var(--navy); }

/* Loading state */

.quiz-loading {
  text-align: center;
  padding: 12px 0;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--bg-alt);
  border-top-color: var(--navy);
  border-radius: 50%;
  margin: 12px auto 22px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-list {
  list-style: none;
  text-align: left;
  margin: 0 auto;
  max-width: 280px;
  padding: 0;
}
.loading-list li {
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 0;
  color: var(--text-muted);
}
.loading-list li.done { color: var(--navy); }
.loading-list li.done .dot-pending { display: none; }
.loading-list li.done::before {
  content: '\2713';
  display: inline-block;
  color: #fff;
  background: var(--green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.75rem;
  line-height: 20px;
  font-weight: 900;
  margin-right: 10px;
}
.check-small {
  display: inline-block;
  color: #fff;
  background: var(--green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.75rem;
  line-height: 20px;
  font-weight: 900;
  margin-right: 10px;
}
.dot-pending {
  display: inline-block;
  color: var(--border);
  width: 20px;
  text-align: center;
  margin-right: 10px;
}

/* Thanks step */

.quiz-thanks { text-align: center; padding: 20px 0; }
.thanks-check {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.disqualified-icon {
  width: 64px;
  height: 64px;
  background: var(--text-muted);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}
.thanks-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.thanks-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.privacy-mini {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}
.privacy-mini .shield { color: var(--green); margin-right: 4px; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   How It Works
   ========================================================================== */

.section-title {
  text-align: center;
  margin-bottom: 14px;
}
.section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 16px;
}

.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ==========================================================================
   Warning Signs
   ========================================================================== */

.signs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0;
}
.signs-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.signs-list .check {
  color: #fff;
  background: var(--green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-row { text-align: center; margin-top: 24px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
  max-width: 820px;
  margin: 0 auto 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.faq-item p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}
.faq-item a { color: var(--navy); }

/* ==========================================================================
   Bottom CTA
   ========================================================================== */

.bottom-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.bottom-cta h2 { color: #fff; margin-bottom: 12px; }
.bottom-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
  font-size: 0.95rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--gold); }

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

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-tagline { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; max-width: 320px; }

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 4px 0; }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Legal Pages (Privacy / Terms)
   ========================================================================== */

.legal-page {
  padding: 56px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-page h1 { color: var(--navy); margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.legal-page h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.legal-page p, .legal-page li { color: var(--text); font-size: 1rem; line-height: 1.65; }
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .quiz-card { position: static; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .signs-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 56px; }
  .section-pad { padding: 48px 0; }
  .container { padding: 0 20px; }
  .quiz-card { padding: 22px 20px 18px; }
  .btn-header { display: none; }
  .logo { height: 60px; }
  .footer-logo { height: 56px; }
}
