/* =========================================================
   EFO — Efforts Frontline Organization
   International NGO design system (production)
   Palette extracted from official EFO logo:
   red #E83030 · maroon #952225 · silver #A8A6A7 · charcoal #4F4B4A
   ========================================================= */

:root {
  /* Logo-derived brand */
  --efo-red: #E83030;
  --efo-maroon: #952225;
  --efo-maroon-deep: #58161A;
  --efo-maroon-mid: #B01E25;
  --efo-silver: #A8A6A7;
  --efo-charcoal: #4F4B4A;

  --efo-ink: #2B2724;
  --efo-ink-soft: #4F4B4A;
  /* Keep token names used across CSS; values = logo colors */
  --efo-teal: #952225;
  --efo-teal-deep: #58161A;
  --efo-teal-mid: #B01E25;
  --efo-leaf: #E83030;
  --efo-donate: #E83030;
  --efo-donate-hover: #B01E25;
  --efo-amber: #A8A6A7;
  --efo-mist: #F6F5F5;
  --efo-sand: #EAE8E8;
  --efo-line: #D6D4D4;
  --efo-paper: #ffffff;
  --efo-muted: #5C5958;
  --efo-radius: 4px;
  --efo-radius-lg: 12px;
  --efo-shadow: 0 12px 40px rgba(43, 39, 36, 0.12);
  --efo-shadow-sm: 0 4px 16px rgba(43, 39, 36, 0.08);
  --efo-max: 1180px;
  --efo-header-h: 76px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body.efo-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--efo-ink);
  background: var(--efo-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--efo-teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--efo-teal-deep); }
a:focus-visible,
button:focus-visible,
.efo-btn:focus-visible {
  outline: 3px solid var(--efo-amber);
  outline-offset: 3px;
}

.efo-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--efo-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}
.efo-skip:focus { left: 1rem; top: 1rem; }

.efo-wrap {
  width: min(100% - 2.5rem, var(--efo-max));
  margin-inline: auto;
}

.efo-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--efo-teal-mid);
  margin: 0 0 0.75rem;
}

.efo-h1, .efo-h2, .efo-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--efo-ink);
  margin: 0 0 1rem;
}
.efo-h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.efo-h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
.efo-h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.efo-lead {
  font-size: 1.15rem;
  color: var(--efo-ink-soft);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.efo-muted { color: var(--efo-muted); }

/* Buttons */
.efo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--efo-radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.efo-btn:hover { transform: translateY(-1px); }
.efo-btn--donate {
  background: var(--efo-donate);
  color: #fff !important;
  border-color: var(--efo-donate);
  box-shadow: 0 8px 20px rgba(232, 48, 48, 0.28);
}
.efo-btn--donate:hover { background: var(--efo-donate-hover); border-color: var(--efo-donate-hover); color: #fff !important; }
.efo-btn--primary {
  background: var(--efo-teal);
  color: #fff !important;
  border-color: var(--efo-teal);
}
.efo-btn--primary:hover { background: var(--efo-teal-deep); color: #fff !important; }
.efo-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.65);
}
.efo-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff !important; }
.efo-btn--outline {
  background: transparent;
  color: var(--efo-teal) !important;
  border-color: var(--efo-teal);
}
.efo-btn--outline:hover { background: var(--efo-teal); color: #fff !important; }
.efo-btn--light {
  background: #fff;
  color: var(--efo-teal-deep) !important;
  border-color: #fff;
}
.efo-btn--disabled,
.efo-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}
.efo-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.efo-alert {
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--efo-line);
}
.efo-alert--ok {
  background: #e8f6ef;
  border-color: #c6e8d6;
  color: #145a40;
}
.efo-alert--err {
  background: #fdeceb;
  border-color: #f3c1bc;
  color: #8f1f16;
}

/* Header */
.efo-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--efo-line);
  height: var(--efo-header-h);
  /* visible so desktop dropdowns can paint below the bar; mobile hides .efo-nav-desktop */
  overflow: visible;
}
.efo-header__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}
.efo-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--efo-ink) !important;
  flex-shrink: 0;
}
.efo-logo img { height: 44px; width: auto; }
.efo-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.efo-logo__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.efo-logo__text span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--efo-muted);
}

