/* =========================================================
   DZIDZEME FOUNDATION — shared stylesheet
   Design tokens derived from the foundation mark:
   deep gradient blue ring, sky-blue outer edge, red heart,
   navy cupped hand, and the dashed ring detail.
   ========================================================= */

:root{
  --brand-blue-deep:   #005b91;   /* primary — from brief */
  --primary: var(--brand-blue-deep);
  --brand-blue-light:  #3fb6e6;   /* sky-blue edge of the logo ring */
  --brand-navy:        #0a2942;   /* the cupped hand / darkest ring shade */
  --brand-red:         #e0272c;   /* the heart */
  --brand-red-deep:    #b81f24;

  --cream:  #f7f4ee;              /* warm paper, not stark white */
  --paper:  #ffffff;
  --ink:        #10202f;
  --ink-soft:   #4d6070;
  --ink-faint:  #8496a3;
  --line:   #e2e2d9;
  --line-soft: rgba(10,41,66,.10);

  --shadow-sm: 0 1px 2px rgba(10,41,66,.06), 0 1px 1px rgba(10,41,66,.04);
  --shadow-md: 0 12px 28px -12px rgba(10,41,66,.28);
  --shadow-lg: 0 24px 60px -20px rgba(10,41,66,.35);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --font-display: "Lora", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1220px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; width:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  width:100%;
}
img, svg, video{ max-width:100%; height:auto; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.08; font-weight:600; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 32px; }

@media (max-width: 720px){
  .wrap{ padding:0 20px; }
}

