/* =====================================================================
   Growing Minds Foundation — site-wide header & footer
   Real, functional HTML/CSS components (no flat images).
   Loaded on every page via <link rel="stylesheet" href="/css/site.css">.
   All selectors are namespaced with gmf- so they never collide with
   per-page styles.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --gmf-cream: #FDF9F1;
  --gmf-cream-2: #f4ecdf;
  --gmf-green: #8a9077;       /* exact olive top bar + buttons from design */
  --gmf-green-dark: #747a61;  /* elegant dark hover */
  --gmf-ink: #474a39;         /* exact dark olive ink wordmark from design */
  --gmf-nav: #4f4a3f;         /* nav link text */
  --gmf-nav-hover: #2c2820;
  --gmf-purple: #a997ae;      /* exact purple caps from design */
  --gmf-line: #e1d9c8;        /* dividers */
  --gmf-muted: #9a9484;
  --gmf-max: 1180px;
}

/* ---- shared bits ---- */
.gmf-inner {
  max-width: var(--gmf-max);
  margin: 0 auto;
  padding: 0 24px;
}
.gmf-logo { display: block; flex: none; }
.gmf-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.gmf-wordmark-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--gmf-ink);
  letter-spacing: .005em;
}
.gmf-wordmark-sub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .42em;
  color: var(--gmf-purple);
  margin-top: 4px;
}

/* olive button used in header + footer */
.gmf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gmf-green);
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gmf-btn:hover {
  background: var(--gmf-green-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 130, 97, .28);
}
.gmf-btn:focus-visible { outline: 3px solid var(--gmf-purple); outline-offset: 2px; }
.gmf-heart { width: 18px; height: 18px; flex: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.gmf-header {
  position: relative;
  z-index: 200;
  background-color: #FDF9F1;
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}
.gmf-header-desktop {
  display: block;
  background-color: #FDF9F1;
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
}
.gmf-header-mobile {
  display: none;
  position: relative;
  background: var(--gmf-cream);
  border-top: 6px solid var(--gmf-green);
  border-bottom: 1px solid var(--gmf-line);
}
/* watercolor children + foliage accent on the right (decorative) */
.gmf-header-mobile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 460px;
  background: url("/images/header-watercolor.png") right bottom / contain no-repeat;
  opacity: .65;
  pointer-events: none;
  z-index: 0;
}
.gmf-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.gmf-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}
.gmf-brand:hover { text-decoration: none; }
.gmf-header .gmf-logo { width: 52px; height: 52px; }

/* desktop nav */
.gmf-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.gmf-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gmf-nav-list li { display: flex; align-items: center; }
.gmf-nav-list li + li::before {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--gmf-line);
  margin: 0 18px;
}
.gmf-nav-list a {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .95rem;
  color: var(--gmf-nav);
  text-decoration: none;
  padding: 6px 2px;
  transition: color .15s ease;
}
.gmf-nav-list a:hover { color: var(--gmf-nav-hover); text-decoration: none; }
.gmf-nav-list a.is-active {
  color: var(--gmf-ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gmf-green);
}
.gmf-nav-close { display: none; }

/* hamburger (hidden on desktop) */
.gmf-nav-toggle { display: none; }
.gmf-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 40px;
  padding: 9px;
  border-radius: 8px;
  background: var(--gmf-green);
  cursor: pointer;
  flex: none;
}
.gmf-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* ---- responsive: collapse to hamburger ---- */
@media (max-width: 920px) {
  .gmf-header-mobile::after { width: 200px; opacity: .4; }
  .gmf-burger { display: flex; }

  .gmf-nav {
    position: fixed;
    inset: 0;
    z-index: 300;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--gmf-cream);
    padding: 32px 24px;
    /* hidden until toggled */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .gmf-nav-toggle:checked ~ .gmf-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .gmf-nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 360px;
  }
  .gmf-nav-list li { width: 100%; justify-content: center; }
  .gmf-nav-list li + li::before { display: none; }
  .gmf-nav-list a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    padding: 16px;
  }
  .gmf-nav-list a.is-active { box-shadow: none; }
  .gmf-nav .gmf-btn { margin-top: 18px; font-size: 1.05rem; padding: 14px 30px; }

  .gmf-nav-close {
    display: block;
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--gmf-nav);
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .gmf-header .gmf-logo { width: 50px; height: 50px; }
  .gmf-wordmark-name { font-size: 1.3rem; }
  .gmf-wordmark-sub { letter-spacing: .34em; font-size: .58rem; }
  .gmf-header-inner { min-height: 76px; gap: 12px; }
}