.efo-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.efo-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.efo-nav > ul > li { position: relative; }
.efo-nav > ul > li > a {
  display: block;
  padding: 0.65rem 0.7rem;
  color: var(--efo-ink-soft) !important;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.efo-nav > ul > li > a:hover,
.efo-nav > ul > li:hover > a,
.efo-nav > ul > li.is-active > a {
  color: var(--efo-teal) !important;
}
.efo-nav .efo-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  box-shadow: var(--efo-shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s var(--ease);
  list-style: none;
  margin: 0;
  z-index: 1200;
}
.efo-nav > ul > li:hover > .efo-dropdown,
.efo-nav > ul > li:focus-within > .efo-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.efo-dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  color: var(--efo-ink-soft) !important;
  font-size: 0.9rem;
}
.efo-dropdown a:hover { background: var(--efo-mist); color: var(--efo-teal) !important; }

.efo-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.efo-header .efo-btn--donate {
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}
.efo-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--efo-line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.efo-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--efo-ink);
}

/* Mobile drawer — always hidden on desktop (must stay outside media query) */
.efo-nav-mobile {
  display: none !important;
  list-style: none;
}
.efo-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hero */
.efo-hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.efo-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.efo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.efo-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(43, 39, 36, 0.88) 0%, rgba(43, 39, 36, 0.55) 48%, rgba(43, 39, 36, 0.25) 100%),
    linear-gradient(to top, rgba(43, 39, 36, 0.55), transparent 45%);
}
.efo-hero__content {
  width: min(100% - 2.5rem, var(--efo-max));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - var(--efo-max)) / 2));
}
.efo-hero .efo-eyebrow { color: var(--efo-amber); }
.efo-hero .efo-h1 { color: #fff; margin-bottom: 1rem; }
.efo-hero .efo-lead { color: rgba(255,255,255,0.9); }

.efo-page-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.efo-page-hero__media,
.efo-page-hero__shade {
  position: absolute;
  inset: 0;
}
.efo-page-hero__media { z-index: -2; }
.efo-page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.efo-page-hero__shade {
  z-index: -1;
  background: linear-gradient(105deg, rgba(43, 39, 36, 0.85), rgba(88, 22, 26, 0.4));
}
.efo-page-hero__content {
  width: min(100% - 2.5rem, var(--efo-max));
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
}
.efo-page-hero .efo-h1 { color: #fff; }

/* Sections */
.efo-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.efo-section--mist { background: var(--efo-mist); }
.efo-section--teal {
  background: linear-gradient(135deg, var(--efo-teal-deep), var(--efo-teal));
  color: #fff;
}
.efo-section--teal .efo-h2,
.efo-section--teal .efo-h3,
.efo-section--teal .efo-eyebrow { color: #fff; }
.efo-section--teal .efo-lead,
.efo-section--teal p { color: rgba(255,255,255,0.9); }
.efo-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.efo-section__head .efo-lead { margin-bottom: 0; }
.efo-section__head--center {
  justify-content: center;
  text-align: center;
  align-items: center;
  margin-bottom: 2.75rem;
}
.efo-section__head--center .efo-lead {
  max-width: 36rem;
  margin-inline: auto;
}

/* Appeal strip */
.efo-appeal {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  overflow: hidden;
  box-shadow: var(--efo-shadow-sm);
}
.efo-appeal__media { min-height: 280px; }
.efo-appeal__media img { width: 100%; height: 100%; object-fit: cover; }
.efo-appeal__body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.efo-progress {
  margin: 1.25rem 0 1.5rem;
}
.efo-progress__bar {
  height: 8px;
  background: var(--efo-sand);
  border-radius: 999px;
  overflow: hidden;
}
.efo-progress__bar > span {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--efo-teal), var(--efo-leaf));
}
.efo-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--efo-muted);
  margin-top: 0.5rem;
}

