/*
Theme Name: Friends of Elizabeth Schools
Theme URI: https://friendsofelizabethschools.org/
Author: Friends of Elizabeth Schools
Author URI: https://friendsofelizabethschools.org/
Description: A single-page fundraising and campaign theme for Friends of Elizabeth Schools. Includes a hero with a live fundraising card, About, Why It Matters, Donate, FAQ, and Contact sections. Donation links, fundraiser numbers, the alert bar, and the contact email are editable from Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foe
Tags: nonprofit, one-page, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
      --foe-green: #0f4f32;
      --foe-green-dark: #08351f;
      --foe-green-soft: #eaf3ee;
      --foe-gold: #d5ad18;
      --foe-gold-light: #f3d46b;
      --foe-cream: #fffaf0;
      --ink: #1f2933;
      --muted: #5d6875;
      --line: #e5e7eb;
      --white: #ffffff;
      --shadow: 0 18px 45px rgba(15, 79, 50, 0.16);
      --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
      --radius: 22px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      color: var(--ink);
      background: #ffffff;
      line-height: 1.6;
    }

    img {
      max-width: 100%;
      height: auto;
    }

    a {
      color: inherit;
    }

    .site-wrap {
      overflow: hidden;
    }

    .top-alert {
      background: linear-gradient(90deg, var(--foe-gold), var(--foe-gold-light));
      color: var(--foe-green-dark);
      text-align: center;
      padding: 11px 18px;
      font-weight: 800;
      letter-spacing: 0.01em;
      font-size: 0.96rem;
    }

    .top-alert a {
      font-weight: 900;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(15, 79, 50, 0.12);
    }

    .nav-shell {
      max-width: 1180px;
      margin: 0 auto;
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 270px;
      text-decoration: none;
    }

    .brand-logo {
      width: 74px;
      height: 58px;
      object-fit: contain;
      flex: 0 0 auto;
      filter: drop-shadow(0 7px 14px rgba(15, 79, 50, 0.18));
    }

    .brand-text strong {
      display: block;
      color: var(--foe-green-dark);
      font-size: 1.04rem;
      line-height: 1.15;
      letter-spacing: 0.01em;
    }

    .brand-text span {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.09em;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    nav a {
      text-decoration: none;
      color: var(--foe-green-dark);
      font-weight: 750;
      font-size: 0.94rem;
      padding: 10px 12px;
      border-radius: 999px;
      transition: 0.2s ease;
    }

    nav a:hover {
      background: var(--foe-green-soft);
      color: var(--foe-green);
    }

    .nav-donate {
      background: var(--foe-green);
      color: white !important;
      padding: 11px 18px;
      box-shadow: 0 10px 24px rgba(15, 79, 50, 0.22);
    }

    .nav-donate:hover {
      background: var(--foe-green-dark);
      transform: translateY(-1px);
    }

    .hero {
      position: relative;
      background:
        radial-gradient(circle at top left, rgba(213, 173, 24, 0.22), transparent 36%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.20), transparent 34%),
        linear-gradient(135deg, var(--foe-green-dark), var(--foe-green));
      color: white;
      padding: 86px 24px 72px;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto -5% -1px -5%;
      height: 100px;
      background: white;
      clip-path: ellipse(58% 100% at 50% 100%);
    }

    .hero-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      align-items: center;
      gap: 52px;
      position: relative;
      z-index: 2;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: rgba(255, 255, 255, 0.13);
      border: 1px solid rgba(255, 255, 255, 0.22);
      color: var(--foe-gold-light);
      padding: 8px 13px;
      border-radius: 999px;
      font-weight: 850;
      font-size: 0.86rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 22px;
    }

    .hero h1 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2.45rem, 5vw, 4.9rem);
      line-height: 0.98;
      letter-spacing: -0.045em;
      max-width: 760px;
      margin-bottom: 22px;
    }

    .hero h1 span {
      color: var(--foe-gold-light);
    }

    .hero-lede {
      max-width: 650px;
      color: rgba(255, 255, 255, 0.88);
      font-size: 1.17rem;
      line-height: 1.82;
      margin-bottom: 32px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 32px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 50px;
      padding: 14px 24px;
      border-radius: 999px;
      font-weight: 900;
      text-decoration: none;
      transition: 0.2s ease;
      border: 2px solid transparent;
      cursor: pointer;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--foe-gold), var(--foe-gold-light));
      color: var(--foe-green-dark);
      box-shadow: 0 16px 30px rgba(0, 0, 0, 0.20);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 38px rgba(0, 0, 0, 0.25);
    }

    .btn-outline {
      color: white;
      border-color: rgba(255, 255, 255, 0.58);
      background: rgba(255, 255, 255, 0.05);
    }

    .btn-outline:hover {
      background: white;
      color: var(--foe-green-dark);
    }

    .trust-row {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      color: rgba(255, 255, 255, 0.82);
      font-weight: 700;
      font-size: 0.92rem;
    }

    .trust-row span {
      display: inline-flex;
      gap: 7px;
      align-items: center;
    }

    .hero-card {
      background: rgba(255, 255, 255, 0.96);
      border-radius: 34px;
      padding: 28px;
      color: var(--ink);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.7);
      position: relative;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 12px;
      border: 1px solid rgba(213, 173, 24, 0.36);
      border-radius: 26px;
      pointer-events: none;
    }

    .hero-logo-box {
      background: linear-gradient(180deg, #ffffff, var(--foe-cream));
      border-radius: 25px;
      padding: 24px;
      text-align: center;
      border: 1px solid rgba(15, 79, 50, 0.12);
      margin-bottom: 22px;
    }

    .hero-logo-box img {
      width: min(100%, 390px);
      filter: drop-shadow(0 12px 22px rgba(15, 79, 50, 0.18));
    }

    .fund-card h2 {
      color: var(--foe-green-dark);
      font-size: 1.35rem;
      margin-bottom: 8px;
    }

    .fund-card p {
      color: var(--muted);
      margin-bottom: 18px;
      font-size: 0.96rem;
    }

    .progress-labels {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--foe-green-dark);
      font-weight: 850;
      margin-bottom: 10px;
      font-size: 0.92rem;
    }

    .bar {
      height: 16px;
      border-radius: 999px;
      background: #e6e9e7;
      overflow: hidden;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.12);
    }

    .bar-fill {
      width: 38%;
      height: 100%;
      background: linear-gradient(90deg, var(--foe-green), var(--foe-gold));
      border-radius: inherit;
    }

    .fund-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 18px;
    }

    .fund-stat {
      background: var(--foe-green-soft);
      border-radius: 16px;
      padding: 14px 10px;
      text-align: center;
    }

    .fund-stat strong {
      display: block;
      color: var(--foe-green-dark);
      font-size: 1.08rem;
    }

    .fund-stat span {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 750;
    }

    section {
      padding: 82px 24px;
    }

    .container {
      max-width: 1120px;
      margin: 0 auto;
    }

    .section-head {
      text-align: center;
      max-width: 760px;
      margin: 0 auto 44px;
    }

    .section-kicker {
      color: var(--foe-gold);
      text-transform: uppercase;
      font-weight: 950;
      letter-spacing: 0.13em;
      font-size: 0.83rem;
      margin-bottom: 10px;
    }

    .section-head h2 {
      color: var(--foe-green-dark);
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2rem, 3vw, 3rem);
      line-height: 1.08;
      letter-spacing: -0.025em;
      margin-bottom: 14px;
    }

    .section-head p {
      color: var(--muted);
      font-size: 1.04rem;
    }

    .split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 46px;
      align-items: center;
    }

    .panel {
      background: white;
      border: 1px solid rgba(15, 79, 50, 0.12);
      border-radius: var(--radius);
      padding: 34px;
      box-shadow: var(--shadow-soft);
    }

    .panel h3 {
      color: var(--foe-green-dark);
      font-size: 1.35rem;
      margin-bottom: 14px;
    }

    .panel p {
      color: var(--muted);
      margin-bottom: 14px;
    }

    .highlight-list {
      list-style: none;
      display: grid;
      gap: 12px;
      margin-top: 22px;
    }

    .highlight-list li {
      display: flex;
      gap: 11px;
      align-items: flex-start;
      color: var(--ink);
      font-weight: 700;
    }

    .check {
      width: 23px;
      height: 23px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      background: var(--foe-green);
      color: white;
      border-radius: 999px;
      font-size: 0.78rem;
      margin-top: 1px;
    }

    .logo-showcase {
      background: linear-gradient(145deg, var(--foe-green-soft), var(--foe-cream));
      border-radius: 32px;
      padding: 42px;
      text-align: center;
      border: 1px solid rgba(213, 173, 24, 0.28);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .logo-showcase::before,
    .logo-showcase::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(213, 173, 24, 0.14);
    }

    .logo-showcase::before {
      width: 210px;
      height: 210px;
      right: -65px;
      top: -65px;
    }

    .logo-showcase::after {
      width: 160px;
      height: 160px;
      left: -50px;
      bottom: -50px;
      background: rgba(15, 79, 50, 0.10);
    }

    .logo-showcase img {
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 16px 24px rgba(15, 79, 50, 0.18));
    }

    .why {
      background: linear-gradient(180deg, #ffffff, var(--foe-green-soft));
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .card {
      background: white;
      border-radius: 22px;
      padding: 28px 23px;
      border: 1px solid rgba(15, 79, 50, 0.11);
      box-shadow: 0 12px 26px rgba(15, 79, 50, 0.08);
      transition: 0.2s ease;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 38px rgba(15, 79, 50, 0.14);
    }

    .icon {
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--foe-green), var(--foe-green-dark));
      color: var(--foe-gold-light);
      font-size: 1.35rem;
      margin-bottom: 18px;
    }

    .card h3 {
      color: var(--foe-green-dark);
      font-size: 1.12rem;
      margin-bottom: 9px;
    }

    .card p {
      color: var(--muted);
      font-size: 0.94rem;
      line-height: 1.67;
    }

    .donate {
      background:
        linear-gradient(rgba(8, 53, 31, 0.93), rgba(8, 53, 31, 0.93)),
        radial-gradient(circle at top right, rgba(213, 173, 24, 0.35), transparent 35%);
      color: white;
      text-align: center;
    }

    .donate .section-kicker,
    .donate h2 {
      color: white;
    }

    .donate h2 span {
      color: var(--foe-gold-light);
    }

    .donate p {
      color: rgba(255, 255, 255, 0.82);
      max-width: 720px;
      margin: 0 auto;
    }

    .amounts {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      margin: 34px auto 26px;
      max-width: 760px;
    }

    .amounts a {
      text-decoration: none;
      padding: 13px 25px;
      min-width: 98px;
      border: 1px solid rgba(255, 255, 255, 0.32);
      color: white;
      border-radius: 999px;
      font-weight: 900;
      background: rgba(255, 255, 255, 0.08);
      transition: 0.2s ease;
    }

    .amounts a:hover,
    .amounts .featured {
      background: var(--foe-gold);
      color: var(--foe-green-dark);
      border-color: var(--foe-gold);
      transform: translateY(-2px);
    }

    .donate-note {
      margin-top: 18px !important;
      font-size: 0.86rem;
      opacity: 0.86;
    }

    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    .faq-item {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 25px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.045);
    }

    .faq-item h3 {
      color: var(--foe-green-dark);
      font-size: 1.04rem;
      margin-bottom: 9px;
    }

    .faq-item p {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .contact {
      background: var(--foe-cream);
    }

    .contact-box {
      max-width: 820px;
      margin: 0 auto;
      background: white;
      border-radius: 28px;
      border: 1px solid rgba(15, 79, 50, 0.12);
      box-shadow: var(--shadow-soft);
      padding: 34px;
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 28px;
      align-items: start;
    }

    .contact-info h3 {
      color: var(--foe-green-dark);
      font-size: 1.35rem;
      margin-bottom: 10px;
    }

    .contact-info p {
      color: var(--muted);
      margin-bottom: 16px;
    }

    .contact-info a {
      color: var(--foe-green);
      font-weight: 850;
      text-decoration: none;
    }

    .form-grid {
      display: grid;
      gap: 13px;
    }

    .form-grid input,
    .form-grid textarea {
      width: 100%;
      border: 1px solid #d7dce0;
      border-radius: 14px;
      padding: 13px 14px;
      font: inherit;
      background: #fbfcfc;
    }

    .form-grid textarea {
      min-height: 126px;
      resize: vertical;
    }

    .form-grid input:focus,
    .form-grid textarea:focus {
      outline: 2px solid rgba(213, 173, 24, 0.45);
      border-color: var(--foe-gold);
    }

    .form-grid button {
      border: 0;
      background: var(--foe-green);
      color: white;
      padding: 14px 20px;
      border-radius: 999px;
      font-weight: 900;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .form-grid button:hover {
      background: var(--foe-green-dark);
      transform: translateY(-1px);
    }

    footer {
      background: var(--foe-green-dark);
      color: rgba(255, 255, 255, 0.78);
      padding: 42px 24px;
      text-align: center;
    }

    footer img {
      width: 140px;
      height: auto;
      margin-bottom: 16px;
      filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.20));
    }

    footer strong {
      display: block;
      color: white;
      font-size: 1.05rem;
      margin-bottom: 5px;
    }

    footer a {
      color: var(--foe-gold-light);
      text-decoration: none;
      font-weight: 800;
    }

    .fine-print {
      max-width: 780px;
      margin: 16px auto 0;
      font-size: 0.8rem;
      opacity: 0.7;
    }

    @media (max-width: 980px) {
      .hero-inner,
      .split,
      .contact-box {
        grid-template-columns: 1fr;
      }

      .hero {
        padding-top: 62px;
      }

      .cards {
        grid-template-columns: repeat(2, 1fr);
      }

      .nav-shell {
        align-items: flex-start;
        flex-direction: column;
      }

      nav {
        justify-content: flex-start;
      }
    }

    @media (max-width: 640px) {
      .top-alert {
        font-size: 0.86rem;
      }

      .brand {
        min-width: auto;
      }

      .brand-logo {
        width: 62px;
      }

      nav a {
        padding: 9px 10px;
        font-size: 0.88rem;
      }

      .hero-card,
      .panel,
      .contact-box {
        padding: 23px;
        border-radius: 22px;
      }

      .fund-stats,
      .cards,
      .faq-grid {
        grid-template-columns: 1fr;
      }

      section {
        padding: 62px 20px;
      }
    }


/* ============================================================
   WordPress integration helpers (added during theme conversion)
   ============================================================ */

