/* ============================================================
   Foundations in Education — primary stylesheet (brand foundation)
   Fonts are intentionally NOT set here; the Oswald/Jost stack stays.
   ============================================================ */

:root {
  --fie-blue: #304ea2;
  --fie-orange: #ed683c;
  --fie-navy: #222f64;
  --fie-orange-light: #f2923f;
  --fie-gold: #fbc610;
  --fie-grey: #f2f3f2;
  --fie-white: #ffffff;
  --fie-navy-deep: #181f45; /* footer only — deliberately darker than --fie-navy */
  --fie-orange-dark: #c94f22;
}

/* ---- Section background helpers ---- */
.section--white { background: var(--fie-white); }
.section--grey  { background: var(--fie-grey); }
.section--navy  { background: var(--fie-navy); color: #fff; }
.section--blue  { background: var(--fie-blue); color: #fff; }

/* ---- Callout helpers ----
   Section backgrounds are white, grey, or the blues only. Orange is for
   buttons, highlights, figures, and small accents — never a full-section
   wash. Use .callout--orange on small accent elements only. */
.callout--orange { background: var(--fie-orange); color: #fff; }
.callout--gold   { background: var(--fie-gold); color: var(--fie-navy); }

/* ---- Figure accents ---- */
.fig--orange { color: var(--fie-orange); }
.fig--gold   { color: var(--fie-gold); }

/* ---- Legibility on dark sections ----
   Headings / body / list text default to white; links go gold (or #fff).
   No !important, so an intentional inline accent or a .fig--* class still wins. */
.section--navy :is(h1, h2, h3, h4, h5, h6, p, li, blockquote),
.section--blue :is(h1, h2, h3, h4, h5, h6, p, li, blockquote) {
  color: #fff;
}
.section--navy a,
.section--blue a {
  color: var(--fie-gold);
}

/* ---- Smart Giving card actions ----
   The action row sits at the bottom of a Smart Giving card. Cards whose
   action is off-site (e.g. Matching Gifts -> "ask your HR department")
   render no row at all. */
.sg-action{margin:16px 0 0;display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.sg-link{font-size:13px;color:#304ea2;text-decoration:underline;text-underline-offset:2px}
.sg-link:hover{color:#222f64}
.sg-link:focus-visible{outline:3px solid #fbc610;outline-offset:2px}
.sg-disclaimer{margin:32px auto 0;max-width:680px;text-align:center;font-size:12px;line-height:1.5;color:#5c6472}

/* ---- Interior-page footer ----
   The brand lockup is a flex row; letting it wrap drops its min-content from
   ~281px to ~175px, so the 1.4fr track stops forcing the grid wide.
   Inline grid-template-columns on the footer div requires !important. */
.fie-footer-brand{flex-wrap:wrap}
@media (max-width: 768px) {
  .fie-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ---- Interior-page section grids ----
   Grids carry grid-template-columns inline, which outranks any class
   selector, so the collapse needs !important. Scoped to max-width
   queries, so desktop is unaffected. */
@media (max-width:768px){
  .fie-stack{grid-template-columns:1fr !important}
  .fie-stack-2{grid-template-columns:repeat(2,1fr) !important}
}
@media (max-width:480px){
  .fie-stack-2{grid-template-columns:1fr !important}
}

/* ============================================================
   GLOBAL RESET + PAGE SHELL
   Was duplicated as an inline <style> block in all six canvas
   exports. One copy now, cached across pages.
   ============================================================ */

* { box-sizing: border-box; }
body { margin: 0; }
a { text-decoration: none; }
::selection { background: var(--fie-orange); color: var(--fie-white); }

.page {
  font-family: 'Jost', sans-serif;
  color: #2a2f3a;
  background: var(--fie-white);
  width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Visible keyboard focus. The canvas build had none anywhere. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--fie-gold);
  outline-offset: 2px;
}

/* Skip-to-content affordance for the sticky header. */
:target { scroll-margin-top: 84px; }

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fie-white);
  border-bottom: 1px solid #e3e5e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 42px; width: auto; display: block; }
.logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fie-blue);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: #2a2f3a;
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--fie-navy); }
/* Current page. Replaces the per-page hardcoded hex the canvas build used. */
.site-nav__link[aria-current="page"] { color: var(--fie-navy); font-weight: 600; }

.nav-donate {
  background: var(--fie-orange);
  color: var(--fie-white);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 3px;
  white-space: nowrap;
}
.nav-donate:hover { background: var(--fie-orange-dark); }

/* Hamburger dropdown (native <details>, no JS) */
.nav-hamburger { display: none; }
.nav-hamburger > summary {
  list-style: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--fie-navy);
  padding: 6px 8px;
  user-select: none;
}
.nav-hamburger > summary::-webkit-details-marker { display: none; }
.nav-hamburger-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--fie-white);
  border-top: 1px solid #e3e5e8;
  border-bottom: 1px solid #e3e5e8;
  box-shadow: 0 16px 32px rgba(0,0,0,0.16);
  padding: 6px 16px 12px;
  display: flex;
  flex-direction: column;
}
.nav-hamburger-panel a {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #2a2f3a;
  border-bottom: 1px solid #f0f1f3;
}
.nav-hamburger-panel a:last-child { border-bottom: none; }

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--fie-navy-deep);
  color: #b7bdc9;
  padding: 56px 48px 32px;
}
.fie-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #323e74;
}
.fie-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.fie-footer-brand img { height: 60px; width: auto; display: block; }
.fie-footer-brand__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fie-white);
}
.fie-footer-address { font-size: 14px; line-height: 1.6; margin: 0; max-width: 260px; }
.fie-footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a93ab;
  margin-bottom: 14px;
}
.fie-footer-links { display: flex; flex-direction: column; gap: 10px; }
.fie-footer-links a { font-size: 14.5px; color: #d6d9e0; }
.fie-footer-links a:hover { color: var(--fie-white); }
.fie-footer-contact { font-size: 14.5px; line-height: 1.8; margin: 0; }
.fie-footer-contact a { color: #d6d9e0; }
.fie-footer-contact a:hover { color: var(--fie-white); }
.fie-footer-legal {
  font-size: 12.5px;
  color: #6b7590;
  max-width: 900px;
  margin: 24px 0 0;
  line-height: 1.6;
}

/* LinkedIn — added per Jhay's 8/2026 revisions. */
.fie-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: #d6d9e0;
}
.fie-social:hover { color: var(--fie-white); }
.fie-social svg { display: block; }

/* ============================================================
   MOBILE
   Header/footer rules were previously homepage-only, which left the
   interior pages with no hamburger and an overflowing nav on phones.
   ============================================================ */

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .site-header {
    padding: 10px 16px;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .nav-hamburger { display: block; }
  .logo-text { display: none; }
  .site-logo { margin-right: auto; }
  .site-nav { width: auto; gap: 0; }
  .site-nav a:not(.nav-donate) { display: none; }
  .nav-donate { padding: 10px 18px; font-size: 14px; }

  .site-footer { padding: 44px 22px 28px; }
}

/* ============================================================
   SHARED TEXT / ACCENT UTILITIES
   Extracted from inline styles repeated across every page.
   ============================================================ */

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fie-orange-dark);
}
.eyebrow--light { color: var(--fie-orange-light); }

