/* =============================================================================
   IHF GLOBAL STYLESHEET  — v1.0
   Impact Hub Foundation  |  Best-practice, scalable design system
   Import order: ihf-global.css → page-specific overrides
============================================================================= */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ───────────────────────────────── */
:root {
  /* Brand colours */
  --green:        #1a6b4a;
  --green-light:  #2EC774;
  --green-mid:    #27AE60;
  --gold:         #F5A623;
  --gold-light:   #FCD34D;
  --charcoal:     #0d1b14;
  --charcoal-2:   #162b1e;
  --cream:        #f4f9f6;
  --cream-2:      #edf5f0;
  --text:         #1a2e22;
  --text-muted:   #4a6b57;
  --white:        #FFFFFF;
  --border:       rgba(26,107,74,0.12);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  /* Easings */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-sm:   0 4px 16px rgba(26,107,74,0.10);
  --shadow-md:   0 8px 40px rgba(26,107,74,0.18);
  --shadow-lg:   0 24px 80px rgba(26,107,74,0.22);
  --shadow-dark: 0 20px 60px rgba(13,27,20,0.30);
}

/* ── Resets & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.7; }
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ── Page Loader ─────────────────────────────────────────────────────────── */
#ihf-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--charcoal);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
#ihf-loader.out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring {
  position: absolute; width: 120px; height: 120px;
  border-radius: 50%; border: 2px solid transparent;
  border-top-color: var(--green-light); border-right-color: var(--gold);
  animation: ihf-spin 1.4s linear infinite;
}
.loader-ring-2 {
  width: 100px; height: 100px;
  border-top-color: var(--green); border-right-color: transparent;
  animation-duration: 1s; animation-direction: reverse;
}
.loader-logo-img {
  width: 72px; height: auto;
  filter: brightness(0) invert(1);
  position: relative; z-index: 1;
  animation: ihf-pulse 2s ease-in-out infinite;
}
.loader-org-name {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.loader-bar {
  width: 200px; height: 1.5px;
  background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--gold));
  animation: ihf-fill 1.9s var(--ease-out) forwards;
}

/* ── Scroll Reveal ───────────────────────────────────────────────────────── */
.sr      { opacity: 0; transform: translateY(48px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.sr-l    { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.sr-r    { opacity: 0; transform: translateX(60px);  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.sr.in, .sr-l.in, .sr-r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .10s } .d2 { transition-delay: .22s }
.d3 { transition-delay: .34s } .d4 { transition-delay: .46s }
.d5 { transition-delay: .58s } .d6 { transition-delay: .70s }

/* ── Layout Helpers ──────────────────────────────────────────────────────── */
.ihf-container   { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.ihf-pad         { padding: 110px 0; }
.ihf-pad-sm      { padding: 72px 0; }
.ihf-pad-xs      { padding: 48px 0; }

/* ── Eyebrow Label ───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 2px; }
.eyebrow--light { color: var(--green-light); }
.eyebrow--light::before { background: var(--green-light); }

/* ── Section Heading ─────────────────────────────────────────────────────── */
.sec-h {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px); font-weight: 900; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 20px;
}
.sec-h span { color: var(--green); }
.sec-h--light { color: var(--white); }
.sec-h--light span { color: var(--green-light); }
.sec-p { font-size: 16.5px; color: var(--text-muted); line-height: 1.8; max-width: 560px; }
.sec-p--light { color: rgba(255,255,255,0.70); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ihf-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; padding: 14px 32px; border-radius: 50px;
  transition: all 0.35s var(--ease-out); cursor: pointer; letter-spacing: 0.3px;
  border: none; font-family: var(--font-body);
}
.ihf-btn i, .ihf-btn svg { font-size: 13px; }
.ihf-btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white); box-shadow: 0 6px 28px rgba(26,107,74,0.45);
}
.ihf-btn-green:hover {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--white);
}
.ihf-btn-ghost {
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.38); backdrop-filter: blur(8px);
}
.ihf-btn-ghost:hover {
  background: rgba(255,255,255,0.20); border-color: var(--green-light);
  color: var(--green-light); transform: translateY(-3px);
}
.ihf-btn-outline {
  background: transparent; color: var(--green); border: 2px solid var(--green);
}
.ihf-btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ihf-btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal); box-shadow: 0 6px 28px rgba(245,166,35,0.40);
}
.ihf-btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(245,166,35,0.45); color: var(--charcoal); }
.ihf-btn-sm { padding: 10px 22px; font-size: 13px; }
.ihf-btn-lg { padding: 18px 44px; font-size: 16px; }

/* ── Hero / Promo Banner ─────────────────────────────────────────────────── */
.ihf-page-hero {
  position: relative; min-height: 460px;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--charcoal);
}
.ihf-page-hero .hero-bg { position: absolute; inset: 0; }
.ihf-page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(1.05); }
.ihf-page-hero .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,27,20,0.85) 0%, rgba(13,27,20,0.40) 60%, transparent 100%);
}
.ihf-page-hero .hero-content {
  position: relative; z-index: 2; padding: 80px 28px 72px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.ihf-page-hero .hero-breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 22px;
}
.ihf-page-hero .hero-breadcrumb::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--green-light), var(--gold)); border-radius: 2px; }
.ihf-page-hero h1 {
  font-family: var(--font-display); font-size: clamp(46px, 8vw, 88px); font-weight: 900;
  color: var(--white); line-height: 1.0; text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.ihf-page-hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--green-light), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ihf-hero-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-light), var(--gold)); }

