/* ==========================================================
   PEACE LIFE FOUNDATION WEBSITE
   EDIT GUIDE:
   - Change brand colors in :root below.
   - Update spacing, fonts, and section styles as desired.
   - Replace image files in the /images folder with your own photos.
   ========================================================== */

:root {
  --green: #164e43;
  --green-deep: #103d35;
  --green-soft: #e8f0eb;
  --cream: #faf8f2;
  --paper: #fffdf8;
  --gold: #d6a85b;
  --gold-pale: #f5ead5;
  --ink: #1c2a26;
  --muted: #65716c;
  --line: #e4e5dc;
  --white: #ffffff;
  --heading: "Playfair Display", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --container: 1160px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(19, 55, 46, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 105px 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: var(--heading); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(3.2rem, 6vw, 5.7rem); margin-bottom: 24px; }
h2 { font-size: clamp(2.45rem, 4.3vw, 4rem); margin-bottom: 24px; }
h3 { font-size: 1.55rem; font-weight: 600; }
h1 em, h2 em { color: var(--green); font-weight: 500; }
p { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 22px; }
.eyebrow-line { width: 30px; height: 1px; background: var(--gold); }
.body-large { font-size: 1.2rem; line-height: 1.8; color: #45564f; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: white; padding: 12px; }
.skip-link:focus { left: 8px; }
.announcement { background: var(--green-deep); color: #f5f1e8; text-align: center; padding: 8px 20px; font-size: .76rem; letter-spacing: .045em; }
.announcement p { margin: 0; color: inherit; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(228,229,220,.8); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50% 50% 50% 10%; background: var(--green); color: white; font-family: var(--heading); font-size: 1.35rem; font-weight: 700; transform: rotate(-5deg); }
.brand-mark span { color: var(--gold); }
.brand-name { color: var(--green-deep); font-family: var(--heading); font-size: 1.12rem; line-height: 1.05; font-weight: 700; }
.brand-name small { display: block; margin-top: 5px; font-family: var(--body); text-transform: uppercase; letter-spacing: .19em; font-size: .58rem; font-weight: 700; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.primary-nav > a { color: #394740; font-size: .86rem; font-weight: 600; transition: color .2s; }
.primary-nav > a:hover { color: var(--green); }
.primary-nav .nav-cta { background: var(--green); color: white; border-radius: 999px; padding: 12px 18px; }
.primary-nav .nav-cta:hover { background: var(--green-deep); color: white; }
.nav-cta span { padding-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green); margin: 5px 0; transition: transform .2s; }

.hero { position: relative; overflow: hidden; padding: 78px 0 100px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(45px, 7vw, 90px); position: relative; z-index: 1; }
.hero-copy { padding: 15px 0 0; }
.hero h1 { max-width: 650px; }
.hero-text { max-width: 510px; font-size: 1.12rem; line-height: 1.85; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 52px; padding: 14px 22px; border-radius: 999px; font-size: .88rem; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: white; box-shadow: 0 9px 20px rgba(22,78,67,.15); }
.button-primary:hover { background: var(--green-deep); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-size: .9rem; font-weight: 700; border-bottom: 1px solid rgba(22,78,67,.35); padding-bottom: 4px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.hero-note { display: flex; align-items: center; gap: 14px; margin-top: 48px; }
.note-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--gold-pale); border-radius: 50%; color: var(--green); font-size: 1.3rem; }
.hero-note p { font-size: .8rem; line-height: 1.6; margin: 0; }
.hero-note strong { color: var(--ink); font-size: .88rem; }
.hero-visual { position: relative; padding: 0 18px 28px 0; }
.hero-image-frame { position: relative; height: clamp(410px, 49vw, 600px); border-radius: 46% 46% 16px 16px; overflow: hidden; background: #dce7df; box-shadow: var(--shadow); }
.hero-image-frame img { position: relative; z-index: 1; }
.image-placeholder { background: linear-gradient(135deg, #e8eee7, #c9d9ce 55%, #e9ddc7); }
.image-placeholder::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 15%, rgba(255,255,255,.55), transparent 38%); pointer-events: none; }
.image-fallback { display: none; position: absolute; inset: 0; z-index: 0; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 25px; color: var(--green); }
.image-placeholder .image-fallback { display: flex; }
.image-fallback span { font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.image-fallback small { font-size: .72rem; color: #61756b; }
.floating-card { position: absolute; left: -45px; bottom: 75px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 17px 20px; max-width: 285px; background: white; border-radius: 14px; box-shadow: var(--shadow); }
.floating-icon { display: grid; place-items: center; width: 39px; height: 39px; background: var(--gold-pale); color: #98702e; border-radius: 50%; font-size: 1.2rem; }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: .8rem; }
.floating-card small { font-size: .68rem; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.hero-stamp { position: absolute; top: 25px; right: -20px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; width: 96px; height: 96px; border: 1px solid rgba(22,78,67,.3); border-radius: 50%; background: rgba(250,248,242,.88); color: var(--green); transform: rotate(10deg); font-size: .55rem; letter-spacing: .16em; font-weight: 700; }
.hero-stamp b { font-size: 1.3rem; color: var(--gold); line-height: 1; }
.hero-bottom-shape { position: absolute; bottom: -80px; left: -3%; width: 106%; height: 120px; background: var(--paper); border-radius: 50% 50% 0 0; }

.intro { padding-top: 120px; }
.intro-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 70px; }
.section-label { display: flex; align-items: center; gap: 13px; color: var(--green); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.number { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--gold); border-radius: 50%; color: var(--green); font-size: .72rem; }
.intro-content { max-width: 800px; }
.intro-content h2 { max-width: 780px; }
.intro-content > p:not(.eyebrow) { max-width: 690px; }
.intro-content .text-link { margin-top: 12px; }

.mission-band { background: var(--green); padding: 45px 0; }
.mission-inner { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 50px); text-align: center; }
.mission-inner p { max-width: 790px; color: #e9f0eb; font-family: var(--heading); font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.45; margin: 0; }
.mission-inner strong { color: #f0d5a4; font-weight: 600; }
.mission-spark { color: var(--gold); font-size: 1.7rem; flex-shrink: 0; }

.programs { background: #f6f6ef; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 46px; }
.section-heading h2 { max-width: 690px; margin-bottom: 0; }
.heading-side-text { max-width: 320px; margin-bottom: 6px; font-size: .94rem; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.program-card { border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 10px 30px rgba(27,53,43,.04); transition: transform .25s, box-shadow .25s; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-image { position: relative; height: 235px; overflow: hidden; background: #dce7df; }
.program-image img { transition: transform .5s; }
.program-card:hover .program-image img { transform: scale(1.04); }
.program-number { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: rgba(255,253,248,.93); color: var(--green); font-size: .75rem; font-weight: 800; }
.program-body { padding: 27px 27px 29px; }
.card-kicker { color: var(--green); text-transform: uppercase; font-size: .68rem; letter-spacing: .13em; font-weight: 800; margin-bottom: 11px; }
.program-body h3 { margin-bottom: 14px; }
.program-body > p:not(.card-kicker) { font-size: .88rem; line-height: 1.8; min-height: 125px; margin-bottom: 22px; }
.card-link { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 800; color: var(--green); }
.card-link span { transition: transform .2s; }
.card-link:hover span { transform: translate(3px, -3px); }
.program-card-green { background: var(--green); }
.program-card-green .program-body h3, .program-card-green .program-body > p:not(.card-kicker) { color: #f6f5ee; }
.program-card-green .card-kicker, .program-card-green .card-link { color: #f0d5a4; }
.program-card-gold { background: #f3e7d1; }
.program-card-gold .program-body > p:not(.card-kicker) { color: #655e51; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(55px, 8vw, 105px); }
.story-visual { padding: 0 0 32px 22px; position: relative; }
.story-image { position: relative; height: 520px; border-radius: 18px 140px 18px 18px; overflow: hidden; background: #dce7df; box-shadow: var(--shadow); }
.story-caption { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 10px; padding: 15px 19px; background: white; border-radius: 0 14px 0 0; font-size: .75rem; font-weight: 700; color: var(--green); box-shadow: 0 5px 18px rgba(0,0,0,.05); }
.caption-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.story-copy > p:not(.eyebrow) { line-height: 1.9; }
.story-copy .button { margin-top: 18px; }
.button-outline { border-color: #b7c9bf; color: var(--green); background: transparent; }
.button-outline:hover { background: var(--green-soft); }

.values { background: var(--cream); }
.values-heading { text-align: center; max-width: 730px; margin: 0 auto 54px; }
.values-heading .eyebrow { justify-content: center; }
.values-heading h2 { margin-bottom: 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value-item { border-top: 1px solid #d9ded4; padding: 28px 6px 0; }
.value-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 25px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.35rem; }
.value-item h3 { font-size: 1.25rem; margin-bottom: 12px; }
.value-item p { font-size: .86rem; line-height: 1.8; margin-bottom: 0; }

.involved { padding-top: 35px; padding-bottom: 105px; }
.involved-panel { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 390px; overflow: hidden; border-radius: 28px; background: var(--green); color: white; }
.involved-copy { padding: clamp(35px, 6vw, 72px); align-self: center; }
.eyebrow-light { color: #f0d5a4; }
.involved-copy h2 { color: white; max-width: 600px; }
.involved-copy h2 em { color: #f0d5a4; }
.involved-copy > p:not(.eyebrow) { max-width: 530px; color: #d5e2da; }
.button-white { background: #fffdf8; color: var(--green); margin-top: 12px; }
.button-white:hover { background: #f0d5a4; }
.involved-art { position: relative; min-height: 350px; overflow: hidden; }
.art-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(239,213,164,.5); }
.art-circle-one { width: 350px; height: 350px; right: -20px; top: 15px; }
.art-circle-two { width: 245px; height: 245px; right: 32px; top: 67px; background: rgba(255,255,255,.04); }
.art-spark { position: absolute; right: 145px; top: 105px; color: var(--gold); font-size: 3rem; }
.art-word { position: absolute; right: 60px; bottom: 65px; color: rgba(255,255,255,.92); font-family: var(--heading); font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; transform: rotate(-8deg); }

.contact { background: #f6f6ef; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.contact-copy h2 { font-size: clamp(2.4rem, 4vw, 3.5rem); }
.contact-copy > p:not(.eyebrow) { max-width: 470px; line-height: 1.85; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.contact-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 50%; background: white; color: var(--green); box-shadow: 0 5px 18px rgba(0,0,0,.04); }
.contact-detail small { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 2px; }
.contact-detail a, .contact-detail p { color: var(--ink); font-size: .9rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.contact-form { background: white; border-radius: 20px; padding: clamp(25px, 4vw, 42px); box-shadow: 0 12px 40px rgba(27,53,43,.06); }
.contact-form h3 { margin-bottom: 9px; }
.form-intro { font-size: .86rem; margin-bottom: 25px; }
.contact-form label { display: block; color: #33463d; font-size: .78rem; font-weight: 700; margin: 17px 0 7px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #dfe4dc; border-radius: 9px; background: #fffefa; padding: 13px 14px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,78,67,.1); }
.contact-form textarea { resize: vertical; }
.form-submit { width: 100%; margin-top: 22px; }
.form-note { font-size: .7rem; line-height: 1.6; margin: 13px 0 0; }
.form-note code { background: #f0f2eb; padding: 2px 4px; border-radius: 4px; }
.form-status { font-size: .8rem; margin: 12px 0 0; }

.site-footer { background: var(--green-deep); color: white; padding: 38px 0 22px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.16); }
.brand-footer .brand-mark { background: #f7f4eb; color: var(--green); }
.brand-footer .brand-name { color: white; }
.footer-top > p { max-width: 360px; color: #c7d6ce; font-size: .82rem; margin: 0; }
.back-top { color: #f0d5a4; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; }
.footer-bottom p { color: #aebfb6; font-size: .7rem; margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .container { width: min(var(--container), calc(100% - 38px)); }
  .primary-nav { gap: 17px; }
  .primary-nav > a { font-size: .79rem; }
  .hero-grid { gap: 42px; }
  .floating-card { left: -22px; }
  .program-grid { gap: 15px; }
  .program-body { padding: 23px 20px 25px; }
  .program-image { height: 200px; }
  .program-body > p:not(.card-kicker) { min-height: 155px; }
  .intro-grid { gap: 40px; }
  .values-grid { gap: 18px; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .announcement { font-size: .68rem; }
  .nav-wrap { min-height: 75px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 25px rgba(20,50,40,.08); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 13px 4px; font-size: .92rem; }
  .primary-nav .nav-cta { text-align: center; margin-top: 8px; padding: 13px 18px; }
  .hero { padding: 58px 0 75px; }
  .hero-grid, .intro-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  h1 { font-size: clamp(3.05rem, 12vw, 4.6rem); }
  h2 { font-size: clamp(2.35rem, 9vw, 3.35rem); }
  .hero-text { font-size: 1rem; }
  .hero-visual { margin: 0 12px; }
  .hero-image-frame { height: min(115vw, 500px); border-radius: 46% 46% 15px 15px; }
  .hero-stamp { right: -15px; width: 78px; height: 78px; font-size: .48rem; }
  .floating-card { left: -16px; bottom: 50px; max-width: 255px; padding: 13px 15px; }
  .hero-note { margin-top: 35px; }
  .intro { padding-top: 85px; }
  .intro-grid { gap: 28px; }
  .section-heading { display: block; }
  .heading-side-text { margin-top: 22px; }
  .program-grid { grid-template-columns: 1fr; gap: 22px; }
  .program-image { height: 250px; }
  .program-body > p:not(.card-kicker) { min-height: 0; }
  .story-grid { gap: 45px; }
  .story-image { height: min(115vw, 480px); border-top-right-radius: 105px; }
  .story-visual { margin: 0 0 0 5px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); row-gap: 35px; }
  .values-heading { margin-bottom: 38px; }
  .involved { padding: 15px 0 76px; }
  .involved-panel { grid-template-columns: 1fr; }
  .involved-copy { padding: 38px 28px 10px; }
  .involved-art { min-height: 235px; }
  .art-circle-one { width: 250px; height: 250px; right: 12%; top: -5px; }
  .art-circle-two { width: 180px; height: 180px; right: calc(12% + 35px); top: 30px; }
  .art-spark { right: 44%; top: 55px; }
  .art-word { right: 22%; bottom: 40px; font-size: 2rem; }
  .contact-grid { gap: 42px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .button { width: 100%; }
  .floating-card { left: -9px; max-width: 235px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { padding-top: 22px; }
  .value-icon { margin-bottom: 17px; }
  .contact-form { padding: 23px 18px; }
}
