/* =====================================================================
   Resurrection Center — "First Light"
   A royal-purple + gold identity: the deep pre-dawn sky giving way to
   the gold light of resurrection morning.

   Fonts (loaded in each page <head>):
     Nunito  — rounded, warm  → headings & UI
     Lora    — serif          → body & long-form reading

   Density: compact & modern — tight type scale, dense grids,
   small components. Tuned for both desktop and mobile.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --cream:       #FBF6EC;   /* first-light canvas (page background)   */
  --surface:     #FFFDF8;   /* warm white — raised cards              */
  --lav-wash:    #F1EAF6;   /* soft lavender wash — alternating bands */

  /* Brand purple — the MAIN color, anchored to the RCCG seal (#2A166F) */
  --purple:      #43268C;   /* royal purple — headings, buttons, brand */
  --purple-deep: #2A166F;   /* RCCG indigo — hero base / deep sections */
  --purple-night:#1B0E42;   /* deepest — hero floor / footer           */
  --purple-brt:  #7B5BC0;   /* lifted purple — accents on dark         */
  --purple-soft: #E9E2F5;   /* pale purple — chips, tints on light     */

  /* Gold — the warm sunrise partner */
  --gold:        #C6892B;   /* amber gold                             */
  --gold-glow:   #F3BE55;   /* bright sunrise — text/accents on dark  */
  --gold-deep:   #8F5E15;   /* accessible gold text on cream          */

  /* Ink & lines */
  --ink:         #2E2233;   /* deep aubergine — body text             */
  --ink-soft:    #5C5064;   /* muted secondary text                   */
  --sand:        #E7DDC9;   /* warm hairline borders on cream         */
  --line-dark:   rgba(255,253,248,0.16); /* hairlines on purple       */

  /* Type */
  --font-head: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  /* Radii — vary by hierarchy, not one-size-fits-all */
  --r-sm: 7px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Warm, purple-tinted shadows (never the generic grey) */
  --shadow-sm: 0 2px 8px rgba(58,32,87,0.08);
  --shadow-md: 0 12px 28px rgba(58,32,87,0.13);
  --shadow-lg: 0 24px 56px rgba(44,23,67,0.22);

  /* Rhythm — compact */
  --container: 1120px;
  --gutter: clamp(1rem, 3.5vw, 2.25rem);
  --section-y: clamp(2.75rem, 5.5vw, 4.5rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;             /* 16px — compact base */
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--purple); text-decoration-color: color-mix(in srgb, var(--purple) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--purple);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 5vw, 3.15rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.3rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 0.9rem; max-width: 66ch; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink);
}

strong { font-weight: 600; }

/* Small labels — sentence case, NOT tracked all-caps */
.label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--gold-deep);
  letter-spacing: 0;
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.label::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.on-dark .label { color: var(--gold-glow); }
.on-dark .label::before { background: var(--gold-glow); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 740px; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--lav-wash); }
.section--cream { background: var(--surface); }

.section-head { max-width: 620px; margin-bottom: clamp(1.4rem, 2.8vw, 2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .label { justify-content: center; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* On-dark surfaces */
.on-dark { color: color-mix(in srgb, var(--cream) 92%, transparent); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }
.on-dark a { color: var(--gold-glow); }

/* ---------- Horizon divider (light on the horizon) ---------- */
.horizon {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--gold) 70%, transparent) 50%,
    transparent 100%);
}
.horizon--short { width: 120px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.72rem 1.3rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--purple); --btn-fg: var(--cream); }
.btn--primary:hover { background: var(--purple-deep); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #3B2A0B; }
.btn--gold:hover { background: var(--gold-glow); }

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border-color: color-mix(in srgb, var(--purple) 35%, transparent);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--purple-soft); color: var(--purple); border-color: var(--purple); }

/* Ghost buttons on any dark surface: hero, page-hero, CTA bands, featured sermon */
.on-dark .btn--ghost,
.cta-band .btn--ghost,
.sermon-feature .btn--ghost {
  color: var(--cream);
  border-color: var(--line-dark);
  box-shadow: none;
}
.on-dark .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.sermon-feature .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border-color: var(--gold-glow);
}

