/* ============================================
   SLV Foundation for Education
   Colors: Forest green + gold/amber
   Fonts: Lora (headings) + Source Sans 3 (body)
   ============================================ */

:root {
  --green-dark:   #1a4a2e;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --gold:         #d4a017;
  --gold-dark:    #a67c00;
  --gold-light:   #fce8a0;
  --cream:        #faf8f2;
  --white:        #ffffff;
  --text-dark:    #1c1c1c;
  --text-mid:     #3d3d3d;
  --text-muted:   #6b6b6b;
  --border:       #ddd8cc;
  --shadow:       0 2px 12px rgba(26,74,46,0.10);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  color: var(--green-dark);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1rem;    font-weight: 600; margin-bottom: 0.5rem; }

p  { margin-bottom: 1rem; color: var(--text-mid); }
a  { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--gold-dark); text-decoration: underline; }

ul, ol { margin: 0 0 1rem 1.5rem; color: var(--text-mid); }
li { margin-bottom: 0.4rem; }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- Donate Button ---- */

.donate-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark) !important;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.1s;
  border: 2px solid var(--gold-dark);
}
.donate-btn:hover {
  background: var(--gold-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ---- Header ---- */

.site-header {
  background: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
}

.site-logo {
  height: 52px;
  width: auto;
}

.site-title-block {
  display: flex;
  flex-direction: column;
}

.site-title-main {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-title-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--green-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Nav ---- */

.site-nav {
  background: var(--green-mid);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-link {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.6rem 1rem;
  text-decoration: none !important;
  transition: color 0.15s, background 0.15s;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.05);
  border-bottom-color: var(--gold);
}

/* ---- Hero (home) ---- */

.home-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.home-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.home-hero .tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
}

.home-hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.home-hero .hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white) !important;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---- Mission Strip ---- */

.mission-strip {
  background: var(--gold-light);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.mission-strip-inner {
  max-width: 800px;
  margin: 0 auto;
}

.mission-strip .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.mission-strip p {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-dark);
  margin: 0;
}

/* ---- Pillars section ---- */

.pillars {
  padding: 4rem 1.5rem;
  background: var(--cream);
}

.pillars-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pillars h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-mid);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.pillar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---- Join Us / CTA ---- */

.cta-section {
  background: var(--green-dark);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---- Page hero (inner pages) ---- */

.page-hero {
  background: var(--green-dark);
  padding: 3rem 1.5rem;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-subtitle, .post-date {
  color: var(--green-light);
  font-size: 1.05rem;
  margin: 0;
}

/* ---- Page content ---- */

.page-content {
  padding: 3rem 1.5rem;
}

.content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.content-inner h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-inner h3 { margin-top: 1.5rem; }

/* ---- News listing ---- */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.news-item:first-child { padding-top: 0; }

.news-item .news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.news-item h3 { margin-bottom: 0.4rem; }
.news-item h3 a { color: var(--green-dark); }
.news-item h3 a:hover { color: var(--gold-dark); }
.news-item p { margin: 0; font-size: 0.95rem; }

/* ---- Donate page ---- */

.donate-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.donate-box h2 {
  margin-bottom: 0.75rem;
}

.donate-box .donate-btn {
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  margin-top: 1rem;
}

.paypal-placeholder {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo-block {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo { height: 44px; width: auto; }

.site-footer h4 {
  color: var(--gold-light);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.site-footer strong {
  color: var(--white);
  font-family: 'Lora', serif;
}

.site-footer a {
  color: var(--green-light);
}

.site-footer a:hover {
  color: var(--gold-light);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

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

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .header-donate { width: 100%; text-align: center; }
  .site-title-main { font-size: 1rem; }
  .home-hero { padding: 3rem 1rem; }
  .pillars, .cta-section { padding: 2.5rem 1rem; }
  .page-content { padding: 2rem 1rem; }
}
