/* ==========================================================================
   St Barnabas Linslade — design system
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand: Victorian flint + stained glass. Deep indigo, warm gold, cream. */
  --ink:            #16203a;
  --navy-900:       #101a33;
  --navy-800:       #16233f;
  --navy-700:       #1f3157;
  --navy-600:       #2c4577;
  --navy-500:       #3d5c96;

  --gold-600:       #a97a12;
  --gold-500:       #c9962a;
  --gold-400:       #e0b452;
  --gold-100:       #f7ecd4;

  --cream:          #fbf8f2;
  --cream-2:        #f4efe5;
  --paper:          #ffffff;

  --text:           #23293a;
  --text-muted:     #5c6478;
  --text-faint:     #858ca0;
  --line:           #e2ddd2;
  --line-strong:    #cdc6b7;

  --ok:             #2f7a54;
  --ok-bg:          #e7f4ed;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  30px;

  --shadow-sm: 0 1px 2px rgba(16,26,51,.06), 0 2px 6px rgba(16,26,51,.05);
  --shadow:    0 4px 12px rgba(16,26,51,.07), 0 12px 28px rgba(16,26,51,.07);
  --shadow-lg: 0 10px 24px rgba(16,26,51,.10), 0 30px 60px rgba(16,26,51,.12);

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;

  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-400); border-radius: 2px;
}
.eyebrow.is-light { color: var(--gold-400); }
.eyebrow.is-centred { justify-content: center; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { width: min(760px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { width: min(950px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 4.5vw, 3.2rem); }
.section--paper { background: var(--paper); }
.section--cream2 { background: var(--cream-2); }
.section--navy {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(61,92,150,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #dfe5f0;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c3cddf; }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.section-head.is-centred { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .97rem;
  padding: .78rem 1.45rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

.btn--primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-600); color: #fff; box-shadow: var(--shadow); }

.btn--gold { background: var(--gold-500); color: #3a2a05; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-400); color: #3a2a05; box-shadow: var(--shadow); }

.btn--ghost { border-color: var(--line-strong); color: var(--navy-700); background: transparent; }
.btn--ghost:hover { border-color: var(--navy-600); background: var(--paper); color: var(--navy-700); }

.btn--on-dark { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.btn--on-dark:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

.btn--sm { padding: .55rem 1.05rem; font-size: .875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,242,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: var(--header-h);
  width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 600;
  color: var(--navy-800); line-height: 1.1; letter-spacing: -.01em;
}
.brand__sub {
  display: block; font-family: var(--font-body);
  font-size: .66rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; margin-top: 2px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative;
  padding: .55rem .72rem; border-radius: 8px;
  font-size: .92rem; font-weight: 550; color: var(--navy-800);
  text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--cream-2); color: var(--navy-700); }
.nav a[aria-current="page"] { color: var(--gold-600); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .28rem;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}
.nav .btn { margin-left: .5rem; }

/* dropdown */
.nav__item { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; font: inherit;
  padding: .55rem .72rem; border-radius: 8px;
  font-size: .92rem; font-weight: 550; color: var(--navy-800); cursor: pointer;
}
.nav__toggle:hover { background: var(--cream-2); }
.nav__toggle svg { width: 11px; height: 11px; transition: transform .2s ease; opacity: .6; }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 232px; padding: .45rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  list-style: none; margin: 0;
}
.nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .9rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1.5px solid var(--line-strong); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy-800);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .8rem var(--gutter) 1.4rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav__toggle { padding: .8rem .4rem; font-size: 1rem; width: 100%; text-align: left; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .4rem .6rem; padding: 0 0 0 .5rem;
    display: none; min-width: 0;
  }
  .nav__item.is-open .nav__menu { display: block; }
  .nav .btn { margin: .7rem 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(12,20,38,.94) 0%, rgba(12,20,38,.80) 42%, rgba(12,20,38,.42) 100%),
    linear-gradient(to top, rgba(12,20,38,.75), transparent 55%);
}
.hero__inner {
  width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter);
  padding-block: clamp(4rem, 11vw, 8rem);
  max-width: none;
}
.hero__text { max-width: 660px; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); margin-bottom: .45em; }
.hero p.lede { color: #dbe3f0; }
.hero .btn-row { margin-top: 1.9rem; }

/* live pill */
.live-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; text-decoration: none;
  padding: .4rem .95rem .4rem .7rem; border-radius: 100px;
  font-size: .84rem; font-weight: 600; margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.live-pill:hover { background: rgba(255,255,255,.22); color: #fff; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff5f57;
  box-shadow: 0 0 0 0 rgba(255,95,87,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255,95,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,95,87,0); }
}

/* page hero (interior pages) */
.page-hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; opacity: .38; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__inner {
  width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter);
  padding-block: clamp(2.8rem, 6.5vw, 4.6rem);
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #c9d4e6; max-width: 620px; margin-bottom: 0; font-size: 1.08rem; }