/* Eyebrow labels on the dark CTA / featured-sermon panels (they aren't .on-dark) */
.cta-band .label,
.sermon-feature .label { color: var(--gold-glow); }
.cta-band .label::before,
.sermon-feature .label::before { background: var(--gold-glow); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}

/* Offset in-page anchor jumps so the sticky header doesn't cover the heading */
:target,
section[id],
#main { scroll-margin-top: 84px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand:hover { color: inherit; }

/* Dual-logo lockup: RCCG seal + Resurrection Center, sitting close together */
.brand-lockup { display: inline-flex; align-items: center; gap: 0.3rem; }
.brand-lockup img { display: block; width: auto; }
.logo-rccg { height: 38px; }
.logo-rc   { height: 42px; }
.brand-divider { width: 1px; height: 36px; background: var(--sand); flex: none; }

/* Full church name beside the logos */
.brand-name { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name strong {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.05rem; letter-spacing: -0.02em; color: var(--purple);
}
.brand-name small {
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold-deep); margin-top: 3px;
}
/* Between tablet & desktop the full nav needs the room, so hide the name only there */
@media (max-width: 1060px) and (min-width: 901px) {
  .brand-name, .brand > .brand-divider { display: none; }
}
/* Mobile (hamburger menu): keep the full church name beside the logos, scaled to fit */
@media (max-width: 640px) {
  .brand-name strong { font-size: 0.92rem; }
  .brand-name small { font-size: 0.55rem; letter-spacing: 0.06em; }
}
@media (max-width: 520px) {
  .logo-rccg { height: 28px; }
  .logo-rc   { height: 34px; }
  .brand-name strong { font-size: 0.82rem; }
  .brand-name small { font-size: 0.5rem; letter-spacing: 0.04em; }
  .brand-divider { height: 30px; }
  .header-inner { gap: 0.6rem; }
}
@media (max-width: 380px) {
  .brand > .brand-divider { display: none; }
  .brand-name strong { font-size: 0.78rem; }
  .header-inner { gap: 0.5rem; }
}

/* text wordmark — used in the footer panel */
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--purple);
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}

/* Primary navigation */
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.78rem;
  border-radius: var(--r-pill);
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--purple-soft); color: var(--purple); }
.nav a[aria-current="page"] { color: var(--purple); background: var(--purple-soft); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--sand);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 20px; margin-inline: auto;
  background: var(--purple); border-radius: 2px;
  transition: transform .2s ease, opacity .2s 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: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    border-bottom: 1px solid var(--sand);
    padding: 0.7rem var(--gutter) 1rem;
    box-shadow: var(--shadow-md);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path .28s ease, opacity .2s ease;
  }
  .nav[data-open="true"] { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.75rem 0.9rem; font-size: 1.02rem; }
  .header-actions .btn { display: none; }
}

