/* CFIF Design System — Clean Fuels Investment Fund */
/* Primary: #1C5D7E | Secondary: #6BBD45 | Dark Green: #4F9532 | Neutral: #F8F9FA bg, #333 text */
/* Font: Montserrat (Google Fonts) */

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

:root {
  --primary: #1C5D7E;
  --primary-dark: #164A65;
  --primary-light: #E8F1F5;
  --secondary: #6BBD45;
  --secondary-light: #E6F4EC;
  --neutral-bg: #F8F9FA;
  --neutral-dark: #E9ECEF;
  --text: #333333;
  --text-light: #6C757D;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-dark);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.nav-logo svg { height: 36px; width: auto; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subhead {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero .desc {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

.hero .supporting {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
  font-style: italic;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background: #4F9532;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ─── SECTIONS ───────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-light { background: var(--neutral-bg); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.9); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-dark .section-label { color: rgba(255,255,255,0.6); }

.section h2 { margin-bottom: 20px; }
.section p.lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 48px;
}

/* ─── CARDS GRID ─────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--neutral-dark);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; }

/* ─── FAQ ────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--neutral-dark);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-top: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ─── STATS BAR ──────────────────────────────── */
.stats-bar {
  background: var(--primary);
  padding: 48px 24px;
  color: var(--white);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── FORM ───────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--neutral-dark);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,93,126,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ─── STEPS ──────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg { height: 28px; }

.footer-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-text a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.footer-text a:hover { color: var(--white); }

.footer-url {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

/* ─── PAGE HEADER (inner pages) ──────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}

.page-header h1 { color: var(--white); font-size: 2.25rem; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ─── CONTENT PROSE ──────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 48px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose ul, .prose ol { margin-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-light); }

/* ─── DISCLAIMER ─────────────────────────────── */
.disclaimer {
  background: var(--neutral-bg);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ─── CTA BANNER ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 550px; margin: 0 auto 28px; }

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.cta-banner .btn-primary:hover {
  background: var(--neutral-bg);
  color: var(--primary-dark);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 56px 24px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--neutral-dark);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--neutral-bg); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-hamburger { display: block; }

  .footer-inner { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: 40px 24px; }
  .page-header h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
