@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

:root {
  --navy: #0b0b6e;
  --yellow: #ffd600;
  --white: #ffffff;
  --cream: #fffce0;
  --light-blue: #daeeff;
  --gray: #555555;
  --font: 'Nunito', sans-serif;
}

html { overflow-x: hidden; }
body { font-family: var(--font); color: #1a1a1a; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy);
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.logo { display: flex; align-items: center; gap: 0.4rem; }
.logo img { border-radius: 6px; background: transparent; }
.logo svg { width: 28px; height: 28px; }
.logo-text { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.5px; }
.logo-text .solar { color: var(--yellow); }
.logo-text .gem { color: var(--white); }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--white); border-radius: 3px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.5rem 0 1rem;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  color: var(--white); font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.5rem; transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--yellow); background: rgba(255,214,0,0.1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; font-family: var(--font); font-weight: 900;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 0.85rem 2rem; border-radius: 50px; border: none;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--yellow); }
.btn-outline { background: transparent; border: 2.5px solid var(--navy); color: var(--navy); }

/* ===== BADGES ===== */
.badge {
  display: inline-block; font-weight: 900; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 0.5rem 1.3rem; border-radius: 50px;
}
.badge-navy { background: var(--navy); color: var(--yellow); }
.badge-yellow { background: var(--yellow); color: var(--navy); }
.badge-outline-navy { background: transparent; border: 2.5px solid var(--navy); color: var(--navy); }

/* ===== SECTION BASE ===== */
.sec { padding: 3.5rem 1.5rem; }
.sec-navy { background: var(--navy); }
.sec-white { background: var(--white); }
.sec-yellow { background: var(--yellow); }
.sec-cream { background: var(--cream); }
.sec-light-blue { background: var(--light-blue); }

.inner { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }

.sec-navy h1, .sec-navy h2, .sec-navy h3 { color: var(--yellow); }
.sec-navy p, .sec-navy li { color: rgba(255,255,255,0.9); }
.sec-white h2, .sec-white h3 { color: var(--navy); }
.sec-yellow h2, .sec-yellow h3 { color: var(--navy); }
.sec-yellow p { color: var(--navy); }
.sec-cream h2, .sec-cream h3 { color: var(--navy); }
.sec-light-blue h2, .sec-light-blue h3 { color: var(--navy); }