/* ---------- Hero: the dawn ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(130% 95% at 50% 118%, var(--gold-glow) 0%, rgba(243,190,85,0.45) 22%, rgba(243,190,85,0) 46%),
    linear-gradient(178deg, var(--purple-night) 0%, var(--purple-deep) 46%, var(--purple) 100%);
}

/* Faint photo slideshow that sinks into the purple hero background */
.hero__slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slideshow .slide {
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__slideshow .slide.is-active { opacity: 0.4; }   /* faint — the purple shows through */
/* Purple veil over the photos: keeps them subtle and the cream text readable */
.hero__slideshow::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(178deg,
    rgba(27,14,66,0.74) 0%,
    rgba(42,22,111,0.56) 46%,
    rgba(67,38,140,0.60) 100%);
}
@media (max-width: 640px) {
  .hero__slideshow .slide { background-image: var(--img-m); }  /* portrait crop, fits mobile */
}
.hero__sun {
  position: absolute;
  left: 50%; bottom: -42%;
  width: min(680px, 120%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(243,190,85,0.55) 0%, rgba(243,190,85,0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.hero__text { max-width: 600px; }
.hero__art { justify-self: center; width: 100%; max-width: 380px; }

/* Church emblem — the logo on a frosted seal with halo, rays and depth */
.hero__emblem {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero__emblem-rays,
.hero__emblem-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__emblem-rays {
  width: 122%; aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg,
    rgba(243,190,85,0.22) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 46%, transparent 72%);
          mask: radial-gradient(circle, transparent 30%, #000 46%, transparent 72%);
  opacity: 0.85;
  animation: emblemSpin 90s linear infinite;
}
.hero__emblem-glow {
  width: 92%; aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(243,190,85,0.5) 0%, rgba(243,190,85,0.2) 44%, rgba(243,190,85,0) 70%);
  filter: blur(4px);
  animation: emblemPulse 7s ease-in-out infinite;
}
.hero__emblem-disc {
  position: relative;
  z-index: 1;
  width: 76%; aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  perspective: 1000px;
  background: radial-gradient(circle at 50% 34%, #6A47C4 0%, #43268C 48%, #2A166F 100%);
  border: 2px solid rgba(198,137,43,0.65);
  box-shadow:
    0 26px 55px -14px rgba(15,8,40,0.72),
    0 0 0 6px rgba(198,137,43,0.16),
    inset 0 4px 20px rgba(255,255,255,0.22),
    inset 0 -20px 38px rgba(15,7,42,0.5);
}
.hero__emblem-disc img {
  width: 78%; height: auto;
  filter: drop-shadow(0 6px 14px rgba(10,4,30,0.4));
  transform-style: preserve-3d;
  animation: emblemFlip 11s cubic-bezier(.55,0,.2,1) 2.4s infinite;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 296px; margin-top: 0.25rem; }
}
.hero h1 { color: var(--cream); margin-bottom: 0.45rem; }
.hero .lead { color: color-mix(in srgb, var(--cream) 88%, transparent); max-width: 52ch; margin-bottom: 1.5rem; }
.hero .btn-row { margin-top: 0.4rem; }

/* Little rising-sun ornament above the headline */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 800;
  color: var(--gold-glow);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.hero__eyebrow svg { width: 18px; height: 18px; }

/* Service-times ribbon that sits under the hero */
.hours-ribbon {
  background: var(--purple-night);
  color: var(--cream);
  border-top: 1px solid var(--line-dark);
}
.hours-ribbon .container {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.hours-ribbon .when { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.hours-ribbon .when div { display: flex; flex-direction: column; }
.hours-ribbon .when span:first-child {
  font-family: var(--font-head); font-weight: 800; color: var(--gold-glow);
  font-size: 1.02rem;
}
.hours-ribbon .when span:last-child { font-size: 0.88rem; color: color-mix(in srgb, var(--cream) 78%, transparent); }
.hours-ribbon .where {
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}

/* ---------- Split / feature blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split--reverse .split__media { order: 0; }
}
.split__body h2 { margin-bottom: 0.7rem; }

/* Gathering slideshow (crossfades through Sunday photos) */
.gather-show {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--lav-wash);
}
.gather-show .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.gather-show .slide.is-active { opacity: 1; }


/* ---------- Values / invitation grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.25rem);
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.pillar .ico {
  width: 40px; height: 40px; margin-bottom: 0.8rem;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--purple-soft); color: var(--purple);
}
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { color: var(--purple); margin-bottom: 0.3rem; }
.pillar p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Cards: sermons & events ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--gold-deep); margin-bottom: 0.4rem; }
.card h3 { margin-bottom: 0.4rem; }
.card h3 a { color: var(--purple); text-decoration: none; }
.card h3 a:hover { color: var(--gold-deep); }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.85rem; }
.card__foot { margin-top: auto; }

/* Featured sermon — larger, breaks the uniform grid */
.sermon-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--purple-deep);
  color: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.sermon-feature .sermon-feature__media { min-height: 260px; }
.sermon-feature .sermon-feature__body { padding: clamp(1.4rem, 3.5vw, 2.5rem); align-self: center; }
.sermon-feature h2 { color: var(--cream); }
.sermon-feature .card__meta { color: var(--gold-glow); }
.sermon-feature p { color: color-mix(in srgb, var(--cream) 82%, transparent); }
@media (max-width: 720px) {
  .sermon-feature { grid-template-columns: 1fr; }
  .sermon-feature .sermon-feature__media { min-height: 180px; }
}

/* ---------- Events list variant ---------- */
.event-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
}
.event-row:last-child { border-bottom: 0; }
.event-date {
  text-align: center;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.35rem;
  font-family: var(--font-head);
}
.event-date .d { display: block; font-size: 1.45rem; font-weight: 900; line-height: 1; }
.event-date .m { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.event-info h3 { margin-bottom: 0.2rem; font-size: 1.12rem; }
.event-info p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.event-when { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--gold-deep); text-align: right; }
@media (max-width: 640px) {
  .event-row { grid-template-columns: 64px 1fr; gap: 0.9rem; }
  .event-when { grid-column: 2; text-align: left; }
}

/* ---------- Give page ---------- */
.give-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 1.25rem; }
.give-way {
  background: var(--surface); border: 1px solid var(--sand);
  border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.give-way h3 { color: var(--purple); }
.give-way p { color: var(--ink-soft); font-size: 0.95rem; }
.amount-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.amount-row button {
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
  padding: 0.58rem 1rem; border-radius: var(--r-pill);
  border: 2px solid var(--purple-soft); background: var(--surface); color: var(--purple);
  cursor: pointer; transition: all .15s ease;
}
.amount-row button:hover, .amount-row button[aria-pressed="true"] {
  background: var(--purple); color: var(--cream); border-color: var(--purple);
}

/* Offering accounts (bank transfer) — echoes the church's offering flyer */
.acct-card { text-align: center; }
.give-tag {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.01em;
  color: var(--cream); background: var(--purple);
  padding: 0.34rem 0.9rem; border-radius: var(--r-pill);
  margin-bottom: 0.8rem;
}
.give-acct {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem); letter-spacing: 0.03em;
  color: var(--ink); line-height: 1.1; margin: 0.2rem 0 0.75rem;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  color: var(--purple); background: var(--purple-soft);
  border: 0; border-radius: var(--r-pill);
  padding: 0.42rem 0.85rem; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.copy-btn:hover { background: var(--purple); color: var(--cream); }
.copy-btn.is-copied { background: var(--gold); color: #3B2A0B; }
.copy-btn svg { width: 15px; height: 15px; }
.give-acct-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--purple); margin: 1rem 0 0.2rem;
}
.give-bank { font-family: var(--font-head); font-weight: 700; color: var(--gold-deep); font-size: 0.9rem; }
.qr-card { text-align: center; }
.qr {
  width: 180px; height: 180px; border-radius: var(--r-sm);
  margin: 0.4rem auto 0; box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ico {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--purple-soft); color: var(--purple);
  display: grid; place-items: center;
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list h4 { margin: 0 0 0.12rem; color: var(--purple); }
.info-list p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.info-list a { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  color: var(--cream); text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(243,190,85,0.35) 0%, rgba(243,190,85,0) 45%),
    linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: color-mix(in srgb, var(--cream) 85%, transparent); margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-night);
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand__name { color: var(--cream); }

/* Sleek white-outlined logos on the dark footer */
.footer-brand-panel {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.footer-brand-panel img {
  display: block; width: auto;
  border: 2px solid var(--cream);
  border-radius: var(--r-sm);
  padding: 0.4rem;
  background: transparent;
}
.footer-brand-panel .logo-rccg { height: 38px; }
.footer-brand-panel .logo-rc { height: 42px; }
.footer-brand-panel .brand-divider {
  height: 32px;
  background: var(--line-dark);
}
.site-footer h4 { color: var(--gold-glow); font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 0.85rem; }
.footer-col p { font-size: 0.92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-glow); }

.social-row { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--cream);
  transition: background-color .15s ease, border-color .15s ease;
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: rgba(255,255,255,0.08); border-color: var(--gold-glow); color: var(--gold-glow); }

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--cream) 64%, transparent);
}