/* Cards */
.efo-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.efo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.efo-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.efo-card {
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.efo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--efo-shadow);
}
.efo-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--efo-sand);
}
.efo-card__media--wide { aspect-ratio: 16 / 9; }
.efo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.efo-card:hover .efo-card__media img { transform: scale(1.04); }
.efo-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.efo-card__body h3 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 550; }
.efo-card__body p { margin: 0 0 1rem; color: var(--efo-muted); flex: 1; }
.efo-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--efo-teal) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.efo-card__link::after { content: "→"; transition: transform 0.2s; }
.efo-card:hover .efo-card__link::after { transform: translateX(3px); }

/* Split */
.efo-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.efo-split--reverse { direction: rtl; }
.efo-split--reverse > * { direction: ltr; }
.efo-split > * { min-width: 0; }
.efo-split__media {
  border-radius: var(--efo-radius-lg);
  overflow: hidden;
  box-shadow: var(--efo-shadow-sm);
  aspect-ratio: 16 / 9;
  background: var(--efo-sand);
}
.efo-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Impact */
.efo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.efo-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--efo-radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.efo-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 550;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.efo-stat__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.efo-stats--light .efo-stat {
  background: #fff;
  border-color: var(--efo-line);
}
.efo-stats--light .efo-stat__num { color: var(--efo-teal); }
.efo-stats--light .efo-stat__label { color: var(--efo-muted); }

.efo-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.efo-outcome {
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  overflow: hidden;
}
.efo-outcome__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--efo-mist, #f3f1ec);
}
.efo-outcome__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.efo-outcome__body {
  padding: 1rem 1.1rem 1.2rem;
}
.efo-outcome__result {
  margin: 0.35rem 0 0;
  color: var(--efo-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Quote / story */
.efo-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--efo-ink);
  margin: 0 0 1rem;
  border-left: 3px solid var(--efo-amber);
  padding-left: 1.25rem;
}

/* Trust strip */
.efo-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.efo-trust__item {
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  padding: 1.35rem;
}
.efo-trust__item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}
.efo-trust__item p { margin: 0; font-size: 0.92rem; color: var(--efo-muted); }

