/* ============================================================
   York Place Baptist Church: "feels like family"
   Warm cream and sand, the church's own blues, a terracotta accent,
   a friendly serif (Fraunces), clean Inter for reading, and
   handwritten Caveat for small personal notes.
   ============================================================ */

:root {
  --ink: #1e2a38;          /* body text */
  --navy: #102b4c;         /* headings, footer */
  --blue: #1b5e9f;         /* links, brand blue from the logo */
  --sky: #2baae2;          /* the logo's light blue, for decoration */
  --cream: #fcf8f2;        /* page background */
  --sand: #f5ecdf;         /* alternate sections */
  --peach: #fbe6d6;        /* soft accent backgrounds */
  --terracotta: #c2512e;   /* buttons and highlights (white text passes AA) */
  --terracotta-dark: #a5421f;
  --gold: #e9a23b;         /* hand-drawn underlines */
  --muted: #5e6672;
  --line: #eadfce;
  --white: #ffffff;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --max: 1180px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 14px 34px rgba(16, 43, 76, 0.10);
  --shadow-soft: 0 6px 18px rgba(16, 43, 76, 0.07);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0 0 0.55em;
  font-weight: 650; letter-spacing: -0.01em; font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
img { max-width: 100%; height: auto; }
address { font-style: normal; }
::selection { background: var(--peach); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.spaced-top { margin-top: 3rem; }
.spaced-top-sm { margin-top: 1rem; }

.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--peach { background: var(--peach); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.88); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }

.eyebrow {
  display: inline-block; font-family: var(--hand); font-size: 1.65rem; line-height: 1; font-weight: 700;
  color: var(--terracotta); margin: 0 0 0.6rem; transform: rotate(-2deg);
}
.section--navy .eyebrow { color: var(--gold); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section--navy .lede { color: rgba(255, 255, 255, 0.78); }
.meta { color: var(--muted); font-size: 0.92rem; margin-top: -0.4rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hand { font-family: var(--hand); font-weight: 700; }

/* the highlighted word in a heading, with a hand-drawn underline */
.hl { position: relative; display: inline-block; color: var(--terracotta); font-style: italic; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.12em; height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-9 90-12 194-6' fill='none' stroke='%23e9a23b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}

/* ---------------------------------------------------------------- accessibility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 200; background: var(--navy); color: #fff;
  padding: 0.75rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(194, 81, 46, 0.28); }
.btn--primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--peach); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--navy); color: rgba(255, 255, 255, 0.8); font-size: 0.86rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar-login {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0; color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.25rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; line-height: 1.4;
}
.topbar-login:hover, .topbar-login.active { background: #fff; color: var(--navy); }
.topbar-login svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 700px) { .topbar-where { display: none; } }
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(252, 248, 242, 0.94);
  backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16, 43, 76, 0.06); }
.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-logo { width: 46px; height: 46px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.primary-nav ul { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: background-color 150ms ease, color 150ms ease;
}
.primary-nav a:hover { background: var(--sand); color: var(--navy); }
.primary-nav a.active { color: var(--terracotta); font-weight: 600; }
.primary-nav a.nav-cta { background: var(--terracotta); color: #fff; font-weight: 600; padding: 0.6rem 1.15rem; margin-left: 0.4rem; }
.primary-nav a.nav-cta:hover, .primary-nav a.nav-cta.active { background: var(--terracotta-dark); color: #fff; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sand);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(16, 43, 76, 0.08);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.75rem clamp(16px, 4vw, 32px) 1.25rem; }
  .primary-nav a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .primary-nav a.nav-cta { margin: 0.6rem 0 0; text-align: center; }
}

/* ---------------------------------------------------------------- photos */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.photo-frame > img, .photo-frame > .photo-slot, .photo-frame > .photo-empty, .photo-frame > .img-missing { width: 100%; height: 100%; display: block; object-fit: cover; }

/* polaroid: a white frame with a handwritten caption, like a family album */
.polaroid {
  margin: 0; background: #fff; padding: 10px; border-radius: 6px; box-shadow: var(--shadow);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.polaroid > img, .polaroid > .photo-slot, .polaroid > .photo-empty, .polaroid > .img-missing {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px;
}
.polaroid figcaption { font-family: var(--hand); font-size: 1.45rem; font-weight: 700; color: var(--navy); text-align: center; padding: 0.5rem 0.5rem 0.15rem; line-height: 1.1; }
.tilt-l { transform: rotate(-2.5deg); }
.tilt-r { transform: rotate(2deg); }
.tilt-s { transform: rotate(-1deg); }
.polaroid:hover { transform: rotate(0deg) translateY(-4px) scale(1.01); box-shadow: 0 20px 40px rgba(16, 43, 76, 0.16); z-index: 3; }

.photo-frame > .photo-slot, .polaroid > .photo-slot, .slide > .photo-slot { display: flex; }
/* an empty photo space, labelled with what to photograph (preview builds only) */
.photo-slot {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 0.35rem; padding: 1.1rem; border: 2px dashed #d9b99d; border-radius: inherit; color: #8a5a3c;
  background: repeating-linear-gradient(135deg, #fbeee2 0 14px, #f8e6d6 14px 28px);
  font-size: 0.86rem; line-height: 1.35; overflow: hidden;
}
.photo-slot svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.photo-slot strong { font-family: var(--hand); font-size: 1.55rem; line-height: 1; color: var(--terracotta); }
.photo-slot-n { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; opacity: 0.8; }
.photo-slot-d { max-width: 34ch; }
.photo-empty, .img-missing {
  width: 100%; min-height: 120px; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, var(--peach), var(--sand) 70%);
  display: flex; align-items: center; justify-content: center;
}
.img-missing img { width: 26%; max-width: 120px; opacity: 0.85; }

/* ---------------------------------------------------------------- home: hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.95rem 0.4rem 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--navy);
  margin-bottom: 1.4rem; box-shadow: var(--shadow-soft);
}
.hero-pill img { width: 26px; height: 26px; }
.hero h1 { margin-bottom: 0.25em; }
.hero-ref { font-family: var(--hand); font-size: 1.7rem; font-weight: 700; color: var(--terracotta); margin: 0 0 1.1rem; line-height: 1; transform: rotate(-2deg); display: inline-block; }
.hero-lede { font-size: clamp(1.12rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }
/* service times card: the first thing a visitor looks for, so it's big */
.hero-sundays {
  position: relative; margin-top: 2.2rem; max-width: 34rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem 1.6rem 1.15rem; box-shadow: var(--shadow);
}
.hero-sundays-label {
  position: absolute; top: -0.95rem; left: 1.3rem; margin: 0; background: var(--terracotta); color: #fff;
  font-family: var(--hand); font-size: 1.45rem; font-weight: 700; line-height: 1; padding: 0.3rem 0.85rem 0.4rem;
  border-radius: 999px; transform: rotate(-3deg);
}
.hero-sundays-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-sundays-times li { display: flex; flex-direction: column; padding: 0.3rem 0 0.2rem; }
.hero-sundays-times li + li { border-left: 2px dashed var(--line); padding-left: 1.4rem; }
.hero-sundays-times strong {
  font-family: var(--serif); font-weight: 700; color: var(--terracotta); line-height: 1;
  font-size: clamp(2.5rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; font-variant-numeric: lining-nums;
}
.hero-sundays-times small { font-size: 0.42em; font-weight: 600; margin-left: 0.2em; letter-spacing: 0; }
.hero-sundays-times span { font-weight: 600; color: var(--navy); font-size: 1.02rem; margin-top: 0.45rem; }
.hero-sundays-where {
  display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0; padding-top: 0.9rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem;
}
.hero-sundays-where svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--terracotta); stroke-width: 1.8; }
@media (max-width: 420px) {
  .hero-sundays { padding: 1.4rem 1.1rem 1rem; }
  .hero-sundays-times li + li { padding-left: 1rem; }
  .hero-sundays-times span { font-size: 0.92rem; }
}
.hero-collage { position: relative; min-height: 520px; }
.hero-collage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -8%; top: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 170, 226, 0.18), rgba(43, 170, 226, 0) 70%); z-index: 0;
}
.hero-collage::after {
  content: ""; position: absolute; width: 46%; aspect-ratio: 1; left: -6%; bottom: -4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 162, 59, 0.22), rgba(233, 162, 59, 0) 70%); z-index: 0;
}
.hero-collage .polaroid { position: absolute; z-index: 1; }
.hero-collage .c-main { width: 76%; right: 0; top: 0; }
.hero-collage .c-main > * { aspect-ratio: 3 / 2 !important; }
.hero-collage .c-welcome { width: 40%; left: 0; top: 40%; z-index: 2; }
.hero-collage .c-welcome > * { aspect-ratio: 4 / 5 !important; }
.hero-collage .c-tea { width: 42%; right: 6%; bottom: 0; z-index: 2; }
.hero-collage .c-tea > * { aspect-ratio: 1 / 1 !important; }
.hand-note {
  position: absolute; z-index: 4; left: 2%; top: 14%; font-family: var(--hand); font-size: 1.7rem; font-weight: 700;
  color: var(--navy); transform: rotate(-6deg); line-height: 0.95;
}
.hand-note svg { display: block; width: 70px; height: 46px; margin: 4px 0 0 30px; fill: none; stroke: var(--terracotta); stroke-width: 2.5; stroke-linecap: round; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { min-height: 0; aspect-ratio: 1 / 0.95; max-width: 560px; width: 100%; margin: 0 auto; }
  .hand-note { font-size: 1.35rem; top: 4%; left: 0; }
  .hand-note svg { width: 52px; height: 36px; margin-left: 22px; }
}