/* ── Card Base ───────────────────────────────────────────────────────────── */
.ihf-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.ihf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.ihf-card-dark { background: var(--charcoal-2); border-color: rgba(46,199,116,0.10); }
.ihf-card-dark:hover { border-color: rgba(46,199,116,0.25); }

/* ── Form Fields ─────────────────────────────────────────────────────────── */
.ihf-field {
  width: 100%;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ihf-field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,74,0.12); }
.ihf-field::placeholder { color: rgba(26,107,74,0.35); }
.ihf-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.ihf-field-group { margin-bottom: 22px; }

/* ── Scroll-To-Top Button ────────────────────────────────────────────────── */
#ihf-go-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transition: all 0.35s var(--ease-out);
}
#ihf-go-top.show { opacity: 1; visibility: visible; }
#ihf-go-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ── Newsletter Band (reusable) ──────────────────────────────────────────── */
.ihf-nl {
  background: linear-gradient(135deg, var(--green) 0%, var(--charcoal-2) 55%, var(--charcoal) 100%);
  padding: 90px 0; position: relative; overflow: hidden;
}
.nl-glow { position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(46,199,116,0.18) 0%, transparent 70%); pointer-events: none; }
.nl-inner { max-width: 580px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.nl-inner .eyebrow { color: var(--green-light); justify-content: center; }
.nl-inner .eyebrow::before { background: var(--green-light); }
.nl-inner .sec-h { color: var(--white); font-size: 42px; }
.nl-inner .sec-h span { color: var(--gold-light); }
.nl-inner p { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 38px; }
.nl-form {
  display: flex; gap: 10px; background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 60px;
  padding: 8px 8px 8px 28px; backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nl-form:focus-within { border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(46,199,116,0.2); }
.nl-form input { flex: 1; background: none; border: none; outline: none; color: var(--white); font-family: var(--font-body); font-size: 15px; }
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form button { font-weight: 700; font-size: 14px; padding: 13px 30px; border-radius: 50px; background: linear-gradient(135deg, var(--green), var(--green-light)); color: var(--white); transition: all 0.35s var(--ease-out); white-space: nowrap; box-shadow: 0 4px 18px rgba(46,199,116,0.35); cursor: pointer; }
.nl-form button:hover { background: linear-gradient(135deg, var(--green-light), var(--gold)); transform: scale(1.04); }

/* ── Team Card ───────────────────────────────────────────────────────────── */
.ihf-member-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; text-align: center;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
}
.ihf-member-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.ihf-member-img { width: 100%; height: 260px; object-fit: cover; object-position: top; display: block; transition: transform 0.6s var(--ease-out); }
.ihf-member-card:hover .ihf-member-img { transform: scale(1.05); }
.ihf-member-body { padding: 24px 20px 28px; }
.ihf-member-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.ihf-member-pos  { font-size: 13px; font-weight: 500; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.ihf-member-links { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ihf-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; transition: all 0.3s;
}
.ihf-icon-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.ihf-divider { height: 1px; background: var(--border); margin: 0; border: none; }

/* ── Breadcrumb / Sub-nav ────────────────────────────────────────────────── */
.ihf-breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; flex-wrap: wrap; }
.ihf-breadcrumbs a { color: var(--green); transition: color 0.2s; }
.ihf-breadcrumbs a:hover { color: var(--green-light); }
.ihf-breadcrumbs span { opacity: 0.4; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.ihf-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 56px; }
.ihf-page-btn {
  width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-muted);
  transition: all 0.3s; background: var(--white);
}
.ihf-page-btn:hover, .ihf-page-btn.active { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }

/* ── Section BG variants ─────────────────────────────────────────────────── */
.bg-cream    { background: var(--cream); }
.bg-cream-2  { background: var(--cream-2); }
.bg-dark     { background: var(--charcoal); }
.bg-dark-2   { background: var(--charcoal-2); }
.bg-white    { background: var(--white); }

/* ── Info / Icon Item ────────────────────────────────────────────────────── */
.ihf-icon-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 32px 24px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; transition: all 0.4s var(--ease-out);
}
.ihf-icon-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.ihf-icon-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s;
}
.ihf-icon-item:hover .ihf-icon-circle { background: linear-gradient(135deg, var(--green), var(--green-light)); border-color: transparent; }
.ihf-icon-item:hover .ihf-icon-circle svg, .ihf-icon-item:hover .ihf-icon-circle i { filter: brightness(0) invert(1); }
.ihf-icon-item-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--charcoal); }
.ihf-icon-item-text  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Pill Badge ──────────────────────────────────────────────────────────── */
.ihf-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.ihf-pill-green { background: rgba(46,199,116,0.12); color: var(--green); }
.ihf-pill-gold  { background: rgba(245,166,35,0.12); color: var(--gold); }
.ihf-pill-dark  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

/* ── Keyframe Animations ─────────────────────────────────────────────────── */
@keyframes ihf-spin   { to { transform: rotate(360deg); } }
@keyframes ihf-fill   { from { width: 0; } to { width: 100%; } }
@keyframes ihf-pulse  { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes ihf-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ihf-marquee { to { transform: translateX(-50%); } }

/* ── Responsive Helpers ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ihf-pad    { padding: 80px 0; }
  .ihf-pad-sm { padding: 54px 0; }
}
@media (max-width: 768px) {
  .ihf-pad    { padding: 60px 0; }
  .ihf-pad-sm { padding: 40px 0; }
  .ihf-container { padding: 0 18px; }
  .ihf-page-hero h1 { font-size: 40px; }
  .ihf-page-hero { min-height: 340px; }
}
@media (max-width: 480px) {
  .ihf-btn { padding: 12px 22px; font-size: 13px; }
  .ihf-btn-lg { padding: 15px 28px; font-size: 14px; }
}