/* Faith Baptist Church of Green Cove Springs — site styles
   Palette pulled from the church logo: navy ring, sky-blue book, gold sunrise. */

@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --navy: #152B52;
  --navy-deep: #0D1D3A;
  --blue: #0A7FD6;
  --sky: #EAF3FB;
  --gold: #F5B000;
  --gold-deep: #C98F00;
  --ember: #F08A24;
  --cream: #FBF8F2;
  --paper: #FFFFFF;
  --ink: #18223A;
  --muted: #535E75;
  --line: #E6E0D4;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(13, 29, 58, .35);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.tint { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head.center { max-width: 760px; margin-inline: auto; }
.kicker { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.kicker-light { color: rgba(255,255,255,.78); }
.kicker-gold { color: var(--gold); }
.muted { color: var(--muted); }
.big { font-size: 1.3rem; line-height: 1.6; color: var(--navy); font-family: var(--serif); }
.h-sm { font-size: 1.6rem; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 .98rem/1 var(--sans); padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(245,176,0,.7); }
.btn-gold:hover { background: #FFC21F; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-row.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--blue); }
.text-link svg { transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.text-link.light { color: var(--gold); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
/* The frosted-glass effect lives on a pseudo-element: putting backdrop-filter on the header itself
   makes it the containing block for the fixed mobile menu, which squashes the menu to 0px on iOS Safari. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251,248,242,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.nav-open .site-header::before { background: var(--cream); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13,29,58,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--navy); }
.brand-sub { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; font-size: .94rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav ul a:hover { background: var(--sky); color: var(--navy); }
.site-nav ul a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.nav-toggle .i-close { display: none; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; top: 78px; left: 0; right: 0; height: calc(100vh - 78px); height: calc(100dvh - 78px); z-index: 60; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 24px 28px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(13,29,58,.4); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; max-height: calc(100vh - 78px); overflow: auto; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav .btn { justify-content: center; padding: 15px; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: inline; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.08rem; } .brand img { width: 44px; height: 44px; } }

/* ---------- sunrise rays (echo the logo) */
.rays { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: repeating-conic-gradient(from -90deg at 50% 118%, rgba(255,255,255,.07) 0deg 2.2deg, transparent 2.2deg 7.5deg);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 110%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 110%, #000 20%, transparent 75%); }

/* ---------- home hero */
.hero { position: relative; background: radial-gradient(ellipse 70% 60% at 50% 105%, #29487F 0%, var(--navy) 55%, var(--navy-deep) 100%); color: #fff; padding: clamp(56px, 8vw, 96px) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-sun { position: absolute; left: 50%; bottom: -380px; width: 900px; height: 700px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,176,0,.38), rgba(245,176,0,.12) 50%, transparent 72%); animation: rise 2.4s ease-out both; }
@keyframes rise { from { transform: translate(-50%, 60px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.hero .rays { animation: fade 3s ease-out both; }
@keyframes fade { from { opacity: 0; } }
.hero-inner { text-align: center; position: relative; }
.hero-logo { width: clamp(130px, 16vw, 188px); margin: 0 auto 26px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.hero h1 { color: #fff; max-width: 17ch; margin-inline: auto; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); max-width: 40rem; margin: 0 auto; color: rgba(255,255,255,.86); }
.hero .btn-row { margin-top: 34px; }
.hero-times { position: relative; margin-top: clamp(48px, 7vw, 80px); transform: translateY(50%); margin-bottom: 0; }
.ht-inner { background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
.ht-head { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); padding-right: 24px; border-right: 1px solid var(--line); white-space: nowrap; }
.ht-head svg { color: var(--gold-deep); }
.page-index .pillars { padding-top: clamp(130px, 14vw, 170px); }

.times { list-style: none; margin: 0; padding: 0; }
.times li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.times li:first-child { border-top: 1px solid var(--line); }
.t-day { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.t-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.t-name small { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--muted); }
.t-time { font-weight: 600; color: var(--navy); white-space: nowrap; }
.times-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.times-strip li { display: flex; flex-direction: column; gap: 2px; border: 0 !important; padding: 4px 8px; }
.times-strip .t-name { font-size: 1.02rem; line-height: 1.3; }
.times-strip .t-name small { display: none; }
.times-strip .t-time { font-size: 1.05rem; color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .ht-inner { grid-template-columns: 1fr; gap: 10px; }
  .ht-head { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .times-strip { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hero { padding-bottom: 36px; }
  .hero-times { transform: none; margin-top: 44px; }
  .page-index .pillars { padding-top: clamp(64px, 9vw, 112px); }
}
@media (max-width: 520px) { .times li { grid-template-columns: 1fr auto; } .times .t-day { grid-column: 1 / -1; margin-bottom: -10px; } }

/* ---------- pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.pillar::after { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--gold), var(--blue)); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold-deep); }
.pillar h3 { font-size: 1.9rem; margin: 6px 0 12px; }
.pillar p { color: var(--muted); }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- pastor feature */
.pastor-feature { background: var(--paper); border-block: 1px solid var(--line); }
.pf-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pf-photo { margin: 0; position: relative; }
.pf-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius); background: var(--gold); z-index: 0; }
.pf-photo img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.pf-copy blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--navy); font-style: italic; }
.pf-name { font-weight: 600; color: var(--navy); margin-bottom: 26px; }
@media (max-width: 820px) { .pf-grid { grid-template-columns: 1fr; } .pf-photo { max-width: 420px; margin-right: 22px; } }

/* ---------- forge */
.forge-feature, .forge-hero { background: radial-gradient(ellipse 60% 70% at 85% 110%, rgba(240,138,36,.35), transparent 60%), radial-gradient(ellipse 50% 60% at 10% 120%, rgba(245,176,0,.18), transparent 60%), #111a2e; color: rgba(255,255,255,.86); overflow: hidden; }
.forge-feature h2, .forge-hero h1 { color: #fff; }
.forge-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 72px); align-items: center; position: relative; }
.verse { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--gold); }
.verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }
.upcoming-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.upcoming-card h3 { color: #fff; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.upcoming-card h3 svg { color: var(--gold); }
.upcoming { list-style: none; margin: 8px 0 20px; padding: 0; }
.upcoming li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.upcoming .u-date { text-align: center; line-height: 1.05; }
.upcoming .u-date b { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.upcoming .u-date span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.upcoming .u-name { color: #fff; font-weight: 500; }
.upcoming .u-name small { display: block; color: rgba(255,255,255,.6); font-weight: 400; }
.upcoming .up-fallback { display: block; }
.upcoming .up-fallback a { color: var(--gold); }
.embers { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20% 80%, rgba(245,176,0,.7), transparent), radial-gradient(1.5px 1.5px at 70% 60%, rgba(240,138,36,.8), transparent), radial-gradient(2px 2px at 85% 85%, rgba(245,176,0,.6), transparent), radial-gradient(1.5px 1.5px at 40% 90%, rgba(240,138,36,.6), transparent), radial-gradient(1px 1px at 55% 75%, rgba(255,210,120,.8), transparent), radial-gradient(1.5px 1.5px at 92% 55%, rgba(245,176,0,.5), transparent);
  animation: float 9s linear infinite alternate; }
@keyframes float { to { transform: translateY(-40px); opacity: .6; } }
@media (max-width: 860px) { .forge-grid { grid-template-columns: 1fr; } }

/* ---------- theme band */
.theme-band { background: linear-gradient(180deg, var(--sky), var(--cream)); text-align: center; }
.theme-inner { max-width: 820px; }
.theme-band h2 em { color: var(--gold-deep); }
.theme-band .verse { color: var(--navy); }
.theme-band .verse cite { color: var(--muted); }

/* ---------- visit band */
.visit-band { background: var(--paper); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.contact-list svg { color: var(--gold-deep); flex: none; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sky); border: 6px solid #fff; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) */
.page-hero { position: relative; background: radial-gradient(ellipse 70% 80% at 50% 120%, #29487F, var(--navy) 55%, var(--navy-deep)); color: #fff; padding: clamp(72px, 10vw, 120px) 0 clamp(64px, 8vw, 96px); text-align: center; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 20ch; margin-inline: auto; }
.page-hero .kicker { color: var(--gold); }
.page-hero .lede { max-width: 42rem; margin: 0 auto; font-size: 1.15rem; color: rgba(255,255,255,.85); }
.page-hero .wrap { position: relative; }
.verse-lg { font-family: var(--serif); font-style: italic; font-size: 1.35rem !important; color: var(--gold) !important; }
.verse-lg cite { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------- general layouts */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.card-soft { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.addr { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.4; }
.note { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.note svg { color: var(--ember); flex: none; margin-top: 4px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.expect-grid, .ministry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ministry-grid { grid-template-columns: repeat(3, 1fr); }
.expect, .ministry { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.expect > svg, .ministry > svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--navy); color: var(--gold); margin-bottom: 18px; }
.expect p, .ministry p { color: var(--muted); margin-bottom: .6em; }
@media (max-width: 960px) { .ministry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .expect-grid, .ministry-grid { grid-template-columns: 1fr; } }

/* ---------- about */
.about-intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); }
.prose p { color: #2C3650; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } }
.bbb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.bbb > div { padding: 36px 32px; border-right: 1px solid var(--line); }
.bbb > div:last-child { border-right: 0; }
.bbb span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 700; margin-bottom: 14px; }
.bbb h3 { font-size: 1.7rem; }
.bbb p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .bbb { grid-template-columns: 1fr; } .bbb > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.belief-list { list-style: none; margin: 0; padding: 0; }
.belief-list li { padding: 22px 0 22px 28px; border-left: 3px solid var(--gold); position: relative; }
.belief-list li + li { border-top: 0; }
.belief-list li::before { content: ""; position: absolute; left: -8px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--navy); }
.belief-list h3 { font-size: 1.25rem; margin-bottom: 6px; }
.belief-list p { margin: 0; color: var(--muted); }

/* ---------- pastor page */
.pastor-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pastor-photo { margin: 0; position: sticky; top: 110px; }
.pastor-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.pastor-photo figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--muted); text-align: center; }
.letter .dropcap::first-letter { float: left; font-family: var(--serif); font-size: 4.2rem; line-height: .85; padding: 6px 10px 0 0; color: var(--gold-deep); font-weight: 600; }
.letter .sig { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--navy); }
@media (max-width: 820px) { .pastor-grid { grid-template-columns: 1fr; } .pastor-photo { position: static; max-width: 440px; } }

/* ---------- forge page */
.forge-hero { text-align: center; }
.forge-hero .wrap { position: relative; }
.forge-dates { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px; }
.forge-dates li { text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; line-height: 1.1; }
.forge-dates .fd-m { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); font-weight: 600; }
.forge-dates .fd-d { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.forge-dates li.past { opacity: .4; }
.forge-dates li.next { background: var(--navy); border-color: var(--navy); }
.forge-dates li.next .fd-d { color: #fff; }
.forge-dates li.next .fd-m { color: var(--gold); }

/* ---------- calendar */
.cal-intro { max-width: 46rem; margin: 0 auto 26px; text-align: center; font-size: 1.15rem; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }
.lg { font-size: .82rem; font-weight: 600; letter-spacing: .06em; padding: 7px 16px; border-radius: 999px; }
.lg.root { background: var(--sky); color: var(--navy); }
.lg.fruit { background: #FFF3D1; color: #7A5600; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.month { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: opacity .3s; }
.month header { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); position: relative; }
.month header::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue); }
.month.fruit header::before { background: var(--gold); }
.month h2 { font-size: 1.55rem; margin: 0; }
.month header p { margin: 2px 0 0; font-family: var(--serif); font-style: italic; color: var(--blue); }
.month.fruit header p { color: var(--gold-deep); }
.month ul { list-style: none; margin: 0; padding: 10px 24px 18px; }
.month li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.month li:last-child { border-bottom: 0; }
.ev-d { font-weight: 600; color: var(--navy); }
.ev-n small { display: block; color: var(--muted); font-size: .86rem; }
.month li.past { color: #9aa1b0; }
.month li.past .ev-d { color: #9aa1b0; }
.month li.next { background: #FFF6DD; margin: 0 -12px; padding: 9px 12px; border-radius: 10px; border-bottom-color: transparent; }
.month li.next .ev-n::after { content: "Up next"; margin-left: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--navy-deep); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.month.done { opacity: .62; }
.month.current { border-color: var(--navy); box-shadow: var(--shadow); }
@media (max-width: 960px) { .months { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .months { grid-template-columns: 1fr; } }

/* ---------- know god */
.gospel .scripture { margin: 30px 0; padding: 26px 30px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.gospel .scripture cite { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 50px 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 36px 76px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.steps li::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h2 { font-size: 1.65rem; }
.prayer { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); margin: 20px 0 30px; position: relative; overflow: hidden; }
.prayer .kicker { color: var(--gold); }
.prayer p { color: rgba(255,255,255,.85); }
.prayer-text { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.7; color: #fff !important; margin: 0; }
.decision { background: radial-gradient(ellipse 70% 80% at 50% 120%, #29487F, var(--navy) 55%, var(--navy-deep)); color: rgba(255,255,255,.86); overflow: hidden; }
.decision h2 { color: #fff; }
.decision .wrap { position: relative; }
@media (max-width: 560px) { .steps li { padding-left: 0; padding-top: 66px; } .steps li::after { display: none; } }

/* ---------- footer */
.site-footer { position: relative; background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 80px 0 28px; overflow: hidden; font-size: .97rem; }
.site-footer .rays { opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; position: relative; }
.f-brand img { width: 84px; margin-bottom: 16px; }
.f-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; line-height: 1.3; }
.f-tag { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.f-tag i { font-style: normal; opacity: .6; margin: 0 4px; }
.f-h { font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.f-times { list-style: none; padding: 0; margin: 0; }
.f-times li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.f-social { display: inline-flex; align-items: center; gap: 8px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; position: relative; }
.f-bottom p { margin: 0; }
.credit a { color: var(--gold); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile quick-action bar */
.mobile-bar { display: none; }
.show-past { display: none; }

/* ================================================================
   Phones & small tablets
   ================================================================ */
@media (max-width: 1060px) {
  .site-nav { max-height: calc(100dvh - 78px); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .kicker, .f-h, .f-tag { font-size: .82rem; letter-spacing: .13em; }
  .brand-sub { font-size: .78rem; }
  .big { font-size: 1.18rem; }

  /* comfortable tap targets (44px) */
  .text-link { min-height: 44px; }
  .contact-list li { padding: 0; }
  .contact-list a { display: inline-block; padding: 11px 0; }
  .site-footer p a, .f-social { display: inline-block; padding: 9px 0; }
  .f-social { display: inline-flex; }
  .credit a { display: inline-block; padding: 10px 0; }
  .btn { min-height: 50px; justify-content: center; }
  .btn-row { gap: 12px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero .btn-row .btn { flex: 1 1 auto; }

  /* hero */
  .hero { padding-top: 40px; }
  .hero-logo { width: 118px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-times { margin-top: 36px; }
  .ht-inner { padding: 18px 20px; }

  /* cards */
  .pillar, .expect, .ministry { padding: 26px 22px; }
  .pillar:hover { transform: none; }
  .pf-photo::before { inset: 14px -14px -14px 14px; }
  .pf-photo { margin-right: 14px; }
  .upcoming-card { padding: 22px 20px; }
  .card-soft { padding: 24px 20px; }

  /* page heroes */
  .page-hero { padding: 56px 0 52px; }
  .page-hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .page-hero .lede { font-size: 1.04rem; }

  /* map: shorter, and keep page scroll from getting trapped */
  .map-frame { aspect-ratio: 16 / 11; border-width: 4px; }

  /* calendar: tuck finished months behind a button */
  .show-past:not([hidden]) { display: flex; width: 100%; margin: -16px 0 20px; }
  .months.hide-past .month.done { display: none; }
  .cal-legend { margin-bottom: 30px; }

  /* know god */
  .gospel .scripture { padding: 20px 20px; font-size: 1.12rem; }
  .prayer-text { font-size: 1.1rem; }

  /* footer */
  .site-footer { padding-top: 60px; }
  .f-bottom { flex-direction: column; margin-top: 36px; }

  /* sticky quick actions */
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(13, 29, 58, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.12); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    color: #fff; text-decoration: none; font-size: .78rem; font-weight: 500; border-radius: 12px; }
  .mobile-bar a:active { background: rgba(255,255,255,.1); }
  .mobile-bar svg { color: var(--gold); width: 20px; height: 20px; }
  .site-footer { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-bar { display: none; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .times-strip { grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .times-strip li { padding: 4px 2px; }
  .brand-name { font-size: 1rem; }
}

/* touch devices: no hover lift */
@media (hover: none) {
  .btn:hover, .pillar:hover { transform: none; }
}

/* any touch screen (phones and tablets): 44px tap targets */
@media (pointer: coarse) {
  .text-link { min-height: 44px; }
  .contact-list li { padding: 0; }
  .contact-list a { display: inline-block; padding: 11px 0; }
  .site-footer p a, .credit a { display: inline-block; padding: 9px 0; }
  .f-social { display: inline-flex; padding: 9px 0; }
}
.forge-dates .fd-m, .upcoming .u-date span { font-size: .76rem; }