/* =====================================================================
   FOOTER (100% Sharp, Responsive HTML/CSS design)
   ===================================================================== */
.gmf-footer {
  position: relative;
  overflow: hidden;
  background-color: #FDF9F1;
  border-top: 1px solid var(--gmf-line);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}
.gmf-footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 320px;
  height: 320px;
  background: url("/images/footer-watercolor.png") right bottom / contain no-repeat;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.gmf-footer-top {
  position: relative;
  z-index: 1;
  padding: 64px 0 56px;
}
.gmf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.gmf-footer-col {
  display: flex;
  flex-direction: column;
}
.gmf-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-decoration: none;
}
.gmf-footer-logo {
  width: 66px;
  height: 66px;
}
.gmf-footer-mission {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.65;
  color: #5f5848;
  margin: 0;
  max-width: 34ch;
}
.gmf-footer-h {
  font-family: "DM Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gmf-green-dark);
  margin: 6px 0 18px;
}
.gmf-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gmf-footer-links li {
  margin-bottom: 12px;
}
.gmf-footer-links a {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .95rem;
  color: var(--gmf-nav);
  text-decoration: none;
  transition: color .15s ease;
}
.gmf-footer-links a:hover {
  color: var(--gmf-nav-hover);
  text-decoration: none;
}
.gmf-footer-cta-text {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  color: #5f5848;
  margin: 0 0 20px 0;
  max-width: 28ch;
}

.gmf-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gmf-line);
  background: rgba(253, 249, 241, 0.95);
}
.gmf-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gmf-muted);
}

@media (max-width: 960px) {
  .gmf-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px 32px;
  }
  .gmf-footer-cta-col {
    grid-column: 1 / -1;
    margin-top: 12px;
    border-top: 1px solid var(--gmf-line);
    padding-top: 24px;
  }
  .gmf-footer-cta-text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .gmf-footer-top {
    padding: 40px 0;
  }
  .gmf-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gmf-footer-cta-col {
    border-top: 1px solid var(--gmf-line);
    padding-top: 24px;
  }
  .gmf-footer::after {
    width: 240px;
    height: 240px;
    opacity: 0.35;
  }
}

/* =====================================================================
   DUAL DESKTOP/MOBILE DISPLAY & RESPONSIVE OVERLAYS
   ===================================================================== */
.gmf-header-desktop {
  background-color: #FDFAF3; /* Exact match of the header corner color */
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
}
.gmf-header-desktop-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Reduced to 1200px to be centered and not overpowering */
  margin: 0 auto;
  line-height: 0;
  background-color: #FDFAF3;
}
.gmf-header-desktop-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8%;
  height: 100%;
  background: linear-gradient(to right, #FDFAF3, transparent);
  z-index: 10;
  pointer-events: none;
}
.gmf-header-desktop-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8%;
  height: 100%;
  background: linear-gradient(to left, #FDFAF3, transparent);
  z-index: 10;
  pointer-events: none;
}
.gmf-footer-desktop {
  background-color: #FDFDFD; /* Exact match of the footer corner color */
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
}
.gmf-footer-desktop-container {
  position: relative;
  width: 100%;
  max-width: 1179px; /* Native resolution of approved footer image */
  margin: 0 auto;
  line-height: 0;
  background-color: #FDFDFD;
}
.gmf-footer-desktop-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8%;
  height: 100%;
  background: linear-gradient(to right, #FDFDFD, transparent);
  z-index: 10;
  pointer-events: none;
}
.gmf-footer-desktop-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8%;
  height: 100%;
  background: linear-gradient(to left, #FDFDFD, transparent);
  z-index: 10;
  pointer-events: none;
}
.gmf-header-img {
  width: 100%;
  height: auto;
  display: block;
}
.gmf-footer-img {
  width: 100%;
  height: auto;
  display: block;
}
.gmf-overlay-link {
  position: absolute;
  display: block;
  text-decoration: none;
  cursor: pointer;
  z-index: 15;
}