/* ---------- utility ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--brand-blue-deep);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:20px; height:1px;
  background:var(--brand-red);
  display:inline-block;
}
.eyebrow.on-dark{ color:var(--brand-blue-light); }
.eyebrow.on-dark::before{ background:var(--brand-blue-light); }

.section{ padding:100px 0; }
.section.tight{ padding:72px 0; }
@media (max-width:900px){
  .section{ padding:56px 0; }
  .section.tight{ padding:42px 0; }
}
@media (max-width:480px){
  .section{ padding:48px 0; }
  .section.tight{ padding:36px 0; }
  .section-head{ margin-bottom:36px; }
}

.section-head{ max-width:640px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(30px,4vw,42px); margin-top:14px; }
.section-head p{ margin-top:16px; color:var(--ink-soft); font-size:17px; line-height:1.65; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:600; font-size:14.5px;
  padding:14px 26px;
  border-radius:100px;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--brand-red); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--brand-red-deep); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost-light{ border-color:rgba(255,255,255,.4); color:#fff; }
.btn-ghost-light:hover{ background:rgba(255,255,255,.12); border-color:#fff; transform:translateY(-2px); }
.btn-outline{ border-color:var(--brand-blue-deep); color:var(--brand-blue-deep); }
.btn-outline:hover{ background:var(--brand-blue-deep); color:#fff; transform:translateY(-2px); }
.btn-dark{ background:var(--brand-navy); color:#fff; }
.btn-dark:hover{ background:var(--brand-blue-deep); transform:translateY(-2px); box-shadow:var(--shadow-md); }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,41,66,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:82px; gap:12px; flex-wrap:nowrap;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:0; flex:1 1 auto; overflow:hidden; }
.brand img{ width:44px; height:44px; border-radius:50%; flex:none; }
.brand-name{ color:#fff; line-height:1.15; min-width:0; overflow:hidden; }
.brand-name b{ display:block; font-family:var(--font-display); font-size:17.5px; letter-spacing:.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-name span{ display:block; font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--brand-blue-light); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.main-nav{ display:flex; align-items:center; gap:38px; }
.main-nav a{
  color:rgba(255,255,255,.82); font-size:14.5px; font-weight:500;
  position:relative; padding:6px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--brand-red); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover{ color:#fff; }
.main-nav a:hover::after,
.main-nav a.active::after{ transform:scaleX(1); }
.main-nav a.active{ color:#fff; }

.header-actions{ display:flex; align-items:center; gap:16px; flex:none; }
.nav-toggle{
  display:none; background:none; border:0; padding:8px; color:#fff;
}
.nav-toggle svg{ width:24px; height:24px; }

@media (max-width:430px){
  .site-header .wrap{ padding-left:16px; padding-right:16px; }
  .brand{ gap:9px; }
  .brand img{ width:36px; height:36px; }
  .brand-name b{ font-size:15px; }
  .brand-name span{ font-size:9px; letter-spacing:.09em; }
  .header-actions{ gap:8px; }
  .header-actions .btn-primary{ padding:9px 14px; font-size:12.5px; }
}

@media (max-width:345px){
  .brand-name b{ font-size:13px; }
  .brand-name span{ display:none; }
}

@media (max-width:940px){
  .main-nav{
    position:fixed; top:82px; left:0; right:0; bottom:0;
    height:calc(100vh - 82px);
    min-height:calc(100vh - 82px);
    background:var(--brand-navy);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:12px 28px 28px;
    transform:translateY(-8px);
    opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
    overflow-y:auto;
    z-index:99;
  }
  .main-nav.open{ opacity:1; visibility:visible; transform:translateY(0); }
  .main-nav a{ width:100%; padding:16px 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:16px; }
  .header-actions .btn-primary{ padding:10px 18px; font-size:13.5px; }
  .nav-toggle{ display:inline-flex; }
}

/* ---------- footer ---------- */
.site-footer{ background:var(--brand-navy); color:rgba(255,255,255,.72); padding:76px 0 28px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:48px;
  padding-bottom:52px; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand{ display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; }
.footer-brand img{ width:52px; height:52px; border-radius:50%; flex:none; }
.footer-brand b{ color:#fff; font-family:var(--font-display); font-size:19px; display:block; }
.footer-brand span{ font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--brand-blue-light); }
.footer-col h4{ color:#fff; font-family:var(--font-body); font-size:13px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; margin-bottom:18px; }
.footer-col p{ font-size:14.5px; line-height:1.6; max-width:280px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul a{ font-size:14.5px; transition:color .15s; }
.footer-col ul a:hover{ color:#fff; }
.footer-col .contact-line{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; margin-bottom:14px; }
.footer-col .contact-line svg{ width:17px; height:17px; flex:none; margin-top:2px; color:var(--brand-blue-light); }
.footer-col .contact-line a{ display:inline-block; transition:color .15s; }
.footer-col .contact-line a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; padding-bottom:6px; font-size:13px; flex-wrap:wrap; gap:12px; }
.footer-bottom .socials{ display:flex; gap:10px; }
.footer-bottom .socials a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; transition:all .18s;
}
.footer-bottom .socials a:hover{ background:var(--brand-red); border-color:var(--brand-red); }
.footer-bottom .socials svg{ width:16px; height:16px; }

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:36px; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ---------- divider (signature element: the offering curve) ---------- */
.hand-divider{ display:block; width:100%; line-height:0; }
.hand-divider svg{ width:100%; height:auto; display:block; }

/* dashed ring accent — echoes the logo's dashed circle */
.dashed-ring{
  position:absolute; border-radius:50%;
  border:1.5px dashed rgba(0,91,145,.35);
}

/* ---------- page hero (interior pages) ---------- */
.page-hero{
  background:var(--brand-navy);
  position:relative; overflow:hidden;
  padding:150px 0 74px;
  color:#fff;
  max-width:100vw;
}
.page-hero .wrap{ position:relative; z-index:2; }
.page-hero h1{ font-size:clamp(38px,5.5vw,60px); color:#fff; margin-top:14px; }
.page-hero p{ margin-top:16px; max-width:560px; color:rgba(255,255,255,.72); font-size:17px; line-height:1.6; }
.page-hero .glow{
  position:absolute; border-radius:50%; filter:blur(60px); opacity:.35;
}

/* ---------- misc shared ---------- */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em;
  padding:7px 14px; border-radius:100px;
  background:rgba(0,91,145,.08); color:var(--brand-blue-deep);
  border:1px solid rgba(0,91,145,.18);
}

.skip-link{
  position:absolute; left:-999px; top:0; background:#fff; color:#000; padding:10px 16px; z-index:1000;
}
.skip-link:focus{ left:12px; top:12px; }

:focus-visible{ outline:2px solid var(--brand-blue-light); outline-offset:3px; }

.reveal{ opacity:0; transform:translateY(14px); transition:opacity .45s ease, transform .45s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ================= DONATE MODAL ================= */
.donate-modal{
  position:fixed; inset:0; z-index:300;
  background:rgba(6,16,26,.72);
  backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; visibility:hidden;
  transition:opacity .22s ease, visibility .22s;
}
.donate-modal.open{ opacity:1; visibility:visible; }
.donate-modal-card{
  position:relative;
  width:100%; max-width:440px;
  background:var(--brand-navy);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:36px 30px 30px;
  box-shadow:var(--shadow-lg);
  overflow:hidden;
  transform:translateY(14px);
  transition:transform .25s ease;
}
.donate-modal.open .donate-modal-card{ transform:translateY(0); }
.donate-modal-card .dashed-ring{ border-color:rgba(255,255,255,.16); width:220px; height:220px; top:-70px; right:-70px; }
.donate-modal-close{
  position:absolute; top:16px; right:16px; z-index:2;
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
  color:#fff; display:flex; align-items:center; justify-content:center;
  transition:background .18s;
}
.donate-modal-close:hover{ background:rgba(255,255,255,.2); }
.donate-modal-icon{
  width:56px; height:56px; border-radius:50%; background:var(--brand-red);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  position:relative; z-index:2; box-shadow:0 10px 26px -8px rgba(224,39,44,.6);
}
.donate-modal-icon svg{ width:24px; height:24px; color:#fff; }
.donate-modal-card h3{ font-size:23px; color:#fff; position:relative; z-index:2; }
.donate-modal-card > p{ margin-top:10px; color:rgba(255,255,255,.7); font-size:14.5px; line-height:1.6; position:relative; z-index:2; max-width:360px; }
.donate-modal-momo{
  margin-top:24px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius-md); padding:20px 22px; position:relative; z-index:2;
}
.donate-modal-momo .eyebrow{ color:var(--brand-blue-light); margin-bottom:4px; }
.donate-modal-momo .eyebrow::before{ background:var(--brand-blue-light); }
.donate-row{ display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.12); gap:12px; }
.donate-row:last-of-type{ border-bottom:0; }
.donate-row span{ font-size:12.5px; color:rgba(255,255,255,.62); flex:none; }
.donate-row b{ font-family:var(--font-mono); font-size:17px; letter-spacing:.02em; text-align:right; word-break:break-word; }
.donate-copy-btn{
  margin-top:16px; width:100%; justify-content:center;
  background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.22);
}
.donate-copy-btn:hover{ background:rgba(255,255,255,.18); }
.donate-copy-btn.copied{ background:var(--brand-blue-deep); border-color:var(--brand-blue-deep); }
.donate-modal-foot{
  margin-top:18px; font-size:13px; color:rgba(255,255,255,.55); text-align:center; position:relative; z-index:2;
}
.donate-modal-foot a{ color:var(--brand-blue-light); text-decoration:underline; text-underline-offset:2px; }

@media (max-width:480px){
  .donate-modal-card{ padding:30px 22px 24px; }
  .donate-row{ flex-direction:column; align-items:flex-start; gap:3px; padding:14px 0; }
  .donate-row b{ text-align:left; font-size:16px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
