/* FijiLIFE Foundation Portal — Styles */

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

:root {
  --fiji-blue:   #0077B6;
  --fiji-teal:   #00B4D8;
  --fiji-ocean:  #023E8A;
  --fiji-sand:   #F8F4E8;
  --fiji-green:  #2D6A4F;
  --text:        #1a1a2e;
  --text-light:  #555577;
  --white:       #ffffff;
  --border:      #e0e0f0;
  --radius:      12px;
  --shadow:      0 2px 16px rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--fiji-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--fiji-ocean); }
.logo-icon { font-size: 1.4rem; }
nav { display: flex; gap: 28px; }
nav a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--fiji-blue); text-decoration: none; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--fiji-ocean) 0%, var(--fiji-blue) 50%, var(--fiji-teal) 100%);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; opacity: 0.88; max-width: 600px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary { background: var(--white); color: var(--fiji-ocean); }
.btn-primary:hover { background: var(--fiji-sand); text-decoration: none; }
.btn-outline { border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); text-decoration: none; }
.btn-blue { background: var(--fiji-blue); color: var(--white); }
.btn-blue:hover { background: var(--fiji-ocean); text-decoration: none; }

/* ── SECTIONS ── */
section { padding: 80px 0; }
section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--text-light); margin-bottom: 40px; font-size: 1.05rem; }

/* ── IMPACT STATS ── */
.section-impact { background: var(--fiji-sand); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--fiji-blue);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card.loading { opacity: 0.5; }
.stat-num { font-size: 2.8rem; font-weight: 700; color: var(--fiji-blue); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.9rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── GRASS ROOTS ── */
.section-grassroots { background: var(--white); }
.project-header { margin-bottom: 40px; }
.project-tag {
  display: inline-block;
  background: #E8F5E9;
  color: var(--fiji-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-header p { color: var(--text-light); font-size: 1.05rem; max-width: 700px; margin-top: 12px; }

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.proj-stat {
  background: var(--fiji-sand);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.proj-stat span { display: block; font-size: 2rem; font-weight: 700; color: var(--fiji-ocean); }
.proj-stat label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.province-section { margin-bottom: 40px; }
.province-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.province-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.province-tag {
  background: #E3F2FD;
  color: var(--fiji-blue);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.activity-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity-loading { color: var(--text-light); font-style: italic; padding: 20px 0; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--fiji-sand);
  border-radius: 8px;
  font-size: 0.9rem;
}
.activity-school { font-weight: 600; flex: 1; }
.activity-province { color: var(--text-light); font-size: 0.85rem; }
.activity-kits { color: var(--fiji-blue); font-weight: 500; font-size: 0.85rem; }
.status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-approved    { background: #E8F5E9; color: #2E7D32; }
.status-dispatched  { background: #E3F2FD; color: #1565C0; }
.status-pending     { background: #FFF8E1; color: #E65100; }
.status-warm        { background: #F3E5F5; color: #6A1B9A; }
.status-default     { background: #ECEFF1; color: #546E7A; }

/* ── FUNDING ── */
.section-funding { background: var(--fiji-ocean); color: var(--white); }
.section-funding h2 { color: var(--white); }
.section-funding .section-sub { color: rgba(255,255,255,0.75); }
.funding-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.fund-stat {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
}
.fund-stat span { display: block; font-size: 2.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.fund-stat label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── ABOUT ── */
.section-about { background: var(--fiji-sand); }
.section-about p { color: var(--text-light); margin-bottom: 16px; max-width: 720px; font-size: 1.05rem; }
.contact-block { margin-top: 24px; font-size: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.8); }
footer .footer-update { margin-top: 6px; font-size: 0.8rem; opacity: 0.5; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { display: none; }
  .hero { padding: 60px 0; }
  section { padding: 56px 0; }
}
