/* ══════════════════════════════════════════
   Energy Efficiency Experts — Shared Styles
   ══════════════════════════════════════════ */

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

:root {
  --green:       #2e7d32;
  --green-light: #43a047;
  --green-pale:  #e8f5e9;
  --dark:        #1a1a1a;
  --gray:        #f5f5f5;
  --text:        #333;
  --muted:       #666;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { height: 52px; object-fit: contain; }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}

nav ul a:hover,
nav ul a.active { color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 6px;
}

.nav-cta:hover { background: var(--green-light) !important; }

/* ── NAV DROPDOWN ── */
nav ul li { position: relative; }

.dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  z-index: 200;
  /* padding-top bridges the gap so mouse can reach the menu */
  padding-top: 14px;
  margin-top: -6px;
  transition: opacity .15s, visibility .15s;
}

.has-dropdown:hover .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dropdown li { width: 100%; }

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--dark) !important;
  border-radius: 0;
  transition: background .15s, color .15s;
}

.dropdown a:hover { background: var(--green-pale); color: var(--green) !important; }

.dropdown-arrow { font-size: 10px; margin-left: 4px; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #43a047 100%);
  color: #fff;
  padding: 70px 60px;
  text-align: center;
}

.page-header h1 { font-size: 44px; margin-bottom: 14px; }
.page-header p  { font-size: 18px; opacity: .85; max-width: 640px; margin: 0 auto; }

/* ── SHARED SECTION ── */
.section { padding: 80px 60px; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: var(--dark); }
.section-title p  { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}

.btn:hover { transform: translateY(-2px); opacity: .9; }

.btn-green   { background: var(--green);   color: #fff; }
.btn-white   { background: #fff;           color: var(--green); }
.btn-outline { border: 2px solid #fff;     color: #fff; }
.btn-outline-green { border: 2px solid var(--green); color: var(--green); }

/* ── STATS BAR ── */
.stats {
  background: var(--dark);
  color: #fff;
  display: flex;
  justify-content: space-around;
  padding: 40px 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.stat { text-align: center; }
.stat .number { font-size: 40px; font-weight: 700; color: #81c784; }
.stat .label  { font-size: 13px; opacity: .75; margin-top: 4px; letter-spacing: .5px; text-transform: uppercase; }

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ── IMAGE PLACEHOLDERS (remove once real images are added) ── */
.img-placeholder {
  background: #dcedc8;
  border: 2px dashed #aed581;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #558b2f;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ── EMPOWER+ HIGHLIGHT BAND ── */
.empower-band {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 70px 60px;
}

.empower-band-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.empower-band-text { flex: 1; min-width: 280px; }
.empower-band-text .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.empower-band-text h2 { font-size: 34px; margin-bottom: 16px; line-height: 1.25; }
.empower-band-text p  { opacity: .9; line-height: 1.7; margin-bottom: 12px; }

.empower-checks { list-style: none; margin: 16px 0 28px; }
.empower-checks li { padding: 5px 0; font-size: 15px; opacity: .95; }
.empower-checks li::before { content: '✔ '; color: #a5d6a7; }

.empower-band-box {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 32px 28px;
}

.empower-band-box h3 { font-size: 20px; margin-bottom: 16px; }
.empower-band-box .amount {
  font-size: 48px;
  font-weight: 700;
  color: #a5d6a7;
  line-height: 1;
}
.empower-band-box .amount-label { font-size: 13px; opacity: .8; margin-bottom: 20px; }
.empower-band-box p { font-size: 14px; opacity: .85; line-height: 1.6; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 40px 60px 24px;
}

.footer-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 30px;
  justify-content: space-between;
}

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col p, .footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  line-height: 2;
  display: block;
}
.footer-col a:hover { color: #81c784; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   APPLY NOW CTA COMPONENTS
   ══════════════════════════════════════════ */

/* ── Nav: Second CTA (outlined) ── */
.nav-cta-apply {
  background: #fff !important;
  color: var(--green) !important;
  border: 2px solid var(--green) !important;
  padding: 8px 20px !important;
}
.nav-cta-apply:hover { background: var(--green-pale) !important; }

/* ── Page Header CTA ── */
.page-header-cta { margin-top: 22px; display: inline-block; }

/* ── Apply Banner: Variant A (compact bar) ── */
.apply-banner { background: var(--green-pale); padding: 28px 60px; border-top: 3px solid var(--green); }
.apply-banner-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.apply-banner p { font-size: 16px; color: var(--dark); margin: 0; flex: 1; min-width: 240px; }
.apply-banner .btn { flex-shrink: 0; white-space: nowrap; }

/* ── Apply Banner: Variant B (rich, dark green) ── */
.apply-banner-rich { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: #fff; padding: 44px 60px; }
.apply-banner-rich .apply-banner-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.apply-banner-badge { display: inline-block; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 3px 14px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.apply-banner-headline { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.apply-banner-sub { font-size: 15px; opacity: .88; margin: 0; max-width: 500px; line-height: 1.5; }
.apply-banner-rich .btn { flex-shrink: 0; white-space: nowrap; font-size: 17px; padding: 16px 36px; }

/* ── CTA Band: Dual Buttons ── */
.cta-band-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════ */
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h2 { font-size: 24px; color: var(--dark); margin: 36px 0 14px; padding-top: 24px; border-top: 1px solid #eee; }
.legal-content h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.legal-content h3 { font-size: 19px; color: var(--dark); margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.8; font-size: 15px; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin: 10px 0 18px 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--green); }
.legal-effective { font-size: 14px; color: var(--muted); margin-bottom: 28px; font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav               { padding: 14px 20px; }
  nav ul            { display: none; }
  .page-header      { padding: 50px 20px; }
  .page-header h1   { font-size: 30px; }
  .section          { padding: 60px 20px; }
  .stats            { padding: 30px 20px; }
  .empower-band     { padding: 50px 20px; }
  .empower-band-box { flex: 1 1 100%; }
  footer            { padding: 40px 20px 20px; }
  .apply-banner, .apply-banner-rich { padding: 28px 20px; }
  .apply-banner-inner { flex-direction: column; text-align: center; }
  .apply-banner .btn, .apply-banner-rich .btn { width: 100%; text-align: center; }
  .apply-banner-headline { font-size: 22px; }
  .cta-band-buttons { flex-direction: column; align-items: center; }
  .cta-band-buttons .btn { width: 100%; max-width: 320px; text-align: center; }
}
