/* ============================================
   SMART CITIZENS CHARITABLE FOUNDATION — MAIN CSS
   ============================================ */

/* === CONTAINER === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.full-width { width: 100%; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1280px; margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--green-dark); }
.site-logo img { max-width: 48px; height: 48px; object-fit: contain; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--charcoal); }
.main-nav a:hover { color: var(--green); }
.header-cta {
  background: var(--green); color: var(--white); padding: 10px 22px;
  border-radius: 30px; font-weight: 700; transition: background .2s;
}
.header-cta:hover { background: var(--green-dark); color: var(--white); }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--mint), var(--cream));
  padding: 80px 0; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { color: var(--green-dark); margin-bottom: 20px; }
.hero p { font-size: 18px; color: var(--warm-gray); margin-bottom: 28px; max-width: 520px; }
.btn-primary {
  display: inline-block; background: var(--green); color: var(--white);
  padding: 14px 32px; border-radius: 30px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(47,125,79,0.3); transition: transform .2s, background .2s;
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--green-dark);
  border: 2px solid var(--green); padding: 12px 28px; border-radius: 30px; font-weight: 700; margin-left: 12px;
}
.btn-secondary:hover { background: var(--mint); }
.hero-img-wrap { display: flex; justify-content: center; }
.hero-img-wrap img { max-width: 420px; width: 100%; height: 300px; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

/* === STATS === */
.stats-bar { background: var(--green-dark); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--gold-light); font-family: 'Playfair Display', serif; }
.stat-label { color: var(--white); font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* === SECTION === */
.section { padding: 80px 0; }
.section-cream { background: var(--cream-dark); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-tag { color: var(--green); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1.5px; }
.section-head h2 { margin: 12px 0 16px; }
.section-head p { color: var(--warm-gray); }

/* === CARDS GRID === */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scf-card {
  background: var(--white); border-radius: 14px; padding: 0 0 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); overflow: hidden; transition: transform .2s;
}
.scf-card:hover { transform: translateY(-6px); }
.scf-card-body { padding: 20px 22px 0; }
.scf-card h3 { margin-bottom: 10px; }
.scf-card p { color: var(--warm-gray); font-size: 15px; }
.scf-icon-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--mint);
  display: flex; align-items: center; justify-content: center; margin: 20px 22px 0;
  color: var(--green); font-size: 24px; font-weight: 800;
}

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--white); border-radius: 14px; padding: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06); border-left: 4px solid var(--gold);
}
.testimonial-card p { font-style: italic; color: var(--charcoal); margin-bottom: 16px; }
.testimonial-name { font-weight: 700; color: var(--green-dark); }

/* === PARTNERS === */
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: center; }
.partner-logo { background: var(--white); border-radius: 10px; padding: 14px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-weight: 700; color: var(--warm-gray); font-size: 13px; }

/* === CONTACT FORM === */
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--cream-dark);
  border-radius: 10px; margin-bottom: 16px; font-family: inherit; font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form button {
  background: var(--green); color: var(--white); padding: 14px 32px;
  border: none; border-radius: 30px; font-weight: 700; font-size: 16px;
}
.contact-form button:hover { background: var(--green-dark); }

/* === FOOTER === */
.site-footer { background: var(--green-dark); color: var(--white); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-grid h4 { color: var(--gold-light); margin-bottom: 16px; font-size: 16px; }
.footer-grid a { color: rgba(255,255,255,0.8); display: block; margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.6); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}

/* ── MOBILE NAV ─────────────────────────────────── */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: .3s; }
@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  .header-cta { display: none; }
  #scf-main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  #scf-main-nav.open { max-height: 400px; }
  #scf-main-nav ul { flex-direction: column; gap: 0; }
  #scf-main-nav a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--cream-dark); }
  .site-header { position: relative; }
}

/* ── SCROLLED HEADER ────────────────────────────── */
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* ── BREADCRUMBS ────────────────────────────────── */
.scf-breadcrumbs { font-size: 13px; color: var(--warm-gray); padding: 12px 0 0; }
.scf-breadcrumbs a { color: var(--green); }
.scf-breadcrumbs a:hover { text-decoration: underline; }

/* ── BACK TO TOP ────────────────────────────────── */
#scf-back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 888;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff; border: none;
  font-size: 22px; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
#scf-back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scf-back-top:hover { background: var(--green-dark); }

/* ── LIGHTBOX ───────────────────────────────────── */
.scf-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.scf-lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.scf-lightbox-inner img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.scf-lightbox-close {
  position: absolute; top: -16px; right: -16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: none; font-size: 20px; cursor: pointer; color: var(--charcoal);
}
body.lightbox-open { overflow: hidden; }

/* ── CONTACT FORM STATUS ────────────────────────── */
#scf-form-status.success { color: var(--green); font-weight: 600; }
#scf-form-status.error   { color: var(--terracotta); font-weight: 600; }

/* ── SOCIAL LINKS ───────────────────────────────── */
.scf-social { display: flex; gap: 12px; margin-top: 14px; }
.scf-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background .2s;
}
.scf-social a:hover { background: var(--gold); color: var(--green-dark); }

/* ── WIDGET ─────────────────────────────────────── */
.widget-title { font-size: 16px; margin-bottom: 12px; color: var(--green-dark); }

/* ── FORM EXTRAS ────────────────────────────────── */
.contact-form select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--cream-dark);
  border-radius: 10px; margin-bottom: 14px; font-family: inherit; font-size: 14px; background: #fff;
}
.contact-form select:focus { outline: none; border-color: var(--green); }

/* ── GALLERY CURSOR ─────────────────────────────── */
.gallery-item img { cursor: zoom-in; }

/* ── PAGINATION ─────────────────────────────────── */
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--cream-dark); font-weight: 600; color: var(--charcoal); }
.page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
