@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&display=swap');

/* ─── TOKENS ───────────────────────────────────────────────── */
:root {
  --navy:       #41516e;
  --navy-dark:  #2d3a50;
  --navy-deep:  #1e2d42;
  --orange:     #f89823;
  --orange-lt:  #fdb96a;
  --orange-dk:  #e08318;
  --white:      #ffffff;
  --warm-white: #f8f6f3;
  --off-white:  #f2efe9;
  --light-gray: #e9e5de;
  --text:       #1a2332;
  --text-mid:   #4a5568;
  --text-soft:  #6b7280;
  --border:     rgba(65,81,110,0.1);
  --shadow-sm:  0 2px 8px rgba(65,81,110,0.08);
  --shadow-md:  0 6px 24px rgba(65,81,110,0.12);
  --shadow-lg:  0 16px 48px rgba(65,81,110,0.16);
  --radius:     6px;
  --radius-lg:  12px;
  --max:        1200px;
  --nav-h:      70px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: clamp(16px, 1.2vw, 19px); }
body { font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px; font-weight: 400;
  color: var(--navy); letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo-text span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); display: block;
  margin-top: 2px;
}
.nav-links { display: flex; gap: clamp(1rem, 1.8vw, 2rem); align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-mid); letter-spacing: 0.01em;
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--orange); }
.nav-cta {
  background: transparent !important; color: var(--navy) !important;
  padding: 9px 22px; border-radius: var(--radius);
  font-size: 13px !important; font-weight: 700; letter-spacing: 0.02em;
  border: 1.5px solid var(--navy) !important; border-bottom: 1.5px solid var(--navy) !important; outline: none;
  transition: background 0.2s, color 0.2s !important;
  text-decoration: none; line-height: 1;
}
.nav-cta:hover { background: var(--navy) !important; color: #fff !important; border: 1.5px solid var(--navy) !important; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.f-logo-wrap { display: flex; align-items: center; gap: 10px; opacity: 0.75; }
.f-logo-text { font-family: Georgia, serif; font-size: 17px; font-weight: 400; color: rgba(255,255,255,0.8); }
.f-logo-text span { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-lt); display: block; margin-top: 1px; }
.f-links { display: flex; gap: clamp(1rem, 1.5vw, 1.75rem); flex-wrap: wrap; }
.f-links a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.f-links a:hover { color: var(--orange-lt); }
.f-copy {
  font-size: 12px; color: rgba(255,255,255,0.3);
  width: 100%; border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem; margin-top: 0.5rem; line-height: 1.6;
}

/* ─── LAYOUT UTILITIES ───────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; }
.sec { padding: clamp(3.5rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.sec-wh { background: var(--white); }
.sec-warm { background: var(--warm-white); }
.sec-off { background: var(--off-white); }
.sec-lg { background: var(--light-gray); }
.sec-navy { background: var(--navy); }
.sec-deep { background: var(--navy-deep); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 2vw, 2rem); }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.25rem, 1.8vw, 1.75rem); }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem, 1.5vw, 1.5rem); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.two-col-r { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 0.75rem; display: block;
}
.eyebrow-lt { color: var(--orange-lt); }
h1.hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400; color: #fff;
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
h1.hero-title em { font-style: italic; color: var(--orange-lt); }
h1.page-title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 400; color: #fff;
  line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
h1.page-title em { font-style: italic; color: var(--orange-lt); }
h2.section-title {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h2.section-title em { font-style: italic; }
h3.card-title {
  font-size: 15px; font-weight: 600;
  color: var(--navy); margin-bottom: 0.4rem;
}
.lead {
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(255,255,255,0.65); line-height: 1.8;
  max-width: 540px;
}
.sub {
  font-size: clamp(13.5px, 0.9vw, 15px);
  color: var(--text-soft); line-height: 1.8;
  max-width: 540px;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--orange); color: #fff;
  padding: clamp(11px, 0.85vw, 14px) clamp(20px, 1.6vw, 28px);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; color: #fff;
  padding: clamp(11px, 0.85vw, 14px) clamp(20px, 1.6vw, 28px);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-outline {
  display: inline-block; color: var(--navy);
  padding: clamp(10px, 0.8vw, 13px) clamp(18px, 1.4vw, 24px);
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--navy);
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.link-arrow { font-size: 13px; font-weight: 600; color: var(--orange); transition: gap 0.2s; }
.link-arrow:hover { color: var(--orange-dk); }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 1.8vw, 1.75rem);
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  background: rgba(248,152,35,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 0.9rem; }
.card .link-arrow { display: inline-block; margin-top: 0.25rem; }

/* ─── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
}
.page-hero .wrap { display: flex; flex-direction: column; }

/* ─── STAT BAR ───────────────────────────────────────────────── */
.stat-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-bar .n {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 400; color: var(--orange);
}
.stat-bar .l { font-size: 12px; color: var(--text-soft); margin-top: 0.3rem; }

