/* Be Merciful Foundation — shared styles */

:root{
  --teal-dark:#0F5C46;
  --teal:#146B52;
  --teal-bright:#1C8A68;
  --gold:#EFA83C;
  --gold-light:#F6C878;
  --cream:#FAF8F2;
  --sage:#EAF2EC;
  --ink:#1C2620;
  --ink-soft:#4A5750;
  --white:#FFFFFF;
  --border:#DDE8E0;
  --radius:16px;
  --shadow-sm:0 1px 2px rgba(15,45,35,.05), 0 1px 1px rgba(15,45,35,.04);
  --shadow-md:0 4px 10px rgba(15,45,35,.05), 0 12px 28px rgba(15,45,35,.06);
  --section-pad:clamp(44px, 7vw, 88px);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:clamp(16px, 0.4vw + 15px, 17.5px);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,.serif{
  font-family:'Fraunces',Georgia,serif;
  font-optical-sizing:auto;
  font-weight:700;
  color:var(--teal-dark);
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2.1rem, 4vw + 1rem, 3.6rem); font-weight:700;}
h2{font-size:clamp(1.55rem, 2vw + 1rem, 2.3rem);}
h3{font-size:clamp(1.1rem, 1vw + .9rem, 1.3rem); margin-bottom:.35em; font-weight:600;}
p{margin:0 0 1em; color:var(--ink-soft); max-width:62ch; font-weight:450;}
a{color:var(--teal-bright); text-decoration:none;}
img{max-width:100%; display:block;}
strong{color:var(--ink); font-weight:600;}

.container{max-width:1140px; margin:0 auto; padding:0 clamp(20px, 4vw, 40px); width:100%;}

/* Centered content column, used for standalone spotlight cards */
.spotlight{max-width:600px; margin:0 auto; text-align:center;}
.spotlight .badge{margin-left:auto; margin-right:auto;}
.spotlight .btn{margin-top:6px;}
.spotlight p{max-width:52ch; margin-left:auto; margin-right:auto;}

/* Text column widths, always centered so nothing hugs one side */
.measure-wide{max-width:760px; margin:0 auto;}
.measure{max-width:660px; margin:0 auto;}

/* Header / nav */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(250,248,242,0.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px clamp(20px, 4vw, 40px); max-width:1140px; margin:0 auto;
  position:relative;
}
.brand{display:flex; align-items:center; gap:12px; min-width:0; text-decoration:none;}
.brand img{width:40px; height:40px; border-radius:50%; flex-shrink:0; object-fit:cover;}
.brand span{
  font-family:'Fraunces',serif; font-weight:600; font-size:1.05rem; color:var(--teal-dark);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
nav.links{display:flex; gap:clamp(16px, 2vw, 28px); align-items:center;}
nav.links a{
  color:var(--ink); font-weight:500; font-size:.95rem;
  padding:6px 2px; border-bottom:2px solid transparent; white-space:nowrap;
}
nav.links a:hover, nav.links a.active{color:var(--teal-dark); border-color:var(--gold);}
.nav-cta{
  background:var(--teal-dark); color:var(--white) !important;
  padding:10px 22px; border-radius:100px; font-weight:600;
  border-bottom:none !important; box-shadow:var(--shadow-sm);
}
.nav-cta:hover{background:var(--teal-bright); border-color:transparent !important;}

/* Mobile menu toggle (checkbox hack, no JS) */
.nav-toggle{display:none;}
.nav-toggle-label{
  display:none; font-size:1.7rem; line-height:1; cursor:pointer;
  color:var(--teal-dark); user-select:none; padding:4px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:100px; font-weight:600;
  font-size:.98rem; border:2px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:normal; text-align:center; line-height:1.3;
}
.btn-primary{background:var(--teal-dark); color:var(--white); box-shadow:var(--shadow-sm);}
.btn-primary:hover{background:var(--teal-bright); transform:translateY(-1px); box-shadow:var(--shadow-md);}
.btn-ghost{border-color:var(--teal-dark); color:var(--teal-dark);}
.btn-ghost:hover{background:var(--sage);}
.btn-gold{background:var(--gold); color:var(--teal-dark); box-shadow:var(--shadow-sm);}
.btn-gold:hover{background:var(--gold-light); transform:translateY(-1px); box-shadow:var(--shadow-md);}

/* Hero */
.hero{padding:clamp(40px,6vw,76px) 0 clamp(24px,4vw,40px);}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(32px,5vw,56px); align-items:center;}
.eyebrow{
  color:#B97416; background:#FDF1DD; display:inline-block;
  font-weight:700; font-size:.8rem; letter-spacing:.03em;
  padding:5px 14px; border-radius:100px; margin-bottom:16px;
}
.hero-actions{display:flex; gap:14px; margin-top:26px; flex-wrap:wrap;}
.hero-art{
  position:relative; aspect-ratio:4/3; border-radius:22px;
  background:linear-gradient(160deg,var(--sage),var(--white));
  border:1px solid var(--border); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.hero-art .placeholder-label{color:var(--ink-soft); font-size:.9rem; text-align:center; padding:20px;}
.sparkle{position:absolute; color:var(--gold); z-index:2;}

/* Section */
.section{padding:var(--section-pad) 0;}
.section.tint{background:var(--sage);}
.section-head{max-width:640px; margin-bottom:clamp(24px,4vw,40px);}

/* Cards */
.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  box-shadow:var(--shadow-sm);
}
.card .thumb{
  aspect-ratio:3/4; background:var(--sage);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); font-size:.85rem;
}
.card .body{padding:22px;}
.badge{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.04em;
  padding:5px 13px; border-radius:100px; margin-bottom:12px; text-transform:uppercase;
}
.badge.ongoing{background:#FDEBD0; color:#9A5B10;}
.badge.completed{background:var(--sage); color:var(--teal-dark);}

/* Spotlight / coming-soon card */
.coming-soon-card{
  padding:clamp(32px,5vw,52px) clamp(24px,5vw,44px);
  text-align:center;
}
.coming-soon-card .badge{margin-left:auto; margin-right:auto;}
.coming-soon-card p{margin-left:auto; margin-right:auto;}
.coming-soon-icon{
  width:52px; height:52px; border-radius:50%; background:var(--sage);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px;
  font-size:1.4rem;
}

/* Home page: two-path action cards */
.action-grid{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.action-card{
  padding:clamp(32px,4vw,48px); display:flex; flex-direction:column; align-items:flex-start;
  gap:4px;
}
.action-card-tint{background:var(--sage); border:none;}
.action-icon{
  width:56px; height:56px; border-radius:16px; background:var(--white);
  display:flex; align-items:center; justify-content:center; font-size:1.6rem;
  margin-bottom:8px; box-shadow:var(--shadow-sm);
}
.action-card-tint .action-icon{background:var(--white);}
.action-card h3{font-size:clamp(1.3rem,1.6vw+1rem,1.6rem);}
.action-card .btn{margin-top:10px;}

/* Leadership */
.people-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:30px;}
.person .photo{
  aspect-ratio:1/1; border-radius:50%; background:var(--sage);
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft);
  font-size:.82rem; margin-bottom:14px; width:150px;
}

