/* ==========================================================================
   BluePetra Ministry - public site
   --------------------------------------------------------------------------
   Deliberately a different voice from the Bible Quiz site. The quiz is playful
   and gamified; a nonprofit asking for donations needs to read as settled and
   trustworthy - deep ink navy, a warm gold accent, serif headings, and a lot
   of breathing room.

   No build step: this is plain CSS served straight from /public/css. Nothing
   here needs npm, Vite, or a compile stage on deploy or a host move.
   ========================================================================== */

:root {
    --ink:          #16233d;
    --ink-soft:     #2b3a58;
    --gold:         #b8873b;
    --gold-soft:    #d9b877;
    --paper:        #faf8f4;
    --paper-warm:   #f3efe7;
    --card:         #ffffff;
    --text:         #2f3033;
    --text-muted:   #6d6f75;
    --line:         #e3ded4;

    --font-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic',
                    'Apple SD Gothic Neo', Roboto, sans-serif;

    --wrap: 1120px;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a { color: var(--ink); }

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

/* ---------- Header ---------- */

.site-header {
    background: var(--ink);
    color: #fff;
    padding: 18px 0;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.94rem;
}

.site-nav a:hover { color: #fff; }

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.45);
}

.lang-switch a { color: rgba(255, 255, 255, 0.6); }
.lang-switch a.is-active { color: var(--gold-soft); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-gold {
    background: var(--gold);
    color: #fff;
}
.btn-gold:hover { background: #a4762e; }

.btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Hero ---------- */

.hero {
    background: var(--ink);
    color: #fff;
    padding: 90px 0 100px;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    color: var(--gold-soft);
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    font-size: 2.9rem;
    max-width: 17ch;
    margin: 0 0 22px;
}

.hero p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 58ch;
    font-size: 1.08rem;
    margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 78px 0; }
.section-warm { background: var(--paper-warm); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: 1.95rem; margin: 0 0 12px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Program cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
}

.card h3 { margin: 0 0 12px; font-size: 1.3rem; }
.card p { color: var(--text-muted); margin: 0 0 20px; }

.card-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.94rem;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.68);
    padding: 60px 0 34px;
    font-size: 0.92rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 42px;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
    font-family: var(--font-body);
}

.site-footer a { color: rgba(255, 255, 255, 0.68); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }

/* The 501(c)(3) notice. Wording comes from config('site.irs_status') -
   never hard-code a deductibility claim here. */
.irs-notice {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 26px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
}

.irs-notice p { margin: 0 0 8px; }

@media (max-width: 820px) {
    .footer-cols { grid-template-columns: 1fr; gap: 30px; }
    .hero { padding: 62px 0 68px; }
    .hero h1 { font-size: 2.15rem; }
    .section { padding: 56px 0; }
}