.crumbs { font-size: .82rem; color: rgba(255,255,255,.68); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .5; margin-inline: .45rem; }

/* ---------- Service times strip ---------- */
.times-strip {
  position: relative; z-index: 2;
  margin-top: clamp(-3.5rem, -5vw, -2rem);
}
.times-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  overflow: hidden;
}
@media (max-width: 880px) { .times-card { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .times-card { grid-template-columns: 1fr; } }

.time-item { padding: .5rem clamp(.6rem, 2vw, 1.4rem); position: relative; }
.time-item + .time-item::before {
  content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: var(--line);
}
@media (max-width: 880px) { .time-item + .time-item::before { display: none; } }
.time-item__when {
  font-family: var(--font-display); font-size: 1.75rem; color: var(--navy-700);
  line-height: 1; margin-bottom: .3rem;
}
.time-item__what { font-weight: 650; font-size: .97rem; color: var(--text); margin-bottom: .15rem; }
.time-item__note { font-size: .85rem; color: var(--text-muted); line-height: 1.45; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-size: .82rem; color: var(--text-faint); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--gold-100); color: var(--gold-600);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge--navy { background: #e7ecf6; color: var(--navy-600); }

/* action cards (home quick actions) */
.action-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.35rem, 2.4vw, 1.8rem);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.action-card h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.action-card p { font-size: .94rem; color: var(--text-muted); margin-bottom: 1rem; }
.action-card__go {
  margin-top: auto; font-size: .89rem; font-weight: 700; color: var(--gold-600);
  display: inline-flex; align-items: center; gap: .4rem;
}
.action-card:hover .action-card__go { gap: .65rem; }
.action-card__go svg { width: 14px; height: 14px; transition: transform .18s ease; }

/* feature / media split */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  line-height: 0;
}
.frame img { width: 100%; max-height: 540px; object-fit: cover; }
.frame--tall img { aspect-ratio: 4/5; max-height: none; }

/* two churches */
.church-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.church-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.church-card__body { padding: 1.4rem clamp(1.2rem, 2.2vw, 1.6rem) 1.6rem; }
.church-card__body h3 { margin-bottom: .3rem; }
.church-card__body .card__meta { margin-bottom: .7rem; }

/* ---------- Lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.tick-list li {
  position: relative; padding-left: 1.9rem; margin-bottom: .6rem; line-height: 1.55;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a97a12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.68rem no-repeat;
}
.section--navy .tick-list li::before { background-color: rgba(224,180,82,.2); }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

/* ---------- Accordion (groups, FAQ) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem clamp(1rem, 2.2vw, 1.5rem);
  font-family: var(--font-display); font-size: 1.13rem; font-weight: 600; color: var(--navy-800);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background-color .15s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--cream-2); }
.accordion summary::after {
  content: ""; flex-shrink: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3157' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/.8rem no-repeat;
  transition: transform .2s ease;
}
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion__body { padding: 0 clamp(1rem, 2.2vw, 1.5rem) 1.35rem; }
.accordion__body > *:last-child { margin-bottom: 0; }
.accordion__body .meta-row { margin-bottom: .8rem; }

.meta-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--cream-2); border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .8rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 100px;
}
.chip--gold { background: var(--gold-100); border-color: #eadfc2; color: var(--gold-600); }
.chip--ok { background: var(--ok-bg); border-color: #c9e6d6; color: var(--ok); }
.chip--busy { background: #fbe9e7; border-color: #f3cec9; color: #b0392b; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.2vw, 2.6rem);
}
.field { margin-bottom: 1.15rem; }
.field label, .field > .label {
  display: block; font-size: .87rem; font-weight: 650;
  color: var(--navy-800); margin-bottom: .4rem;
}
.field .hint { font-size: .82rem; color: var(--text-faint); font-weight: 400; margin-top: .3rem; }
.req { color: #b0392b; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: .68rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-500); background: var(--paper);
  box-shadow: 0 0 0 3.5px rgba(61,92,150,.15);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6478' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: .95rem;
  padding-right: 2.4rem;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 1.15rem; }
legend {
  font-size: .87rem; font-weight: 650; color: var(--navy-800);
  padding: 0; margin-bottom: .5rem;
}

/* radio / checkbox cards */
.choice-grid { display: grid; gap: .6rem; }
.choice-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choice-grid--2 { grid-template-columns: 1fr; } }

.choice {
  position: relative; display: flex; gap: .7rem; align-items: flex-start;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: .75rem .9rem; cursor: pointer; background: var(--cream);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: var(--navy-500); }