/* CTA band */
.efo-cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}
.efo-cta-band__media,
.efo-cta-band__shade { position: absolute; inset: 0; }
.efo-cta-band__media { z-index: -2; }
.efo-cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.efo-cta-band__shade {
  z-index: -1;
  background: linear-gradient(120deg, rgba(88, 22, 26, 0.92), rgba(232, 48, 48, 0.78));
}
.efo-cta-band .efo-h2 { color: #fff; max-width: 28ch; margin-inline: auto; }
.efo-cta-band .efo-lead { margin-inline: auto; color: rgba(255,255,255,0.92); }

/* Forms */
.efo-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.efo-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.efo-form input,
.efo-form select,
.efo-form textarea {
  width: 100%;
  border: 1px solid var(--efo-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--efo-ink);
}
.efo-form input:focus,
.efo-form select:focus,
.efo-form textarea:focus {
  outline: 2px solid var(--efo-teal-mid);
  border-color: var(--efo-teal-mid);
}
.efo-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.efo-amount {
  border: 1px solid var(--efo-line);
  background: #fff;
  border-radius: 8px;
  padding: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.efo-amount.is-active,
.efo-amount:hover {
  border-color: var(--efo-teal);
  color: var(--efo-teal);
  background: rgba(149, 34, 37, 0.08);
}

/* Values / list */
.efo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.efo-chip {
  background: var(--efo-mist);
  border: 1px solid var(--efo-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  color: var(--efo-ink-soft);
}

.efo-doc-list {
  display: grid;
  gap: 0.75rem;
}
.efo-doc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--efo-line);
  border-radius: 10px;
  background: #fff;
}

/* Footer */
.efo-footer {
  background: var(--efo-ink);
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 0;
}
.efo-footer a { color: rgba(255,255,255,0.82) !important; }
.efo-footer a:hover { color: #fff !important; }
.efo-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.efo-footer__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.15rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.efo-footer__brand-logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: none;
}
.efo-footer__brand p { margin: 0 0 1rem; max-width: 28ch; }
.efo-footer h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.efo-footer ul { list-style: none; margin: 0; padding: 0; }
.efo-footer li { margin-bottom: 0.55rem; }
.efo-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.efo-footer__copy {
  padding: 1.25rem 0 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* Water projects page extras */
.efo-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.efo-search-bar input {
  flex: 1;
  border: 1px solid var(--efo-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
}
#pagination { margin-top: 1.5rem; }
#pagination a {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--efo-line);
  border-radius: 6px;
  color: var(--efo-ink) !important;
}
#pagination a:hover { background: var(--efo-mist); }
#portfolio .portfolio-item,
#project-container .portfolio-item {
  display: inline-block;
  width: calc(50% - 1rem);
  vertical-align: top;
  margin: 0.5rem;
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: 12px;
  overflow: hidden;
}
#project-container .portfolio-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
#project-container .portfolio-desc { padding: 1rem 1.1rem 1.25rem; }
#project-container .portfolio-desc h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.15rem; }
#project-container .portfolio-desc span { display: block; color: var(--efo-muted); font-size: 0.92rem; }

/* Events archive */
.efo-events {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}
.efo-event {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
  padding: 0;
}
.efo-event--flip .efo-event__media { order: 2; }
.efo-event--flip .efo-event__body { order: 1; }
.efo-event__media {
  border-radius: var(--efo-radius-lg);
  overflow: hidden;
  box-shadow: var(--efo-shadow-sm);
  background: var(--efo-sand);
  aspect-ratio: 4 / 3;
}
.efo-event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.efo-event:hover .efo-event__media img { transform: scale(1.03); }
.efo-event__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--efo-maroon);
  margin-bottom: 0.65rem;
}
.efo-event__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.55rem;
}
.efo-event__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--efo-maroon-deep);
  background: var(--efo-mist);
  border: 1px solid var(--efo-line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.efo-event__title {
  /* Outfit — Fraunces decorative & looks like @ */
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--efo-ink);
  font-variant-ligatures: none;
}
.efo-event__title a {
  color: inherit !important;
}
.efo-event__title a:hover {
  color: var(--efo-maroon) !important;
}
.efo-event__media a {
  display: block;
  height: 100%;
}
.efo-event__desc {
  margin: 0;
  color: var(--efo-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.efo-events-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: end;
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  box-shadow: var(--efo-shadow-sm);
}
.efo-events-toolbar__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: stretch;
  min-width: 0;
}
.efo-events-toolbar__search input[type="search"] {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--efo-line);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--efo-ink);
  background: var(--efo-mist);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.efo-events-toolbar__search input[type="search"]:focus {
  background: #fff;
  border-color: var(--efo-maroon);
  box-shadow: 0 0 0 3px rgba(149, 34, 37, 0.12);
}
.efo-events-toolbar__search .efo-btn {
  min-height: 3rem;
  padding-inline: 1.25rem;
  border-radius: 10px;
  white-space: nowrap;
}
.efo-events-toolbar__sort {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 200px;
}
.efo-events-toolbar__sort label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--efo-muted);
}
.efo-events-toolbar__sort-wrap {
  position: relative;
}
.efo-events-toolbar__sort-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--efo-maroon);
  border-bottom: 2px solid var(--efo-maroon);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.efo-events-toolbar__sort select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--efo-line);
  border-radius: 10px;
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--efo-ink);
  background: var(--efo-mist);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.efo-events-toolbar__sort select:hover,
.efo-events-toolbar__sort select:focus {
  background: #fff;
  border-color: var(--efo-maroon);
  box-shadow: 0 0 0 3px rgba(149, 34, 37, 0.12);
}
@media (max-width: 720px) {
  .efo-events-toolbar {
    grid-template-columns: 1fr;
  }
  .efo-events-toolbar__sort { min-width: 0; width: 100%; }
}
.efo-events-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.efo-events-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--efo-line);
  background: #fff;
  color: var(--efo-ink-soft) !important;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.efo-events-filter__label {
  display: inline;
}
.efo-events-filter__count,
.efo-events-filter span:not(.efo-events-filter__label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--efo-muted);
  background: var(--efo-mist);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.efo-events-filter.is-active,