/* Header Overlays (Pixel-Mapped for Approved 2046x494 Header Image) */
.gmf-overlay-logo {
  left: 2.0%;
  top: 5.0%;
  width: 23.0%;
  height: 80.0%;
}
.gmf-overlay-about {
  left: 28.5%;
  top: 32.0%;
  width: 5.5%;
  height: 16.0%;
}
.gmf-overlay-programs {
  left: 37.5%;
  top: 32.0%;
  width: 6.5%;
  height: 16.0%;
}
.gmf-overlay-early-learning {
  left: 48.0%;
  top: 32.0%;
  width: 10.0%;
  height: 16.0%;
}
.gmf-overlay-get-involved {
  left: 61.5%;
  top: 32.0%;
  width: 9.0%;
  height: 16.0%;
}
.gmf-overlay-support-mission {
  left: 73.26%;
  top: 28.95%;
  width: 16.32%;
  height: 19.84%;
}

/* Footer Overlays (Pixel-Mapped for Approved 1179x436 Footer Image) */
.gmf-overlay-footer-logo {
  left: 6.0%;
  top: 8.0%;
  width: 20.0%;
  height: 55.0%;
}

/* Column 2 Links */
.gmf-overlay-footer-col2-link1 {
  left: 33.5%;
  top: 28.5%;
  width: 10.0%;
  height: 6.5%;
}
.gmf-overlay-footer-col2-link2 {
  left: 33.5%;
  top: 38.0%;
  width: 10.0%;
  height: 6.5%;
}
.gmf-overlay-footer-col2-link3 {
  left: 33.5%;
  top: 47.5%;
  width: 10.0%;
  height: 6.5%;
}
.gmf-overlay-footer-col2-link4 {
  left: 33.5%;
  top: 57.0%;
  width: 10.0%;
  height: 6.5%;
}

/* Column 3 Links */
.gmf-overlay-footer-col3-link1 {
  left: 53.0%;
  top: 28.5%;
  width: 10.0%;
  height: 6.5%;
}
.gmf-overlay-footer-col3-link2 {
  left: 53.0%;
  top: 38.0%;
  width: 10.0%;
  height: 6.5%;
}
.gmf-overlay-footer-col3-link3 {
  left: 53.0%;
  top: 47.5%;
  width: 10.0%;
  height: 6.5%;
}
.gmf-overlay-footer-col3-link4 {
  left: 53.0%;
  top: 57.0%;
  width: 10.0%;
  height: 6.5%;
}

/* Column 4 Button */
.gmf-overlay-footer-button {
  left: 73.37%;
  top: 51.15%;
  width: 13.83%;
  height: 10.09%;
}

/* Subtle, Professional Hover and Scroll Reveal Animations */
.gmf-overlay-link-text {
  position: absolute;
  z-index: 15;
  display: block;
}
.gmf-overlay-link-text::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--gmf-green);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gmf-overlay-link-text:hover::after {
  width: 100%;
  left: 0;
}
.gmf-overlay-button {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.gmf-overlay-button:hover {
  transform: scale(1.02);
  filter: brightness(1.03);
}

/* Scroll reveal classes */
.reveal-el {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive display rules */
@media (max-width: 920px) {
  .gmf-header-desktop {
    display: none;
  }
  .gmf-header-mobile {
    display: block;
  }
}
@media (max-width: 820px) {
  .gmf-footer-desktop {
    display: none;
  }
  .gmf-footer-mobile {
    display: block;
  }
}