/* Accessibility: skip link + screen-reader-only text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  background: var(--foe-green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

/* Brand logo — covers both the bundled fallback image and the
   WordPress Customizer custom logo (.custom-logo). */
.brand img,
.brand .custom-logo {
  width: 74px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 14px rgba(15, 79, 50, 0.18));
}

.brand .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.brand-text {
  text-decoration: none;
}

/* Navigation list markup (wp_nav_menu output + the default fallback) */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

nav li {
  display: flex;
}

/* Footer logo: light badge so the transparent logo stays legible on dark green */
footer img {
  background: var(--foe-cream);
  border-radius: 18px;
  padding: 12px 14px;
}

/* Generic post/page content used by index.php, page.php and 404.php */
.page-title {
  color: var(--foe-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.entry p {
  color: var(--muted);
  margin-bottom: 16px;
}

.entry h1, .entry h2, .entry h3 {
  color: var(--foe-green-dark);
  margin: 22px 0 10px;
}

.entry a {
  color: var(--foe-green);
  font-weight: 700;
}

.entry img {
  border-radius: 14px;
}

.entry ul, .entry ol {
  color: var(--muted);
  margin: 0 0 16px 1.2em;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 50, 0.18);
  color: var(--foe-green-dark);
  text-decoration: none;
  font-weight: 800;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--foe-green);
  color: #fff;
  border-color: var(--foe-green);
}

@media (max-width: 980px) {
  nav ul {
    justify-content: flex-start;
  }
}

/* Reserve space for the WordPress admin bar without breaking the sticky header */
.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar header {
    top: 46px;
  }
}