/* welcome in many languages */
.welcome-strip { background: var(--navy); color: #fff; padding: 1.05rem 0; overflow: hidden; }
.welcome-words { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.welcome-words li { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600; display: flex; align-items: center; gap: 1.6rem; }
.welcome-words li + li::before { content: "\2665"; font-style: normal; font-size: 0.7rem; color: var(--gold); margin-right: 0; }

/* "It feels like family" */
.family-quote { text-align: center; max-width: 880px; margin: 0 auto; }
.family-quote blockquote { margin: 0; }
.family-quote blockquote p { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; color: var(--navy); font-weight: 650; font-style: italic; margin: 0 0 1.2rem; letter-spacing: -0.02em; }
.family-quote blockquote p::before { content: "\201C"; color: var(--terracotta); }
.family-quote blockquote p::after { content: "\201D"; color: var(--terracotta); }
.family-wide { margin: clamp(2.5rem, 5vw, 4rem) 0; }
.family-wide > * { aspect-ratio: 21 / 9 !important; }
@media (max-width: 640px) { .family-wide > * { aspect-ratio: 4 / 3 !important; } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: #fff; border-radius: var(--r-lg); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.pillar-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.pillar-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar:nth-child(1) .pillar-icon { background: var(--peach); color: var(--terracotta); }
.pillar:nth-child(2) .pillar-icon { background: #dff1fa; color: var(--blue); }
.pillar:nth-child(3) .pillar-icon { background: #fbefd5; color: #a86b10; }
.pillar h3 { margin-bottom: 0.35rem; }
.pillar p { color: var(--muted); margin: 0; }

/* live translation, with a phone showing captions */
.captions-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .captions-grid { grid-template-columns: 1fr; } }
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.lang-chips li { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 0.45rem 1rem; color: #fff; font-weight: 600; }
.lang-chips li small { font-weight: 400; color: rgba(255, 255, 255, 0.65); margin-left: 0.35rem; }
.lang-chips--light li { background: #fff; border-color: var(--line); color: var(--navy); }
.lang-chips--light li small { color: var(--muted); }
.phone {
  width: min(300px, 82%); margin: 0 auto; aspect-ratio: 9 / 18.5; background: #0a1627; border-radius: 42px;
  padding: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08); transform: rotate(3deg);
}
.phone-screen { height: 100%; border-radius: 32px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.phone-top { background: var(--navy); color: #fff; padding: 1.4rem 1rem 0.8rem; font-size: 0.78rem; display: flex; justify-content: space-between; align-items: center; }
.phone-top strong { font-family: var(--serif); font-size: 0.95rem; }
.phone-top span { background: var(--terracotta); border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.68rem; font-weight: 700; }
.phone-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; color: var(--ink); }
.cap { border-radius: 14px; padding: 0.6rem 0.75rem; font-size: 0.86rem; line-height: 1.4; }
.cap small { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.15rem; }
.cap--en { background: var(--sand); color: var(--muted); }
.cap--tr { background: #e8f4fb; color: var(--navy); font-size: 1rem; font-weight: 600; }
.cap--verse { background: var(--peach); border-left: 3px solid var(--terracotta); }

/* family album (polaroid grid) */
.album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2.5rem; }
@media (max-width: 860px) { .album { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .album { grid-template-columns: 1fr; } }
.album .polaroid:nth-child(3n+1) { transform: rotate(-2deg); }
.album .polaroid:nth-child(3n+2) { transform: rotate(1.5deg) translateY(12px); }
.album .polaroid:nth-child(3n) { transform: rotate(-0.8deg); }
.album .polaroid:hover { transform: rotate(0) translateY(-4px); }

/* Sundays */
.sundays-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .sundays-grid { grid-template-columns: 1fr; } }
.time-cards { display: grid; gap: 1rem; margin: 1.6rem 0; }
.time-card { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.25rem; align-items: center; background: #fff; border-radius: var(--r-md); padding: 1.15rem 1.3rem; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.time-card-time { grid-row: span 2; font-family: var(--serif); font-size: clamp(2.3rem, 3.6vw, 2.9rem); font-weight: 700; color: var(--terracotta); line-height: 1; min-width: 8.6rem; letter-spacing: -0.02em; }
.time-card h3 { margin: 0; font-size: 1.3rem; }
@media (max-width: 480px) { .time-card { grid-template-columns: 1fr; } .time-card-time { grid-row: auto; margin-bottom: 0.3rem; } }
.time-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* stories */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .stories { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.story { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--line); display: flex; flex-direction: column; }
.story-photo > * { aspect-ratio: 4 / 3.4 !important; border-radius: 0 !important; }
.story-body { padding: 1.4rem 1.5rem 1.6rem; }
.story-body blockquote { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--navy); font-style: italic; }
.story-body p { margin: 0; font-weight: 600; color: var(--terracotta); }
.story-body p span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.story--placeholder blockquote { color: #a2836d; }

/* week list */
.week-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.week-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px dashed var(--line); }
.week-when { color: var(--muted); }
.week-when strong { color: var(--navy); }
.week-what { font-weight: 600; color: var(--navy); }
.week-what em { font-weight: 400; color: var(--muted); }
@media (max-width: 480px) { .week-list li { grid-template-columns: 1fr; gap: 0; } }

/* closing banner with a photo behind */
.cta-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.cta-banner-bg { position: absolute; inset: 0; }
.cta-banner-bg > * { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; border-radius: 0 !important; }
.cta-banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 43, 76, 0) 20%, rgba(16, 43, 76, 0.88) 100%); pointer-events: none; }
.cta-banner-text { position: relative; z-index: 1; padding: clamp(1.6rem, 4vw, 3rem); color: #fff; width: 100%; }
.cta-banner-text h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-banner-text p { color: rgba(255, 255, 255, 0.85); }
.cta-banner .photo-slot { justify-content: flex-start; padding-top: 2rem; }

/* ---------------------------------------------------------------- sub-page hero */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.page-hero .lede { margin-bottom: 1.4rem; }
.page-hero .hero-sundays { margin-top: 2.4rem; }
.page-hero-photo { position: relative; }
.page-hero-photo .photo-frame { transform: rotate(1.5deg); }
.page-hero-photo .photo-frame > * { aspect-ratio: 3 / 2 !important; }
.page-hero-photo::before {
  content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: var(--r-lg); background: var(--peach); transform: rotate(-3deg); z-index: -1;
}
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; }
/* page tops without a photo: centred, so the page doesn't look lopsided */
.page-hero--plain { text-align: center; }
.page-hero--plain .page-hero-text { max-width: 780px; margin: 0 auto; }
.page-hero--plain .lede { margin-left: auto; margin-right: auto; }
.page-hero--plain .btn-row { justify-content: center; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- shared blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev .split-media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.info-card {
  display: block; background: #fff; border-radius: var(--r-md); padding: 1.5rem; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform 180ms ease, box-shadow 180ms ease;
}
a.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.info-card svg { width: 30px; height: 30px; fill: none; stroke: var(--terracotta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.5rem; }
.info-card h3 { margin-bottom: 0.3rem; font-size: 1.2rem; }
.info-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.note-box { background: var(--peach); border-radius: var(--r-md); padding: 1.1rem 1.4rem; margin-top: 2rem; }
.note-box--center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.steps li { counter-increment: step; position: relative; padding: 0.35rem 0 0.35rem 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.3rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.75rem; padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0.75rem; font-size: 1.6rem; color: var(--terracotta); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; }
.mission { margin: 1.8rem 0 0; padding: 1.4rem 1.6rem; background: var(--peach); border-radius: var(--r-md); position: relative; }
.mission p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--navy); margin: 0 0 0.5rem; line-height: 1.45; }
.mission cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }
.scripture { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--navy); line-height: 1.45; border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 1.5rem 0; }
.scripture cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }
.facts-card { background: #fff; border-radius: var(--r-lg); padding: 1.8rem; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.facts-card h3 { font-family: var(--hand); font-size: 1.8rem; color: var(--terracotta); margin-bottom: 0.8rem; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.65rem 1.1rem; }
.facts dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 0.2rem; }
.facts dd { margin: 0; color: var(--navy); font-weight: 500; }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
@media (max-width: 720px) { .beliefs { grid-template-columns: 1fr; } }
.belief { background: #fff; border-radius: var(--r-lg); padding: 1.7rem; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.belief-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.belief-icon { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--peach); color: var(--terracotta); flex-shrink: 0; }
.belief-title { margin: 0; font-size: 1.3rem; }
.belief-body p { margin: 0; color: var(--ink); }
.vision-list { display: grid; gap: 1rem; margin-top: 2rem; }
.vision-item { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem; background: #fff; border-radius: var(--r-md); padding: 1.4rem 1.5rem; border: 1px solid var(--line); }
.vision-number { font-family: var(--hand); font-size: 2.6rem; color: var(--terracotta); line-height: 1; font-weight: 700; }
.vision-content h3 { margin-bottom: 0.3rem; }
.vision-content p { margin: 0; color: var(--muted); }
.pull-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-style: italic; color: var(--navy); line-height: 1.3; margin: 2rem 0 0; }

/* ---------------------------------------------------------------- Sundays, What's On */
.service-block { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.service-block-header { padding: 1.6rem 1.7rem 1rem; }
.service-block-time { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: var(--terracotta); line-height: 1; letter-spacing: -0.02em; }
.service-block-time small { font-size: 0.42em; font-weight: 600; margin-left: 0.2em; letter-spacing: 0; }
.service-block-header h2, .service-block-header h3 { font-size: 1.7rem; margin: 0.45rem 0 0; }
.service-block-note { padding: 1rem 1.7rem 1.5rem; margin: 0; color: var(--muted); }
.service-slideshow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .service-slideshow-grid { grid-template-columns: 1fr; } }
.kids-panel { aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: linear-gradient(135deg, #fde3cf, #fbefd5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; color: var(--terracotta); }
.kids-panel svg { width: 42%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.kids-panel p { margin: 0; font-family: var(--hand); font-size: 1.8rem; font-weight: 700; }
.sunday-school-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; margin: 1.5rem 0 2rem; }
@media (max-width: 760px) { .sunday-school-layout { grid-template-columns: 1fr; } }
.two-col-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .two-col-lists { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.tick-list li { position: relative; padding: 0.35rem 0 0.35rem 1.9rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.72rem; width: 1.05rem; height: 0.6rem; border-left: 3px solid var(--terracotta); border-bottom: 3px solid var(--terracotta); transform: rotate(-45deg); }
.day-block { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px dashed var(--line); }
.day-block:first-child { border-top: 0; padding-top: 0; }
.day-block-day { font-family: var(--hand); font-size: 2.4rem; color: var(--terracotta); margin: 0; line-height: 1; }
@media (max-width: 760px) { .day-block { grid-template-columns: 1fr; gap: 1rem; } }
.day-activities { display: grid; gap: 1.25rem; }
.activity { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
@media (max-width: 640px) { .activity { grid-template-columns: 1fr; } }
.activity-media { position: relative; min-height: 220px; }
.activity-media > .slideshow, .activity-media > img, .activity-media > .photo-slot, .activity-media > .photo-empty { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important; border-radius: 0; }
@media (max-width: 640px) { .activity-media { min-height: 0; aspect-ratio: 16 / 10; } }
.activity-body { padding: 1.6rem 1.7rem; display: flex; flex-direction: column; justify-content: center; }
.activity-time { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--terracotta); margin: 0 0 0.2rem; line-height: 1.2; }
.activity-online { display: inline-block; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #dff1fa; color: var(--blue); border-radius: 999px; padding: 0.2rem 0.6rem; margin-left: 0.4rem; vertical-align: 3px; }
.activity-body h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.activity-body p:last-child { margin: 0; color: var(--muted); }

/* slideshow */
.slideshow { position: relative; overflow: hidden; background: var(--sand); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img, .slide .img-missing { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.slide .photo-slot { width: 100%; height: 100%; display: flex; border-radius: 0; aspect-ratio: auto !important; }
.slideshow-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 7px; z-index: 2; }
.slideshow-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.6); cursor: pointer; }
.slideshow-dot.active { background: #fff; transform: scale(1.25); }
.slideshow-pause {
  width: 28px; height: 28px; border-radius: 50%; border: 0; margin-left: 6px; cursor: pointer;
  background: rgba(16, 43, 76, 0.55) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 2h2v8H3zM7 2h2v8H7z' fill='white'/%3E%3C/svg%3E");
}
.slideshow-pause.paused { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1.5v9l7-4.5z' fill='white'/%3E%3C/svg%3E"); }
.service-block .slideshow { aspect-ratio: 3 / 2; }

/* ---------------------------------------------------------------- sermons */
.video-facade { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1220; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.video-facade:hover img { transform: scale(1.03); }
.video-facade--short { aspect-ratio: 9 / 16; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play svg { width: 68px; height: 48px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4)); transition: transform 200ms ease; }
.video-facade:hover .video-play svg { transform: scale(1.08); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); display: block; background: #000; }
.video-frame--short { aspect-ratio: 9 / 16; }
.sermon-feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .sermon-feature { grid-template-columns: 1fr; } }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.shorts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shorts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } .shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.video-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0.8rem 0 0.15rem; line-height: 1.35; }
.video-card--short h3 { font-size: 0.9rem; }
.subscribe { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.qr-card { margin: 0; background: #fff; border-radius: var(--r-md); padding: 1.2rem; text-align: center; width: 220px; box-shadow: var(--shadow-soft); transform: rotate(2deg); }
.qr-card svg { width: 100%; height: auto; display: block; }
.qr-card figcaption { font-family: var(--hand); font-size: 1.3rem; color: var(--navy); margin-top: 0.4rem; line-height: 1.1; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } .qr-card { display: none; } }

/* ---------------------------------------------------------------- visit, contact, give */
.time-cards--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .time-cards--row { grid-template-columns: 1fr; } }
.expect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1rem; }
@media (max-width: 860px) { .expect { grid-template-columns: 1fr; } }
.big-address { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--navy); margin: 0.6rem 0 1.1rem; }
.map-facade {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  background: radial-gradient(circle at 70% 20%, #dff1fa, var(--sand) 60%); display: flex; align-items: center; justify-content: center; text-align: center;
}
.map-facade-inner { padding: 1.5rem; }
.map-facade svg { width: 46px; height: 46px; fill: none; stroke: var(--terracotta); stroke-width: 1.6; }
.map-facade p { margin: 0.5rem 0; }
.map-facade .map-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
.map-facade.map-loaded { display: block; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.contact-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 520px) { .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; } }
.social-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-list a { display: inline-block; padding: 0.55rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.social-list a:hover { background: var(--navy); color: #fff; }
.give-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .give-layout { grid-template-columns: 1fr; } }
.bank-card { background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); border-top: 6px solid var(--terracotta); }
.bank-card h2 { font-size: 1.6rem; }
.bank-details { display: grid; grid-template-columns: max-content 1fr; gap: 0.9rem 1.25rem; margin: 1rem 0 1.25rem; align-items: center; }
.bank-details dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bank-details dd { margin: 0; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.bank-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.copy-btn {
  font: 600 0.75rem/1 var(--sans); margin-left: 0.5rem; padding: 0.4rem 0.7rem; min-height: 30px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--cream); color: var(--blue); cursor: pointer; vertical-align: middle;
}
.copy-btn:hover { border-color: var(--blue); }
.copy-btn.copied { background: var(--navy); color: #fff; border-color: var(--navy); }

/* partners, pastor */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.org-tile { background: #fff; border-radius: var(--r-lg); padding: 1.5rem; text-align: center; text-decoration: none; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform 180ms ease, box-shadow 180ms ease; }
.org-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.org-logo { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.org-logo img { max-height: 96px; max-width: 100%; object-fit: contain; }
.org-logo-text { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--terracotta); }
.org-name { font-weight: 600; margin: 0; line-height: 1.35; }
.org-name-sub { display: block; font-weight: 400; font-size: 0.86rem; color: var(--muted); }
.pastor-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 760px) { .pastor-layout { grid-template-columns: 1fr; } }
.pastor-photo { max-width: 420px; width: 100%; justify-self: center; }
.pastor-photo .polaroid > :not(figcaption) { aspect-ratio: 4 / 5 !important; }
.pastor-role { font-family: var(--hand); font-size: 1.7rem; color: var(--terracotta); font-weight: 700; margin: 0; }

/* section headings with a short intro */
.section-head { margin-bottom: 2.2rem; }
.section-head .lede { margin-bottom: 0; }
.info-card--soon { position: relative; }
.soon-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); background: var(--peach); border-radius: 999px; padding: 0.2rem 0.65rem; margin-top: 0.9rem; }
.icon-badge { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--peach); margin-bottom: 0.9rem; }
.icon-badge svg { width: 26px; height: 26px; margin: 0; }
.org-note { margin-top: 2.5rem; }

