/*
Theme Name: Hope 4 You Community
Theme URI: https://hope4youcdc.org/
Author: Hope 4 You Community Development Corporation
Description: A custom community-focused WordPress theme for Hope 4 You CDC, featuring programs, events, impact, volunteer, donation, and contact sections.
Version: 1.2.3
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: hope4you-community
*/

:root{
  --h4y-green:#0f5132;
  --h4y-green-2:#167a4c;
  --h4y-gold:#f2c94c;
  --h4y-cream:#fbfaf4;
  --h4y-ink:#16211b;
  --h4y-muted:#607067;
  --h4y-white:#fff;
  --h4y-border:#e4e9e5;
  --h4y-shadow:0 18px 45px rgba(16,55,35,.12);
  --h4y-radius:22px;
  --h4y-wrap:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--h4y-white);color:var(--h4y-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:var(--h4y-green-2);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.h4y-wrap{width:min(var(--h4y-wrap),calc(100% - 40px));margin-inline:auto}
.h4y-kicker{text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;font-weight:800;color:var(--h4y-green-2)}
.h4y-section{padding:86px 0}
.h4y-section--soft{background:var(--h4y-cream)}
.h4y-section--green{background:var(--h4y-green);color:#fff}
.h4y-section-title{font-size:clamp(2rem,4vw,3.3rem);line-height:1.08;margin:.35rem 0 1rem;letter-spacing:-.035em}
.h4y-lede{font-size:1.18rem;color:var(--h4y-muted);max-width:760px}
.h4y-section--green .h4y-lede{color:rgba(255,255,255,.82)}
.h4y-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:999px;padding:.92rem 1.25rem;font-weight:800;border:2px solid transparent;transition:.2s ease;cursor:pointer;font:inherit}
.h4y-btn:hover{transform:translateY(-1px);text-decoration:none}
.h4y-btn--primary{background:var(--h4y-gold);color:#222}
.h4y-btn--primary:hover{background:#f6d868}
.h4y-btn--outline{border-color:rgba(255,255,255,.6);color:#fff;background:transparent}
.h4y-btn--outline-dark{border-color:var(--h4y-green);color:var(--h4y-green);background:#fff}
.h4y-btn-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.5rem}

.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--h4y-border)}
.admin-bar .site-header{top:32px}
.h4y-header-inner{height:78px;display:flex;align-items:center;gap:28px}
.h4y-brand{display:flex;align-items:center;gap:.75rem;color:var(--h4y-ink);font-weight:900;letter-spacing:-.02em;min-width:max-content}
.h4y-brand:hover{text-decoration:none}
.h4y-brand-mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--h4y-green),var(--h4y-green-2));color:var(--h4y-gold);font-weight:950;box-shadow:0 7px 18px rgba(15,81,50,.2)}
.h4y-brand-text small{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:.58rem;color:var(--h4y-muted)}
.custom-logo{max-height:54px;width:auto}
.h4y-default-logo{max-height:62px;width:auto;display:block}
.h4y-brand-text--subonly small{font-size:.64rem}
.site-nav{margin-left:auto}
.site-nav ul{list-style:none;display:flex;align-items:center;gap:1.2rem;margin:0;padding:0}
.site-nav a{color:var(--h4y-ink);font-weight:700;font-size:.95rem}
.site-nav .current-menu-item>a{color:var(--h4y-green-2)}
.h4y-header-cta{margin-left:.3rem}
.h4y-menu-toggle{display:none;background:none;border:0;font-size:1.65rem;line-height:1;cursor:pointer;color:var(--h4y-ink);padding:.55rem;border-radius:10px;position:relative;z-index:102}

.h4y-hero{position:relative;isolation:isolate;overflow:hidden;min-height:690px;display:flex;align-items:center;background:radial-gradient(circle at 80% 15%,rgba(242,201,76,.3),transparent 26%),linear-gradient(135deg,#0b432a 0%,#0f5132 58%,#167a4c 100%);color:#fff}
.h4y-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,36,22,.92) 0%,rgba(6,36,22,.77) 48%,rgba(6,36,22,.2) 100%)}
.h4y-hero.has-photo{background-size:cover;background-position:center}
.h4y-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:46px;align-items:center;padding:100px 0}
.h4y-hero h1{font-size:clamp(3rem,6vw,5.8rem);line-height:.96;letter-spacing:-.055em;margin:.5rem 0 1.2rem;max-width:830px}
.h4y-hero p{font-size:1.22rem;max-width:720px;color:rgba(255,255,255,.86)}
.h4y-hero-card{margin-left:auto;width:min(100%,390px);background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(12px);border-radius:30px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.2)}
.h4y-hero-card strong{display:block;font-size:2.5rem;color:var(--h4y-gold);line-height:1}
.h4y-hero-card p{font-size:1rem;margin:.55rem 0 0}
.h4y-impact-stack{display:grid;gap:18px}