.efo-events-filter:hover {
  border-color: var(--efo-maroon);
  color: var(--efo-maroon) !important;
  background: #fff;
}
.efo-events-filter.is-active {
  background: var(--efo-maroon);
  color: #fff !important;
  transform: translateY(-1px);
}
.efo-events-filter.is-active .efo-events-filter__count,
.efo-events-filter.is-active span:not(.efo-events-filter__label) {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.efo-events-meta {
  margin: 0 0 1.75rem;
  color: var(--efo-muted);
  font-size: 0.95rem;
}
.efo-events-results {
  position: relative;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), filter 0.28s var(--ease);
}
.efo-events-results.is-loading {
  opacity: 0.35;
  filter: saturate(0.85);
  pointer-events: none;
}
.efo-events-results.is-swapping {
  opacity: 0;
  transform: translateY(12px);
}
.efo-events-results.is-ready {
  animation: efoEventsIn 0.45s var(--ease) both;
}
@keyframes efoEventsIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
[data-efo-events-archive].is-filtering .efo-events-filter {
  pointer-events: none;
}

/* Events detail — big image one side, details other (zig-zag) */
.efo-timeline {
  --timeline-gap: clamp(2.5rem, 5vw, 4rem);
  --timeline-node: 3.5rem;
  position: relative;
  max-width: 1180px;
  margin: 0.5rem auto 0;
  padding: 1.25rem 0 2rem;
}
.efo-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--efo-line);
  transform: translateX(-50%);
}
.efo-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--timeline-node) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  padding-bottom: var(--timeline-gap);
}
.efo-timeline__item:last-child {
  padding-bottom: 0;
}
.efo-timeline__node {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  z-index: 2;
  width: var(--timeline-node);
  height: var(--timeline-node);
  border-radius: 50%;
  background: var(--efo-red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px var(--efo-paper), 0 8px 20px rgba(232, 48, 48, 0.28);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.efo-timeline__node--dot {
  width: 0.75rem;
  height: 0.75rem;
  box-shadow: 0 0 0 5px var(--efo-paper);
}
.efo-timeline__item--left .efo-timeline__media { grid-column: 1; grid-row: 1; }
.efo-timeline__item--left .efo-timeline__card { grid-column: 3; grid-row: 1; }
.efo-timeline__item--right .efo-timeline__card { grid-column: 1; grid-row: 1; }
.efo-timeline__item--right .efo-timeline__media { grid-column: 3; grid-row: 1; }
.efo-timeline__media {
  overflow: hidden;
  background: var(--efo-sand);
  min-height: 340px;
  border-radius: var(--efo-radius-lg);
  box-shadow: var(--efo-shadow-sm);
}
.efo-timeline__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease);
}
.efo-timeline__item:hover .efo-timeline__media img {
  transform: scale(1.03);
}
.efo-timeline__card {
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  box-shadow: var(--efo-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.efo-timeline__item:hover .efo-timeline__card {
  box-shadow: var(--efo-shadow);
  transform: translateY(-2px);
}
.efo-timeline__card .efo-event__title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-bottom: 0.8rem;
}
.efo-timeline__card .efo-event__desc {
  font-size: 1.03rem;
  line-height: 1.72;
}
@media (max-width: 900px) {
  .efo-timeline::before {
    left: 1.15rem;
    transform: none;
  }
  .efo-timeline__item {
    grid-template-columns: var(--timeline-node) minmax(0, 1fr);
    gap: 0.9rem 1rem;
    padding-left: 0;
  }
  .efo-timeline__node {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 1.1rem;
  }
  .efo-timeline__item--left .efo-timeline__media,
  .efo-timeline__item--right .efo-timeline__media,
  .efo-timeline__item--left .efo-timeline__card,
  .efo-timeline__item--right .efo-timeline__card {
    grid-column: 2;
  }
  .efo-timeline__item--left .efo-timeline__media,
  .efo-timeline__item--right .efo-timeline__media {
    grid-row: 1;
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
  .efo-timeline__item--left .efo-timeline__card,
  .efo-timeline__item--right .efo-timeline__card {
    grid-row: 2;
  }
}

/* Events preview on Stories */
.efo-events-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.efo-events-preview__card {
  background: #fff;
  border: 1px solid var(--efo-line);
  border-radius: var(--efo-radius-lg);
  overflow: hidden;
  box-shadow: var(--efo-shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.efo-events-preview__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--efo-shadow);
}
.efo-events-preview__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--efo-sand);
}
.efo-events-preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.efo-events-preview__card:hover .efo-events-preview__media img {
  transform: scale(1.04);
}
.efo-events-preview__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.efo-events-preview__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  font-variant-ligatures: none;
}
.efo-events-preview__title a {
  color: var(--efo-ink) !important;
}
.efo-events-preview__title a:hover {
  color: var(--efo-maroon) !important;
}
.efo-events-preview__body p {
  margin: 0;
  color: var(--efo-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
@media (max-width: 980px) {
  .efo-events-preview { grid-template-columns: 1fr; }
}
.efo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .efo-event,
  .efo-event--flip {
    grid-template-columns: 1fr;
  }
  .efo-event--flip .efo-event__media,
  .efo-event--flip .efo-event__body { order: initial; }
  .efo-event__media { aspect-ratio: 16 / 10; }
}

/* Reveal motion */
.efo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.efo-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .efo-appeal,
  .efo-split,
  .efo-split--reverse,
  .efo-footer__grid { grid-template-columns: 1fr; direction: ltr; }
  .efo-grid-3,
  .efo-grid-6,
  .efo-stats,
  .efo-outcome-grid,
  .efo-trust { grid-template-columns: repeat(2, 1fr); }

  /* Kill desktop nav completely — was leaking "Who We Are" under the header */
  nav.efo-nav.efo-nav-desktop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .efo-menu-toggle { display: inline-flex; }

  .efo-nav-mobile {
    display: none !important;
    position: fixed;
    top: var(--efo-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 1.25rem 1.25rem 2rem;
    overflow: auto;
    z-index: 1100;
    border-top: 1px solid var(--efo-line);
    box-shadow: var(--efo-shadow);
    -webkit-overflow-scrolling: touch;
  }
  .efo-nav-mobile.is-open {
    display: block !important;
  }
  .efo-nav-mobile a {
    display: block;
    padding: 0.95rem 0.35rem;
    border-bottom: 1px solid var(--efo-line);
    color: var(--efo-ink) !important;
    font-weight: 500;
    font-size: 1rem;
  }
  .efo-nav-mobile .efo-sub { padding-left: 0.85rem; }
  .efo-nav-mobile .efo-sub a { font-weight: 400; color: var(--efo-muted) !important; font-size: 0.95rem; }

  .efo-hero {
    min-height: clamp(420px, 70vh, 620px);
  }
  .efo-hero__content {
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 0 2.75rem;
    max-width: none;
    width: min(100% - 2rem, var(--efo-max));
  }
  .efo-hero .efo-h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .efo-page-hero { min-height: 280px; }
  .efo-page-hero__content { padding: 2.5rem 0 2rem; }

  #project-container .portfolio-item { width: calc(100% - 1rem); }
}

@media (max-width: 640px) {
  .efo-logo__text { display: none; }
  .efo-logo img { height: 40px; }
  .efo-grid-2,
  .efo-grid-3,
  .efo-grid-6,
  .efo-stats,
  .efo-outcome-grid,
  .efo-trust,
  .efo-amount-grid { grid-template-columns: 1fr; }
  .efo-header .efo-btn--donate {
    padding-inline: 0.85rem;
    min-height: 2.4rem;
    font-size: 0.78rem;
  }
  .efo-wrap { width: min(100% - 1.5rem, var(--efo-max)); }
  .efo-section { padding: 2.75rem 0; }
  .efo-btn-row { width: 100%; }
  .efo-btn-row .efo-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .efo-reveal { opacity: 1; transform: none; }
}