/* ---------- Image placeholders (swap for real photos) ---------- */
.ph {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  min-height: 180px;
  color: color-mix(in srgb, var(--cream) 90%, transparent);
  background:
    radial-gradient(110% 120% at 20% 15%, rgba(243,190,85,0.42) 0%, rgba(243,190,85,0) 55%),
    linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 60%, var(--purple-night) 100%);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: rgba(44,23,67,0.35);
  backdrop-filter: blur(2px);
}
.ph svg { position: absolute; width: 54px; height: 54px; opacity: 0.9; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 22px)); }
.ph.is-round { border-radius: var(--r-pill); aspect-ratio: 1; min-height: 0; }

/* Leadership headshots */
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--cream);
  background: var(--lav-wash);
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--purple); color: var(--cream);
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 700;
  z-index: 100; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.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;
}

.chip {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800; font-size: 0.78rem;
  color: var(--purple); background: var(--purple-soft);
  padding: 0.3rem 0.78rem; border-radius: var(--r-pill);
}
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(120% 130% at 85% -10%, rgba(243,190,85,0.30) 0%, rgba(243,190,85,0) 45%),
    linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 100%);
}
.page-hero__inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); max-width: 700px; }
.page-hero h1 { color: var(--cream); margin-bottom: 0.5rem; }
.page-hero p { color: color-mix(in srgb, var(--cream) 86%, transparent); font-size: 1.08rem; margin-bottom: 0; max-width: 56ch; }
.breadcrumb { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--gold-glow); margin-bottom: 0.85rem; }
.breadcrumb a { color: color-mix(in srgb, var(--cream) 80%, transparent); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-glow); }

