/* New Covenant Ministries website */
:root {
  --green-900: #0a2e22;
  --green-800: #0f3d2e;
  --green-700: #155240;
  --green-100: #e3efe9;
  --gold: #c8962d;
  --gold-dark: #8a6416;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #1d2a25;
  --muted: #5b6b64;
  --line: #e2ddd0;
  --radius: 18px;
  --shadow: 0 10px 30px rgb(10 46 34 / 10%);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--green-900); margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .8rem; }
.lede { font-size: 1.18rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--paper); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: .5rem; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 248 241 / 92%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--green-900); margin-right: auto; }
.brand img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand b { font: 700 1.1rem/1.1 var(--font-head); display: block; }
.brand small { font-size: .78rem; color: var(--muted); display: block; }
.nav { display: flex; gap: .2rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 550; font-size: .95rem; padding: .5rem .75rem; border-radius: 999px; }
.nav a:hover { background: var(--green-100); }
.nav a[aria-current="page"] { background: var(--green-800); color: #fff; }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 650; padding: .4rem .8rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); text-decoration: none; white-space: nowrap; }
.status .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green-700); }
.status.is-live { background: #c62828; color: #fff; }
.status.is-live .dot { background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.menu-btn { display: none; border: 0; background: var(--green-800); color: #fff; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; }
.menu-btn svg { width: 1.3rem; height: 1.3rem; margin: auto; }
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 4.25rem 0 auto 0; flex-direction: column; gap: .25rem; padding: 1rem; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 1.1rem; padding: .85rem 1rem; }
  .bar .status .label-long { display: none; }
}
@media (max-width: 420px) { .brand small { display: none; } .brand b { font-size: 1rem; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.4rem; border-radius: 999px; font: 650 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-primary { background: var(--gold); color: #1b1404; }
.btn-primary:hover { background: #d9a83d; }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-700); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #1f6b52 0%, transparent 60%), linear-gradient(160deg, var(--green-900), var(--green-800) 60%, #123f30); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -45% auto; width: 38rem; height: 38rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 0 0 4rem rgb(255 255 255 / 3%), 0 0 0 8rem rgb(255 255 255 / 2%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding: clamp(3rem, 9vw, 6.5rem) 0; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #f0c96a; }
.hero p { color: rgb(255 255 255 / 85%); font-size: 1.15rem; max-width: 36rem; }
.hero .btn-ghost { color: #fff; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.next-card { background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(6px); }
.next-card h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.next-card .when { color: #f0c96a; font-weight: 650; margin: .2rem 0 1rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.2rem; }
.countdown div { background: rgb(0 0 0 / 22%); border-radius: 12px; padding: .7rem .3rem; text-align: center; }
.countdown b { display: block; font: 700 1.8rem/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / 70%); }
.next-card .live-msg { display: none; font: 700 1.4rem/1.2 var(--font-head); color: #fff; margin-bottom: 1rem; }
.next-card.is-live .countdown { display: none; }
.next-card.is-live .live-msg { display: block; }

/* ---------- sections */
section.block { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.head { margin-bottom: 2rem; max-width: 44rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 0 rgb(0 0 0 / 2%); }
.card .icon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); margin-bottom: 1rem; }
.card .icon svg { width: 1.5rem; height: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.quote { font: italic 500 clamp(1.3rem, 3.5vw, 1.8rem)/1.45 var(--font-head); color: var(--green-900); border-left: 4px solid var(--gold); padding-left: 1.25rem; margin: 0; }
.quote cite { display: block; margin-top: .6rem; font: 600 .95rem var(--font-body); font-style: normal; color: var(--muted); }

/* service times */
.times { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.time { display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; }
.time .day { width: 3.4rem; height: 3.4rem; border-radius: 14px; background: var(--green-800); color: #fff; display: grid; place-items: center; font: 700 .9rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; flex: none; }
.time b { display: block; font-size: 1.15rem; }
.time small { color: var(--muted); }
.time.is-next { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(200 150 45 / 18%); }
.time .tag { display: none; margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); }
.time.is-next .tag { display: block; }

/* leaders */
.leader { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: center; }
.leader img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
@media (max-width: 520px) { .leader { grid-template-columns: 1fr; text-align: center; } .leader img { margin: 0 auto; } }

/* page header */
.page-head { background: linear-gradient(160deg, var(--green-900), var(--green-800)); color: #fff; padding: clamp(2.75rem, 8vw, 4.5rem) 0; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.page-head p { color: rgb(255 255 255 / 82%); font-size: 1.15rem; max-width: 40rem; margin: 0; }
.page-head .eyebrow { color: #f0c96a; }

/* timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 1.15rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--gold), var(--green-700)); }
.timeline li { position: relative; padding-left: 3.25rem; margin-bottom: 1rem; }
.timeline li::before { content: ""; position: absolute; left: .62rem; top: 1.35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary .yr { font: 700 .82rem/1 var(--font-body); letter-spacing: .12em; color: var(--gold-dark); text-transform: uppercase; }
.timeline summary h3 { grid-column: 1; margin: 0; font-size: 1.25rem; }
.timeline summary .chev { grid-row: 1 / span 2; grid-column: 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; transition: transform .2s; }
.timeline details[open] summary .chev { transform: rotate(180deg); }
.timeline .body { padding: 0 1.25rem 1.2rem; color: #33413b; }
.year-jump { display: flex; gap: .4rem; overflow-x: auto; padding: .25rem 0 1rem; margin-bottom: 1rem; scrollbar-width: none; }
.year-jump::-webkit-scrollbar { display: none; }
.year-jump button { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .5rem .9rem; font: 650 .9rem var(--font-body); color: var(--green-800); cursor: pointer; }
.year-jump button:hover { background: var(--green-100); }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .btn { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9rem; }

/* staff */
.search { width: 100%; font: inherit; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 1rem; }
.staff { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.staff li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; display: flex; gap: .8rem; align-items: center; }
.staff .av { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.staff b { display: block; line-height: 1.25; }
.staff small { color: var(--muted); line-height: 1.3; display: block; }
.staff li[hidden] { display: none; }
.empty { color: var(--muted); }

/* video */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-banner { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.2rem; border-radius: 14px; background: var(--green-100); margin-bottom: 1rem; font-weight: 600; }
.live-banner.is-live { background: #fdecea; color: #8e1b1b; }
.live-banner svg { width: 1.4rem; height: 1.4rem; flex: none; }
[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 380px) { .bar .status { padding: .4rem .6rem; font-size: .75rem; } .brand span { display: none; } .brand img { width: 2.3rem; height: 2.3rem; } }

/* ministries */
.min-card { display: flex; flex-direction: column; }
.min-card .more { margin-top: auto; }
.min-card details summary { cursor: pointer; font-weight: 650; color: var(--green-700); list-style: none; }
.min-card details summary::-webkit-details-marker { display: none; }
.min-card details summary::after { content: " +"; }
.min-card details[open] summary::after { content: " −"; }
.event { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.event .mo { background: var(--gold); color: #1b1404; border-radius: 14px; text-align: center; padding: .6rem .3rem; font: 700 .8rem/1.1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.event .mo b { display: block; font: 700 1.5rem/1 var(--font-head); letter-spacing: 0; text-transform: none; }

/* forms */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .95rem; display: grid; gap: .35rem; }
.form input, .form textarea, .form select { font: inherit; padding: .8rem 1rem; border: 1px solid #cfc8b8; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 8rem; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.form .check input { width: auto; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: block; cursor: pointer; padding: .55rem 1rem; border-radius: 999px; border: 1px solid #cfc8b8; background: #fff; font-weight: 600; }
.seg input:checked + label { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--gold); }
.note { font-size: .9rem; color: var(--muted); }
.map { border: 0; width: 100%; height: 22rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* cta */
.cta { background: linear-gradient(135deg, var(--gold), #e2b552); color: #1b1404; border-radius: 24px; padding: clamp(2rem, 6vw, 3.5rem); display: grid; gap: 1.5rem; grid-template-columns: 1.5fr auto; align-items: center; }
.cta h2 { color: #1b1404; margin: 0 0 .4rem; }
.cta p { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--green-900); color: rgb(255 255 255 / 80%); padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.foot { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.copy { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); background: var(--green-900); color: #fff; padding: .85rem 1.25rem; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s ease; z-index: 80; max-width: calc(100% - 2rem); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* reduced motion (html.calm, set by the page's script) */ .calm .reveal { opacity: 1; transform: none; transition: none; } html.calm { scroll-behavior: auto; } 