/* ─── CHECKLIST ──────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 0.85rem; }
.chk { display: flex; gap: 0.75rem; font-size: 13.5px; line-height: 1.6; }
.chk-dot { width: 18px; height: 18px; background: rgba(248,152,35,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.chk-dot::after { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

/* ─── STEPS ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; margin-top: 2.5rem; }
.step { text-align: center; padding: 1.25rem 0.75rem; }
.step-n {
  width: 40px; height: 40px; background: var(--orange);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin: 0 auto 1rem;
}
.step h4 { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.step p { font-size: 12px; color: var(--text-soft); line-height: 1.55; }

/* ─── FINANCIAL TABLE ────────────────────────────────────────── */
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table th { background: var(--navy); color: #fff; padding: 0.65rem 1rem; text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.fin-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.fin-table tr:last-child td { font-weight: 700; color: var(--navy); border-bottom: none; border-top: 2px solid var(--light-gray); }
.fin-table .pos { color: #22863a; }

/* ─── GRANT BOX ──────────────────────────────────────────────── */
.grant-box { background: var(--navy); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2vw, 2.5rem); }
.grant-box > h3 { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; color: var(--orange-lt); margin-bottom: 1.25rem; }
.grant-item { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 1.25rem; }
.grant-item h4 { font-size: 12px; font-weight: 700; color: var(--orange-lt); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.grant-item p { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ─── ALERT BOX ──────────────────────────────────────────────── */
.alert-box {
  background: var(--navy); color: #fff;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  display: flex; gap: 1rem; align-items: flex-start;
}
.alert-box p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.82); }
.alert-box strong { color: var(--orange-lt); }
.alert-box a { color: var(--orange-lt); text-decoration: underline; }

/* ─── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  background: var(--orange);
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.cta-band h2 { font-family: Georgia, serif; font-size: clamp(1.8rem, 2.5vw, 2.6rem); font-weight: 400; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.cta-band p { font-size: clamp(13.5px, 0.9vw, 15px); color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 2rem; line-height: 1.75; }

/* ─── TEAM CARD ──────────────────────────────────────────────── */
.team-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tc-top { background: var(--navy); padding: clamp(1.5rem, 2vw, 2rem); display: flex; gap: 1.25rem; align-items: flex-start; }
.tc-top img { width: clamp(64px, 5vw, 80px); height: clamp(64px, 5vw, 80px); border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid rgba(248,152,35,0.4); }
.t-name { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; color: #fff; margin-bottom: 2px; }
.t-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-lt); margin-bottom: 0.5rem; }
.t-contact a { font-size: 12.5px; color: rgba(255,255,255,0.5); display: block; line-height: 1.8; transition: color 0.2s; }
.t-contact a:hover { color: var(--orange-lt); }
.tc-body { padding: clamp(1.25rem, 1.8vw, 2rem); background: #fff; }
.tc-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 0.85rem; }
.tc-body p:last-child { margin-bottom: 0; }