.fig--orange-light { color: var(--fie-orange-light); }

.link-underline {
  color: var(--fie-navy);
  font-weight: 600;
  font-size: 15.5px;
  border-bottom: 2px solid var(--fie-orange);
  padding-bottom: 2px;
}
.link-underline:hover { border-bottom-color: var(--fie-orange-dark); }

/* Orange check bullet used in hero + "Why we exist". */
.tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fie-orange);
  color: var(--fie-white);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   HOMEPAGE HERO
   The looping video was replaced with a still photograph at FIE's
   request (Jhay, 8/2026 — "replace header video with a non-AI
   generated image"), which also removed the separate mobile
   background/# image variants the video needed.
   ============================================================ */

.hero-photo { z-index: 0; }
.hero-overlay { z-index: 0; }

/* ============================================================
   HOMEPAGE DONATE WIDGET
   ============================================================ */

.donate-card {
  background: var(--fie-white);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}

.donate-freq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e3e5e8;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.donate-freq__btn {
  padding: 13px;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  background: var(--fie-white);
  color: #5c6472;
}
.donate-freq__btn.is-active { background: var(--fie-navy); color: var(--fie-white); }

.donate-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.donate-amounts[hidden] { display: none; }

.donate-amount {
  padding: 13px 8px;
  border-radius: 5px;
  border: 2px solid #e3e5e8;
  background: var(--fie-white);
  color: var(--fie-navy);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  text-align: center;
}
.donate-amount.is-active { border-color: var(--fie-navy); background: var(--fie-navy); color: var(--fie-white); }
.donate-amount__value { font-size: 17px; font-weight: 800; display: block; }

.donate-impact {
  background: var(--fie-grey);
  border-radius: 5px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--fie-navy);
  margin: 0 0 16px;
  line-height: 1.45;
}

.donate-cta {
  display: block;
  width: 100%;
  background: var(--fie-orange);
  color: var(--fie-white);
  font-weight: 800;
  font-size: 17px;
  padding: 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: 'Jost', sans-serif;
}
.donate-cta:hover { background: var(--fie-orange-dark); }

.donate-disclaimer {
  font-size: 12px;
  color: #7a7f8c;
  text-align: center;
  margin: 12px 0 0;
}

/* Mobile-only bits of the hero */
.hero-cta-mobile { display: none; }

@media (max-width: 768px) {
  .donate-card { display: none; }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    min-height: 78vh;
    padding: 120px 22px 44px !important;
    align-items: end !important;
    text-align: center;
  }
  .hero-copy p, .hero-trust { display: none !important; }
  .hero-cta-mobile { display: inline-block; }

  .stats-grid { grid-template-columns: 1fr !important; }
  .stack-mobile { grid-template-columns: 1fr !important; gap: 32px !important; }
}