/* FAQ */
details{border-bottom:1px solid var(--border); padding:18px 0;}
summary{font-weight:600; color:var(--teal-dark); cursor:pointer; font-size:1.05rem;}
details p{margin-top:10px;}

/* Lightbox */
.lightbox-trigger{cursor:zoom-in;}
.lightbox-overlay{
  display:none; position:fixed; inset:0; background:rgba(15,25,20,.94);
  z-index:200; align-items:center; justify-content:center; padding:30px;
}
.lightbox-overlay.is-open{display:flex;}
.lightbox-overlay img{max-width:100%; max-height:90vh; border-radius:10px; margin:0 auto; box-shadow:0 20px 60px rgba(0,0,0,.4);}
.lightbox-close{
  position:absolute; top:20px; right:24px; color:white; font-size:2rem;
  cursor:pointer; line-height:1; background:none; border:none;
}

/* Donate */
.donate-hero{
  background:linear-gradient(135deg,var(--teal-dark),var(--teal));
  color:var(--white); border-radius:26px;
  padding:clamp(32px,5vw,56px); text-align:left; margin-bottom:var(--section-pad);
  box-shadow:var(--shadow-md);
}
.donate-hero h1, .donate-hero p{color:var(--white);}
.donate-hero p{opacity:.92;}
.donate-hero .eyebrow{background:rgba(255,255,255,.14); color:var(--gold-light);}

/* Contact */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,50px);}
.form-row{margin-bottom:16px;}
.form-row label{display:block; font-weight:600; margin-bottom:6px; font-size:.92rem;}
.form-row input, .form-row textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:10px;
  font-family:inherit; font-size:.97rem; background:var(--white);
}
.form-row input:focus, .form-row textarea:focus{outline:2px solid var(--teal-bright); outline-offset:1px;}

/* Footer */
footer{background:var(--teal-dark); color:var(--white); padding:clamp(40px,6vw,56px) 0 28px; margin-top:var(--section-pad);}
footer .container{display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px;}
footer .foot-brand{max-width:300px;}
footer .foot-brand .brand{margin-bottom:14px;}
footer .foot-brand .brand span{color:var(--white);}
footer .foot-brand p{color:rgba(255,255,255,.72); font-size:.92rem; margin:0; font-weight:400; line-height:1.6;}
.foot-col{display:flex; flex-direction:column; gap:12px;}
.foot-label{
  font-family:'Inter',sans-serif; font-size:.75rem; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase; color:var(--gold-light);
  margin-bottom:2px;
}
footer .foot-col a{
  color:rgba(255,255,255,.88); font-size:.95rem; font-weight:500;
  transition:color .15s ease; width:fit-content;
}
footer .foot-col a:hover{color:var(--gold-light);}
footer .foot-bottom{
  margin-top:36px; padding-top:20px; border-top:1px solid rgba(255,255,255,.15);
  font-size:.83rem; color:rgba(255,255,255,.6); letter-spacing:.01em;
}

/* ===== Responsive ===== */
@media (max-width:860px){
  .hero-grid, .contact-grid, .action-grid{grid-template-columns:1fr;}
  .card-grid, .people-grid{grid-template-columns:1fr 1fr;}

  .nav-toggle-label{display:block;}
  nav.links{
    display:flex; flex-direction:column; align-items:stretch; gap:2px;
    position:absolute; top:100%; left:0; right:0;
    background:var(--cream); border-bottom:1px solid var(--border);
    padding:8px clamp(20px,4vw,40px) 20px; max-height:0; overflow:hidden;
    transition:max-height .25s ease; box-shadow:var(--shadow-md);
  }
  nav.links a{width:100%; padding:13px 0; border-bottom:1px solid var(--border) !important; font-size:1rem;}
  nav.links a.nav-cta{width:auto; margin-top:10px; border-bottom:none !important; text-align:center;}
  .nav-toggle:checked ~ nav.links{max-height:420px;}
}

@media (max-width:600px){
  .card-grid, .people-grid{grid-template-columns:1fr;}
  .hero-actions{flex-direction:column; align-items:stretch;}
  .hero-actions .btn{width:100%;}
  .donate-hero .hero-actions .btn{width:100%;}
  footer .container{flex-direction:column; gap:26px;}
}
