/*
Theme Name:  Unique Family Services
Theme URI:   https://uniquefamilyservices.org
Author:      Unique Family Services NFP
Author URI:  https://uniquefamilyservices.org
Description: Custom WordPress theme for Unique Family Services NFP — Pathways to Purpose. Empowering youth ages 5–24 through mentorship, job readiness, academic support, and community engagement.
Version:     1.1.0
Requires at least: 5.9
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: ufs-theme
Tags:        nonprofit, custom-colors, custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:       #1b6ca8;
  --primary-dark:  #124f7c;
  --primary-light: #2e8fd4;
  --accent:        #e8a020;
  --accent-light:  #f5bc4a;
  --white:         #ffffff;
  --off-white:     #f4f8fc;
  --light-gray:    #e8eef4;
  --mid-gray:      #7a8fa6;
  --text:          #2c3e50;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 !important; /* override WP body margin */
  padding-top: 0 !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: var(--primary-dark);
  padding: .5rem 1rem; font-weight: 700; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.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;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.8rem 1.5rem; }

.section-title {
  font-family: 'Merriweather', serif;
  font-size: 1.72rem; color: var(--primary-dark);
  margin-bottom: 1.8rem; text-align: center;
  position: relative; padding-bottom: .85rem;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 4px; background: var(--accent); border-radius: 2px;
}
.section-sub {
  text-align: center; color: var(--mid-gray); font-size: .93rem;
  max-width: 680px; margin: -1rem auto 2.2rem; line-height: 1.75;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--accent); color: var(--primary-dark) !important;
  padding: .75rem 2rem; border-radius: 4px; font-weight: 800;
  font-size: .88rem; text-decoration: none; letter-spacing: .04em;
  transition: background .2s, transform .15s; display: inline-block; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); color: var(--primary-dark) !important; }
.btn-outline {
  background: transparent; color: white; border: 2px solid rgba(255,255,255,.65);
  padding: .73rem 1.8rem; border-radius: 4px; font-weight: 700;
  font-size: .88rem; text-decoration: none; transition: all .2s; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: white; color: white; }
.btn-donate {
  background: var(--primary-dark); color: white !important;
  padding: .9rem 2.8rem; border-radius: 4px; font-weight: 800;
  font-size: .95rem; text-decoration: none; display: inline-block;
  transition: background .2s; letter-spacing: .04em;
}
.btn-donate:hover { background: #0c3a5c; color: white !important; }
.btn-play {
  background: var(--accent); color: var(--primary-dark) !important;
  padding: .8rem 2.4rem; border-radius: 4px; font-weight: 800;
  font-size: .9rem; text-decoration: none; display: inline-block; transition: background .2s;
}
.btn-play:hover { background: var(--accent-light); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
/* Remove WP admin bar offset interference */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 2rem;
  max-width: 1400px; margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.ufs-logo-mark { width: 46px; height: 46px; flex-shrink: 0; }
.ufs-logo-mark svg { width: 46px; height: 46px; }
.site-logo-text .org-name {
  color: var(--white); font-family: 'Merriweather', serif;
  font-size: .9rem; font-weight: 700; line-height: 1.15;
}
.site-logo-text .org-name .org-unique { color: var(--accent); }
.site-logo-text .org-tagline {
  color: rgba(255,255,255,.55); font-size: .62rem;
  letter-spacing: .09em; text-transform: uppercase; margin-top: 2px;
}

/* WP nav menu */
#site-navigation { display: flex; align-items: center; height: 100%; }
#primary-menu {
  display: flex; align-items: center; height: 68px;
  list-style: none; margin: 0; padding: 0;
}
#primary-menu > li {
  position: relative; height: 68px; display: flex; align-items: center;
}
#primary-menu > li > a {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: .78rem; font-weight: 600; padding: 0 .85rem;
  height: 100%; display: flex; align-items: center;
  letter-spacing: .02em; white-space: nowrap; transition: background .2s, color .2s;
}
#primary-menu > li > a:hover,
#primary-menu > li:hover > a,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current_page_item > a {
  background: rgba(255,255,255,.1); color: var(--accent-light);
}
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current_page_item > a {
  color: var(--accent); border-bottom: 3px solid var(--accent);
}
/* Dropdowns */
#primary-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--primary-dark); min-width: 220px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4); z-index: 200;
  border-top: 3px solid var(--accent); list-style: none; margin: 0; padding: 0;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu li a {
  display: block; padding: .65rem 1.1rem;
  color: rgba(255,255,255,.75); text-decoration: none; font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .15s, color .15s;
}
#primary-menu .sub-menu li a:hover { background: rgba(232,160,32,.15); color: var(--accent-light); }

