/*
Theme Name: M25 Foundation
Theme URI: https://m25foundation.org/
Author: Zachery Smith
Author URI: https://m25foundation.org/
Description: A production-ready classic WordPress theme for the Smith Sisters M25 Foundation. Includes responsive layout, homepage sections, Events and Team custom post types, volunteer application handling, GiveWP compatibility, and accessible navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: m25-foundation
Tags: nonprofit, charity, responsive, custom-logo, custom-menu, featured-images, accessibility-ready
*/

:root {
  --m25-navy: #17324d;
  --m25-blue: #1f6feb;
  --m25-gold: #f4b942;
  --m25-cream: #fff8ec;
  --m25-soft: #f6f8fb;
  --m25-ink: #1f2937;
  --m25-muted: #5f6b7a;
  --m25-white: #ffffff;
  --m25-success: #1f8f5f;
  --m25-radius: 18px;
  --m25-shadow: 0 18px 45px rgba(23, 50, 77, .14);
  --m25-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--m25-ink);
  background: var(--m25-white);
  line-height: 1.65;
}
a { color: var(--m25-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: min(100% - 32px, var(--m25-container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 1rem; z-index: 999;
  background: var(--m25-navy); color: white; padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23,50,77,.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.site-branding { display: flex; align-items: center; gap: .75rem; color: var(--m25-navy); font-weight: 800; font-size: 1.15rem; }
.site-branding img { max-height: 54px; width: auto; }
.site-title { color: var(--m25-navy); }
.primary-menu { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.primary-menu a { color: var(--m25-ink); font-weight: 650; padding: .7rem .85rem; border-radius: 999px; display: block; }
.primary-menu a:hover, .primary-menu a:focus { background: var(--m25-soft); text-decoration: none; }
.menu-toggle { display: none; border: 0; background: var(--m25-navy); color: #fff; border-radius: 10px; padding: .65rem .85rem; font-weight: 700; }

.btn, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .78rem 1.2rem; border-radius: 999px;
  font-weight: 800; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover, .btn:focus { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--m25-gold); color: #2a2106; box-shadow: 0 12px 24px rgba(244,185,66,.28); }
.btn-secondary { background: var(--m25-white); color: var(--m25-navy); border-color: rgba(23,50,77,.15); }
.btn-outline { border-color: var(--m25-navy); color: var(--m25-navy); background: transparent; }

.hero-section {
  background:
    radial-gradient(circle at top left, rgba(244,185,66,.26), transparent 34rem),
    linear-gradient(135deg, #17324d 0%, #214d73 54%, #2c6f88 100%);
  color: var(--m25-white);
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 900; color: var(--m25-gold); font-size: .78rem; }
.hero-section h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .95; margin: .4rem 0 1.2rem; }
.hero-section p { font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 690px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.hero-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); padding: 1.4rem; border-radius: var(--m25-radius); box-shadow: var(--m25-shadow); }
.hero-card strong { color: var(--m25-gold); font-size: 3rem; line-height: 1; display: block; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--m25-soft); }
.section-header { max-width: 740px; margin-bottom: 2rem; }
.section-header h2 { color: var(--m25-navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 .75rem; }
.section-header p { color: var(--m25-muted); font-size: 1.08rem; }
.mission-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: stretch; }
.mission-copy, .scripture-card { background: white; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--m25-radius); box-shadow: var(--m25-shadow); }
.scripture-card { background: var(--m25-cream); border-left: 6px solid var(--m25-gold); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { background: white; border: 1px solid rgba(23,50,77,.08); border-radius: var(--m25-radius); padding: 1.35rem; box-shadow: 0 12px 30px rgba(23,50,77,.08); }
.card-icon { font-size: 2.2rem; line-height: 1; margin-bottom: .75rem; }
.card h3 { margin: .25rem 0 .5rem; color: var(--m25-navy); }
.event-grid, .post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.event-date { display: inline-flex; background: var(--m25-cream); color: #7b4a00; padding: .35rem .65rem; border-radius: 999px; font-weight: 800; margin-bottom: .7rem; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.avatar-initials { width: 74px; height: 74px; display: grid; place-items: center; background: linear-gradient(135deg, var(--m25-navy), var(--m25-blue)); color: white; border-radius: 50%; font-weight: 900; font-size: 1.25rem; margin-bottom: .8rem; }

.form-card { background: white; border-radius: var(--m25-radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--m25-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-field-full { grid-column: 1/-1; }
label { display: block; font-weight: 800; color: var(--m25-navy); margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; border: 1px solid rgba(23,50,77,.22); border-radius: 12px; padding: .78rem .9rem;
  font: inherit; background: white; color: var(--m25-ink);
}
textarea { min-height: 140px; resize: vertical; }
.notice { border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 700; }
.notice-success { background: #e9f8f0; color: #166534; border: 1px solid #b7ebcd; }
.notice-error { background: #fff0f0; color: #991b1b; border: 1px solid #fecaca; }

.donate-panel { background: linear-gradient(135deg, var(--m25-navy), #29506f); color: white; border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.donate-panel p { color: rgba(255,255,255,.9); max-width: 720px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.site-footer { background: #101f30; color: rgba(255,255,255,.82); padding: 3rem 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { color: white; }
.site-footer a { color: rgba(255,255,255,.88); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .92rem; }

.content-area { padding: 4rem 0; }
.entry-title { color: var(--m25-navy); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
.entry-content { max-width: 860px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .hero-grid, .mission-panel, .donate-panel, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .site-navigation { display: none; width: 100%; }
  .site-navigation.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-menu { flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
}
@media (max-width: 640px) {
  .card-grid, .event-grid, .post-grid, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
