/* ============================================================
   Inner City Tabernacle — public website
   navy #1A2A52 · red #C0392B · gold #C8A227
   Light backgrounds with dark text; dark bands for header/hero.
   ============================================================ */
:root {
  --navy: #1A2A52;
  --navy-deep: #131f3d;
  --red: #C0392B;
  --red-dark: #a02f23;
  --gold: #C8A227;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --ink: #1d2433;
  --muted: #6b7280;
  --line: #e4e7ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 640px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .92em; }
.center { text-align: center; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }

/* ---------------- Header ---------------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; position: relative; }
/* The header bar spans the full width so the logo hugs the left and the menu
   toggle hugs the far right — instead of the toggle being stranded inside the
   narrow content column (which left a big empty gap and read as "centered"). */
.site-header .header-row { max-width: none; padding-left: clamp(16px, 4vw, 44px); padding-right: clamp(16px, 4vw, 44px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.monogram {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--navy-deep); color: var(--gold); border: 2px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { color: #fff; font-size: 16px; }
.brand-text small { color: #c3cce4; font-size: 12px; }
/* ---- Desktop: a demarcated button ribbon along the top of the header ---- */
.nav-toggle { display: none; } /* hamburger is hidden on desktop */
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: #eaeefa; text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 9px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(200,162,39,.20); border-color: var(--gold); }
.site-nav a.active { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); font-weight: 700; }
.site-nav a.btn-signin { background: var(--red); color: #fff !important; border-color: var(--red); font-weight: 700; }
.site-nav a.btn-signin:hover { background: var(--red-dark); color: #fff !important; border-color: var(--red-dark); }

/* ---- Mobile: collapse the ribbon into a hamburger dropdown ---- */
@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 40px; padding: 0 11px; flex: none; cursor: pointer;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.20); border-radius: 9px;
    transition: background .15s ease, border-color .15s ease;
  }
  .nav-toggle:hover { background: rgba(200,162,39,.22); border-color: var(--gold); }
  .nav-toggle[aria-expanded="true"] { background: rgba(200,162,39,.28); border-color: var(--gold); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
    display: none; flex-direction: column; align-items: stretch; gap: 4px; min-width: 230px;
    background: var(--navy-deep); border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px; padding: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.4);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 15px; padding: 11px 14px; background: transparent; border-color: transparent; }
  .site-nav a:hover { border-color: transparent; }
  .site-nav a.btn-signin { text-align: center; margin-top: 6px; }
}
@media (max-width: 560px) { .site-nav { left: 0; right: 0; min-width: 0; } }

/* ---------------- Hero ---------------- */
/* Landing hero: the Palm Sunday photo stays visible, softly faded under a
   navy wash so the welcome text remains readable. */
.hero {
  background:
    linear-gradient(rgba(19, 31, 61, .48), rgba(19, 31, 61, .66)),
    url('assets/hero-palm-sunday.jpg') center 58% / cover no-repeat,
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff; text-align: center; padding: 96px 0 104px;
}
.hero h1, .hero-sub { text-shadow: 0 2px 10px rgba(10, 18, 38, .65); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta.btn-cta-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-cta.btn-cta-outline:hover { background: rgba(200, 162, 39, .15); }
.hero h1 { color: #fff; font-size: 44px; margin: 0 0 10px; }
.hero-sub { color: #c9d2e8; font-size: 19px; margin: 0 0 30px; }
.btn-cta {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 13px 30px; border-radius: 10px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-cta:hover { background: var(--red-dark); }
.btn-cta:disabled { background: #d9948c; cursor: wait; }

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 30px; margin: 0 0 24px; text-align: center; position: relative; padding-bottom: 14px;
}
.section h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 3px; background: var(--gold); border-radius: 2px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 12px; padding: 22px 24px; box-shadow: 0 1px 3px rgba(26,42,82,.10);
}
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card .time { color: var(--red); font-weight: 700; margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }

/* ---------------- Visit form ---------------- */
.visit-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 30px; }
.visit-form label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin: 14px 0 5px; }
.visit-form input, .visit-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
.visit-form input:focus, .visit-form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500 !important; margin-top: 16px !important; }
.check input { width: auto; }
.visit-form .btn-cta { margin-top: 20px; width: 100%; }
.form-error {
  background: #fdecea; color: var(--red); border: 1px solid #f5c6c0;
  padding: 10px 14px; border-radius: 8px; margin-top: 16px; font-size: 14px;
}
.form-thanks {
  background: #e5f3ea; color: #1e7e46; border: 1px solid #bfe3cc;
  padding: 12px 14px; border-radius: 8px; margin-top: 16px; font-weight: 600;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-deep); color: #c9d2e8; padding: 36px 0 18px; font-size: 14px; }
.site-footer b { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: start; }
.footer-links a { color: #c9d2e8; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 14px; font-size: 12px; color: #8b96b8; }

/* ---------------- Logo badge ---------------- */
.logo-badge {
  width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
  background: #fff; border: 2px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Card link ---------------- */
.card-link { color: var(--red); font-weight: 600; text-decoration: none; font-size: 14px; }
.card-link:hover { text-decoration: underline; }

/* ---------------- Mission / Vision / Values ---------------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 24px 26px; box-shadow: 0 1px 3px rgba(26,42,82,.10);
}
.mv-card h3 { margin: 0 0 10px; color: var(--red); text-transform: uppercase; font-size: 14px; letter-spacing: 1.5px; }
.mv-card blockquote { margin: 0; font-size: 19px; line-height: 1.55; color: var(--navy); font-weight: 600; }
.mv-tag { margin: 14px 0 0; font-weight: 700; color: var(--gold); font-size: 14px; }
.values-heading { text-align: center; color: var(--navy); font-size: 20px; margin: 36px 0 16px; }
.values-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.value-chip {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; color: var(--navy); font-size: 15px;
  box-shadow: 0 1px 3px rgba(26,42,82,.08);
}
.value-chip b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff;
  font-size: 12px; margin-right: 7px;
}
.values-motto { text-align: center; margin: 18px 0 0; font-weight: 700; color: var(--red); letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* ---------------- Leadership ---------------- */
.leader-grid { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .leader-grid { grid-template-columns: 1fr; } }
.leader-photo { width: 100%; border-radius: 14px; box-shadow: 0 6px 24px rgba(26,42,82,.25); }
.leader-name { margin: 0; font-size: 24px; }
.leader-role { color: var(--red); font-weight: 700; margin: 4px 0 14px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.leader-quote { margin: 16px 0 0; padding-left: 16px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }

/* ---------------- Ministries grid ---------------- */
.min-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.min-card {
  display: block; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--navy);
  border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(26,42,82,.08);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.min-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,42,82,.16);
  border-top-color: var(--gold);
}
.min-card h4 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.min-card p { margin: 0; color: var(--muted); font-size: 13px; }
.min-card .more { display: block; margin-top: 8px; color: var(--red); font-weight: 600; font-size: 13px; }

/* ---------------- Ministry page ---------------- */
.ministry-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff; padding: 44px 0 52px;
}
.ministry-hero h1 { color: #fff; font-size: 36px; margin: 10px 0 6px; }
.ministry-hero .hero-sub { margin: 0; }
.crumb { color: var(--gold); text-decoration: none; font-size: 14px; font-weight: 600; }
.crumb:hover { text-decoration: underline; }
.narrative p { font-size: 17px; line-height: 1.7; }
.post-card {
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(26,42,82,.08);
}
.post-card h3 { margin: 8px 0 6px; color: var(--navy); font-size: 18px; }
.post-card p { margin: 6px 0; font-size: 15px; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-navy { background: #e8ecf5; color: var(--navy); }
.badge-gold { background: #f7efd8; color: #8a6d14; }

/* Published reports & newsletters: compact clickable cards showing a short
   summary; the full, formatted article opens in a modal on click. */
.report-card {
  cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(26,42,82,.08);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.report-card:hover, .report-card:focus-visible {
  box-shadow: 0 8px 22px rgba(26,42,82,.14); transform: translateY(-2px); border-left-color: var(--gold); outline: none;
}
.report-card h3 { margin: 8px 0 6px; color: var(--navy); font-size: 19px; }
.report-excerpt {
  margin: 6px 0 10px; font-size: 15px; color: var(--ink); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.report-more { color: var(--red); font-weight: 700; font-size: 14px; }

/* Report modal */
.rpt-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; }
.rpt-modal.hidden { display: none; }
.rpt-backdrop { position: absolute; inset: 0; background: rgba(12,20,42,.6); }
.rpt-dialog {
  position: relative; z-index: 1; background: var(--bg); border-radius: 16px; max-width: 680px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 30px 30px 36px; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.rpt-close {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #eef1f7; color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer;
}
.rpt-close:hover { background: #e0e5f0; }
.rpt-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.rpt-dialog h2 { color: var(--navy); font-size: 25px; margin: 0 0 16px; padding-right: 40px; }
/* Article typography: bold leading-question headings + readable answers */
.art-body h4.art-h {
  color: var(--navy); font-size: 15.5px; font-weight: 800; letter-spacing: .3px; text-transform: none;
  margin: 22px 0 7px; padding-bottom: 5px; border-bottom: 2px solid var(--line);
}
.art-body h4.art-h:first-child { margin-top: 0; }
.art-body p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0 0 14px; }
@media (max-width: 560px) { .rpt-dialog { padding: 26px 18px 30px; } .rpt-dialog h2 { font-size: 22px; } }

/* ---------------- Footer brand ---------------- */
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-mail { color: var(--gold); text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }

/* ---------------- Multi-page site: page heroes + nav state ---------------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 75%);
  color: #fff; padding: 52px 0 44px; text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 42px); color: #fff; text-shadow: 0 2px 8px rgba(10, 18, 38, .5); }
.page-hero .hero-sub { color: #d5ddf0; margin: 0; }
.site-nav a.active { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); font-weight: 700; }

/* Landing explore cards */
.explore-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.explore-card {
  display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 22px 20px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.explore-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(26,42,82,.12); }
.explore-emoji { font-size: 30px; display: block; margin-bottom: 6px; }
.explore-card h3 { margin: 0 0 6px; color: var(--navy); }
.explore-card p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.explore-card .more { color: var(--red); font-weight: 700; font-size: 14px; }
.home-mission {
  font-size: clamp(18px, 3vw, 24px); color: var(--navy); font-style: italic;
  border-left: 4px solid var(--gold); margin: 18px auto; padding: 6px 18px; max-width: 640px; text-align: left;
}

/* ---------------- Public calendar ---------------- */
.cal-toolbar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.cal-toolbar .btn-cta { padding: 8px 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell {
  min-height: 92px; border: 1px solid var(--line); border-radius: 10px;
  padding: 5px; font-size: 11px; overflow: hidden; background: #fff;
}
.cal-empty { background: transparent; border-style: dashed; }
.cal-today { border: 2px solid var(--gold); background: #fffdf4; }
.cal-day { font-weight: 700; color: var(--muted); font-size: 11px; }
.cal-chip {
  display: block; border-radius: 5px; padding: 1px 6px; margin: 2px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 10.5px; font-weight: 600; color: #fff; background: var(--navy);
}
.cal-PLAN_GOAL, .cal-PLAN_TASK { background: #9a7b3e; }
.cal-PASTORAL { background: #9c5a46; }
.cal-PREACHING { background: #3f6f66; }
.cal-more { font-size: 10px; color: var(--muted); }
.cal-agenda { margin-top: 20px; }
.cal-row {
  display: flex; gap: 12px; align-items: baseline; padding: 9px 2px;
  border-bottom: 1px solid var(--line); font-size: 15px; flex-wrap: wrap;
}
.cal-row b { min-width: 58px; color: var(--navy); }

/* ---------------- Mobile polish (all public pages) ---------------- */
.btn-cta { font-weight: 700; letter-spacing: .2px; box-shadow: 0 2px 8px rgba(192,57,43,.3); }
.btn-cta-outline { box-shadow: none; }
@media (max-width: 760px) {
  .hero { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-cta { text-align: center; }
  .btn-cta { padding: 14px 20px; } /* comfortable touch targets */
  .two-col { grid-template-columns: 1fr !important; }
  .cal-cell { min-height: 58px; border-radius: 6px; }
  .cal-chip { font-size: 9px; }
  .cal-toolbar h2 { font-size: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
}

/* ---------------- Connect Groups page ---------------- */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.zone-card {
  display: flex; gap: 14px; align-items: center; background: var(--bg);
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 14px 16px;
}
.zone-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.zone-card h4 { margin: 0 0 3px; color: var(--navy); font-size: 15px; }
.zone-card p { margin: 0; color: var(--gold); font-weight: 700; font-size: 14px; }
.policy-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 20px; }
.policy-note {
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 12px; padding: 18px 20px; text-align: center; font-size: 15px; color: var(--ink);
}
.train-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 18px; }
.train-chip {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 14px;
}
.train-chip b { display: block; color: var(--gold); font-size: 12px; letter-spacing: .5px; }

/* ---------------- Masi (tapa) watermark — Pacific feel ---------------- */
body { background-image: url(assets/masi-bg.svg); }
.section-alt { background-image: url(assets/masi-bg.svg); }
/* Sub-page heroes get the masi band; the landing .hero keeps its photo. */
.page-hero { background-image: url(assets/masi-band.svg), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 75%); }
.site-footer { background-image: url(assets/masi-band.svg); }
