:root {
  --forest-dark: #1f3d2b;
  --forest: #2d5a3d;
  --forest-light: #4a7a5c;
  --amber: #d99936;
  --amber-light: #f0b860;
  --cream: #faf7f0;
  --cream-dark: #f0ead9;
  --ink: #2b2b26;
  --ink-soft: #55554d;
  --white: #ffffff;
  /* ---- Logo palette ----------------------------------------------------
     The school's colours come from the FES PTO badge itself, so colour
     choices should be checked against these rather than invented. Sampled
     from the masters in brand/, supplied by the PTO's VP who made them.
     She provided a light and a dark version; the green is identical in
     both and only the orange shifts.
     The --forest / --amber tokens below are muted relative to these and
     have NOT yet been reconciled with the logo - that is an open task.  */
  --logo-green: #48a000;         /* identical in both logo versions */
  --logo-orange: #e88800;        /* light version */
  --logo-orange-dark: #f87800;   /* dark version - the only colour that shifts */
  --logo-brown: #a06038;
  --logo-ink: #000000;

  --radius: 10px;
  --shadow: 0 2px 10px rgba(31, 61, 43, 0.1);
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

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

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

/* Header / Nav */
.site-header {
  /* The PTO's own watercolour pine artwork, framing the site top and bottom
     as it did on the previous site. Overlaid heavily so nav text stays legible. */
  background-color: var(--forest-dark);
  /* Measured: at 0.55 the artwork's own green reads clearly and white nav
     text still sits at 8.1:1, well past the 4.5:1 requirement. */
  background-image:
    linear-gradient(rgba(31, 61, 43, 0.52), rgba(31, 61, 43, 0.58)),
    url("../images/forest-band.jpg");
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;   /* the badge is circular on a white field; this clips
                           the JPEG's square corners cleanly */
  display: block;
}

.brand:hover { color: var(--amber-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--amber-light); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-dark);
    flex-direction: column;
    padding: 10px 20px 20px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
}

/* Photo hero - home page only. Other pages keep the plain gradient .hero. */
.hero-photo {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 52vh, 520px);
  background-image:
    linear-gradient(
      to bottom,
      rgba(31, 61, 43, 0.58) 0%,
      rgba(31, 61, 43, 0.30) 42%,
      rgba(31, 61, 43, 0.34) 62%,
      rgba(31, 61, 43, 0.66) 100%
    ),
    url("../images/forest-edge-school.jpg");
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
}

.hero-photo > .hero-inner {
  padding: 56px 20px;
  max-width: var(--max-width);
}

.hero-photo h1,
.hero-photo p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-photo h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

@media (max-width: 640px) {
  .hero-photo {
    min-height: 300px;
    background-position: center 58%;
  }
  .hero-photo > .hero-inner { padding: 40px 18px; }
}

/* Honour reduced-data / reduced-motion style preferences by keeping the
   gradient only - the photo is atmosphere, not information. */
@media (prefers-reduced-data: reduce) {
  .hero-photo {
    background-image: linear-gradient(135deg, var(--forest-dark), var(--forest));
  }
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.3rem;
}

.hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--cream-dark);
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--forest-dark);
}
.btn-primary:hover { background: var(--amber-light); color: var(--forest-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--amber-light); color: var(--amber-light); }

/* Sections */
.section {
  padding: 56px 20px;
}

.section-alt { background: var(--cream-dark); }

.section h2 {
  font-size: 1.8rem;
  margin-top: 0;
  color: var(--forest-dark);
}

.section-intro {
  max-width: 680px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* Cards / grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--forest-dark);
  font-size: 1.1rem;
}

.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.95rem; }

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}

.tag {
  display: inline-block;
  background: var(--forest-light);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Newsletter form */
.newsletter-box {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.newsletter-box h2 { color: var(--white); }
.newsletter-box p { color: var(--cream-dark); }

.form-embed-placeholder {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--cream-dark);
}

/* Donate buttons */
.donate-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Two-column text + image block */
.media-split {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 36px;
  align-items: start;
}

.media-split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 760px) {
  .media-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .media-split img { max-width: 420px; }
}

/* Lists (events, faq) */
.stack { display: flex; flex-direction: column; gap: 20px; }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--forest-dark);
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-item[open] summary { border-radius: var(--radius) var(--radius) 0 0; }

.faq-item p {
  background: var(--white);
  margin: 0;
  padding: 0 20px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--ink-soft);
}

/* Contact / info blocks */
.info-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.info-block h3 { margin-top: 0; color: var(--forest-dark); }

/* Footer */
.site-footer {
  background-color: var(--forest-dark);
  background-image:
    linear-gradient(rgba(31, 61, 43, 0.42), rgba(31, 61, 43, 0.52)),
    url("../images/forest-band.jpg");
  background-size: cover;
  background-position: center;
  color: var(--cream-dark);
  padding: 40px 20px 24px;
}

/* Keep the plain colour where the viewer has asked for less data. */
@media (prefers-reduced-data: reduce) {
  .site-header,
  .site-footer { background-image: none; }
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.social-links a:hover { background: var(--amber); color: var(--forest-dark); }

/* Footer sits on dark green, so links must not inherit the dark-green
   link colour - that combination is about 1.3:1 and effectively unreadable. */
.site-footer a:not(.social-links a) {
  color: var(--cream-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:not(.social-links a):hover {
  color: var(--amber-light);
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.editor-note {
  background: #fff8e6;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #6b4c14;
  margin-bottom: 28px;
}
