/* NGCF Design System */

/* ── Variables ── */
:root {
  --green-deep:   #1a3a2a;
  --green-dark:   #0f2e1e;
  --gold:         #b8974a;
  --gold-light:   #d4b96a;
  --cream:        #f8f5f0;
  --cream-dark:   #ede8e0;
  --white:        #ffffff;
  --black:        #0d0d0d;
  --text-body:    #2a2a2a;
  --text-muted:   #6b6b6b;
  --serif:        'Libre Caslon Text', Georgia, serif;
  --sans:         'Inter', -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--sans); color: var(--text-body); background: var(--white); line-height: 1.6; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 600; letter-spacing: 0.005em; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
p  { font-size: 1rem; line-height: 1.7; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--green-deep);
  padding: 0 40px;
  height: 72px;
  display: flex; align-items: center;
}.header-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo-monogram { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--gold); }
.logo-monogram .monogram { width: 100%; height: 100%; display: block; }
.logo-text { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; line-height: 1.2; }
.nav-menu { display: flex; gap: 28px; margin-left: auto; }
.nav-menu a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--white); text-decoration: none; transition: color 0.2s; }
.nav-menu a:hover { color: var(--gold-light); }
.btn-donate {
  background: var(--gold); color: var(--white);
  padding: 10px 22px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none;
  transition: background 0.2s; margin-left: 16px;
}
.btn-donate:hover { background: var(--gold-light); }

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  margin-left: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile-only / desktop-only toggles ── */
.btn-donate-mobile, .lang-switch-mobile { display: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(15,46,30,0.85) 0%, rgba(26,58,42,0.6) 100%),
              url('/images/course-aerial.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  padding: 120px 40px 80px;
}
.hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; }
.hero-content { color: var(--white); }
.hero h1 { color: var(--white); margin-bottom: 20px; max-width: 14ch; line-height: 1.1; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; font-weight: 400; opacity: 0.9; margin-bottom: 36px; max-width: 540px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--white); padding: 14px 28px;
  border-radius: 4px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-decoration: none; transition: background 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  border: 2px solid var(--gold); color: var(--gold-light); padding: 12px 26px;
  border-radius: 4px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-decoration: none; transition: all 0.2s; display: inline-block;
}
.btn-outline:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.hero-card {
  background: rgba(255,255,255,0.95); border-radius: 12px; padding: 32px;
  color: var(--text-body);
}
.hero-card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hero-card-title .icon { font-size: 1.4rem; }
.hero-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Section Shared ── */
.section { padding: 80px 40px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { font-size: 0.78rem; font-weight: 600; font-style: italic; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-title { color: var(--green-deep); margin-bottom: 16px; }
.section-intro { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ── Mission ── */
.mission { background: var(--cream); }
.mission-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mission h2 { color: var(--green-deep); margin-bottom: 0; }
.mission-text { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.mission-text p { color: var(--text-muted); margin-bottom: 16px; }
.mission-text p:last-child { margin-bottom: 0; }

/* ── How We Help ── */
.help { background: var(--white); }

/* ── Card (unified) ── */
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.card--centered { text-align: center; padding: 36px 28px; }
.card--feature {
  text-align: center;
  padding: 36px 28px;
  border: none;
  background: transparent;
}
.card--feature:hover { box-shadow: none; transform: translateY(-2px); }
.card--feature .card-icon {
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  font-size: 2.5rem;
  margin: 0 auto 16px;
  color: var(--gold);
}
.card--feature .card-icon .icon { stroke: var(--gold); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card--centered .card-icon { margin-left: auto; margin-right: auto; }
.card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.card-body { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); flex-grow: 1; }
.card-body p { margin-bottom: 12px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body strong { color: var(--green-deep); font-weight: 600; }
.card-body .contact-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.8rem;
  color: var(--text-body);
}
.card-footer p { margin-bottom: 4px; }
.card-footer a,
.card-footer .email-text { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.card-grid .card { flex: 1 1 300px; max-width: 320px; }

/* ── Centered hero (used on inner pages) ── */
.hero--centered {
  background: var(--cream);
  padding: 80px 20px 60px;
  text-align: center;
}
.hero--centered .logo-mark {
  width: 80px; height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--green-deep);
}
.hero--centered .logo-mark .monogram { width: 50px; height: 50px; }
.hero--centered h1 {
  font-family: var(--serif);
  font-size: 46px; font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero--centered .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--green-deep);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Ornament divider (line – diamond – line) ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.ornament .line { display: block; width: 100px; height: 1px; background: var(--gold); }
.ornament .diamond { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* ── Section title (centered, serif) ── */
.section-title--centered {
  text-align: center;
  font-family: var(--serif);
  font-size: 32px; font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.section-title--accent {
  width: 50px; height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}
.section-subtitle--centered {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ── Mission text block (centered, narrow) ── */
.mission-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.mission-narrow .mission-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

/* ── Container (shared) ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section--cream { background: var(--cream); padding: 60px 20px; }
.section--white { background: var(--white); padding: 60px 20px; }

/* ── Legacy CTA ── */
.legacy {
  background: linear-gradient(135deg, rgba(15,46,30,0.88) 0%, rgba(26,58,42,0.75) 100%),
              url('/images/course-aerial.jpg') center/cover no-repeat;
  color: var(--white);
}
.legacy-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; }
.legacy h2 { color: var(--white); margin-bottom: 16px; }
.legacy p { opacity: 0.85; margin-bottom: 28px; }
.legacy-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 0; }
.legacy-note { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 28px; backdrop-filter: blur(8px); }
.note-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.note-title .icon { }
.legacy-note p { font-size: 0.82rem; opacity: 0.75; line-height: 1.6; margin-bottom: 0; }

/* ── Grant Process ── */
.process { background: var(--cream); }
.process-steps { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { text-align: center; padding: 0 24px; position: relative; }
.process-step::before { content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: var(--gold); z-index: 0; }
.process-step:first-child::before { left: 50%; }
.process-step:last-child::before { right: 50%; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--white); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 1; }
.process-step h3 { color: var(--green-deep); margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Footer ── */
.site-footer { background: var(--black); color: var(--white); padding: 60px 40px 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-family: var(--serif); font-size: 2.5rem; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.footer-name { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--white); }
.footer-location { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.footer-center { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.7); }
.footer-contact { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.footer-copyright { max-width: 1280px; margin: 0 auto; padding: 16px 0; display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-501 { color: rgba(255,255,255,0.25); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--green-deep); color: var(--white);
  padding: 140px 40px 60px;
}
.page-hero h1 { color: var(--white); }

/* ── Content page ── */
.page-content { padding: 60px 40px; max-width: 800px; margin: 0 auto; }
.page-content h2 { color: var(--green-deep); margin: 40px 0 16px; }
.page-content p { color: var(--text-muted); margin-bottom: 16px; }

/* ── Language switcher ── */
.lang-switch { font-size: 0.75rem; margin-left: 12px; }
.lang-switch a { color: rgba(255,255,255,0.6); text-decoration: none; padding: 0 6px; letter-spacing: 0.05em; transition: color 0.2s; }
.lang-switch a:hover { color: var(--gold-light); }
.lang-switch-label {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 4px 8px !important;
  letter-spacing: 0.1em !important;
  font-weight: 600;
}


/* ── Responsive / Mobile ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .hero-card { max-width: 480px; }
  .mission-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .legacy-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr) !important; gap: 32px; }
  .process-step::before { display: none; }
  .footer-inner { grid-template-columns: 1fr !important; text-align: center; gap: 24px; }
  .footer-contact { justify-content: center !important; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { text-align: center; width: 100%; }
  .card-grid .card { max-width: 100%; }
  .process-steps { grid-template-columns: 1fr !important; gap: 24px; }
  .hero--centered h1 { font-size: 34px; }
  .hero--centered .tagline { font-size: 18px; }
  .section-title--centered { font-size: 26px; }
  .site-header { padding: 0 20px; }
  .nav-menu {
    /* Slide-down panel */
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-deep);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav-menu.is-open {
    max-height: calc(100vh - 72px);
    visibility: visible;
  }
  .nav-menu a:not(.btn-donate-mobile) {
    display: block;
    padding: 14px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu a:last-child { border-bottom: 0; }
  .btn-donate-mobile {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 14px 22px;
    background: var(--gold);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  .lang-switch-mobile { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .lang-switch-mobile a { display: block; padding: 8px 0; }
  .btn-donate-desktop { display: none; }
  .lang-switch-desktop { display: none; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr !important; padding-bottom: 32px; }
  .footer-copyright { flex-direction: column; gap: 4px; text-align: center; }
  .page-hero { padding: 120px 20px 40px; }
  .page-content { padding: 40px 20px; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .logo-text { display: none; }
  .logo-monogram { width: 28px; height: 28px; }
  .hero h1 { font-size: 1.8rem; }
  .btn-primary, .btn-outline { font-size: 0.8rem; padding: 12px 20px; }
  .legacy-ctas { flex-direction: column; }
  .legacy-ctas a { text-align: center; }
  .section-label { font-size: 0.7rem; }
}

/* ── Preview banner ── */
.preview-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 110;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.preview-banner-inner { display: inline-flex; align-items: center; gap: 12px; }
.preview-banner-tag {
  background: var(--green-dark);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
/* When banner is visible, push the fixed header and the hero down */
.has-preview-banner .site-header { top: 38px; }
.has-preview-banner .hero { padding-top: 158px; }
.has-preview-banner .page-hero { padding-top: 178px; }
@media (max-width: 768px) {
  .preview-banner { font-size: 0.72rem; padding: 6px 14px; }
  .preview-banner-tag { font-size: 0.6rem; }
  .has-preview-banner .site-header { top: 34px; }
  .has-preview-banner .hero { padding-top: 134px; }
  .has-preview-banner .page-hero { padding-top: 154px; }
}
