/* Citywide Praise & Worship Baptist Church — site styles
   Colours live at the top; change them here and the whole site follows. */
:root {
  --purple-900: #2a1650;
  --purple-800: #3a1f6e;
  --purple-700: #4c2a8c;
  --purple-100: #efe9fb;
  --gold: #d9a536;
  --gold-dark: #b8861c;
  --cream: #fbf8f2;
  --ink: #1f1a2b;
  --muted: #5d566b;
  --line: #e6e0d6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(42, 22, 80, 0.25);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-700); text-underline-offset: 3px; }
a:hover { color: var(--purple-900); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--purple-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Header ------------------------------------------------------------ */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--purple-900); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-800); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.35rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.25rem; }
.brand-text small { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { background: var(--purple-100); color: var(--purple-900); }
.site-nav a[aria-current="page"] { color: var(--purple-700); background: var(--purple-100); }
.site-nav a.nav-give { background: var(--purple-800); color: var(--white); margin-left: 6px; }
.site-nav a.nav-give:hover, .site-nav a.nav-give[aria-current="page"] { background: var(--purple-900); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--purple-900); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  #site-header.open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .site-nav a.nav-give { margin: 6px 0 0; text-align: center; }
  #site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  #site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--purple-900); }
.btn-gold:hover { background: #e6b54a; color: var(--purple-900); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-primary { background: var(--purple-800); color: var(--white); }
.btn-primary:hover { background: var(--purple-900); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white); padding: clamp(80px, 14vw, 150px) 0 clamp(70px, 10vw, 120px);
  background:
    linear-gradient(115deg, rgba(42,22,80,.94) 0%, rgba(58,31,110,.86) 50%, rgba(76,42,140,.7) 100%),
    var(--hero-photo, none) center / cover no-repeat,
    var(--purple-800);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(217,165,54,.12); pointer-events: none; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .eyebrow { color: var(--gold); }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40ch; opacity: .92; margin-bottom: 1.8em; }
.hero-times { margin-top: 36px; display: inline-flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 22px; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 600; }
.hero-times span { color: var(--gold); }
.page-hero { background: var(--purple-800); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 44px solid rgba(217,165,54,.13); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { max-width: 60ch; opacity: .9; margin: 12px 0 0; font-size: 1.15rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .6em; }

/* ---- Sections ---------------------------------------------------------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .card { background: var(--cream); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-alt .service-card { background: var(--cream); }
.service-card.featured { background: var(--purple-800); color: var(--white); border-color: var(--purple-800); box-shadow: var(--shadow); }
.service-card.featured h3 { color: var(--white); }
.service-day { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin: 0; }
.service-card.featured .service-day { color: var(--gold); }
.service-time { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; margin: 2px 0 10px; }
.service-card p:last-child { margin: 0; opacity: .88; }

/* Values list */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.values li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 20px; }
.values strong { display: block; font-family: var(--serif); color: var(--purple-900); font-size: 1.12rem; margin-bottom: 2px; }

/* Quote band */
.quote-band { background: var(--purple-900); color: var(--white); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 780px; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; }
.quote-band cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 1rem; color: var(--gold); letter-spacing: .06em; }

/* Events */
.events { display: grid; gap: 16px; }
.event-card { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.event-card h3 { margin-bottom: 4px; }
.event-card p:last-child { margin: 0; }
.event-date { flex: none; width: 68px; text-align: center; background: var(--purple-100); border-radius: 12px; padding: 10px 0; color: var(--purple-800); }
.event-date span { display: block; text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.event-date strong { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.event-meta { color: var(--gold-dark); font-weight: 600; margin-bottom: 6px; }
.empty-note { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); margin: 0; }

/* Photo placeholder */
.photo { border-radius: var(--radius); aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--purple-700), var(--purple-900)); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); font-weight: 600; text-align: center; padding: 20px; }

/* Beliefs */
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 880px) { .beliefs { grid-template-columns: 1fr; } }
.belief { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.belief h3 { display: flex; align-items: center; gap: 12px; }
.belief h3 .num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--purple-100); color: var(--purple-700); font-family: var(--sans); font-size: .9rem; display: grid; place-items: center; }
.belief p { margin: 0; }
.belief.wide { grid-column: 1 / -1; }

/* Leaders */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 22px; }
.leader-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.leader-card img, .leader-initials { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.leader-initials { display: grid; place-items: center; background: var(--purple-800); color: var(--gold); font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.leader-card h3 { margin-bottom: 2px; }
.leader-role { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }

/* Ministries */
.ministry { display: grid; grid-template-columns: 76px 1fr; gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.ministry + .ministry { margin-top: 20px; }
.ministry-icon { width: 76px; height: 76px; border-radius: 18px; background: var(--purple-100); color: var(--purple-700); display: grid; place-items: center; }
.ministry ul { margin: 0; padding-left: 1.2em; }
.ministry li { margin-bottom: 4px; }
@media (max-width: 600px) { .ministry { grid-template-columns: 1fr; } }

/* Map + contact */
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--purple-100); }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { font-weight: 700; color: var(--purple-900); }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--purple-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-dark); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 18px; margin: 0; }

/* Give */
.give-option { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.give-option .btn { margin-top: auto; align-self: flex-start; }
.give-option h3 { margin-bottom: 8px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--purple-800), var(--purple-700)); color: var(--white); border-radius: 22px; padding: clamp(32px, 6vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .9; }

/* ---- Footer ------------------------------------------------------------ */
#site-footer { background: var(--purple-900); color: rgba(255,255,255,.85); padding: 64px 0 0; font-size: .98rem; }
#site-footer a { color: var(--white); }
#site-footer a:hover { color: var(--gold); }
#site-footer h4 { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 12px; }
#site-footer .muted { color: rgba(255,255,255,.65); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { text-decoration: none; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 20px 0; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