h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; font-weight: 900; line-height: 1.15; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 900; margin-bottom: 0.3rem; }
p { font-size: 1rem; line-height: 1.6; }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 2.5rem 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero-text {
  text-align: center;
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}
.hero-text h1 { color: var(--white); }
.hero-text h1 .pct {
  color: var(--yellow);
  font-size: 4.5rem;
  display: block;
  line-height: 0.95;
  margin: 0.1rem 0;
}
.hero-text p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.hero-sun-wrap {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.hero-sun-wrap img { width: 100%; }
.hero-house {
  width: 100%;
  margin-top: 1rem;
}
.hero-house img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* ===== TWO-COL LAYOUT ===== */
.two-col { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.two-col.reverse { flex-direction: column; }
.two-col .col-text { flex: 1; }
.two-col .col-img { flex: 1; text-align: center; }
.two-col img { border-radius: 14px; max-width: 380px; margin: 0 auto; }

/* ===== MYTH BUSTING ===== */
.myth-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.myth-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.myth-icon { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }
.myth-item h4 { color: var(--navy); font-size: 1rem; text-transform: uppercase; }
.myth-item p { color: var(--gray); font-size: 0.9rem; margin-top: 0.1rem; }

/* ===== CHECKLIST ===== */
.checklist { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.checklist li {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1rem; color: var(--navy);
}
.checklist li::before {
  content: '';
  display: inline-block;
  width: 24px; height: 24px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* ===== HOW SOLAR WORKS ===== */
.solar-option-wrap { display: flex; flex-direction: column; gap: 0; margin: 1.5rem 0; }
.solar-option {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.solar-option .opt-title { font-weight: 900; color: var(--navy); font-size: 0.95rem; }
.solar-option .opt-sub { color: var(--gray); font-size: 0.8rem; margin-top: 0.3rem; font-style: italic; }
.or-divider {
  text-align: center; font-weight: 900; font-size: 1.1rem;
  color: var(--navy); padding: 0.6rem 0; background: var(--white);
}

/* Daytime/Nighttime diagram */
.diagram-box {
  background: var(--light-blue);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}
.diagram-box.night { background: #0f0f4e; }
.diagram-title {
  font-size: 1.4rem; font-weight: 900;
  color: var(--navy); text-align: center; margin-bottom: 1.2rem;
}
.diagram-box.night .diagram-title { color: var(--yellow); }
.diagram-flow-row {
  display: flex; justify-content: center; align-items: center;
  gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem;
}
.diag-item { text-align: center; font-size: 0.72rem; font-weight: 800; color: var(--navy); min-width: 48px; }
.diag-item img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 0.2rem; }
.diag-item.light { color: var(--white); }
.diag-icon-box {
  width: 44px; height: 44px;
  background: var(--yellow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.2rem;
  font-size: 1.2rem;
}
.diag-arrow { font-size: 1.3rem; color: var(--yellow); font-weight: 900; line-height: 1; }
.diagram-desc {
  font-size: 0.88rem; color: var(--gray); margin-top: 1rem; line-height: 1.55;
  text-align: center;
}
.diagram-box.night .diagram-desc { color: rgba(255,255,255,0.75); }

/* ===== PRODUCT FLOW DIAGRAMS ===== */
.flow-wrap { max-width: 320px; margin: 1.5rem auto; }
.flow-row { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin: 0.4rem 0; }
.flow-item { text-align: center; font-size: 0.75rem; font-weight: 800; color: var(--navy); }
.flow-item img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 0.2rem; }
.flow-arrow { font-size: 1.5rem; color: var(--navy); font-weight: 900; line-height: 1; }
.flow-arrow-down { font-size: 1.5rem; color: var(--navy); font-weight: 900; text-align: center; }
.flow-caption { text-align: center; font-weight: 900; color: var(--navy); font-size: 1rem; margin-top: 1rem; }

/* ===== WHAT WE DO CARDS ===== */
.what-we-do-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.wwd-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 2.5px solid var(--navy);
  border-radius: 12px; padding: 1rem 1.5rem;
  font-weight: 800; color: var(--navy); font-size: 1.1rem;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.wwd-card:hover { background: var(--navy); color: var(--yellow); }
.wwd-card img { width: 48px; height: 48px; object-fit: contain; }

/* ===== PRODUCT SECTION HEADER ===== */
.product-header {
  background: var(--navy); color: var(--yellow);
  padding: 1.2rem 1.5rem; border-radius: 12px 12px 0 0;
  font-size: 1.5rem; font-weight: 900; text-align: center;
}
.product-body {
  background: var(--white); border: 2px solid var(--navy);
  border-top: none; border-radius: 0 0 12px 12px; padding: 1.5rem;
}

/* ===== SOLAR PANEL CARDS ===== */
.panel-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.panel-card { position: relative; border-radius: 12px; overflow: hidden; }
.panel-card img { width: 100%; height: 200px; object-fit: cover; }
.panel-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--navy); color: var(--yellow);
  font-weight: 900; font-size: 0.9rem; padding: 0.6rem 1rem; text-align: center;
}
.new-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: 0.75rem; padding: 0.3rem 0.8rem;
  border-radius: 50px; text-transform: uppercase;
}

/* ===== BATTERY SIZES ===== */
.battery-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.battery-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 0.95rem; color: var(--navy);
}
.battery-item::before {
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--yellow); border-radius: 50%;
  font-size: 0.85rem; font-weight: 900; color: var(--navy); flex-shrink: 0;
}

/* ===== BENEFITS SECTION ===== */
.benefits-sec { background: var(--cream); padding: 3.5rem 1.5rem; text-align: center; }
.benefits-sec h2 { color: var(--navy); }
.benefits-subtitle { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.sun-deco { width: 70px; margin: 0 auto 1.5rem; }

.benefits-list { display: flex; flex-direction: column; gap: 0.9rem; max-width: 480px; margin: 1.5rem auto 0; }
.benefit-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border-radius: 12px;
  padding: 0.9rem 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
/* YELLOW SQUARE icon background for each benefit */
.benefit-icon-box {
  background: var(--yellow);
  border-radius: 12px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-icon-box img { width: 34px; height: 34px; object-fit: contain; }
.benefit-row .b-text { text-align: left; }
.benefit-row .b-text h4 { color: var(--navy); font-size: 0.9rem; text-transform: uppercase; font-weight: 900; }
.benefit-row .b-text p { color: var(--gray); font-size: 0.8rem; line-height: 1.3; }

/* ===== QUOTE CTA (yellow, cake) ===== */
.quote-cta-sec { background: var(--yellow); padding: 3.5rem 1.5rem; text-align: center; }
.quote-cta-sec h2 { color: var(--navy); }
.quote-cta-sec p { color: var(--navy); margin-bottom: 1.5rem; }
.cake-img { width: 200px; margin: 1.5rem auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2)); }

