/* ── EEMI placeholder site ──────────────────────────────────────────────────
   Brand: deep green + gold. Outfit for headings, Public Sans for text — the same pair Unify
   uses, so the website and the app read as one family. Ysabeau stays the LOGO's typeface only.

   Self-hosted copies of Unify's own files (variable woff2, weights 400–700, SIL Open Font
   License). "latin" covers English and Afrikaans; "latin-ext" downloads only if a page
   actually contains one of its characters. */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* The church's colours as Unify records them (brand.php), so the site and the app read as one
     family (18 September). Unify: primary #004D00, primary-deep #03230F, accent #D4AF37, and
     #E1C25F for gold used as text on dark. The glow is the brand green lightened, not a new hue. */
  --green-deep: #021A0B;
  --green-dark: #03230F;
  --green-mid: #004D00;
  --green-glow: #1C6B1C;
  --gold: #D4AF37;
  --gold-light: #E1C25F;
  --ink: #ffffff;
  --text: rgba(255, 255, 255, 0.82);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--green-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 760px; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold); color: var(--green-dark); padding: 0.5rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.btn-outline { border-color: rgba(212, 175, 55,0.55); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 35, 15, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.brand { display: block; flex-shrink: 1; min-width: 0; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.topbar .btn { flex-shrink: 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4.5rem, 12vw, 8rem);
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 20%, rgba(212, 175, 55,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 12% 80%, rgba(28, 107, 28,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 45% 50% at 90% 85%, rgba(28, 107, 28,0.25) 0%, transparent 70%);
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.hero-inner { display: flex; flex-direction: column; align-items: center; }
/* The "coming soon" notice: the one message this placeholder exists to give, so it gets weight. */
.notice {
  display: inline-flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; justify-content: center;
  padding: 0.5rem 1.4rem 0.5rem 0.5rem; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55,0.55); background: rgba(212, 175, 55,0.1);
  box-shadow: 0 0 0 6px rgba(212, 175, 55,0.05), 0 10px 40px -12px rgba(212, 175, 55,0.35);
  margin-bottom: 2.5rem;
}
.notice-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--gold); color: var(--green-deep);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.notice-chip .dot { background: var(--green-deep); box-shadow: none; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.notice-text { color: var(--ink); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55,0.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55,0.55); }
  100% { box-shadow: 0 0 0 10px rgba(212, 175, 55,0); }
}
.hero-title {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(2.6rem, 8.5vw, 5.4rem); line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  max-width: 34rem; margin-top: 1.5rem;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem); color: var(--text);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2.5rem; }

.hero-inner > * { animation: rise 0.9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Building photo ──────────────────────────────────────────────────────── */
/* Full-bleed, fading into the green above and below so it reads as part of the page, not a
   pasted rectangle. On narrow screens it is cropped (not shrunk) so the building stays big
   enough to recognise; the crop centres just right of middle, on the EEMI sign and entrance. */
.building img {
  width: 100%; height: clamp(260px, 36vw, 620px);
  object-fit: cover; object-position: 55% 60%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--green-deep); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2.5rem; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; color: var(--gold);
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem;
}
h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em;
}