.h4y-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:34px}
.h4y-card{background:#fff;border:1px solid var(--h4y-border);border-radius:var(--h4y-radius);padding:28px;box-shadow:0 10px 28px rgba(20,60,39,.06)}
.h4y-card h3{margin:.6rem 0;font-size:1.35rem;line-height:1.2}
.h4y-card p{color:var(--h4y-muted);margin-bottom:0}
.h4y-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#eef7f1;color:var(--h4y-green);font-size:1.45rem;font-weight:900}
.h4y-card--feature{border-top:5px solid var(--h4y-gold)}
.h4y-program-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:34px}
.h4y-program{padding:32px;border-radius:var(--h4y-radius);border:1px solid var(--h4y-border);background:#fff}
.h4y-program h3{margin-top:0;font-size:1.5rem}
.h4y-program ul{padding-left:1.2rem;color:var(--h4y-muted)}

.h4y-story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 0 42px}
.h4y-story-photo{margin:0;border-radius:22px;overflow:hidden;background:#eef3ef;box-shadow:0 10px 28px rgba(20,60,39,.08)}
.h4y-story-photo img{width:100%;height:280px;object-fit:cover}
.h4y-story-photo figcaption{padding:14px 16px;font-weight:800;color:#315a43;background:#fff}

.h4y-split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.h4y-photo{min-height:430px;border-radius:30px;background:linear-gradient(135deg,#c7dfd0,#f1d989);overflow:hidden;box-shadow:var(--h4y-shadow);position:relative}
.h4y-photo img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.h4y-photo::after{content:"Community photo";position:absolute;left:20px;bottom:18px;background:rgba(255,255,255,.9);color:var(--h4y-ink);border-radius:999px;padding:.4rem .8rem;font-size:.8rem;font-weight:800}
.h4y-photo:has(img)::after{display:none}

.h4y-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:34px}
.h4y-stat{border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:24px;background:rgba(255,255,255,.08)}
.h4y-stat strong{display:block;font-size:2.1rem;color:var(--h4y-gold);line-height:1.05}
.h4y-stat span{font-size:.92rem;color:rgba(255,255,255,.8)}

.h4y-build{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:34px}
.h4y-build-item{background:#fff;border:1px solid var(--h4y-border);border-radius:18px;padding:22px;text-align:center}
.h4y-build-letter{width:52px;height:52px;border-radius:50%;background:var(--h4y-green);color:var(--h4y-gold);display:grid;place-items:center;margin:0 auto 14px;font-size:1.4rem;font-weight:950}
.h4y-build-item strong{display:block;line-height:1.25}

.h4y-events{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:34px}
.h4y-event{background:#fff;border-radius:var(--h4y-radius);padding:30px;border:1px solid var(--h4y-border);overflow:hidden}
.h4y-event.has-photo{padding:0}
.h4y-event-photo{width:100%;height:260px;object-fit:cover}
.h4y-event-body{padding:30px}
.h4y-event .h4y-badge{display:inline-flex;padding:.34rem .62rem;border-radius:999px;background:#fff5cf;color:#6b5600;font-weight:800;font-size:.78rem}
.h4y-event h3{font-size:1.5rem;margin:.8rem 0}
.h4y-event p{color:var(--h4y-muted)}

.h4y-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:230px;gap:14px;margin-top:30px}
.h4y-gallery figure{margin:0;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#c7dfd0,#f3e3a7);position:relative}
.h4y-gallery figure:first-child{grid-row:span 2}
.h4y-gallery img{width:100%;height:100%;object-fit:cover}
.h4y-gallery .empty-photo{display:grid;place-items:center;height:100%;padding:20px;text-align:center;font-weight:800;color:#315a43}

.h4y-price{font-size:2.15rem;font-weight:950;color:var(--h4y-green)}
.h4y-price small{font-size:.85rem;color:var(--h4y-muted);font-weight:700}

.h4y-form{display:grid;gap:14px}
.h4y-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.h4y-form label{display:block;font-weight:800;font-size:.92rem;margin-bottom:.35rem}
.h4y-form input,.h4y-form textarea,.h4y-form select{width:100%;padding:.9rem 1rem;border:1px solid #cfd9d2;border-radius:14px;font:inherit;background:#fff;color:var(--h4y-ink)}
.h4y-form textarea{min-height:160px;resize:vertical}
.h4y-notice{padding:14px 16px;border-radius:14px;margin-bottom:20px;background:#e9f7ee;color:#155b34;font-weight:700}
.h4y-notice--error{background:#fff0f0;color:#8f2525}
.h4y-honeypot{position:absolute;left:-9999px}

.h4y-contact-grid{display:grid;grid-template-columns:1fr .9fr;gap:38px;margin-top:32px}
.h4y-contact-card{border-radius:24px;background:var(--h4y-cream);padding:28px}
.h4y-contact-card div+div{margin-top:1rem}

.h4y-page-hero{padding:86px 0 64px;background:linear-gradient(145deg,#f3f8f4,#fff9df)}
.h4y-page-hero h1{font-size:clamp(2.8rem,5vw,4.5rem);letter-spacing:-.045em;line-height:1;margin:.35rem 0 1rem}
.h4y-content{padding:70px 0}
.h4y-content h2{font-size:2rem;line-height:1.2;margin-top:2.2rem}
.h4y-content h3{font-size:1.35rem}
.h4y-content p,.h4y-content li{color:#435249}
.h4y-content ul{padding-left:1.2rem}

.h4y-cta{background:linear-gradient(135deg,var(--h4y-green),#0a3a24);color:#fff;border-radius:30px;padding:48px;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:var(--h4y-shadow)}
.h4y-cta h2{margin:0 0 .5rem;font-size:2rem}
.h4y-cta p{margin:0;color:rgba(255,255,255,.78);max-width:650px}

.site-footer{background:#0b2f20;color:#fff;padding:58px 0 24px}
.h4y-footer-grid{display:grid;grid-template-columns:1.4fr .7fr .9fr;gap:40px}
.site-footer a{color:#fff}
.site-footer p{color:rgba(255,255,255,.72)}
.h4y-footer-title{font-weight:900;margin-bottom:.7rem}
.h4y-footer-nav{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.h4y-copyright{border-top:1px solid rgba(255,255,255,.14);padding-top:22px;margin-top:38px;color:rgba(255,255,255,.6);font-size:.88rem;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media(max-width:980px){
  .h4y-menu-toggle{display:block;margin-left:auto}
  .site-nav{display:none;position:absolute;top:78px;left:0;right:0;z-index:101;background:#fff;border-bottom:1px solid var(--h4y-border);padding:18px 20px;box-shadow:0 18px 30px rgba(0,0,0,.08)}
  .site-nav.is-open{display:block}.site-nav ul{display:grid;gap:0}.site-nav li{width:100%}.site-nav a{display:block;padding:.8rem .25rem}.h4y-header-cta{display:none}
  .h4y-hero-grid,.h4y-split,.h4y-contact-grid{grid-template-columns:1fr}.h4y-hero-card{margin:0;width:100%;max-width:580px}
  .h4y-cards{grid-template-columns:repeat(2,1fr)}.h4y-stats{grid-template-columns:repeat(2,1fr)}.h4y-story-grid{grid-template-columns:repeat(2,1fr)}
  .h4y-build{grid-template-columns:repeat(3,1fr)}  .h4y-footer-grid{grid-template-columns:1fr 1fr}.h4y-footer-grid>div:first-child{grid-column:1/-1}
}
@media(max-width:680px){
  .h4y-wrap{width:min(var(--h4y-wrap),calc(100% - 28px))}.h4y-section{padding:64px 0}.h4y-hero{min-height:auto}.h4y-hero-grid{padding:72px 0}.h4y-hero h1{font-size:3.1rem}
  .h4y-cards,.h4y-program-grid,.h4y-events,.h4y-build,.h4y-stats,.h4y-story-grid{grid-template-columns:1fr}
  .h4y-gallery{grid-template-columns:1fr;grid-auto-rows:260px}.h4y-gallery figure:first-child{grid-row:auto}
  .h4y-form-row{grid-template-columns:1fr}.h4y-cta{padding:32px;display:block}.h4y-cta .h4y-btn-row{margin-top:1.2rem}.h4y-footer-grid{grid-template-columns:1fr}.h4y-footer-grid>div:first-child{grid-column:auto}
  .admin-bar .site-header{top:46px}
}

/* Giving + volunteer forms */
.h4y-give-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:32px;align-items:start;margin-top:34px}
.h4y-form-card>h3{margin-top:0;font-size:1.55rem}
.h4y-choice-fieldset{border:0;padding:0;margin:0;display:flex;gap:18px;flex-wrap:wrap}
.h4y-choice-fieldset legend{font-weight:800;font-size:.92rem;margin-bottom:.5rem}
.h4y-choice,.h4y-checkbox{display:flex!important;align-items:flex-start;gap:.55rem;font-weight:650!important;margin:0!important;color:#34483d}
.h4y-choice input,.h4y-checkbox input{width:auto!important;margin-top:.28rem;flex:0 0 auto}
.h4y-checkbox-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}
.h4y-money-input{display:flex;align-items:center;border:1px solid #cfd9d2;border-radius:14px;background:#fff;overflow:hidden}
.h4y-money-input span{padding-left:1rem;font-weight:900;color:var(--h4y-green)}
.h4y-money-input input{border:0!important;border-radius:0!important;padding-left:.4rem!important;outline:0}
.h4y-quick-amounts{display:flex;gap:8px;flex-wrap:wrap}
.h4y-quick-amounts button{border:1px solid #cfd9d2;background:#fff;color:var(--h4y-green);border-radius:999px;padding:.55rem .85rem;font-weight:800;cursor:pointer}
.h4y-quick-amounts button:hover{border-color:var(--h4y-green);background:#eef7f1}
.h4y-btn--wide{width:100%}
.h4y-form-help{font-size:.82rem;color:var(--h4y-muted);margin:0}
.h4y-form-section-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:48px;align-items:start}

@media(max-width:980px){
  .h4y-give-grid,.h4y-form-section-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .h4y-checkbox-grid{grid-template-columns:1fr}
  .h4y-form-card{padding:22px}
}

.h4y-give-grid--single{grid-template-columns:minmax(0,760px);justify-content:center}