/* Mobile hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: .5rem;
}
.menu-toggle span { width: 24px; height: 2px; background: white; display: block; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.ufs-slider {
  position: relative; width: 100%; height: 480px; overflow: hidden;
  background: var(--primary-dark);
}
.ufs-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s ease; display: flex; align-items: center; justify-content: center;
}
.ufs-slide.active { opacity: 1; }
.ufs-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ufs-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12,50,90,.85) 0%, rgba(12,50,90,.4) 60%, rgba(12,50,90,.15) 100%);
}
.ufs-slide-content {
  position: relative; z-index: 2; color: white;
  padding: 2rem 3rem; max-width: 720px; width: 100%;
}
.ufs-eyebrow {
  display: inline-block; background: var(--accent); color: var(--primary-dark);
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: .28rem .85rem; border-radius: 20px; margin-bottom: 1rem;
}
.ufs-slide-content h2 {
  font-family: 'Merriweather', serif; font-size: 2.3rem; color: white;
  line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.5);
  margin-bottom: .75rem; max-width: 560px;
}
.ufs-slide-content p {
  font-size: 1rem; color: rgba(255,255,255,.88); line-height: 1.7;
  margin-bottom: 1.4rem; max-width: 480px;
}
.ufs-slide-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
/* Slider controls */
.ufs-slider-prev,
.ufs-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s; backdrop-filter: blur(4px);
}
.ufs-slider-prev { left: 1rem; }
.ufs-slider-next { right: 1rem; }
.ufs-slider-prev:hover, .ufs-slider-next:hover { background: rgba(255,255,255,.3); }
.ufs-slider-dots {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 10;
}
.ufs-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  border: none; transition: background .2s, transform .2s; padding: 0;
}
.ufs-dot.active { background: var(--accent); transform: scale(1.25); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-bar {
  background: var(--primary); overflow: hidden; white-space: nowrap;
  padding: .55rem 0;
  border-top: 2px solid var(--primary-light); border-bottom: 2px solid var(--primary-dark);
}
.marquee-inner { display: inline-block; animation: ufs-marquee 32s linear infinite; }
.marquee-inner span { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .07em; padding: 0 2rem; }
.marquee-inner .sep { color: var(--accent); padding: 0 .5rem; }
@keyframes ufs-marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.alert-bar {
  background: #e8f4fd; text-align: center; padding: .8rem 1rem;
  font-size: .87rem; color: var(--primary-dark); font-weight: 600;
  border-bottom: 2px solid #c5dff0;
}
.alert-bar a { color: var(--primary); font-weight: 700; text-decoration: none; margin-left: .4rem; }

/* ============================================================
   NEWS CARD
   ============================================================ */
.news-section { background: var(--white); }
.news-card {
  display: flex; gap: 2.2rem; align-items: flex-start;
  background: var(--off-white); border-radius: 8px; padding: 2.2rem;
  border-left: 5px solid var(--accent); box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.news-photo { width: 240px; height: 270px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.news-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.news-card-body .news-cat { font-size: .78rem; color: var(--accent); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; font-family: 'Open Sans', sans-serif; }
.news-card-body h2 { font-family: 'Merriweather', serif; font-size: 1.28rem; color: var(--primary-dark); margin-bottom: .75rem; line-height: 1.4; }
.news-card-body p { font-size: .9rem; line-height: 1.8; color: #5a6e82; margin-bottom: .9rem; }

/* ============================================================
   IMPACT FRAMEWORK
   ============================================================ */
.impact-section { background: var(--off-white); }
.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.obj-card { background: white; border-radius: 8px; padding: 2.2rem; box-shadow: 0 2px 12px rgba(0,0,0,.07); border-top: 5px solid var(--primary); }
.obj-card.alt { border-top-color: var(--accent); }
.obj-card h3 { font-family: 'Merriweather', serif; font-size: 1.08rem; color: var(--primary-dark); margin-bottom: 1.2rem; }
.obj-card ul { list-style: none; margin: 0; padding: 0; }
.obj-card ul li { padding: .48rem 0; font-size: .9rem; line-height: 1.65; color: #5a6e82; border-bottom: 1px solid var(--light-gray); display: flex; align-items: flex-start; gap: .6rem; }
.obj-card ul li::before { content: '◆'; color: var(--accent); flex-shrink: 0; margin-top: .16rem; font-size: .62rem; }
.obj-card ul li:last-child { border-bottom: none; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs-section { background: var(--white); }
.age-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 2.5rem; }
.age-card { border-radius: 10px; overflow: hidden; box-shadow: 0 3px 16px rgba(0,0,0,.1); }
.age-img { height: 160px; overflow: hidden; }
.age-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.age-card:hover .age-img img { transform: scale(1.05); }
.age-header { padding: .9rem 1.2rem 1.2rem; text-align: center; color: white; }
.age-header.blue { background: linear-gradient(135deg, #124f7c, #1b6ca8); }
.age-header.teal { background: linear-gradient(135deg, #0d6e6e, #17a99a); }
.age-header.plum { background: linear-gradient(135deg, #5c2d77, #8a4aad); }
.age-range { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent-light); margin-bottom: .2rem; }
.age-label-txt { font-family: 'Merriweather', serif; font-size: .9rem; font-style: italic; }
.age-body { padding: 1.1rem 1.2rem; font-size: .87rem; line-height: 1.75; color: #5a6e82; background: white; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 2rem; }
.photo-grid-item { border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 4/3; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-grid-item:hover img { transform: scale(1.07); }
.pg-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(12,50,90,.88), transparent); color: white; padding: .6rem .85rem; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }

.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.program-card { background: var(--off-white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; display: block; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.13); }
.prog-thumb { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; position: relative; overflow: hidden; }
.prog-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(18,79,124,.8) 0%, rgba(27,108,168,.25) 100%); }
.prog-thumb span { position: relative; z-index: 1; }
.prog-thumb.t1{background:#124f7c;} .prog-thumb.t2{background:#3c127c;} .prog-thumb.t3{background:#127c3c;} .prog-thumb.t4{background:#7c1212;}
.program-card p { padding: .8rem 1rem; font-weight: 700; font-size: .85rem; color: var(--primary-dark); text-align: center; margin: 0; }

.photo-strip-wrap { background: var(--primary-dark); padding: .5rem 0; }
.photo-strip { display: flex; gap: .4rem; height: 190px; overflow: hidden; padding: 0 .4rem; }
.ps-img { flex: 1; min-width: 0; overflow: hidden; border-radius: 4px; transition: flex .45s ease; cursor: pointer; }
.ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-img:hover { flex: 2.8; }

/* ============================================================
   MISSION
   ============================================================ */
.mission-section { background: var(--primary-dark); color: white; }
.mission-section .section-title { color: white; }
.mission-section .section-title::after { background: var(--accent); }
.mission-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mission-photo { border-radius: 10px; overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.45); }
.mission-photo img { width: 100%; height: 380px; object-fit: cover; display: block; }
.mission-text h3 { font-family: 'Merriweather', serif; font-size: 1.18rem; color: var(--accent-light); margin-bottom: 1rem; }
.mission-text p { font-size: .92rem; line-height: 1.9; opacity: .87; margin-bottom: 1rem; color: rgba(255,255,255,.87); }
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat-pill { background: var(--accent); color: var(--primary-dark); font-weight: 800; font-size: .95rem; border-radius: 30px; padding: .38rem 1.1rem; }

/* ============================================================
   TRANSPARENCY
   ============================================================ */
.transparency-section { background: var(--off-white); }
.trans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.trans-card { background: white; border-radius: 8px; padding: 1.9rem; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.07); border-bottom: 4px solid var(--accent); }
.trans-card .t-icon { font-size: 2.3rem; margin-bottom: .75rem; }
.trans-card h4 { font-family: 'Merriweather', serif; color: var(--primary-dark); margin-bottom: .6rem; font-size: 1rem; }
.trans-card p { font-size: .85rem; color: #6a7f96; line-height: 1.7; margin: 0; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 4.5rem 1.5rem; }
.testimonial-section .section-title { color: white; }
.testimonial-section .section-title::after { background: var(--accent); }
.testimonial-inner { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; max-width: 820px; margin: 0 auto; }
.test-avatar { width: 115px; height: 115px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); }
blockquote { font-family: 'Merriweather', serif; font-size: 1.08rem; font-style: italic; line-height: 1.9; color: white; border-left: 4px solid var(--accent); padding-left: 1.5rem; margin: 0; }
blockquote cite { display: block; margin-top: .9rem; font-size: .83rem; font-style: normal; color: var(--accent-light); font-weight: 700; }

/* ============================================================
   PLAY STREETS
   ============================================================ */
.play-section { position: relative; color: white; text-align: center; min-height: 360px; display: flex; align-items: center; overflow: hidden; }
.play-bg-img { position: absolute; inset: 0; }
.play-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { position: absolute; inset: 0; background: rgba(13,110,110,.82); }
.play-inner { position: relative; z-index: 2; padding: 3.5rem 1.5rem; width: 100%; }
.play-inner .section-title { color: white; }
.play-inner .section-title::after { background: var(--accent); }
.play-inner p { font-size: .95rem; line-height: 1.8; max-width: 700px; margin: 0 auto 1.6rem; opacity: .92; }

/* ============================================================
   DONATE CTA
   ============================================================ */
.donate-section { background: var(--accent); text-align: center; padding: 3.5rem 1.5rem; }
.donate-section h2 { font-family: 'Merriweather', serif; color: var(--primary-dark); font-size: 1.7rem; margin-bottom: .8rem; }
.donate-section > .container > p { color: var(--primary-dark); font-size: .95rem; margin-bottom: 1.5rem; opacity: .84; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-section { background: var(--white); }
.partners-grid { display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: center; justify-content: center; }
.partner-chip { background: var(--off-white); border-radius: 8px; padding: .9rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-weight: 700; font-size: .82rem; color: var(--primary-dark); text-align: center; min-width: 130px; border: 1px solid var(--light-gray); transition: box-shadow .2s, transform .2s; }
.partner-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 3.2rem 1.5rem 1.6rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand p { font-size: .82rem; line-height: 1.78; opacity: .72; margin: 0; }
#site-footer h4 { color: var(--accent-light); font-size: .8rem; font-weight: 800; letter-spacing: .09em; margin-bottom: 1rem; text-transform: uppercase; font-family: 'Open Sans', sans-serif; }
#site-footer ul { list-style: none; margin: 0; padding: 0; }
#site-footer ul li { margin-bottom: .45rem; }
#site-footer ul li a { color: rgba(255,255,255,.68); text-decoration: none; font-size: .82rem; transition: color .2s; }
#site-footer ul li a:hover { color: var(--accent-light); }
.footer-contact p { font-size: .82rem; line-height: 1.9; opacity: .72; margin: 0; }
.footer-bottom { max-width: 1200px; margin: 1.3rem auto 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .73rem; margin: 0; }

/* ============================================================
   SINGLE / PAGE / BLOG
   ============================================================ */
.site-main { padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; }
.entry-title { font-size: 2rem; margin-bottom: 1rem; font-family: 'Merriweather', serif; }
.entry-meta { font-size: .82rem; color: var(--mid-gray); margin-bottom: 1.5rem; }
.entry-content p { line-height: 1.8; margin-bottom: 1.2rem; }
.entry-content h2, .entry-content h3 { font-family: 'Merriweather', serif; margin: 2rem 0 1rem; color: var(--primary-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content li { margin-bottom: .4rem; line-height: 1.7; }
.entry-content img { border-radius: 6px; margin: 1.5rem 0; }

/* WP alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--mid-gray); text-align: center; padding: .4rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  #primary-menu { display: none; }
  #site-navigation { display: block; }
  .menu-toggle { display: flex; }
  #primary-menu.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; width: 100%;
    background: var(--primary-dark); padding: .5rem 0;
    z-index: 999; height: auto; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .admin-bar #primary-menu.is-open { top: 100px; }
  #primary-menu.is-open > li { height: auto; width: 100%; }
  #primary-menu.is-open > li > a { padding: .85rem 1.5rem; width: 100%; }
  #primary-menu.is-open .sub-menu { position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,.2); display: none; }
  #primary-menu.is-open .sub-menu.open { display: block; }
  #primary-menu.is-open .sub-menu li a { padding-left: 2.5rem; }
  .ufs-slider { height: 380px; }
  .ufs-slide-content h2 { font-size: 1.7rem; }
  .news-card { flex-direction: column; }
  .news-photo { width: 100%; height: 220px; }
  .obj-grid, .age-bands, .trans-grid { grid-template-columns: 1fr; }
  .mission-inner { grid-template-columns: 1fr; }
  .mission-photo { display: none; }
  .testimonial-inner { grid-template-columns: 1fr; text-align: center; }
  .test-avatar { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ufs-slider { height: 320px; }
  .ufs-slide-content { padding: 1.5rem; }
  .ufs-slide-content h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
