@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root{
  --ink:#26342f;--muted:#66736d;--cream:#f7f4ed;--paper:#fffdf8;
  --sage:#a8b8a8;--deep:#39584e;--accent:#d49b68;--line:#dfe3dc;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font-family:"DM Sans",Arial,sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
.site-header{height:96px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;background:rgba(255,253,248,.96);backdrop-filter:blur(10px);border-bottom:1px solid rgba(38,52,47,.08)}
.header-logo{height:96px;width:auto;max-width:360px;display:block}
nav{display:flex;align-items:center;gap:24px;font-size:13px;font-weight:600}
nav a:hover{color:var(--deep)}
nav a.active{color:var(--deep)}
.nav-donate{background:var(--deep);color:#fff!important;padding:10px 18px;border-radius:30px}
.menu{display:none;border:0;background:none;font-size:25px}
.hero{min-height:680px;background:var(--cream);display:grid;grid-template-columns:1.02fr .98fr;padding:80px 7vw 70px;overflow:hidden}
.hero-copy{align-self:center;max-width:670px}
.eyebrow,.section-label{font-size:11px;letter-spacing:.18em;font-weight:700;color:var(--deep)}
h1,h2,h3,p{margin-top:0}
h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(58px,7vw,94px);line-height:.96;font-weight:500;letter-spacing:-.04em;margin:18px 0 28px}
h1 em,h2 span{color:var(--deep);font-family:"Playfair Display",Georgia,serif}
.lead{font-size:18px;color:var(--muted);max-width:580px}
.hero-actions{display:flex;gap:12px;margin-top:34px}
.button{display:inline-block;padding:13px 24px;border-radius:30px;font-weight:700;font-size:13px}
.primary{background:var(--deep);color:#fff}.secondary{border:1px solid var(--ink)}
.hero-photo{position:relative;min-height:500px;display:flex;align-items:center;justify-content:center}
.hero-photo::before{content:"";position:absolute;width:350px;height:350px;border-radius:50%;background:#eadcc7;right:8%;top:7%}
.hero-photo img{position:relative;width:min(340px,72%);height:390px;object-fit:cover;border-radius:28px;box-shadow:0 20px 40px rgba(38,52,47,.12)}
.section{padding:100px 7vw}.mission{background:white}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10vw;margin-top:25px}
h2{font-family:"Playfair Display",Georgia,serif;font-size:clamp(38px,4vw,60px);line-height:1.05;font-weight:500;letter-spacing:-.025em;margin:14px 0 20px}
.two-col p{font-size:17px;color:var(--muted);max-width:590px;margin-top:10px}
.mission-logo{width:120px;height:120px;object-fit:contain;margin-top:10px}
.tnr{background:var(--deep);color:white}
.tnr .section-label{color:#d7e0d8}
.center-heading{text-align:center;max-width:760px;margin:0 auto 58px}
.center-heading h2{color:white}.center-heading p{color:#d7e0d8}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.steps article{padding:32px;border:1px solid rgba(255,255,255,.18);border-radius:16px}
.steps span{font-size:12px;letter-spacing:.15em;color:#d8b18b}
.steps h3{font-family:"Playfair Display",Georgia,serif;font-size:30px;margin:25px 0 8px}
.steps p{color:#d7e0d8;margin:0}
.services{background:var(--cream)}
.services>h2{max-width:650px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:42px}
.card{background:white;border-radius:16px;padding:30px;min-height:310px;display:flex;flex-direction:column;border:1px solid var(--line)}
.icon{font-size:26px;color:var(--accent)}
.card h3{font-family:"Playfair Display",Georgia,serif;font-size:28px;line-height:1.05;margin:25px 0 12px}
.card p{color:var(--muted);font-size:14px}.card a{margin-top:auto;color:var(--deep);font-weight:700;font-size:13px}
.feature-photo{display:grid;grid-template-columns:1.15fr .85fr;gap:20px;margin-top:50px}
.feature-photo img{width:100%;height:270px;object-fit:cover;border-radius:24px}
.feature-photo img:last-child{height:270px}
.education{display:grid;grid-template-columns:.9fr 1.1fr;gap:9vw}
.education-intro p{color:var(--muted);max-width:450px}
.education-list article{display:grid;grid-template-columns:55px 1fr;gap:20px;padding:24px 0;border-top:1px solid var(--line)}
.education-list b{font-family:"Playfair Display",Georgia,serif;font-size:28px;color:var(--accent)}
.education-list h3{font-size:18px;margin:0 0 6px}.education-list p{color:var(--muted);font-size:14px;margin:0}
.quote{padding:100px 12vw;text-align:center;background:#e9eee8}
.quote p{font-family:"Playfair Display",Georgia,serif;font-style:italic;font-size:clamp(28px,3.2vw,46px);line-height:1.2;max-width:900px;margin:auto}
.donate{background:var(--accent);color:white;padding:80px 7vw;display:flex;align-items:center;justify-content:space-between;gap:40px}
.donate .section-label{color:white}.donate h2{max-width:650px;margin-bottom:10px}.donate p{max-width:680px;margin:0;opacity:.9}
.light{background:white;color:var(--deep);white-space:nowrap}
footer{padding:48px 7vw;background:#24352f;color:#dbe4df;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:30px;font-size:13px}
.footer-logo{width:100px;height:100px;object-fit:contain;justify-self:center}
.footer-copy p,.footer-copy small{margin:0;color:#aebcb5}
.footer-right{text-align:right}.footer-right a{display:block;margin-bottom:7px}
.page-hero{background:var(--cream);padding:90px 7vw 80px;display:grid;grid-template-columns:1fr .8fr;align-items:center;gap:8vw}
.page-hero h1{font-size:clamp(52px,6vw,78px);margin-bottom:20px}
.page-hero p{color:var(--muted);font-size:18px;max-width:610px}
.page-hero-logo{width:min(260px,78%);justify-self:center}
.about-story{display:grid;grid-template-columns:.9fr 1.1fr;gap:9vw;align-items:center}
.about-story p{font-size:17px;color:var(--muted)}
.about-story .section-label{margin-bottom:8px}
.about-story img{max-width:360px!important;height:320px!important;border-radius:24px!important}
.about-values{background:var(--cream)}
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:45px}
.value{background:#fff;padding:34px;border-radius:16px;border:1px solid var(--line)}
.value h3{font-family:"Playfair Display",Georgia,serif;font-size:29px;margin:20px 0 10px}
.value p{font-size:14px;color:var(--muted)}
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;margin-top:48px}
.gallery figure{margin:0;overflow:hidden;border-radius:24px;background:#eee}
.gallery img{width:100%;height:100%;display:block;object-fit:cover}
.g1{grid-column:span 7;height:330px}.g2{grid-column:span 5;height:330px}
.g3{grid-column:span 4;height:300px}.g4{grid-column:span 4;height:300px}.g5{grid-column:span 4;height:300px}
.g6{grid-column:span 6;height:300px}
@media(max-width:1000px){
  nav{gap:14px}.header-logo{max-width:330px;height:auto;max-height:58px}
  .cards{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr}.hero-photo{min-height:430px}
  .page-hero{grid-template-columns:1fr}.page-hero-logo{width:280px}
  .about-story,.education{grid-template-columns:1fr;gap:35px}.values-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  nav{display:none;position:absolute;top:88px;left:0;right:0;background:var(--paper);padding:20px 7vw;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}
  nav.open{display:flex}.menu{display:block}.site-header{padding:0 5vw}
  .hero,.section,.page-hero{padding-left:5vw;padding-right:5vw}.hero-photo img{width:min(300px,78%);height:350px}.hero-photo::before{width:300px;height:300px}
  .two-col{grid-template-columns:1fr;gap:30px}.steps{grid-template-columns:1fr}
  .feature-photo{grid-template-columns:1fr}.feature-photo img,.feature-photo img:last-child{height:230px}
  .education{grid-template-columns:1fr}.values-grid{grid-template-columns:1fr}
  .gallery{display:grid;grid-template-columns:1fr 1fr}.g1,.g2,.g3,.g4,.g5,.g6{grid-column:span 1;height:230px}
  .g1{grid-column:span 2;height:250px}.g6{grid-column:span 2;height:250px}
  footer{grid-template-columns:1fr;text-align:center}.footer-logo{justify-self:center}.footer-right{text-align:center}
}
@media(max-width:520px){
  .header-logo{max-width:270px}.hero{padding-top:65px}.hero-photo img{width:82%;height:330px}
  h1{font-size:54px}.cards{grid-template-columns:1fr}.gallery{grid-template-columns:1fr}.g1,.g2,.g3,.g4,.g5,.g6{grid-column:span 1;height:230px}
}

/* V2.3 refinements */
.gallery{width:min(680px,100%);margin:42px auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gallery figure{width:100%;height:auto!important;aspect-ratio:1/1;margin:0;overflow:hidden;border-radius:22px;background:#f4f0e8}
.gallery img{width:100%;height:100%;display:block;object-fit:cover}

@media (max-width:900px){
  .site-header{height:82px}
  .header-logo{height:64px;max-width:240px}
}
@media (max-width:700px){
  .gallery{width:min(520px,100%);grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .gallery figure{aspect-ratio:1/1;border-radius:18px}
}

/* V2.5 gallery layout fix: exactly 2 columns, 2 rows */
.gallery{width:min(680px,100%);margin:42px auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gallery figure,
.gallery .g1,.gallery .g2,.gallery .g3,.gallery .g4{grid-column:span 1!important;width:100%;height:auto!important;aspect-ratio:1/1;margin:0;overflow:hidden;border-radius:22px;background:#f4f0e8}
.gallery img{width:100%;height:100%;display:block;object-fit:cover}
@media (max-width:700px){
  .gallery{width:min(520px,100%);grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .gallery figure,
  .gallery .g1,.gallery .g2,.gallery .g3,.gallery .g4{grid-column:span 1!important;aspect-ratio:1/1;border-radius:18px}
}

/* V2.7 content/layout cleanup */
.mission{background:var(--cream)}
.mission .two-col{align-items:center}
.mission-copy{padding:0;max-width:620px}
.mission-copy p{font-size:17px;line-height:1.7;color:var(--muted);max-width:none;margin:0}
.mission-copy p + p{margin-top:20px}
.mission-logo{width:150px;height:150px;margin-top:18px}
.about-story > div:last-child{background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px 38px;box-shadow:0 10px 30px rgba(36,53,47,.04)}
.page-hero{position:relative}
.page-hero h1{margin-bottom:0}
.donate{position:relative}
@media(max-width:900px){
  .mission-copy,.about-story > div:last-child{padding:28px}
  .mission-logo{width:130px;height:130px}
}

/* V2.8: mission copy should sit directly on the section background */
.mission-copy,.mission-copy p{background:transparent!important;box-shadow:none!important;border:0!important}
.mission-copy{padding:0!important}

@media (max-width:900px){
  .header-logo{height:78px;max-width:300px}
}
@media (max-width:700px){
  .header-logo{height:68px;max-width:260px}
}

/* V2.9: keep the Why We Created It section open and cohesive */
.about-values .about-story{
  grid-template-columns: .85fr 1.15fr;
  align-items:start;
}
.about-values .about-story > div,
.about-values .about-story > div:last-child{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
}
.about-values .about-story p{
  margin:0 0 20px;
}
.about-values .about-story p:last-child{
  margin-bottom:0;
}

/* V3.0: restore a subtle background inside the three TNR step boxes on Home */
.tnr .steps article{
  background:rgba(255,255,255,.07);
}
