/* CACI Northampton: site styles */

:root {
  /* Colours taken from the church logo: royal blue globe, sky blue, red ring */
  --navy: #08164f;
  --blue: #0d3ad0;
  --blue-soft: #e8f0fd;
  --red: #e0140e;
  --red-deep: #c20f0a;
  --sky: #8cc6f5;
  --sky-soft: #e3f1fc;
  --mist: #f4f8fd;
  --paper: #ffffff;
  --text: #18213f;
  --muted: #56607a;
  --line: #dce6f2;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(8, 22, 79, 0.13);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::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.65;
  color: var(--text);
  background: var(--mist);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.prose { max-width: 44rem; }
.big { font-size: 1.2rem; line-height: 1.55; }
.small { font-size: 0.92rem; color: var(--muted); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin: 0 0 0.6rem;
}
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Placeholders that still need real details (draft builds only) */
mark.todo {
  background: #fff1a8;
  color: #4a3b00;
  padding: 0 0.25em;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #e8cf5a;
}
.draft-banner { background: #fff1a8; color: #4a3b00; text-align: center; font-size: 0.9rem; padding: 0.45rem 1rem; }
.draft-banner mark.todo { box-shadow: inset 0 0 0 1px #c9ac2c; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand .logo { width: 50px; height: 50px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.07em; }
.brand-text span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover { background: var(--blue-soft); color: var(--navy); }
.site-nav a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.site-nav .nav-cta { margin-left: 0.5rem; }
.site-nav .nav-cta a { background: var(--blue); color: #fff; padding-inline: 1.15rem; }
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current] { background: var(--navy); color: #fff; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: var(--blue-soft);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 0.75rem 1.25rem 1.25rem; }
  .site-nav a { border-radius: 10px; padding: 0.8rem 1rem; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 0.5rem 0 0; }
  .site-nav .nav-cta a { text-align: center; border-radius: 999px; }
}

/* ---------- Heroes ---------- */
.hero-logo { width: clamp(104px, 15vw, 140px); height: auto; margin: 0 auto 1.4rem; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35)); }
.hero, .page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 65% at 50% -12%, rgba(140, 198, 245, 0.55), transparent 70%),
    repeating-conic-gradient(from 180deg at 50% -18%, rgba(255, 255, 255, 0.045) 0deg 4deg, transparent 4deg 12deg),
    linear-gradient(180deg, #08164f 0%, #1336b8 100%);
}
.hero { text-align: center; padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(7rem, 13vw, 10rem); }
.hero h1, .page-hero h1 { color: #fff; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--sky); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, 0.88); max-width: 38rem; margin: 0 auto; }
.page-hero { padding: clamp(3.25rem, 8vw, 5.5rem) 0; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.page-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 40rem; font-size: 1.2rem; margin: 1rem 0 0; }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .actions { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Service times strip ---------- */
.times { margin-top: calc(-1 * clamp(4rem, 8vw, 5.5rem)); position: relative; z-index: 2; }
.times-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.times-list > li, .times-link a { background: #fff; padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.2rem; }
.times-list .day { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep); }
.times-list strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.times-list .time { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); margin-top: 0.2rem; }
.times-list > li.times-link { padding: 0; }
.times-link a { height: 100%; text-decoration: none; background: var(--sky-soft); transition: background-color 0.15s ease; }
.times-link a:hover { background: #d3e8fa; }
.times-link .time { color: var(--blue); font-weight: 700; }
.times-list.compact { box-shadow: none; }
/* Home page strip: 3 services + "First time?" card. Fixed columns so no empty gaps appear. */
.times .times-list { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .times .times-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .times .times-list { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--paper); }
.section-alt + .section-tight { padding-top: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1rem; }

.verse-panel {
  position: relative;
  margin: 0;
  min-height: 320px;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(140, 198, 245, 0.35), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--blue));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.panel-cross { position: absolute; top: -10px; right: 28px; width: 110px; height: 154px; color: rgba(255, 255, 255, 0.07); }
.verse-panel blockquote { margin: 0 0 1rem; }
.verse-panel blockquote p { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.4; margin: 0; }
.verse-panel figcaption { color: var(--sky); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .grid, .grid-wide { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.section-alt .card { background: var(--mist); }
.card h3 { margin: 0 0 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card .meta { margin-top: auto; padding-top: 0.5rem; }
.card-accent { border-top: 0; border-left: 4px solid var(--red); }
.card-accent .big { margin: 0; font-family: var(--serif); color: var(--navy); }
.give-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 760px) { .give-grid { grid-template-columns: 1fr; } }
.card-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 1rem; }
.card-icon .icon { width: 1.4rem; height: 1.4rem; }
.meta { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.97rem; }
.service .meta { margin: 0 0 0.75rem; padding: 0; font-weight: 600; color: var(--blue); }

.team { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.leader { align-items: center; text-align: center; padding-top: 2rem; }
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background: var(--sky-soft);
  color: var(--blue);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--sky), 0 10px 24px rgba(8, 22, 79, 0.15);
}
.avatar .icon { width: 3.5rem; height: 3.5rem; }
.leader .role { color: var(--red-deep); font-weight: 700; margin-bottom: 0.5rem; }

.beliefs { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); counter-reset: belief; }
.beliefs li { counter-increment: belief; background: var(--mist); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.25rem; position: relative; }
.beliefs li::before {
  content: counter(belief);
  position: absolute;
  left: 1.4rem;
  top: 1.45rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sky);
  font-family: var(--serif);
  font-weight: 600;
  display: grid;
  place-items: center;
}
.beliefs h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.beliefs p { margin: 0; color: var(--muted); }
.note { margin: 0; }