.choice input { margin: .18rem 0 0; accent-color: var(--navy-600); width: 17px; height: 17px; flex-shrink: 0; }
.choice__text { font-size: .93rem; line-height: 1.45; }
.choice__text strong { display: block; font-weight: 650; color: var(--navy-800); font-size: .95rem; }
.choice__text span { color: var(--text-muted); font-size: .86rem; }
.choice:has(input:checked) {
  border-color: var(--navy-600); background: #eef2f9;
  box-shadow: 0 0 0 3px rgba(61,92,150,.12);
}
.choice:has(input:focus-visible) { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* inline checkbox */
.check-inline { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.check-inline input { margin: .2rem 0 0; accent-color: var(--navy-600); width: 17px; height: 17px; flex-shrink: 0; }

/* form success */
.form-success {
  display: none;
  background: var(--ok-bg); border: 1px solid #c9e6d6;
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
}
.form-success.is-shown { display: block; animation: fadeUp .35s ease; }
.form-success h3 { color: var(--ok); font-size: 1.2rem; margin-bottom: .35rem; }
.form-success p { margin-bottom: 0; font-size: .95rem; color: #2c5a44; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.demo-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--gold-100); border: 1px solid #eadfc2;
  border-radius: 12px; padding: .8rem 1rem;
  font-size: .85rem; line-height: 1.5; color: #6b5211;
  margin-top: 1.2rem;
}
.demo-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: .15rem; }

/* ---------- Prayer wall ---------- */
.prayer-wall { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.prayer-note {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--gold-400);
  border-radius: 12px; padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.prayer-note__text { font-size: .97rem; line-height: 1.6; margin-bottom: .9rem; color: var(--text); }
.prayer-note__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; font-size: .82rem; color: var(--text-faint); border-top: 1px solid var(--line); padding-top: .7rem;
}
.pray-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: .3rem .75rem; font: inherit; font-size: .81rem; font-weight: 650;
  color: var(--navy-700); cursor: pointer; transition: all .15s ease;
}
.pray-btn svg { width: 14px; height: 14px; }
.pray-btn:hover { border-color: var(--gold-500); color: var(--gold-600); background: var(--gold-100); }
.pray-btn.is-active { background: var(--gold-100); border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- Hall booking ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }
.room-card {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.room-card.is-selected { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(61,92,150,.14), var(--shadow); }
.room-card h3 { font-size: 1.22rem; margin-bottom: .2rem; }
.room-card__cap { font-size: .86rem; color: var(--gold-600); font-weight: 700; margin-bottom: .8rem; }
.room-card ul { font-size: .89rem; }
.room-card .btn { margin-top: auto; }

/* availability calendar */
.cal {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.cal__month { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-800); }
.cal__nav { display: flex; gap: .4rem; }
.cal__nav button {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--navy-700);
  display: grid; place-items: center;
}
.cal__nav button:hover { background: var(--cream-2); border-color: var(--navy-500); }
.cal__nav svg { width: 15px; height: 15px; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__dow {
  text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); padding-bottom: .5rem;
}
.cal__day {
  position: relative; aspect-ratio: 1; min-height: 40px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--cream); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600; color: var(--text);
  transition: all .13s ease; padding: 0;
  font-family: inherit;
}
.cal__day:hover:not(:disabled) { border-color: var(--navy-500); transform: scale(1.05); }
.cal__day:disabled, .cal__day.is-empty { background: transparent; border-color: transparent; cursor: default; color: var(--text-faint); opacity: .35; }
.cal__day.is-free { background: var(--ok-bg); border-color: #c3e3d2; color: #245c40; }
.cal__day.is-part { background: #fdf3dc; border-color: #eeddb2; color: #7a5d13; }
.cal__day.is-full { background: #f7e6e3; border-color: #eecdc7; color: #9c3d2f; }
.cal__day.is-selected { box-shadow: 0 0 0 2.5px var(--navy-600); border-color: var(--navy-600); }
.cal__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-top: 2px; opacity: .65; }

.cal__legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .83rem; color: var(--text-muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal__swatch { width: 13px; height: 13px; border-radius: 4px; border: 1px solid; }
.sw-free { background: var(--ok-bg); border-color: #c3e3d2; }
.sw-part { background: #fdf3dc; border-color: #eeddb2; }
.sw-full { background: #f7e6e3; border-color: #eecdc7; }

.slot-panel {
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.slot-panel__title { font-weight: 650; font-size: .95rem; color: var(--navy-800); margin-bottom: .75rem; }
.slot-list { display: grid; gap: .5rem; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); font-size: .9rem;
}
.slot__time { font-weight: 650; color: var(--navy-800); }
.slot__who { color: var(--text-muted); font-size: .86rem; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: .9rem; }
.event {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.event:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 680px) {
  .event { grid-template-columns: 60px 1fr; gap: .9rem; }
  .event__action { grid-column: 1 / -1; }
}
.event__date {
  text-align: center; border-radius: 11px; background: var(--cream-2);
  border: 1px solid var(--line); padding: .45rem .3rem;
}
.event__day { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--navy-700); }
.event__mon { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-600); margin-top: 2px; }
.event__title { font-family: var(--font-display); font-size: 1.14rem; color: var(--navy-800); margin-bottom: .15rem; }
.event__meta { font-size: .87rem; color: var(--text-muted); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 250px; column-gap: 1rem; }
.gallery figure {
  break-inside: avoid; margin: 0 0 1rem;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--paper);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; cursor: zoom-in; }
.gallery figcaption { padding: .7rem .9rem; font-size: .86rem; color: var(--text-muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,16,30,.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }
.lightbox__cap { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; color: #cdd6e6; font-size: .92rem; padding-inline: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { display: flex; gap: .95rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--cream-2); color: var(--navy-600); display: grid; place-items: center;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h4 { margin-bottom: .15rem; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); font-weight: 700; }
.contact-item p { margin-bottom: 0; font-size: .97rem; line-height: 1.55; }
.contact-item a { font-weight: 550; }

.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); background: var(--cream-2); line-height: 0;
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Calendar embed ---------- */
.embed-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--paper); line-height: 0;
}
.embed-frame iframe { width: 100%; border: 0; display: block; min-height: 620px; }

/* ---------- Quote / prayer block ---------- */
.quote-block {
  border-left: 3px solid var(--gold-400);
  padding: .3rem 0 .3rem 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55; color: var(--navy-700); font-style: italic;
}
.section--navy .quote-block { color: #e8edf6; border-color: var(--gold-400); }
.quote-block cite { display: block; font-size: .82rem; font-style: normal; font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-top: .9rem; font-weight: 600; }
.section--navy .quote-block cite { color: rgba(255,255,255,.55); }

/* verse of the day */
.verse-card {
  background: linear-gradient(150deg, var(--gold-100), #fdf9f0);
  border: 1px solid #eadfc2; border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); text-align: center;
}
.verse-card__text {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.5; color: var(--navy-800); margin-bottom: .8rem; font-style: italic;
}
.verse-card__ref { font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-600); }

/* ---------- Prose (long text pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; font-size: 1.28rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose > *:last-child { margin-bottom: 0; }

.info-panel {
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem;
}
.info-panel > *:last-child { margin-bottom: 0; }
.info-panel h3 { font-size: 1.12rem; margin-bottom: .5rem; }

/* sticky sub-nav for long pages */
.toc {
  position: sticky; top: calc(var(--header-h) + 1.4rem);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
}
.toc h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .8rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: .1rem; }
.toc a { display: block; padding: .38rem .55rem; border-radius: 7px; font-size: .89rem; text-decoration: none; color: var(--text-muted); line-height: 1.4; }
.toc a:hover { background: var(--cream-2); color: var(--navy-700); }
.with-toc { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; }
@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- Support / helpline table ---------- */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1rem; }
.support-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm); }
.support-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .3rem; }
.support-card .num { font-size: 1.15rem; font-weight: 700; color: var(--navy-700); display: block; margin-bottom: .2rem; }
.support-card .num a { text-decoration: none; color: inherit; }
.support-card .num a:hover { color: var(--gold-600); }
.support-card p { font-size: .87rem; color: var(--text-muted); margin-bottom: .4rem; }
.support-card .site { font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(201,150,42,.28), transparent 65%),
    linear-gradient(140deg, var(--navy-700), var(--navy-900));
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #c3cddf; margin-bottom: 0; max-width: 52ch; }

