/* ============================================================
   EDIF — Light Theme Stylesheet v2
   Calibri font stack · Mobile-first responsive
   ============================================================ */

:root {
  /* Palette */
  --white:     #FFFFFF;
  --bg:        #F7F9F7;
  --bg2:       #EFF3EF;
  --surface:   #FFFFFF;
  --border:    #DDE5DD;
  --border2:   #C5D4C5;
  --green:     #2E7D32;
  --green-l:   #4CAF50;
  --green-xl:  #E8F5E9;
  --green-btn: #2E7D32;
  --green-btn-h: #1B5E20;
  --text:      #1A2A1A;
  --text2:     #3D5A3D;
  --muted:     #6B8A6B;
  --navy:      #0D4B7A;  /* SolarH2E brand blue */
  --gold:      #B8860B;
  --shadow:    rgba(30,60,30,0.08);
  --shadow-lg: rgba(30,60,30,0.14);
  --radius:    6px;
  --radius-lg: 10px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Calibri, 'Calibri', 'Gill Sans', 'Gill Sans MT', Candara, Segoe, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── EDIF LOGO MARK ── */
.edif-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: var(--radius);
  flex-shrink: 0;
  padding: 0; /* 20px padding achieved via inner span sizing */
}
.edif-logo-mark span {
  display: block;
  background: var(--white);
  color: var(--green);
  font-family: Calibri, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 3px 5px;
  line-height: 1;
  border-radius: 2px;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-brand-text strong {
  display: block;
  font-family: Calibri, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.1;
}
.nav-brand-text span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--green-xl); color: var(--green); }
.nav-links .cta-link a {
  background: var(--green-btn);
  color: var(--white);
  padding: 0.45rem 1.1rem;
}
.nav-links .cta-link a:hover { background: var(--green-btn-h); color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  gap: 0.25rem;
}
.nav-mobile a {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.cta-mob {
  margin-top: 0.5rem;
  background: var(--green-btn);
  color: var(--white);
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  border-bottom: none;
}
.nav-mobile.open { display: flex; }

/* ── LAYOUT ── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 5rem 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.85rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-title {
  font-family: Calibri, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.8;
  max-width: 68ch;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: Calibri, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-green { background: var(--green-btn); color: var(--white); }
.btn-green:hover { background: var(--green-btn-h); transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-xl); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--green-xl); transform: translateY(-2px); }

/* ── TICKER ── */
.ticker { background: var(--green); overflow: hidden; padding: 0.6rem 0; white-space: nowrap; }
.ticker-track { display: inline-block; animation: tick 30s linear infinite; }
.ticker-track span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.vis { opacity: 1; transform: translateY(0); }
.fi.d1 { transition-delay: 0.1s; }
.fi.d2 { transition-delay: 0.2s; }
.fi.d3 { transition-delay: 0.3s; }
.fi.d4 { transition-delay: 0.4s; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: 0 8px 30px var(--shadow-lg); transform: translateY(-3px); border-color: var(--border2); }
.card-accent { border-top: 3px solid var(--green); }

/* ── KV TABLE ── */
.kv { display: flex; flex-direction: column; }
.kv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; gap: 1rem;
}
.kv-row:last-child { border-bottom: none; }
.kv-key { color: var(--muted); flex-shrink: 0; }
.kv-val { color: var(--text); font-weight: 600; text-align: right; }
.kv-val.green { color: var(--green); }

/* ── STAT ── */
.stat-num { font-family: Calibri, sans-serif; font-weight: 700; font-size: 2.2rem; color: var(--green); line-height: 1; }
.stat-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

/* ── FORMS ── */
.form-wrap { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: Calibri, sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: var(--radius);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.full { grid-column: 1 / -1; }
.check-group { display: flex; flex-direction: column; gap: 0.6rem; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  cursor: pointer; font-size: 0.88rem; color: var(--text2); line-height: 1.55;
}
.check-item input[type=checkbox] { accent-color: var(--green); margin-top: 0.18rem; flex-shrink: 0; cursor: pointer; width: 16px; height: 16px; }
.form-note { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success .fs-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h4 { font-family: Calibri, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--green); margin-bottom: 0.75rem; }
.form-success p { font-size: 0.9rem; color: var(--text2); line-height: 1.8; }

/* ── PARTNER LOGO DISPLAY ── */
.partner-logo-img {
  width: 100%;
  max-width: 200px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  filter: none;
  margin-bottom: 1rem;
}

/* ── FOOTER ── */
#footer { background: var(--text); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3.5rem; margin-bottom: 3rem; }
.footer-brand .edif-logo-mark { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-top: 0.75rem; max-width: 32ch; }
.footer-col h5 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--green-l); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-disclaimer { font-size: 0.68rem; color: rgba(255,255,255,0.35); line-height: 1.85; margin-bottom: 1.25rem; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: var(--green-xl);
  color: var(--green);
  border: 1px solid rgba(46,125,50,0.2);
}
.badge::before { content: '●'; font-size: 0.55rem; }

/* ── DIVIDER ── */
hr.section-div { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .wrap { padding: 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { height: 60px; }

  .section-title { font-size: 1.7rem; }
  .section-lead { font-size: 0.95rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { order: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
  section { padding: 3rem 0; }
  .btn { padding: 0.75rem 1.4rem; font-size: 0.85rem; }
  .stat-num { font-size: 1.8rem; }
}