/* ---------- Events ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.event h3 { margin: 0 0 0.25rem; }
.event p { margin: 0 0 0.35rem; }
.event .meta { margin-bottom: 0.5rem; }
.date {
  width: 4.5rem;
  height: 4.75rem;
  border-radius: 12px;
  background: var(--navy);
  color: var(--sky);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.date span { font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: #fff; letter-spacing: 0; margin-bottom: 0.15rem; }
.empty { color: var(--muted); }

/* ---------- Call to action band ---------- */
.cta-band {
  background: var(--sky-soft);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band p { margin: 0; max-width: 34rem; }
.cta-band .actions { margin: 0; }

/* ---------- Visit ---------- */
.info-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list > li > .icon { width: 1.45rem; height: 1.45rem; color: var(--blue); margin-top: 0.15rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #e3ebf5; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-empty { display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); }
.map-empty .icon { width: 2rem; height: 2rem; color: var(--blue); }
.map-link { margin-top: 1rem; }

.faq { margin-top: 1.5rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.25rem; margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red-deep); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; }

/* ---------- Give ---------- */
.bank { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.5rem; margin: 0.5rem 0 0; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 460px) { .bank { grid-template-columns: 1fr; gap: 0.1rem; } .bank dd { margin-bottom: 0.6rem; } }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 0.35rem; font-weight: 600; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid #c3d0e2;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(13, 58, 208, 0.2); border-color: var(--blue); }
.form p { margin: 0; }
.contact-details h2 { font-size: 1.6rem; }
.contact-details h3 { margin-top: 2rem; }
.contact-details .social { margin-top: 1.5rem; }
.contact-details .social a { background: var(--blue-soft); color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 4rem 0 2rem; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.25rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text span { color: rgba(255, 255, 255, 0.65); }
.footer-brand p { margin-top: 1rem; }
.social { display: flex; gap: 0.5rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; }
.social a:hover { background: var(--red); color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.9rem; }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .draft-banner, .cta-band { display: none; }
  .hero, .page-hero { background: none; color: var(--text); }
  .hero h1, .page-hero h1, .page-hero .lead { color: var(--text); }
}

.link-list { margin-top: 1.75rem; }
.times-list .svc { display: flex; flex-direction: column; gap: 0.15rem; }
.times-list .svc + .svc { margin-top: 0.75rem; }

/* ---------- Hero slideshow (church photos behind the home page header) ---------- */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  will-change: opacity, transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(140, 198, 245, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(8, 22, 79, 0.82) 0%, rgba(13, 42, 150, 0.66) 50%, rgba(8, 22, 79, 0.9) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner h1, .hero-inner .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero-pause {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 22, 79, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hero-pause:hover { background: rgba(8, 22, 79, 0.75); }
.hero-pause .icon:last-child { display: none; }
.is-paused .hero-pause .icon:first-child { display: none; }
.is-paused .hero-pause .icon:last-child { display: block; }
.is-paused .slide { animation-play-state: paused; }

@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: heroRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.12s; }
.hero-inner > :nth-child(3) { animation-delay: 0.24s; }
.hero-inner > :nth-child(4) { animation-delay: 0.36s; }
.hero-inner > :nth-child(5) { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .hero-media .slide { animation: none; }
  .hero-media .slide:first-child { opacity: 1; }
  .hero-pause { display: none; }
  .hero-inner > *, .page-hero .wrap > * { animation: none; }
}

/* ---------- Month theme ---------- */
.theme { background: linear-gradient(180deg, var(--mist) 0%, var(--sky-soft) 100%); }
.theme .split { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 820px) { .theme .split { grid-template-columns: 1fr; } }
.scripture { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 4px solid var(--red); }
.scripture p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; color: var(--navy); margin: 0 0 0.6rem; }
.scripture cite { font-style: normal; font-weight: 700; color: var(--red-deep); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.chips { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 700; padding: 0.35rem 0.95rem; border-radius: 999px; font-size: 0.95rem; }
.greeting { font-weight: 600; color: var(--navy); }
.theme-poster { margin: 0; justify-self: center; width: 100%; max-width: 380px; transform: rotate(1.5deg); }
.theme-poster img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 44px rgba(8, 22, 79, 0.22); }

/* ---------- Photo gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery li { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-soft); }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery li:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .gallery li:first-child { aspect-ratio: 4 / 3; }
}

/* ---------- About page photos ---------- */
.wide-photo { margin: 0; }
.wide-photo img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.wide-photo figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; text-align: center; }
.founder { float: right; width: 170px; margin: 0.25rem 0 1rem 1.5rem; }
.founder img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.founder figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }
@media (max-width: 480px) { .founder { float: none; margin: 0 auto 1rem; } }