/* ---------- Compact mobile: pack into a dense grid ---------- */
@media (max-width: 640px) {
  :root { --section-y: clamp(2.25rem, 7vw, 3.25rem); }
  body { font-size: 0.95rem; }

  /* Cards & value blocks become a tight 2-up grid instead of full-width stacks */
  .grid-3,
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }

  .pillar { padding: 1rem 0.85rem; }
  .pillar .ico { width: 34px; height: 34px; margin-bottom: 0.6rem; }
  .pillar .ico svg { width: 19px; height: 19px; }
  .pillar h3 { font-size: 1rem; }
  .pillar p { font-size: 0.85rem; }

  .card__media { aspect-ratio: 16 / 9; }
  .card__body { padding: 0.85rem; }
  .card p { font-size: 0.88rem; -webkit-line-clamp: 3; }

  .section-head { margin-bottom: 1.2rem; }
  .btn { padding: 0.58rem 1rem; font-size: 0.85rem; }
  .btn-row { gap: 0.55rem; }

  .give-ways { grid-template-columns: 1fr; }
  .avatar { width: 84px; height: 84px; }
  .hero__eyebrow { font-size: 0.85rem; }
}

/* Very small screens: give text cards room to breathe again */
@media (max-width: 380px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- One deliberate load animation: the dawn rises ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sunUp {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero__text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > *:nth-child(1) { animation-delay: .05s; }
.hero__text > *:nth-child(2) { animation-delay: .16s; }
.hero__text > *:nth-child(3) { animation-delay: .27s; }
.hero__text > *:nth-child(4) { animation-delay: .38s; }
.hero__art { animation: rise 1s cubic-bezier(.2,.7,.2,1) .3s both; }
.hero__sun { animation: sunUp 1.4s ease-out both; }

/* Emblem: cinematic 3D flip at intervals, gentle halo pulse, slow ray drift */
@keyframes emblemFlip {
  0%, 66%   { transform: rotateY(0deg); }
  86%, 100% { transform: rotateY(360deg); }
}
@keyframes emblemPulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes emblemSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .hero__art, .hero__sun { animation: none; }
  .hero__emblem-disc img, .hero__emblem-glow, .hero__emblem-rays { animation: none; }
  .card, .btn { transition: none; }
}
