/* ---------- Design tokens: calm, peaceful palette ---------- */
:root {
  --color-cream: #FAF7F0;
  --color-white: #FFFFFF;
  --color-ink: #2E3A32;
  --color-muted: #6B7A70;
  --color-sage: #7C9885;
  --color-sage-dark: #5E7A66;
  --color-gold: #C9A24B;
  --color-border: #E4E0D5;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(46, 58, 50, 0.06);
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-ink); line-height: 1.3; }
h1 { font-size: 2.1rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; }
a { color: var(--color-sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page-narrow { max-width: 720px; }
.section { padding: 2.5rem 1.5rem; }
.section-title { margin-top: 0; }
.muted { color: var(--color-muted); }

/* ---------- Header / nav ---------- */
.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); }
.brand-mark { color: var(--color-gold); font-size: 1.3rem; }
.brand-logo { height: 36px; width: auto; object-fit: contain; }
.admin-brand-logo { height: 40px; width: auto; object-fit: contain; display: block; margin: 0 auto 0.5rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--color-ink); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--color-sage-dark); text-decoration: none; }
.nav-cta { background: var(--color-sage); color: var(--color-white) !important; padding: 0.4rem 0.9rem; border-radius: 20px; }
.nav-admin { color: var(--color-muted) !important; font-size: 0.85rem !important; border-left: 1px solid var(--color-border); padding-left: 1rem; }
.lang-switcher select { border: 1px solid var(--color-border); border-radius: 6px; padding: 0.3rem 0.5rem; background: var(--color-cream); font-family: inherit; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #EFEAD9 0%, #E4EFE6 100%); padding: 4rem 1.5rem; text-align: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.75rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--color-muted); margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 24px; font-weight: 700; cursor: pointer; border: 2px solid transparent; font-size: 0.95rem; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-sage); color: #fff; }
.btn-primary:hover { background: var(--color-sage-dark); }
.btn-outline { border-color: var(--color-sage); color: var(--color-sage-dark); background: transparent; }
.btn-outline:hover { background: var(--color-sage); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1DA851; }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* ---------- Verse card ---------- */
.verse-card { background: var(--color-white); border: 1px solid var(--color-border); border-left: 4px solid var(--color-gold); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.verse-card-today { border-left-color: var(--color-sage); }
.verse-text { font-family: var(--font-heading); font-size: 1.3rem; font-style: italic; margin: 0 0 0.5rem; }
.verse-ref { font-weight: 700; color: var(--color-sage-dark); margin: 0; }
.verse-reflection { color: var(--color-muted); margin-top: 0.75rem; }
.verse-date { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.verse-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.church-card { display: block; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); color: var(--color-ink); overflow: hidden; }
.church-card-photo { width: calc(100% + 2.5rem); max-width: none; margin: -1.25rem -1.25rem 0.75rem; height: 150px; object-fit: cover; display: block; }
.church-detail-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.church-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.church-card:hover { text-decoration: none; border-color: var(--color-sage); }
.badge { display: inline-block; background: var(--color-gold); color: #fff; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 10px; vertical-align: middle; }
.badge-muted { background: var(--color-sage); }

/* ---------- Updates list ---------- */
.update-list { list-style: none; padding: 0; margin: 0; }
.update-list li { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.update-date { float: right; color: var(--color-muted); font-size: 0.85rem; }
.link-more { display: inline-block; margin-top: 0.5rem; font-weight: 700; }
.empty-state { color: var(--color-muted); font-style: italic; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.table th { background: #F1EEE3; }

/* ---------- Forms ---------- */
.form { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  font-family: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.95rem; background: var(--color-cream);
}
.form textarea { min-height: 90px; resize: vertical; }
.form fieldset { border: 1px solid var(--color-border); border-radius: 6px; padding: 0.9rem; }
.form-inline-card { grid-template-columns: repeat(2, 1fr); }
.form-inline-card .full-width { grid-column: 1 / -1; }
.filter-bar { margin-bottom: 1rem; }
.filter-bar select { padding: 0.5rem 0.8rem; border-radius: 6px; border: 1px solid var(--color-border); }
.family-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.family-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.family-row input { padding: 0.5rem; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-cream); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.thank-you { text-align: center; }
.thank-you .btn { margin: 0.4rem; }

/* ---------- Gallery / ride links / community features ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.gallery-grid-img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; display: block; }
.gallery-thumb-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.5rem; }
.gallery-thumb { position: relative; width: 70px; height: 70px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.gallery-thumb .link-btn { position: absolute; top: -6px; right: -6px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 50%; width: 20px; height: 20px; line-height: 1; padding: 0; font-size: 0.9rem; }
.ride-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.poll-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; }
.poll-bar-track { flex: 1; background: var(--color-cream); border-radius: 10px; height: 10px; overflow: hidden; }
.poll-bar-fill { background: var(--color-sage); height: 100%; }
.feedback-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.feedback-meta { color: var(--color-muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #E8E6DE; padding: 2.5rem 1.5rem; margin-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: #E8E6DE; }
.footer-copy { width: 100%; text-align: center; color: #A8AFA5; font-size: 0.85rem; margin-top: 1.5rem; border-top: 1px solid #48544C; padding-top: 1rem; }

/* ---------- Responsiv