/* ---------- Ministry cards with a photo or icon on top ---------- */
.card.ministry { padding: 0; overflow: hidden; border-top: 0; }
.ministry .card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-soft); }
.ministry .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ministry:hover .card-media img { transform: scale(1.05); }
.ministry .card-media-icon {
  display: grid;
  place-items: center;
  color: var(--sky);
  background:
    radial-gradient(circle at 80% 15%, rgba(140, 198, 245, 0.35), transparent 55%),
    linear-gradient(140deg, var(--blue), var(--navy));
}
.ministry .card-media-icon .icon { width: 3.2rem; height: 3.2rem; stroke-width: 1.4; }
.ministry .card-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ministry .card-body .meta { margin-top: auto; padding-top: 0.5rem; }

/* ---------- About: life together photo grid ---------- */
.life { margin-top: clamp(3rem, 7vw, 5rem); }
.life-intro { max-width: 40rem; color: var(--muted); margin-bottom: 1.75rem; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.photo-grid li { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sky-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-grid li:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

/* ---------- Shorter pages: month banner, explore cards, About tabs ---------- */
.section-snug { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section-intro { max-width: 42rem; color: var(--muted); font-size: 1.1rem; margin: 0 0 2rem; }
.events-wrap { margin-top: 2rem; }

.month-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 1.5rem 1rem 1rem;
  background: linear-gradient(120deg, #fff 0%, var(--sky-soft) 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}
.month-banner:hover { color: var(--text); }
.month-banner:hover strong { color: var(--blue); }
.month-thumb { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.month-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.month-text .eyebrow { display: block; margin: 0; }
.month-text strong { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.2; font-weight: 600; color: var(--navy); }
.month-meta { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
  .month-banner { grid-template-columns: auto 1fr; padding-right: 1rem; }
  .month-banner .btn { grid-column: 1 / -1; justify-content: center; }
}

.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .explore { gap: 0.75rem; } }
.explore-card {
  display: flex;
  flex-direction: column;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.explore-img { aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.explore-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.explore-card:hover .explore-img img { transform: scale(1.05); }
.explore-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.explore-body strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.explore-body > span:not(.text-link) { color: var(--muted); font-size: 0.97rem; }
.explore-body .text-link { margin-top: auto; padding-top: 0.4rem; color: var(--blue); }
@media (max-width: 480px) {
  .explore-body { padding: 0.8rem 0.9rem 1rem; }
  .explore-body strong { font-size: 1.1rem; }
  .explore-body > span:not(.text-link) { display: none; }
}

.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 1rem 1.1rem 0.85rem; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--navy); }
.subnav a[aria-current] { color: var(--blue); border-bottom-color: var(--red); }
.wide-photo.after-grid { margin-top: 2.5rem; }
.beliefs { margin-top: 0; }
.note + .beliefs { margin-top: 1.5rem; }
@media (max-width: 600px) {
  .card.ministry { flex-direction: row; }
  .ministry .card-media { flex: 0 0 34%; aspect-ratio: auto; min-height: 9rem; }
  .ministry .card-media-icon .icon { width: 2.2rem; height: 2.2rem; }
  .ministry .card-body { padding: 0.9rem 1rem 1rem; }
  .ministry .card-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .ministry .card-body p { font-size: 0.93rem; }
}

/* ---------- Yahurah Experience page ---------- */
.photo-hero {
  background:
    linear-gradient(180deg, rgba(6, 10, 40, 0.78) 0%, rgba(8, 22, 79, 0.72) 55%, rgba(6, 10, 40, 0.9) 100%),
    var(--hero-photo) center 30% / cover no-repeat;
  padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(4rem, 10vw, 6.5rem);
}
.photo-hero .lead { max-width: 44rem; }
.photo-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
.banner-stack { display: grid; gap: 1rem; }
.people-title { margin: 2rem 0 0.75rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.people li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; display: grid; gap: 0.1rem; color: var(--muted); font-size: 0.95rem; }
.people li span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-deep); }
.people li strong { color: var(--navy); font-size: 1.05rem; }
.stage {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(224, 20, 14, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(140, 198, 245, 0.22), transparent 70%),
    #070b2a;
  color: rgba(255, 255, 255, 0.85);
}
.stage h2 { color: #fff; margin-bottom: 1.75rem; }
.stage .eyebrow { color: var(--sky); }
.stage .gallery li { background: #11183f; }

/* ---------- Moving photos behind every page heading ---------- */
.page-hero.has-media { min-height: clamp(320px, 38vw, 460px); display: flex; align-items: center; }
.page-hero.has-media > .wrap { position: relative; z-index: 1; }
.page-hero.has-media h1, .page-hero.has-media .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.page-hero.has-media h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero .wrap > * { animation: heroRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: 0.12s; }
.page-hero .wrap > :nth-child(3) { animation-delay: 0.24s; }
.page-hero .wrap > :nth-child(4) { animation-delay: 0.36s; }

/* ---------- Content slides in as you scroll (added by site.js) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Moving bottom of every page: photo strip, ticker, glowing footer ---------- */
.site-bottom { position: relative; background: var(--navy); }
.photo-ribbon { overflow: hidden; background: var(--navy); padding: 0.75rem 0; border-top: 4px solid var(--red); }
.ribbon-track { display: flex; gap: 0.75rem; width: max-content; animation: ribbonScroll 70s linear infinite; }
.ribbon-track img { height: 150px; width: auto; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.photo-ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbonScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 600px) { .ribbon-track img { height: 104px; } }

.motion-pause {
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 22, 79, 0.65);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.motion-pause .icon:last-child { display: none; }
.site-bottom.is-paused .motion-pause .icon:first-child { display: none; }
.site-bottom.is-paused .motion-pause .icon:last-child { display: block; }
.site-bottom.is-paused .ribbon-track,
.site-bottom.is-paused .ticker-track,
.site-bottom.is-paused .site-footer::before,
.site-bottom.is-paused .site-footer::after { animation-play-state: paused; }

.ticker { position: relative; z-index: 1; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin: -4rem 0 3rem; padding: 0.85rem 0; background: rgba(255, 255, 255, 0.04); }
.ticker-track { display: flex; width: max-content; animation: ribbonScroll 55s linear infinite; }
.tick { white-space: nowrap; padding: 0 1.75rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); display: inline-flex; align-items: center; gap: 0.35rem; }
.tick strong { color: #fff; }
.tick::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 3.5rem; flex: none; }

.site-footer { position: relative; overflow: hidden; }
.site-footer::before, .site-footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  animation: footerDrift 24s ease-in-out infinite alternate;
}
.site-footer::before { width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; top: -35%; left: -12%; background: radial-gradient(circle, rgba(13, 58, 208, 0.55), transparent 65%); }
.site-footer::after { width: 45vw; height: 45vw; max-width: 600px; max-height: 600px; bottom: -45%; right: -10%; background: radial-gradient(circle, rgba(224, 20, 14, 0.28), transparent 65%); animation-duration: 30s; animation-direction: alternate-reverse; }
@keyframes footerDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vw, 5vw, 0) scale(1.18); } }
.footer-grid, .footer-base { position: relative; z-index: 1; }