/* ===== GET QUOTE NOW (3 steps) — DARK NAVY ===== */
.get-quote-sec {
  background: var(--navy);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.get-quote-sec h2 { color: var(--yellow); margin-bottom: 2rem; }
.steps-list { display: flex; flex-direction: column; gap: 0.9rem; max-width: 420px; margin: 0 auto 2rem; }
.step-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.9rem 1.2rem; text-align: left;
}
.step-num {
  background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 1rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-item p { color: var(--white); font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.panel-bottom-img { width: 100%; max-width: 340px; margin: 1.5rem auto 0; border-radius: 12px; opacity: 0.75; }

/* ===== NEED HELP FUNDING TEASER ===== */
.funding-teaser-sec { background: var(--navy); padding: 3.5rem 1.5rem; text-align: center; }
.funding-teaser-sec h2 { color: var(--yellow); }
.funding-teaser-sec p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.funding-panel-img { width: 100%; max-width: 340px; margin: 1.5rem auto 0; border-radius: 12px; opacity: 0.6; }

/* ===== SAFE HANDS CERTS ===== */
.cert-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin: 2rem auto; max-width: 500px; }
.cert-logos img { height: 55px; width: auto; object-fit: contain; }

/* ===== ABC STEPS (quote page) ===== */
.abc-step { padding: 3rem 1.5rem; }
.abc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--navy); color: var(--yellow); font-weight: 900;
  font-size: 1.3rem; border-radius: 50%; margin-bottom: 1rem;
}
.abc-badge.yellow-bg { background: var(--yellow); color: var(--navy); }
.takes-badge {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: 0.78rem; padding: 0.3rem 0.9rem;
  border-radius: 50px; margin-top: 0.5rem; text-transform: uppercase;
}

/* ===== REVIEWS ===== */
.reviews-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.review-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.1); overflow: hidden;
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem;
}
.review-card img { width: 75px; height: 75px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.review-text h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 0.3rem; }
.review-text p { color: var(--gray); font-size: 0.82rem; line-height: 1.4; }
.stars { color: var(--yellow); font-size: 1rem; margin-bottom: 0.2rem; }

.shout-out-box {
  background: var(--cream); border-radius: 14px; padding: 1.5rem; margin: 1.5rem 0; text-align: center;
}
.shout-out-box blockquote { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 0.75rem; font-style: italic; }
.thumbs-img { width: 70px; margin: 1rem auto; }

.featured-review {
  background: var(--navy); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; margin: 1.5rem 0;
}
.featured-review blockquote { color: var(--white); font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin-bottom: 0.75rem; font-style: italic; }
.brilliant-img { width: 120px; margin: 1rem auto 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy); padding: 3rem 1.5rem 2rem; position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55px;
  background: var(--yellow); clip-path: ellipse(55% 100% at 50% 0%);
}
.footer-inner { padding-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-links h4 { color: var(--yellow); font-size: 0.9rem; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 600; padding: 0.3rem 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; margin-top: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.45); text-align: center; }

/* ===== DESKTOP (768px+) ===== */
@media (min-width: 768px) {

  .hamburger { display: none; }
  .nav-menu {
    display: flex !important; flex-direction: row;
    position: static; background: none; border: none; padding: 0; gap: 0.2rem;
  }
  .nav-menu a { padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.92rem; }
  .navbar { padding: 1rem 2.5rem; }

  .sec { padding: 5rem 3rem; }

  /* Hero desktop */
  .hero { padding: 0; }
  .hero-inner-desktop {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 3rem;
    max-width: 1100px; margin: 0 auto;
    padding: 5rem 3rem 3rem;
  }
  .hero-text { text-align: left; padding-bottom: 0; }
  .hero-text h1 .pct { font-size: 6rem; }
  .hero-sun-wrap { width: 160px; }
  .hero-house { margin-top: 0; }
  .hero-house img { border-radius: 16px; max-height: 380px; }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }

  .two-col { flex-direction: row; gap: 4rem; }
  .two-col.reverse { flex-direction: row-reverse; }
  .two-col img { max-width: 100%; }

  .what-we-do-cards { flex-direction: row; }

  .benefits-list {
    display: grid; grid-template-columns: repeat(3, 1fr);
    max-width: 900px; gap: 1.2rem;
  }
  .benefit-row { flex-direction: column; text-align: center; align-items: center; }
  .benefit-row .b-text { text-align: center; }

  .panel-cards { flex-direction: row; }

  .steps-list { max-width: 500px; }

  .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .review-card { flex-direction: column; }
  .review-card img { width: 100%; height: 160px; }

  .cert-logos img { height: 65px; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }

  .get-quote-sec .inner-desktop {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 3rem; max-width: 900px; margin: 0 auto;
    text-align: left;
  }
  .get-quote-sec .inner-desktop h2 { text-align: left; }
  .steps-list { margin-left: 0; }

  .solar-option-wrap { flex-direction: row; align-items: stretch; gap: 0; }
  .solar-option { flex: 1; }
  .or-divider { display: flex; align-items: center; padding: 0 1rem; }

  .funding-teaser-sec .inner-desktop {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 3rem; max-width: 900px; margin: 0 auto; text-align: left;
  }

  .solar-works-desktop { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (min-width: 1024px) {
  .sec { padding: 6rem 4rem; }
  h1 { font-size: 3.8rem; }
  .navbar { padding: 1rem 4rem; }
}