/* ============================================================
   Grande Prairie & District Education Foundation
   Website Mockup — built from the GPD-EF Brand Storyboard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,800;0,6..12,1000&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Caveat:wght@400;600;700&display=swap');

/* ---------- Brand tokens (from Storyboard p.3) ---------- */
:root {
  /* Primary */
  --soft-green: #aac8b9;
  --charcoal:   #34373d;
  --white:      #ffffff;
  /* Secondary */
  --soft-blue:  #c0cedb;
  --warm-gold:  #f0be71;
  /* Accent */
  --red-apple:  #f10b19;
  --green:      #248d12;
  --blue:       #0149a6;

  /* Derived / tints */
  --soft-green-tint: #e7f0eb;
  --soft-blue-tint:  #eef3f7;
  --gold-tint:       #fbeed8;
  --charcoal-70:     #5a5d63;
  --line:            #e3e8ea;

  /* Typography */
  --font-head: 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 32px;
  --shadow: 0 18px 50px rgba(52, 55, 61, 0.12);
  --shadow-sm: 0 8px 24px rgba(52, 55, 61, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; color: var(--charcoal); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); letter-spacing: -0.3px; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--charcoal-70); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  color: var(--green);
  margin: 0 0 .6em;
}
.muted { color: var(--charcoal-70); }
.maxw-650 { max-width: 650px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Accent "handwritten" word + mark */
.script { font-family: var(--font-accent); font-weight: 700; line-height: .8; }
.script-underline {
  position: relative; display: inline-block;
  font-family: var(--font-accent); font-weight: 700; color: var(--green);
}
.heart-dot { color: var(--red-apple); font-family: var(--font-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #1c7a0e; box-shadow: var(--shadow-sm); }
.btn-donate { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(36,141,18,.3); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #013b85; }
.btn-white { background: #fff; color: var(--charcoal); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Icons ---------- */
.ic { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.18em; flex: none; }
.btn .ic { width: 1.1em; height: 1.1em; }
.topbar .ic { width: 15px; height: 15px; opacity: .9; }
.f-contact-line .ic { width: 18px; height: 18px; color: var(--soft-green); }
.f-social .ic { width: 19px; height: 19px; }
.info-line .k .ic { width: 20px; height: 20px; }

/* ---------- Header / Nav ---------- */
.topbar { background: var(--charcoal); color: #fff; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 38px; }
.topbar a { color: #fff; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { opacity: 1; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.nav .logo img { height: 52px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 12px 14px; color: var(--charcoal); font-weight: 600; font-size: .98rem;
  border-radius: 8px;
}
.menu > li > a:hover { color: var(--green); text-decoration: none; background: var(--soft-green-tint); }
.menu .has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .6; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 218px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  list-style: none; margin: 8px 0 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease;
}
.menu .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--charcoal); font-weight: 500; font-size: .95rem; }
.submenu a:hover { background: var(--soft-green-tint); color: var(--green); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: #eef3f7;
  background-image: linear-gradient(rgba(244, 248, 251, 0.62), rgba(244, 248, 251, 0.62)), url('../assets/bg/platter.jpg');
  background-size: cover, 620px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 0; }
.hero-copy { padding-bottom: 56px; }
.hero h1 .ever { display: inline-flex; align-items: center; gap: .12em; white-space: nowrap; }
.hero h1 { margin-bottom: .15em; }
.hero .script-xl { font-family: var(--font-accent); font-weight: 700; color: var(--green); font-size: clamp(3rem, 6vw, 4.6rem); line-height: .7; display: inline-block; }
.hero-photo { position: relative; }
.hero-photo .blob {
  border-radius: 46% 54% 52% 48% / 55% 50% 50% 45%;
  overflow: hidden; box-shadow: var(--shadow);
  background: #fff;
}
.hero-photo .blob img { width: 100%; height: 460px; object-fit: cover; }
/* Cutout (transparent PNG/WebP) treatment — kids bottom-aligned over the brand blob */
/* Width-based, normal-flow image (no percentage height) so it renders reliably
   in Chrome & Safari; bottom-aligned to sit flush with the hero's lower edge. */
.hero-photo.cutout { position: relative; align-self: end; }
.hero-photo.cutout .blob-bg {
  position: absolute; z-index: 0; left: 50%; bottom: 0; transform: translateX(-48%);
  width: 116%; max-width: none; height: auto; pointer-events: none;
}
.hero-photo.cutout .dots {
  position: absolute; z-index: 1; top: 8%; left: -4%; width: 150px; height: auto;
  pointer-events: none;
}
.hero-photo.cutout .kids {
  position: relative; z-index: 2; display: block; width: 100%; max-width: 560px;
  height: auto; margin: 0 auto;
  filter: drop-shadow(0 16px 20px rgba(52, 55, 61, 0.16));
}
.hero-heart { width: 56px; vertical-align: middle; }

/* ---------- Pillars row (4 value icons) ---------- */
.value-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value { text-align: center; padding: 28px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .2s ease; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.value img { height: 62px; margin: 0 auto 16px; }
.value h3 { font-size: 1.15rem; margin-bottom: .3em; }
.value p { font-size: .95rem; color: var(--charcoal-70); margin: 0; }

/* ---------- Pillar cards (NourishED / EmpowerED / InspirED) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: .2s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar .ph { height: 190px; overflow: hidden; }
.pillar .ph img { width: 100%; height: 100%; object-fit: cover; }
.pillar .body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.pillar .badge { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pillar .badge img { height: 40px; }
.pillar .badge .name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.pillar p { font-size: .96rem; color: var(--charcoal-70); }
.pillar .btn { margin-top: auto; align-self: flex-start; }
.n-red { color: var(--red-apple); } .n-blue { color: var(--blue); } .n-green { color: var(--green); }
.pillar.nourished { border-top: 5px solid var(--red-apple); }
.pillar.empowered { border-top: 5px solid var(--blue); }
.pillar.inspired  { border-top: 5px solid var(--green); }

/* ---------- Section backgrounds ---------- */
.bg-green { background: var(--soft-green); }
.bg-green-tint { background: var(--soft-green-tint); }
/* Blue backgrounds — matched to the hero (same fade overlay + texture tile size) */
.bg-blue-tint {
  background-color: #eef3f7;
  background-image: linear-gradient(rgba(244, 248, 251, 0.62), rgba(244, 248, 251, 0.62)), url('../assets/bg/platter.jpg');
  background-size: cover, 620px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
}
.bg-sponge { background: url('../assets/bg/sponge.jpg') center/cover; }
.bg-platter { background: url('../assets/bg/platter.jpg') center/cover; }
.bg-charcoal { background: var(--charcoal); color: #fff; }
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3 { color: #fff; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 420px; object-fit: cover; }
.split-media.blob img { border-radius: 46% 54% 52% 48% / 55% 50% 50% 45%; }
/* Masked photos — clip to a brand decorative shape (Elementor-style CSS mask).
   Longhand -webkit-/standard props for Safari + Chrome. NOTE: a CSS mask resource
   only loads over http(s); view on the dev site, not file://. SVG masks at Elementor stage. */
.split-media.masked { filter: drop-shadow(0 18px 30px rgba(52, 55, 61, 0.16)); }
.split-media.masked img {
  border-radius: 0; box-shadow: none; width: 100%; height: 460px; object-fit: cover; object-position: center 30%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.split-media.masked.mask-1 img { -webkit-mask-image: url('../assets/decor/shape2.png'); mask-image: url('../assets/decor/shape2.png'); }
.split-media.masked.mask-2 img { -webkit-mask-image: url('../assets/decor/shape3.png'); mask-image: url('../assets/decor/shape3.png'); }
.split-media.masked.mask-3 img { -webkit-mask-image: url('../assets/decor/shape4.png'); mask-image: url('../assets/decor/shape4.png'); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { text-align: center; padding: 30px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-head); font-weight: 1000; font-size: 2.6rem; color: var(--green); line-height: 1; }
.stat .lbl { font-weight: 600; margin-top: 8px; color: var(--charcoal); }
.stat p { font-size: .9rem; color: var(--charcoal-70); margin: 6px 0 0; }

/* ---------- Page banner (interior) ---------- */
.page-banner { position: relative; overflow: hidden; background: var(--soft-green) url('../assets/bg/sponge.jpg') center/cover; padding: 64px 0; }
.page-banner.blue {
  background-color: #eef3f7;
  background-image: linear-gradient(rgba(244, 248, 251, 0.62), rgba(244, 248, 251, 0.62)), url('../assets/bg/platter.jpg');
  background-size: cover, 620px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
}
.page-banner .crumbs { font-size: .85rem; color: var(--charcoal-70); margin-bottom: 10px; }
.page-banner h1 { margin: 0; }
.page-banner .deco { position: absolute; right: -40px; top: -40px; width: 240px; opacity: .5; pointer-events: none; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.icon-chip { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: var(--soft-green-tint); }
.icon-chip img { height: 38px; }

/* List with check */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--green); font-weight: 800; background: var(--soft-green-tint); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }

/* Callout (Need help / Want to help) */
.callout { background: var(--gold-tint); border: 1px solid var(--warm-gold); border-radius: var(--radius); padding: 30px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.callout h3 { margin: 0 0 4px; }
.callout p { margin: 0; color: var(--charcoal-70); }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; font-weight: 600; font-size: .92rem; color: var(--charcoal-70); min-height: 84px; display: grid; place-items: center; transition: .2s; }
.sponsor:hover { border-color: var(--soft-green); color: var(--charcoal); box-shadow: var(--shadow-sm); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member { text-align: center; }
.member .ph { aspect-ratio: 1/1; border-radius: 20px; background: var(--soft-blue-tint); display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .ph .ph-ico { width: 46px; opacity: .4; }
.member h4 { margin: 0; }
.member .role { color: var(--green); font-weight: 600; font-size: .9rem; }

/* News */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post .ph { height: 200px; overflow: hidden; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post .date { font-size: .82rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.post h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.post .body p { font-size: .94rem; color: var(--charcoal-70); }
.post a.more { margin-top: auto; font-weight: 600; }

/* PDF documents */
.doc-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 14px; transition: .2s; }
.doc-row:hover { box-shadow: var(--shadow-sm); border-color: var(--soft-green); }
.doc-ico { width: 46px; height: 56px; flex: none; border-radius: 6px; background: var(--soft-green-tint); display: grid; place-items: center; color: var(--green); font-weight: 800; font-size: .7rem; border: 1px solid var(--soft-green); }
.doc-row .meta { flex: 1; }
.doc-row .meta h4 { margin: 0 0 2px; }
.doc-row .meta span { font-size: .85rem; color: var(--charcoal-70); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-line .k { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--soft-green-tint); display: grid; place-items: center; color: var(--green); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--charcoal);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--soft-green); border-color: var(--soft-green); }
.map { border-radius: var(--radius); overflow: hidden; height: 280px; background: var(--soft-blue-tint); display: grid; place-items: center; color: var(--charcoal-70); border: 1px solid var(--line); }

/* CTA band */
.cta-band { background: var(--soft-green) url('../assets/bg/sponge.jpg') center/cover; border-radius: var(--radius-lg); padding: 54px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band .deco { position: absolute; opacity: .5; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfd2d6; padding: 64px 0 0; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 16px; letter-spacing: .5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer a { color: #cfd2d6; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .flogo { height: 52px; margin-bottom: 18px; }
.fmenu { list-style: none; padding: 0; margin: 0; }
.fmenu li { margin-bottom: 10px; }
.f-pillars { display: flex; gap: 18px; margin-top: 8px; }
.f-pillars img { height: 34px; }
.f-contact-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: .95rem; align-items: flex-start; }
.f-contact-line .ic { margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.f-social { display: flex; gap: 12px; }
.f-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.f-social a:hover { background: var(--green); }

/* mockup banner */
.mock-flag { background: var(--warm-gold); color: var(--charcoal); text-align: center; font-weight: 600; font-size: .82rem; padding: 7px; letter-spacing: .3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .split, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .value-row, .pillars, .grid-3, .stats { grid-template-columns: 1fr 1fr; }
  .sponsor-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .menu.open { display: flex; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 0 0 0 14px; padding: 0; }
  .menu .has-sub:hover .submenu { transform: none; }
  .nav-cta .btn-text { display: none; }
  .value-row, .pillars, .grid-3, .stats, .sponsor-grid, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 36px 22px; }
  .topbar { display: none; }
  .hero .wrap { padding-top: 20px; }
  .hero-copy { padding-top: 4px; padding-bottom: 40px; }
  .hero-photo.cutout .kids { max-width: 460px; }
  .hero h1 .ever { white-space: normal; }
}