/* text pages */
.prose h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: clamp(56px, 7vw, 80px) 0 1.6rem; font-size: 0.95rem; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -28px; left: 0; right: 0; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V14C150 2 300 0 450 8s300 20 450 12S1100 4 1200 10v20Z' fill='%23102b4c'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-footer a { color: #9fd8f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-hello { font-family: var(--hand); font-size: 2.2rem; color: var(--gold); margin: 0 0 1.8rem; line-height: 1; transform: rotate(-2deg); display: inline-block; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.9rem; }
.footer-brand strong { color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.footer-logo { width: 50px; height: 50px; flex-shrink: 0; }
.site-footer address { line-height: 1.6; margin-bottom: 0.6rem; }
.site-footer p { margin: 0 0 0.4rem; }
.footer-heading { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin: 0 0 0.9rem; font-weight: 700; }
.footer-times, .footer-links { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-times strong { color: #fff; margin-right: 0.35rem; }
.footer-small { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer-social svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.45rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 2.6rem; padding-top: 1.3rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom p { margin: 0; }

/* the preview's "photo guide" button (not on the live site) */
.photo-guide-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 0.7rem 1.1rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; box-shadow: var(--shadow);
}
.photo-guide-btn:hover { background: var(--terracotta); color: #fff; }

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

/* text still to be written (preview builds only): says what to write */
.text-slot { border: 2px dashed #d9b99d; border-radius: var(--r-md); background: #fdf3ea; color: #8a5a3c; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.95rem; }
.text-slot strong { display: block; font-family: var(--hand); font-size: 1.5rem; color: var(--terracotta); line-height: 1.1; margin-bottom: 0.2rem; }

/* Pastor's welcome, in his own words */
.pastor-welcome { margin: 1.8rem 0 1.4rem; padding: 1.6rem 1.8rem 1.3rem; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(16, 43, 76, 0.07); border-left: 5px solid var(--terracotta); }
.pastor-welcome figcaption { font-family: var(--hand); font-size: 1.5rem; font-weight: 700; color: var(--terracotta); line-height: 1.1; margin-bottom: 0.6rem; }
.pastor-welcome blockquote { margin: 0; }
.pastor-welcome blockquote p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.6; color: var(--navy); margin: 0; }
.pastor-sign { font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 0.6rem 0 0; transform: rotate(-2deg); display: inline-block; }

/* Small step-free access note with the access icon (Visit page) */
.access-note { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0; padding: 0.7rem 1rem; background: #fff; border-radius: 14px; font-size: 0.95rem; color: var(--ink, #3d4a5c); max-width: 34rem; }
.access-note svg { flex: none; width: 2rem; height: 2rem; padding: 0.35rem; border-radius: 50%; background: var(--navy); color: #fff; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.access-note a { color: var(--terracotta); font-weight: 600; }

/* What's On: one simple weekly timetable */
.timetable { background: #fff; border-radius: 22px; padding: 0.6rem 2rem; box-shadow: 0 14px 40px rgba(16, 43, 76, 0.07); }
.tt-day { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px dashed var(--line, #e6dccf); }
.tt-day:last-child { border-bottom: 0; }
.tt-dayname { font-family: var(--hand); font-size: 1.9rem; font-weight: 700; color: var(--terracotta); margin: 0; line-height: 1.2; }
.tt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.tt-list li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.8rem; align-items: baseline; }
.tt-time { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.tt-what strong { font-size: 1.08rem; color: var(--navy); }
.tt-what .activity-online { margin-left: 0.5rem; vertical-align: 0.1em; }
.tt-note { display: block; color: var(--ink, #3d4a5c); font-size: 0.95rem; margin-top: 0.1rem; }
.tt-note a { color: var(--terracotta); font-weight: 600; }
@media (max-width: 600px) {
  .timetable { padding: 0.4rem 1.1rem; }
  .tt-day { grid-template-columns: 1fr; gap: 0.4rem; }
  .tt-list li { grid-template-columns: 5.4rem minmax(0, 1fr); }
}