/* ── Gatherings ──────────────────────────────────────────────────────────── */
.gatherings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gathering {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column;
}
.g-day {
  font-family: var(--font-display); color: var(--gold-light);
  font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.g-time {
  font-family: var(--font-display); color: var(--ink); font-weight: 500;
  font-size: 3.25rem; line-height: 1.1; margin-top: 0.35rem; font-variant-numeric: tabular-nums;
}
.g-what { color: var(--ink); font-weight: 500; margin-top: 0.25rem; }
.g-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.g-place {
  font-family: var(--font-display); color: var(--ink); font-weight: 500;
  font-size: 1.6rem; line-height: 1.2; margin-top: 0.6rem;
}
.g-link { margin-top: auto; padding-top: 1rem; color: var(--gold-light); font-weight: 500; font-size: 0.925rem; }
.gathering-map { transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.gathering-map:hover { background: var(--card-hover); border-color: rgba(212, 175, 55,0.45); }
.gathering-map:hover .g-link span { display: inline-block; transform: translateX(3px); transition: transform 0.25s var(--ease); }

/* Through the week: a compact row per day, under the two main services. */
.week {
  margin-top: 1rem; padding: 1.5rem 1.75rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.week-title {
  font-family: var(--font-display); font-weight: 500; color: var(--gold-light);
  font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.week-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
.week-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.week-list li:nth-child(-n+2) { border-top: 0; }
.w-day { color: var(--ink); font-weight: 500; min-width: 6.5rem; }
.w-time { font-family: var(--font-display); color: var(--ink); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; min-width: 3.5rem; }
.w-note { color: var(--muted); font-size: 0.875rem; }
.week-foot { margin-top: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.w-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 6px;
  background: rgba(212, 175, 55,0.12); border: 1px solid rgba(212, 175, 55,0.3); color: var(--gold-light);
}

/* ── Events ──────────────────────────────────────────────────────────────── */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.event-card {
  position: relative; display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.35rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; min-height: 132px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.event-card:hover { background: var(--card-hover); border-color: rgba(212, 175, 55,0.45); transform: translateY(-2px); }
.ev-date {
  flex-shrink: 0; width: 64px; padding: 0.55rem 0 0.6rem; border-radius: 10px; text-align: center;
  background: rgba(212, 175, 55,0.12); border: 1px solid rgba(212, 175, 55,0.3);
}
.ev-month { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.ev-day { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; line-height: 1; color: var(--ink); margin-top: 0.2rem; }
/* A span of days: the tile widens to fit rather than shrinking the numbers out of reach. */
.ev-date.is-range { width: auto; min-width: 64px; padding-left: 0.6rem; padding-right: 0.6rem; }
.ev-date.is-range .ev-day { font-size: 1.45rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-date.is-range .ev-month { white-space: nowrap; }
.ev-body { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ev-title { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.ev-meta { font-size: 0.875rem; color: var(--muted); }
.ev-summary {
  font-size: 0.875rem; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-more { margin-top: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--gold-light); }
.ev-badge {
  align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 6px; background: rgba(224, 138, 138, 0.16); color: #E08A8A;
}
.event-card.is-cancelled .ev-title { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.4); }
/* A poster sits whole in a band across the top of its card: letterboxed, never cropped, because
   posters are mostly portrait and the words on them are the point. Cards without one stay compact. */
.event-card.has-poster { flex-wrap: wrap; }
.event-card.has-poster .ev-body { flex: 1 1 0; }   /* wrapping is for the poster only: the text stays beside its date */
.ev-poster {
  order: -1; flex-basis: 100%; width: 100%; height: 180px; object-fit: contain;
  border-radius: 10px; background: rgba(0, 0, 0, 0.28);
}
.event-card.is-cancelled .ev-poster { opacity: 0.55; }
/* Several posters share one band: stacked, so a card is the same height whether its event has
   one poster or six, and the row does not jump as each one fades. Grid rather than absolute
   positioning — every image occupies the same cell, so the band is as tall as a poster and the
   height is not hard-coded a second time. */
.ev-poster-band { order: -1; flex-basis: 100%; width: 100%; display: grid; }
.ev-poster-band > .ev-poster { grid-area: 1 / 1; opacity: 0; transition: opacity 900ms ease-in-out; }
.ev-poster-band > .ev-poster.is-on { opacity: 1; }
/* Somebody who has asked for less movement gets the first poster and no fade. The script does
   not start the rotation for them either; this is the half that survives JavaScript being slow. */
@media (prefers-reduced-motion: reduce) {
  .ev-poster-band > .ev-poster { transition: none; }
}

.skeleton { background: linear-gradient(100deg, var(--card) 30%, rgba(255, 255, 255, 0.08) 50%, var(--card) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.events-empty {
  max-width: 40rem; padding: 1.5rem 1.75rem; border-radius: var(--radius);
  border: 1px dashed rgba(212, 175, 55,0.35); color: var(--text);
}
.events-empty strong { color: var(--ink); font-weight: 600; }
.events-empty a { color: var(--gold-light); }

/* ── Scripture ───────────────────────────────────────────────────────────── */
.scripture { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; position: relative; }
.scripture blockquote { margin: 0; }
.scripture p {
  /* Upright on purpose: Outfit has no italic, and a browser-slanted fake looks broken. */
  font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.6; text-wrap: balance;
}
.scripture footer {
  margin-top: 1.5rem; font-family: var(--font-display); color: var(--gold);
  font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.scripture footer span { color: var(--muted); letter-spacing: 0.08em; }
.scripture::before {
  content: ''; display: block; width: 64px; height: 1px; margin: 0 auto 2.5rem;
  background: var(--gold); opacity: 0.6;
}

/* ── Unify ───────────────────────────────────────────────────────────────── */
.unify {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(1.75rem, 5vw, 3rem); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(212, 175, 55,0.16) 0%, transparent 60%),
    linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
  border: 1px solid rgba(212, 175, 55,0.28);
}
.unify-copy p:not(.eyebrow) { margin-top: 0.9rem; max-width: 32rem; }
.unify-copy strong { color: var(--ink); }
.unify-action { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.unify-action img { width: 180px; opacity: 0.95; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contacts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.contacts li {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.25rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.c-label { font-family: var(--font-display); color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.contacts a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--gold-light); }

.social { display: flex; gap: 0.75rem; margin-top: 2rem; }
.social a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18); color: var(--ink);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-foot { padding: 2rem 0; font-size: 0.85rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(212, 175, 55,0.4); }
.site-foot a:hover { color: var(--gold-light); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .gatherings { grid-template-columns: repeat(2, 1fr); }
  .gathering-map { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; gap: 1rem; }
  .unify { grid-template-columns: 1fr; text-align: left; }
  .unify-action { align-items: flex-start; }
}
@media (max-width: 520px) {
  .brand img { height: 40px; }
  .topbar-inner { min-height: 68px; }
  /* A phone shows about half the photo's width: shift right so the sign AND the flags fit. */
  .building img { height: 260px; object-position: 88% 50%; }
  .topbar .btn-sm { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  .topbar .btn-sm svg { display: none; }
  .gatherings, .contacts, .week-list { grid-template-columns: 1fr; }
  .week { padding: 1.25rem; }
  .week-list li:nth-child(2) { border-top: 1px solid var(--line); }
  .g-time { font-size: 2.75rem; }
  .events { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .notice { flex-direction: column; gap: 0.6rem; padding: 0.75rem 1.25rem 1rem; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
