/* =========================================================
   CESD — Change for Economy and Social Development
   Design tokens: deep indigo-navy, forest green, ochre gold,
   warm cream paper. Pattern motif pulled from the org's own
   habesha-inspired woven border (assets/img/border.png).
   ========================================================= */

:root {
  --navy: #14263F;
  --navy-dark: #0B1826;
  --forest: #1F5D3A;
  --forest-dark: #163F28;
  --gold: #C9962C;
  --gold-light: #E4B856;
  --cream: #F7F2E7;
  --cream-deep: #EFE6D2;
  --charcoal: #2A2521;
  --ink-soft: #524A42;
  --white: #FFFFFF;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow: 0 12px 30px -12px rgba(11, 24, 38, 0.35);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd8e3;
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #e9e2cf; }
.topbar a:hover { color: var(--gold-light); }
.topbar-contact .dot { margin: 0 8px; opacity: 0.5; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(20,38,63,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--display);
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}
.brand-short {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
}
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- decorative tibeb strip (signature element) ---------- */
.tibeb-strip {
  height: 16px;
  background-image: url('../assets/img/border.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  border-top: 2px solid var(--navy-dark);
  border-bottom: 2px solid var(--navy-dark);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,24,38,0.55) 0%, rgba(11,24,38,0.55) 35%, rgba(11,24,38,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 24px 56px;
  max-width: 760px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); }
.hero-lede {
  font-size: 1.1rem;
  color: #E9E2CF;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--forest); color: var(--white); }

/* ---------- generic section rhythm ---------- */
section { padding: 78px 0; }
.section-cream { background: var(--cream); }
.section-deep { background: var(--cream-deep); }
.section-navy { background: var(--navy); color: #E9E2CF; }
.section-navy h2 { color: var(--white); }
.section-navy p { color: #C7D0DC; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- intro / who we are ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.intro-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}

/* ---------- pillar cards (vision/mission) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 20px -14px rgba(20,38,63,0.3);
}
.pillar-card .icon-badge { margin-bottom: 16px; }
.pillar-card h3 { margin-bottom: 10px; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 1.3rem;
}

/* ---------- values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  padding: 16px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--forest);
}
.value-item .num {
  font-family: var(--display);
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  min-width: 28px;
}
.value-item strong { display: block; color: var(--navy); font-size: 0.98rem; }

/* ---------- who we serve ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  text-align: center;
}
.serve-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 12px;
  border: 1px solid rgba(20,38,63,0.08);
}
.serve-item .icon-badge {
  margin: 0 auto 12px;
  background: var(--cream-deep);
  color: var(--forest);
}
.serve-item span { font-weight: 600; font-size: 0.9rem; color: var(--navy); }

/* ---------- program areas ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  box-shadow: 0 8px 20px -14px rgba(20,38,63,0.3);
}
.program-card .program-num {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--cream-deep);
  position: absolute;
  top: 10px; right: 18px;
  font-weight: 600;
  -webkit-text-stroke: 1px rgba(20,38,63,0.15);
  z-index: 0;
}
.program-card h3 {
  position: relative; z-index: 1;
  color: var(--navy);
  padding-right: 40px;
}
.program-card ul {
  position: relative; z-index: 1;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.program-card li { margin-bottom: 4px; }
.program-card.theme { border-top: 3px solid var(--gold); }

/* ---------- why partner ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--white);
  background: var(--forest);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- quote / callout ---------- */
.callout {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  position: relative;
}
.callout p {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.callout::before {
  content: "“";
  font-family: var(--display);
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  top: 4px; left: 20px;
  line-height: 1;
}

/* ---------- stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat h3 { color: var(--gold-light); font-size: 2rem; margin-bottom: 4px; }
.stat span { color: #C7D0DC; font-size: 0.9rem; }

/* ---------- legal / registration badge ---------- */
.legal-box {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid rgba(20,38,63,0.1);
}
.legal-box .seal {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.7rem;
  padding: 4px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C7D0DC; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail .icon-badge { flex-shrink: 0; background: var(--cream-deep); color: var(--forest); }
.contact-detail h4 { margin-bottom: 4px; color: var(--navy); }
.contact-detail p { margin: 0; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20,38,63,0.2);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--charcoal);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--white);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
}
.alert-success { background: #E4F1E8; color: var(--forest-dark); border: 1px solid #b7d9c2; }
.alert-error { background: #FBEAEA; color: #8a2f2f; border: 1px solid #eec6c6; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
  border: 6px solid var(--white);
}

/* ---------- get involved page ---------- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.involve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: left;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 20px -14px rgba(20,38,63,0.3);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #C7D0DC;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-mark { height: 44px; margin-bottom: 14px; }
.footer-org { color: var(--white); font-family: var(--display); font-weight: 600; }
.footer-tagline { font-size: 0.88rem; color: #9AA8B8; }
.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: #C7D0DC;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #8493A5;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .involve-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 12px 24px 22px;
    border-bottom: 1px solid rgba(20,38,63,0.08);
    box-shadow: 0 12px 20px -14px rgba(20,38,63,0.3);
  }
  .site-nav.open { display: flex; }
  .form-two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Footer logo: light badge so the emblem stays visible on the dark footer */
.footer-mark { background: var(--cream); padding: 6px 10px; border-radius: 8px; height: 56px; width: auto; }

/* Home page hero logo */
.hero-logo {
  display: inline-block;
  background: var(--cream);
  padding: 14px 22px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.hero-logo img { display: block; height: 96px; width: auto; }