/* ---------- Newsletter signup ---------- */
.signup-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.3rem; }
.signup-form input { flex: 1 1 240px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.signup-form input::placeholder { color: rgba(255,255,255,.55); }
.signup-form input:focus { background: rgba(255,255,255,.16); border-color: #fff; box-shadow: 0 0 0 3.5px rgba(255,255,255,.15); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #a9b5cc; padding-block: clamp(2.8rem, 5vw, 4rem) 0; }
.footer a { color: #d5dceb; text-decoration: none; }
.footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.6rem, 3.5vw, 2.8rem); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: #fff; font-family: var(--font-body); font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; font-size: .93rem; }
.footer p { font-size: .93rem; line-height: 1.65; }
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer__brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 3px; }
.footer__brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; color: #d5dceb;
}
.socials a:hover { background: var(--gold-500); color: #2a2005; border-color: transparent; }
.socials svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .84rem; color: #7f8ca6;
}
.footer__bottom a { color: #9aa7c0; }

/* ---------- Utilities ---------- */
.text-centre { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .6rem; } .mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.small { font-size: .87rem; }
.muted { color: var(--text-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-700); color: #fff; padding: .8rem 1.3rem;
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* print */
@media print {
  .header, .footer, .nav-toggle, .cta-band, .btn { display: none !important; }
  body { background: #fff; }
}