/* ─── PROJECT CARD ───────────────────────────────────────────── */
.proj-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s; }
.proj-card:hover { box-shadow: var(--shadow-md); }
.proj-thumb { height: clamp(110px, 10vw, 160px); position: relative; }
.pbadge, .pstatus { position: absolute; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; z-index: 2; }
.pbadge { top: 10px; left: 10px; }
.pstatus { top: 10px; right: 10px; }
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.badge-solar { background: #f89823 !important; color: #fff !important; }
.badge-ev { background: #2d3a50 !important; color: #fff !important; }
.badge-community { background: rgba(34,139,80,0.15); color: #228b50; }
.status-done { background: #228b50 !important; color: #fff !important; }
.status-dev { background: #d97706 !important; color: #fff !important; }
.proj-info { padding: 1.1rem 1.25rem; }
.proj-info h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.proj-info .loc { font-size: 11.5px; color: var(--text-soft); margin-bottom: 0.6rem; }
.proj-info p { font-size: 12.5px; color: var(--text-mid); line-height: 1.55; }
.pstats { display: flex; gap: 1.25rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.pstat .n { font-size: 14px; font-weight: 700; color: var(--orange); }
.pstat .l { font-size: 10.5px; color: var(--text-soft); }

/* ─── FORM ───────────────────────────────────────────────────── */
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 0.9rem; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text); background: #fff;
  transition: border-color 0.2s; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--orange); }
.form-row textarea { height: 120px; resize: vertical; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  width: 100%; background: var(--orange); color: #fff; border: none;
  padding: 13px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--navy); }

/* ─── TAG PILLS ──────────────────────────────────────────────── */
.tag-pill { font-size: 11px; background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 20px; display: inline-block; font-weight: 600; letter-spacing: 0.02em; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.85rem; }

/* ─── HAMBURGER ──────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 6px;
  border-radius: var(--radius); transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--off-white); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu overlay */
.nav-mobile-menu {
  display: none !important;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999;
  flex-direction: column;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  gap: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-mobile-menu.open { display: flex !important; }
.nav-mobile-menu a {
  font-size: 22px; font-weight: 500; color: var(--navy);
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu .nav-cta {
  margin-top: 1.5rem; text-align: center;
  font-size: 16px !important; padding: 14px 28px !important;
}

/* ─── TABLET (768–1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .two-col-r { grid-template-columns: 1fr; }
}

/* ─── MOBILE (<768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Grids → single column */
  .grid2, .grid3, .grid4, .two-col, .two-col-r {
    grid-template-columns: 1fr !important;
  }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .form-two { grid-template-columns: 1fr; }

  /* Hero sections */
  section > div[style*="grid-template-columns:1fr 1fr"],
  section > div > div[style*="grid-template-columns:1fr 1fr"],
  .wrap[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Typography */
  h1.hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  h1.page-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  h2.section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .lead { font-size: 15px; max-width: 100%; }
  .sub { font-size: 14px; max-width: 100%; }

  /* Financial tables — scrollable */
  .fin-table { font-size: 12px; }
  .two-col .fin-table { display: block; overflow-x: auto; }

  /* Project thumb taller on mobile */
  .proj-thumb { height: 180px; }

  /* Footer stack */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .f-links { gap: 1rem; }

  /* Misc */
  .grant-box .grid3, .grant-box .grid2 { grid-template-columns: 1fr !important; }
  .page-hero { padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem); }
  .sec { padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem); }
  .member { flex-wrap: wrap; }
  .stat-bar .n { font-size: clamp(1.5rem, 6vw, 2rem); }
  .card p { font-size: 14px; }
  .proj-info p { font-size: 13px; }
  .chk { font-size: 14px; }
  .why-pt p { font-size: 14px; }
}

/* ─── BG HELPERS ─────────────────────────────────────────────── */
.bg-navy { background: var(--navy); }
.bg-pine { background: #1b3a28; }
.bg-slate { background: #293851; }
.bg-deep { background: var(--navy-deep); }
.bg-mid { background: #3d5c4a; }
.bg-warm { background: #4a3820; }