/* ---------- Closing "New here?" box: drifting colour and floating shapes ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--sky-soft) 0%, #ffffff 45%, #dcecfb 70%, var(--sky-soft) 100%);
  background-size: 250% 250%;
  animation: ctaShift 14s ease-in-out infinite alternate;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; animation: ctaFloat 9s ease-in-out infinite alternate; }
.cta-band::before { width: 220px; height: 220px; right: -60px; top: -80px; background: radial-gradient(circle, rgba(13, 58, 208, 0.18), transparent 70%); }
.cta-band::after { width: 120px; height: 120px; left: 38%; bottom: -60px; border: 3px solid rgba(224, 20, 14, 0.18); animation-duration: 11s; }
@keyframes ctaShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes ctaFloat { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-24px, 18px, 0) scale(1.08); } }
.cta-band .btn-primary { animation: btnGlow 2.8s ease-in-out infinite; }
@keyframes btnGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(13, 58, 208, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(13, 58, 208, 0); } }

@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .ticker-track, .site-footer::before, .site-footer::after,
  .cta-band, .cta-band::before, .cta-band::after, .cta-band .btn-primary { animation: none; }
  .motion-pause { display: none; }
  .ribbon-track, .ticker-track { flex-wrap: wrap; width: auto; }
}

/* ---------- Phones: shorter pages (swipe rows, tighter spacing, compact footer) ---------- */
@media (max-width: 600px) {
  .section { padding: 2.5rem 0; }
  .section-snug { padding: 1.5rem 0; }
  .section-alt + .section-tight { padding-top: 2.5rem; }
  h2 { font-size: 1.6rem; }
  .section-head { margin-bottom: 1.25rem; }
  .section-intro { font-size: 1rem; margin-bottom: 1.25rem; }

  .hero { padding: 2.75rem 0 5rem; }
  .hero-logo { width: 76px; margin-bottom: 0.9rem; }
  .hero .lead { font-size: 1.02rem; }
  .hero .actions { margin-top: 1.4rem; }
  .page-hero, .page-hero.has-media { min-height: 0; padding: 2.75rem 0 2.5rem; }
  .page-hero .lead { font-size: 1rem; margin-top: 0.6rem; }
  .page-hero .actions { margin-top: 1.25rem; }

  /* Rows of cards you swipe sideways instead of a tall stack (the next card peeks in) */
  .swipe {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.25rem 1.25rem 0.75rem;
    scroll-padding-left: 1.25rem;
    scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 78%; scroll-snap-align: start; }
  .times-list.swipe { background: none; border: 0; box-shadow: none; border-radius: 0; overflow-x: auto; }
  .times-list.swipe > li { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(8, 22, 79, 0.12); }
  .times-list.swipe > li.times-link { overflow: hidden; }
  .times { margin-top: -4rem; }
  .explore.swipe > * { flex-basis: 72%; }
  .explore-body > span:not(.text-link) { display: block; }
  .beliefs.swipe > li { flex-basis: 82%; }
  .team.swipe > * { flex-basis: 74%; }
  .people.swipe > li { flex-basis: 80%; }

  /* Slim banners: thumbnail, title and an arrow button */
  .month-banner { grid-template-columns: auto 1fr auto; padding: 0.75rem; gap: 0.75rem; }
  .month-thumb { width: 52px; height: 65px; }
  .month-meta { display: none; }
  .month-banner .btn { grid-column: auto; padding: 0.7rem; border-radius: 50%; }
  .month-banner .btn-label { display: none; }

  .cta-band { padding: 1.5rem; gap: 1rem; }
  .cta-band h2 { font-size: 1.4rem; }
  .cta-band .actions { width: 100%; }
  .cta-band .btn { flex: 1 1 auto; justify-content: center; }

  .theme-poster { max-width: 250px; }
  .verse-panel { min-height: 0; }
  .contact-details h3, .contact-details h3 + .plain { display: none; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }

  /* Footer: service times already scroll past in the line above, so skip that column */
  .site-footer { padding: 3rem 0 1.25rem; font-size: 0.92rem; }
  .ticker { margin: -3rem 0 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { margin: 0.5rem 0 0; }
  .footer-services { display: none; }
  .footer-base { margin-top: 1.75rem; flex-direction: column; }
}

/* Let columns shrink so swipe rows inside them never push the page sideways */
.split > * { min-width: 0; }

/* ---------- 2026 theme pill in the home header ---------- */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto 1.1rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-pill span { color: var(--sky); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }
.hero-pill strong { background: var(--red); color: #fff; padding: 0.3rem 0.85rem; border-radius: 999px; font-weight: 700; }
.hero-pill:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- Leadership: Chairman card ---------- */
.leader-feature { max-width: 760px; margin-bottom: 0.5rem; }
@media (min-width: 601px) {
  .leader-feature { flex-direction: row; text-align: left; gap: 2rem; padding: 1.75rem 2rem; }
  .leader-feature .avatar { margin-bottom: 0; }
}
.leader-feature .eyebrow { margin-bottom: 0.3rem; }
.leader-feature h3 { font-size: 1.45rem; }
.team-eyebrow { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.year-poster { max-width: 280px; transform: rotate(-1.5deg); }

/* ---------- Justified paragraph text ---------- */
.prose p, .card:not(.leader) p, .faq details p, .event p, .section-intro, .life-intro, .page-hero .lead,
.scripture p, .card-accent .big, .form p.small {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Scripture, mission and vision: justified, but words are never split across lines */
.scripture p, .card-accent .big { -webkit-hyphens: manual; hyphens: manual; }

/* ---------- Very small screens: keep the header and theme badge inside the screen ---------- */
@media (max-width: 380px) {
  .menu-toggle { padding: 0.55rem 0.7rem; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { gap: 0.5rem; }
  .brand .logo { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.25rem; }
  .brand-text span { font-size: 0.66rem; letter-spacing: 0.16em; }
  .hero-pill { flex-direction: column; gap: 0.35rem; padding: 0.45rem 0.6rem; border-radius: 18px; }
  .hero-pill strong { text-align: center; }
}
/* Event text may wrap instead of pushing the card wider than the screen */
.event { grid-template-columns: auto minmax(0, 1fr); }
.event > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .event { gap: 0.9rem; padding: 1rem; }
  .date { width: 3.6rem; height: 3.9rem; }
  .date span { font-size: 1.5rem; }
}

/* ---------- Six explore cards on the home page: three across on computers ---------- */
@media (min-width: 961px) { .explore { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Annual gatherings: people grid and a pair of photos ---------- */
.people-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.section-alt .people li { background: var(--mist); }
.photo-pair { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.photo-pair li { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #11183f; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-pair li:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .photo-pair { grid-template-columns: 1fr; } }

/* ---------- Event with a flyer ---------- */
.event-featured { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.event-featured .eyebrow { margin-bottom: 0.35rem; }
.event-flyer { margin: 0; width: 150px; flex: none; }
.event-flyer img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 22px rgba(8, 22, 79, 0.18); display: block; }
.event .small { color: var(--muted); margin: 0.35rem 0 0; }
@media (max-width: 760px) {
  .event-featured { grid-template-columns: auto minmax(0, 1fr); }
  .event-flyer { grid-column: 1 / -1; width: 100%; max-width: 260px; margin-top: 0.9rem; }
}
/* Short lines (labels, dates, lists of names) read better unjustified */
p.eyebrow, p.meta, p.small, .event .eyebrow, .event .meta, .event .small, .month-meta, .people li,
.info-list li, .faq summary { text-align: left; text-align-last: left; }
/* "To be confirmed" on an event whose time isn't settled yet */
.meta.tbc { font-style: italic; }
/* A date badge covering several days, e.g. 16-20 Dec */
.date-range { width: 5rem; }
.date-range span { font-size: 1.3rem; letter-spacing: -0.03em; }
@media (max-width: 380px) {
  .date-range { width: 4rem; }
  .date-range span { font-size: 1.05rem; }
}
/* Event cards are narrow on phones, where justifying leaves gaps between words */
@media (max-width: 600px) { .event p { text-align: left; } }

/* Justified text only where lines are long enough; on phones it leaves gaps between words */
@media (max-width: 700px) {
  .prose p, .card:not(.leader) p, .ministry .card-body p, .faq details p, .event p, .section-intro, .life-intro,
  .page-hero .lead, .scripture p, .card-accent .big, .form p.small {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}

/* ---------- WhatsApp buttons and the "getting here" choices ---------- */
.wa-actions { margin-top: 0.75rem; gap: 0.5rem; }
.wa-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.97rem; }
.wa-actions .icon { width: 1.15rem; height: 1.15rem; }
.choices { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem 1rem; margin: 0; display: grid; gap: 0.5rem; }
.choices legend { font-weight: 600; padding: 0 0.4rem; }
.choice { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; cursor: pointer; }
.choice input { width: auto; accent-color: var(--blue); margin: 0; flex: none; }
.choice span { font-weight: 400; }
/* The main "Give Here" card */
.card-give { border-top-color: var(--red); }
.btn-give { width: 100%; justify-content: center; font-size: 1.05rem; padding: 0.95rem 1.5rem; }
/* Banner labels wrap badly in a narrow column, so ease the letter spacing there */
@media (max-width: 600px) {
  .month-banner .eyebrow { letter-spacing: 0.08em; font-size: 0.7rem; }
  .month-text strong { font-size: 1.05rem; }
}
/* A wider grid, for photos where faces would be cut off by a tall crop */
.photo-grid-wide { grid-template-columns: repeat(2, 1fr); }
.photo-grid-wide li { aspect-ratio: 3 / 2; }

/* Header slideshow timing (generated by build.py) */
@keyframes heroSlide1 { 0% { opacity: 1; transform: scale(1.02); } 50% { opacity: 1; transform: scale(1.12) translate3d(-1%, -1%, 0); } 100% { opacity: 1; transform: scale(1.02); } }
@keyframes heroSlide2 {
  0% { opacity: 0; transform: scale(1.02); }
  12.50% { opacity: 1; }
  62.50% { opacity: 1; }
  75.00% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
  100% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
@keyframes heroSlide3 {
  0% { opacity: 0; transform: scale(1.02); }
  8.33% { opacity: 1; }
  41.67% { opacity: 1; }
  50.00% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
  100% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
@keyframes heroSlide4 {
  0% { opacity: 0; transform: scale(1.02); }
  6.25% { opacity: 1; }
  31.25% { opacity: 1; }
  37.50% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
  100% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
@keyframes heroSlide6 {
  0% { opacity: 0; transform: scale(1.02); }
  4.17% { opacity: 1; }
  20.83% { opacity: 1; }
  25.00% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
  100% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
