/*
Theme Name: Next L.E.V.E.L. Family Shelter — Mission Style v3
Theme URI: https://nextlevelfamilyshelter.org/
Author: Legacy Press
Description: A mission-first, accessible WordPress theme for Next L.E.V.E.L. Family Shelter Inc.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: next-level-family-shelter
*/

:root {
  --navy: #122a4d;
  --royal: #2454a6;
  --purple: #69358c;
  --green: #3f7d56;
  --silver: #dce4ee;
  --mist: #f4f7fb;
  --ink: #18212f;
  --muted: #5c6878;
  --white: #ffffff;
  --gold: #f0c84b;
  --shadow: 0 18px 45px rgba(18, 42, 77, 0.12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--royal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--purple); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.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; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--white); color: var(--navy); border-radius: 8px; }

.action-bar { color: var(--navy); background: #dceffa; border-bottom: 1px solid #c5ddea; }
.action-inner { min-height: 42px; display: flex; justify-content: flex-end; align-items: stretch; }
.action-link { display: inline-flex; align-items: center; padding: 9px 18px; color: var(--navy); border-left: 1px solid rgba(18,42,77,.14); font-size: 13px; font-weight: 900; text-decoration: none; }
.action-link:hover, .action-link:focus { color: var(--white); background: var(--royal); }
.action-link.accent { color: var(--white); background: var(--purple); }
.action-link.accent:hover, .action-link.accent:focus { background: var(--green); }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--silver); backdrop-filter: blur(12px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.default-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.theme-logo { width: 72px; height: 72px; object-fit: contain; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); font-weight: 900; font-size: 14px; letter-spacing: -.5px; background: linear-gradient(145deg, var(--royal), var(--purple)); border-radius: 13px; box-shadow: 0 8px 18px rgba(36,84,166,.22); }
.brand-copy { display: block; line-height: 1.12; }
.brand-copy strong { display: block; font-size: 17px; letter-spacing: .02em; }
.brand-copy small { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.custom-logo { max-height: 72px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--purple); }
.menu-toggle { display: none; border: 1px solid var(--silver); background: var(--white); color: var(--navy); border-radius: 10px; padding: 9px 12px; font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 2px solid transparent; border-radius: 999px; color: var(--white); background: var(--royal); font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover, .button:focus { color: var(--white); background: var(--purple); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(36,84,166,.2); }
.button-outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-outline:hover, .button-outline:focus { color: var(--white); background: var(--navy); }
.button-light { color: var(--navy); background: var(--white); }
.button-light:hover, .button-light:focus { color: var(--navy); background: var(--gold); }

.hero { overflow: hidden; position: relative; min-height: 680px; display: flex; align-items: center; padding: 96px 0 104px; color: var(--white); background-image: linear-gradient(90deg, rgba(8,21,42,.93) 0%, rgba(11,36,73,.8) 40%, rgba(18,42,77,.24) 72%, rgba(18,42,77,.08) 100%), url('assets/family-hope-hero.png'); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -60px; height: 110px; background: var(--white); border-radius: 50% 50% 0 0; }
.hero-grid { position: relative; z-index: 1; display: block; }
.hero-copy { max-width: 780px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 830px; margin: 0 0 20px; font-size: clamp(48px, 7vw, 82px); line-height: 1.01; letter-spacing: -.045em; text-shadow: 0 2px 16px rgba(0,0,0,.24); }
.hero .lead { max-width: 760px; margin: 0; font-size: clamp(19px, 2.4vw, 24px); color: #eef5ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card { padding: 28px; color: var(--ink); background: rgba(255,255,255,.96); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card .status { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(63,125,86,.13); }
.hero-card h2 { margin: 12px 0 8px; color: var(--navy); font-size: 27px; line-height: 1.15; }
.hero-card p { margin: 0; color: var(--muted); font-size: 15px; }
.hero-note { margin-top: 18px; color: #dce8f6; font-size: 13px; }

.section { padding: 80px 0; }
.section-soft { background: var(--mist); }
.section-dark { color: var(--white); background: var(--navy); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.section-dark .section-head h2 { color: var(--white); }
.section-head p { margin: 0; color: var(--muted); font-size: 19px; }
.section-dark .section-head p { color: #cdd9e8; }
.mission-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: start; }
.mission-statement { margin: 0; color: var(--navy); font-size: clamp(25px, 3.6vw, 39px); line-height: 1.28; font-weight: 850; letter-spacing: -.025em; }
.values { display: grid; gap: 14px; }
.value { padding: 18px 20px; background: var(--white); border: 1px solid var(--silver); border-left: 5px solid var(--green); border-radius: 12px; }
.value strong { display: block; color: var(--navy); }
.value span { color: var(--muted); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(18,42,77,.07); }
.card-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; color: var(--white); background: var(--royal); border-radius: 12px; font-weight: 900; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 22px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.progress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.progress-card { padding: 24px 22px; text-align: center; background: var(--white); border: 1px solid var(--silver); border-radius: 18px; box-shadow: 0 10px 26px rgba(18,42,77,.07); }
.progress-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--white); background: var(--royal); border-radius: 50%; font-size: 22px; font-weight: 950; }
.progress-card strong { display: block; color: var(--navy); font-size: 18px; }
.progress-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.disclaimer { margin: 24px auto 0; max-width: 850px; color: var(--muted); font-size: 13px; text-align: center; }

.truth-box { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; padding: 34px; border: 1px solid #b9d1c1; background: #f0f7f2; border-radius: var(--radius); }
.truth-box h2 { margin: 0; color: var(--green); font-size: 34px; line-height: 1.1; }
.truth-box p { margin: 0 0 12px; }
.truth-box p:last-child { margin-bottom: 0; }

.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); }
.pathway-step { min-height: 210px; padding: 28px 24px; background: rgba(255,255,255,.05); }
.pathway-step strong { display: block; margin-bottom: 10px; color: var(--gold); font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.pathway-step p { margin: 0; color: #dbe6f3; font-size: 15px; }

.cta { padding: 42px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; color: var(--white); background: linear-gradient(125deg, var(--purple), var(--royal)); border-radius: 26px; box-shadow: var(--shadow); }
.cta h2 { margin: 0 0 10px; font-size: 36px; line-height: 1.1; }
.cta p { margin: 0; color: #edf3ff; }
.cta-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }

.site-footer { padding: 54px 0 30px; color: #dce6f2; background: #0b1b32; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 36px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: var(--white); }
.site-footer p { color: #b9c7d9; }
.site-footer a { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.legal { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #9eafc4; font-size: 13px; }

.entry-wrap { width: min(calc(100% - 40px), 880px); margin: 70px auto; }
.entry-title { color: var(--navy); font-size: clamp(38px, 6vw, 60px); line-height: 1.08; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 18px 20px 24px; background: var(--white); border-bottom: 1px solid var(--silver); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 8px; }
  .site-nav a { display: block; padding: 10px; }
  .header-cta { display: none; }
  .hero-grid, .mission-grid, .truth-box, .cta { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .progress-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .theme-logo, .custom-logo { width: 60px; height: 60px; object-fit: contain; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .action-inner { justify-content: stretch; overflow-x: auto; }
  .action-link { flex: 0 0 auto; padding: 9px 12px; font-size: 11px; }
  .hero { min-height: 650px; padding: 76px 0 90px; background-position: 64% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(6,20,42,.18); }
  .hero-copy { position: relative; z-index: 1; }
  .hero-grid { gap: 34px; }
  .section { padding: 58px 0; }
  .cards, .pathway, .progress-grid, .footer-grid { grid-template-columns: 1fr; }
  .truth-box, .cta { padding: 26px; }
  .cta h2 { font-size: 30px; }
}
