/* ===================================================
   Psalms Charity Fund — matched to the PATWA fit & feel
   Palette: Jerusalem stone ivory, deep midnight, gold
   Type: Frank Ruhl Libre (display) / Assistant (body)
   =================================================== */

:root {
  --ivory: #F7F2E8;
  --stone: #EAE1CD;
  --card: #FFFDF8;
  --ink: #23293B;
  --deep: #1C2740;
  --gold: #B98A2F;
  --gold-soft: #D9B45C;
  --muted: #6B6F7E;
  --line: #DDD3BC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 39, 64, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Assistant', system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  line-height: 1.15;
  color: var(--deep);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: .6rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.eyebrow.light { color: var(--gold-soft); }

.lead { font-size: 1.12rem; color: var(--muted); margin-top: .5rem; }

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 22px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-solid { background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: #26355a; }
.btn-ghost { border: 1.5px solid var(--deep); color: var(--deep); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 25px rgba(185,138,47,.35); }
.btn-gold:hover { background: #caa044; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* ======= Header ======= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--deep); color: var(--gold-soft);
  font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: 1.3rem;
}
.brand-text { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 1.15rem; }
.brand-text em { font-style: normal; color: var(--gold); }
.brand.light { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--gold); }
.site-nav a.btn { color: #fff; }
.site-nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--deep); cursor: pointer; }

/* ======= Hero ======= */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(217,180,92,.18), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(28,39,64,.07), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 60px; align-items: center;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.center-actions { justify-content: center; }

.hero-card { position: relative; }
.verse-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  transform: rotate(-1.5deg);
}
.verse-ref {
  font-size: .85rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.verse-text {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.35rem; line-height: 1.45; color: var(--deep);
}
.verse-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: .9rem; color: var(--muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3FA35C; display: inline-block; }

.note {
  position: absolute;
  background: #FFF6DE;
  border: 1px solid #EBD9A6;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .85rem;
  color: #6b5a25;
  box-shadow: 0 6px 16px rgba(28,39,64,.1);
}
.note-1 { top: -22px; right: -8px; transform: rotate(2.5deg); }
.note-2 { bottom: -20px; left: 10px; transform: rotate(-2deg); }

/* ======= Sections ======= */
.section { padding: 80px 0; }
.section-tint { background: var(--stone); }
.section-deep {
  background:
    radial-gradient(700px 350px at 80% 0%, rgba(217,180,92,.15), transparent 60%),
    var(--deep);
}
.light { color: #fff; }
.section-deep .lead { color: rgba(255,255,255,.75); }

/* ======= Stats ======= */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 50px; text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2.6rem; font-weight: 900; color: var(--gold);
}
.stat-label { color: var(--muted); font-weight: 600; }

/* ======= About PATWA ======= */
.about-patwa { margin-top: 60px; }
.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  max-width: 820px;
  margin: 0 auto;
}
.about-title { font-size: 1.5rem; margin-bottom: 14px; }
.about-card p { color: var(--muted); margin-bottom: 14px; }
.about-link {
  display: inline-block;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  margin-top: 4px;
}
.about-link:hover { text-decoration: underline; }

/* ======= Cards ======= */
.card-grid { display: grid; gap: 24px; margin-top: 50px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card-icon { font-size: 1.9rem; margin-bottom: 12px; }
.card p { color: var(--muted); }

/* ======= The Giving Wall ======= */
.wall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 50px;
}
.stone {
  background: linear-gradient(180deg, #F2EAD8, #E9DFC7);
  border: 1px solid #DBCFAF;
  border-radius: 8px;
  padding: 28px 24px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stone:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,39,64,.12); }
.stone-wide { grid-column: span 2; }
.stone p { color: #6d6650; font-size: .98rem; }
.stone h3 { color: var(--deep); }

/* ======= PATWA DAF ======= */
.daf-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 60px; align-items: center;
}
.daf-list { list-style: none; margin: 24px 0 6px; }
.daf-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--muted);
}
.daf-list li strong { color: var(--deep); }
.daf-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--gold); color: #fff;
  border-radius: 50%;
  font-size: .8rem; font-weight: 700;
}
.daf-visual {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(28, 39, 64, 0.12));
}

/* ======= FAQ ======= */
.faq-list { margin-top: 40px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--deep);
  padding: 18px 0;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 20px; }

/* ======= Footer ======= */
.site-footer { background: var(--deep); color: rgba(255,255,255,.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-tag {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--gold-soft); font-size: 1.05rem; margin: 14px 0 8px;
}
.footer-desc { font-size: .95rem; color: rgba(255,255,255,.6); }
.site-footer h4 {
  color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 14px;
}
.site-footer a { display: block; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: 8px; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand a, .site-footer a.brand { display: flex; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ======= Focus & motion ======= */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ======= Responsive ======= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .daf-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid.three { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr 1fr; }
  .stone-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-row { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 16px;
  }
  .site-nav.open { display: flex; }
  .hero { padding-top: 60px; }
  .wall { grid-template-columns: 1fr; }
  .stone-wide { grid-column: span 1; }
  .note-1 { right: 0; }
}
