/* ==========================================================================
   BluePetra Ministry - public site
   --------------------------------------------------------------------------
   Palette is pulled straight from the brand mark: terracotta red, warm
   near-black ink, and a dusty tan accent. 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 - warm ink,
   a confident brand-red 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:          #2a2724;
    --ink-soft:     #46403a;
    --brand:        #a8443a;
    --brand-hover:  #8e392f;
    --brand-soft:   #c97b6f;
    --tan:          #c4ac95;
    --paper:        #faf8f4;
    --paper-warm:   #f3efe7;
    --card:         #ffffff;
    --text:         #2f2c28;
    --text-muted:   #6f6a61;
    --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;
    --shadow-card: 0 1px 2px rgba(42, 39, 36, 0.04), 0 10px 24px -14px rgba(42, 39, 36, 0.18);
    --shadow-card-hover: 0 4px 10px -2px rgba(42, 39, 36, 0.08), 0 20px 34px -16px rgba(42, 39, 36, 0.24);
}

* { 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: 16px 0;
    border-bottom: 3px solid var(--brand);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    height: 28px;
    width: auto;
}

.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(--brand-soft); font-weight: 600; }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(168, 68, 58, 0.55);
}
.btn-brand:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(168, 68, 58, 0.6); }

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

.btn-outline-brand {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

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

.hero {
    background: var(--ink);
    color: #fff;
    padding: 84px 0 92px;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: center;
    gap: 48px;
}

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

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

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

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

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual svg { width: 100%; height: auto; max-width: 420px; }

@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-visual svg { max-width: 280px; }
}

/* ---------- 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-top: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

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

.card-link {
    color: var(--brand);
    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: 56px 0 34px;
    font-size: 0.92rem;
}

.footer-brand img { height: 24px; width: auto; display: block; margin-bottom: 14px; }

.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; }
}

/* ==========================================================================
   Phase 2 - pages, news and events
   ========================================================================== */

.prose { max-width: 760px; }

.page-heading { font-size: 2.3rem; margin: 0 0 26px; }

/* Body text is stored as plain text and rendered with nl2br after escaping,
   so paragraph rhythm comes from line height rather than markup. */
.body-copy { font-size: 1.05rem; line-height: 1.85; color: var(--text); }

.feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 8px 0 30px;
    border: 1px solid var(--line);
}

.list-item {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item h3 { margin: 6px 0 8px; font-size: 1.32rem; }
.list-item h3 a { text-decoration: none; }
.list-item h3 a:hover { color: var(--brand); }
.list-item p { color: var(--text-muted); margin: 0; }
.list-item.is-past { opacity: 0.62; }

.list-date {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand);
    font-weight: 600;
}

.list-meta { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 6px; }

.empty { color: var(--text-muted); padding: 30px 0; }

.back-link { margin-top: 34px; }
.back-link a { color: var(--brand); text-decoration: none; font-weight: 600; }
.back-link a:hover { text-decoration: underline; }

.pager { margin-top: 34px; }
.pager a, .pager span { margin-right: 10px; color: var(--text-muted); text-decoration: none; }
.pager a:hover { color: var(--ink); }

/* ---------- Giving page ---------- */

/* Shown while online giving is not yet switched on. Reads as an honest
   status note, not an error. */
.notice-box {
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin: 30px 0;
}
.notice-box p { margin: 0 0 10px; }
.notice-box p:last-child { margin-bottom: 0; }

.irs-inline {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.irs-inline p { margin: 0 0 8px; }
