/* ═══════════════════════════════════════════════
   THE CHANGEMAKERS INITIATIVE
   Aesthetic: Warm Documentary — Earthy, Grounded, Human
   Palette: Ivory · Forest Green · Rust · Warm Tones
   Typography: DM Serif Display + DM Sans
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --ivory:       #f7f4ee;
  --ivory-dark:  #ede8de;
  --ivory-mid:   #f2ede4;
  --forest:      #1a3a2a;
  --forest-mid:  #264d38;
  --forest-light:#3a6b50;
  --forest-pale: #d0e4d9;
  --rust:        #b5451b;
  --rust-light:  #d4663d;
  --rust-pale:   #f5ddd5;
  --charcoal:    #1c1c1c;
  --mid:         #4a4a4a;
  --muted:       #888880;
  --rule:        #d8d2c8;
  --display: 'DM Serif Display', Georgia, serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --max: 1180px;
  --radius: 6px;
  --radius-lg: 14px;
  --ease: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem; }
.sec  { padding: 110px 0; }
.sec-sm { padding: 70px 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--rust);
}

.headline {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--forest);
}
.h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.body-text { font-size: 1rem; color: var(--mid); line-height: 1.8; }
.rule { border: none; border-top: 1px solid var(--rule); }

/* ── IMAGE HELPERS ── */
.img-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory-dark);
}
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-forest { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,58,42,0.22); }
.btn-rust { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(181,69,27,0.25); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--ivory); }
.btn-outline-ivory { background: transparent; color: var(--ivory); border-color: rgba(247,244,238,0.45); }
.btn-outline-ivory:hover { background: rgba(247,244,238,0.1); border-color: var(--ivory); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: 68px;
  display: flex; align-items: center;
  background: rgba(247,244,238,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: var(--ease);
}
.nav-inner {
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-main { font-family: var(--display); font-size: 1.15rem; font-weight: 400; color: var(--forest); }
.nav-logo-sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; color: var(--mid); transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px; background: var(--rust); transition: width 0.25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); transition: var(--ease); }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--ivory); border-bottom: 1px solid var(--rule);
  padding: 1.75rem 2.5rem; z-index: 99; flex-direction: column; gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--mid); border-bottom: 1px solid var(--rule); padding-bottom: 1rem; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--charcoal); }

/* ── FOOTER ── */
.footer { background: var(--forest); color: rgba(247,244,238,0.75); padding: 80px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 400; color: var(--ivory); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; color: rgba(247,244,238,0.55); margin-bottom: 1.5rem; max-width: 280px; }
.footer-col h5 { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,244,238,0.4); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(247,244,238,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--ivory); }
.footer-contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: rgba(247,244,238,0.6); margin-bottom: 0.75rem; line-height: 1.5; }
.footer-contact-line a { color: rgba(247,244,238,0.75); }
.footer-contact-line a:hover { color: var(--ivory); }
.footer-bottom { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(247,244,238,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(247,244,238,0.4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--ivory); }

/* ── SCROLL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── FORMS ── */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; background: var(--ivory);
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  font-family: var(--body); font-size: 0.95rem; color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest-light); box-shadow: 0 0 0 3px rgba(58,107,80,0.1); }
.field textarea { resize: vertical; min-height: 130px; }

/* ── TOAST / SUCCESS OVERLAY ── */
.form-toast {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,58,42,0.85); backdrop-filter: blur(8px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.form-toast.show { opacity: 1; pointer-events: auto; }
.form-toast-inner {
  background: var(--ivory); border-radius: 16px; padding: 3rem 3.5rem;
  text-align: center; max-width: 440px; width: 90%;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.form-toast.show .form-toast-inner { transform: translateY(0) scale(1); }
.form-toast-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--forest); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 1.25rem;
  animation: toast-pop 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes toast-pop { from { transform: scale(0); } to { transform: scale(1); } }
.form-toast h3 { font-family: var(--display); font-size: 1.6rem; color: var(--forest); margin-bottom: 0.5rem; }
.form-toast p { font-size: 0.92rem; color: var(--mid); line-height: 1.7; margin-bottom: 1.5rem; }

.counter { display: inline-block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-links, .nav .btn { display: none; }
  .hamburger { display: flex; }
  .sec { padding: 70px 0; }
  .wrap { padding: 0 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
