/* Public church website — warmer, more inviting than the admin dashboard. */
:root {
    --brand: #8a4b2f;
    --brand-dark: #5c3220;
    --accent: #c98a3e;
    --bg: #fdf9f4;
    --card-bg: #ffffff;
    --text: #2c2420;
    --muted: #7a6f65;
    --border: #ecdfd2;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(90, 60, 30, 0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: 0.9em; }

/* Header / nav */
.site-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow);
}
.site-header-inner {
    max-width: 1100px; margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.brand { color: #fff; display: flex; flex-direction: column; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.35rem; font-weight: 700; }
.brand-tagline { font-size: 0.85rem; opacity: 0.85; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,0.88); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: var(--accent); text-decoration: none; }

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; }
    .site-nav.open { display: flex; }
}

/* Layout helpers */
.site-main { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; min-height: 55vh; }
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff; border-radius: var(--radius); padding: 48px 32px; margin-bottom: 32px;
    box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 10px; font-size: 2rem; }
.hero p { margin: 0; opacity: 0.92; font-size: 1.1rem; max-width: 640px; }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { margin: 0; font-size: 1.4rem; color: var(--brand-dark); }
.section-head .more { font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 1.1rem; }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }

.empty { color: var(--muted); font-style: italic; padding: 20px 0; }

/* Buttons / forms */
.btn {
    display: inline-block; background: var(--brand); color: #fff; border: none; border-radius: 8px;
    padding: 10px 20px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn.block { display: block; width: 100%; text-align: center; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem;
    font-family: inherit; background: #fff; color: var(--text);
}
.amount-choices { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.amount-choices label {
    border: 2px solid var(--border); border-radius: 8px; padding: 10px 16px; cursor: pointer; font-weight: 600;
}
.amount-choices input { display: none; }
.amount-choices input:checked + span { color: var(--brand); }

/* Progress bar for projects */
.progress-bar { background: var(--border); border-radius: 8px; height: 10px; overflow: hidden; margin: 8px 0; }
.progress-bar > div { background: var(--accent); height: 100%; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert.info { background: #fdf0dd; border: 1px solid #f0d2a0; color: #6b4a1a; }
.alert.warn { background: #fff4e5; border: 1px solid #f5c98a; color: #6b4a1a; }
.alert.success { background: #e8f5e9; border: 1px solid #a9d9ac; color: #285c2b; }

/* Leadership */
.leader-photo {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 10px;
    background: var(--border);
}

table.public-table { width: 100%; border-collapse: collapse; }
table.public-table th, table.public-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.85); margin-top: 40px; }
.site-footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 30px 20px; display: flex; gap: 30px; flex-wrap: wrap;
    justify-content: space-between;
}
.site-footer a { color: #fff; }
.footer-col { min-width: 180px; }
