/* =========================================================================
   Seven Twenty One Ministries
   Vanilla CSS. Warm, curved, a little playful — a calm room with soft edges.
   See DESIGN-NOTES.md.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --paper:      #F7F5FB;
  --paper-2:    #EFEBFA;
  --paper-3:    #E7E0F6;
  --ink:        #1C1832;
  --ink-soft:   #4A4566;
  --iris:       #5A4BC4;
  --iris-deep:  #463A9E;
  --iris-tint:  #E9E4FB;
  --sky:        #35688F;
  --sky-wash:   #DCE8F4;
  --gold:       #E7BC63;
  --gold-deep:  #B5842E;
  --gold-wash:  #F7EBD4;
  --line:       #DED7F0;

  --measure: 64ch;
  --page: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-slab: clamp(30px, 5vw, 56px);
  --r-media: clamp(20px, 3vw, 34px);
  --r-card: 26px;
  --r-field: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(28, 24, 50, 0.06);
  --shadow-md: 0 6px 22px rgba(28, 24, 50, 0.09);
  --shadow-lg: 0 24px 60px rgba(28, 24, 50, 0.14);
  --focus: 3px solid var(--iris-deep);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-bg-top: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #141127;
    --paper-2:   #1E1A3B;
    --paper-3:   #262048;
    --ink:       #ECEAF8;
    --ink-soft:  #B7B1D4;
    --iris:      #A99CF2;
    --iris-deep: #C4BAFB;
    --iris-tint: #2A2550;
    --sky:       #9BC2E2;
    --sky-wash:  #21304A;
    --gold:      #E7BC63;
    --gold-deep: #E9C983;
    --gold-wash: #322a1c;
    --line:      #332E58;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow-md: 0 8px 26px rgba(0,0,0,0.4);
    --shadow-lg: 0 26px 64px rgba(0,0,0,0.5);
    --focus: 3px solid var(--iris-deep);

    --header-bg-top: #141127;
  }
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light dark; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--iris) 18%, transparent);
  overflow-x: clip;
}
[id] { scroll-margin-top: 6.5rem; }
button, a, .btn, input, select, textarea, summary { touch-action: manipulation; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 480;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 3.4rem); }
h2 { font-size: clamp(1.95rem, 4.4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { max-width: var(--measure); }

a {
  color: var(--iris);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--iris-deep); text-decoration-thickness: 2px; }

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

strong { font-weight: 700; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap) 0; }

/* ---- Skip link ----------------------------------------------------- */
.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  z-index: 200;
  transition: top 0.18s var(--ease);
}
.skip:focus { top: 1rem; color: var(--paper); }

/* ---- Layout helpers ---------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem); }
/* narrow content column stays left-aligned, not centered on the page */
.wrap.measure { max-width: var(--page); }
.wrap.measure > * { max-width: var(--measure); }
.wrap.measure > .pullquote { max-width: 46ch; }
.section.panel, .section.panel--sky, .section.panel--ink { padding-block: clamp(0.5rem, 1.5vw, 0.9rem); }
.section:first-of-type { padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.measure { max-width: var(--measure); }
.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
/* body-section text (not the page-hero/home-hero banner) reads at one
   consistent size, sitting close under its heading */
.section .lede { font-size: 17px; line-height: 1.7; }
.stack > * + * { margin-top: 1.1rem; }
.mt-0 { margin-top: 0; }

/* eyebrow / kicker — a soft italic label, never all-caps */
.section-head { margin-bottom: 1rem; }
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sky);
  margin: 0 0 0.5rem;
}
.kicker::before, .eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--gold-deep);
  border-radius: var(--r-pill);
}

/* ---- Full-width header — solid at top, glass once scrolled ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  width: 100%;
  border-radius: 0;
  background: var(--header-bg-top, #fff);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(0.9rem, 3vw, 1.6rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}
.brand:hover { color: var(--ink); }
.brand__logo { height: 50px; width: auto; display: block; }
@media (max-width: 880px) { .brand__logo { height: 44px; } }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 0;
  cursor: pointer;
}
.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.nav-toggle__icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-close { display: block; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.9rem); }
.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  padding: 0.3rem 0.15rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--gold-deep);
  transition: right 0.25s var(--ease);
}
.nav a:not(.btn):hover::after { right: 0; }
.nav a[aria-current="page"]::after { right: 0; background: var(--iris); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: none;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0.9rem; border-radius: 14px; }
  .nav a:not(.btn):hover { background: var(--paper-2); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 0.5rem; justify-content: center; }
}

/* ---- Buttons — pill shaped -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}
.btn--primary { background: var(--gold); color: #241a06; border-color: var(--gold); box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 45%, transparent); }
.btn--primary:hover { background: #ddad4c; border-color: #ddad4c; color: #241a06; box-shadow: 0 10px 24px color-mix(in srgb, var(--gold) 55%, transparent); }
.btn--secondary { background: var(--iris); color: #fff; border-color: var(--iris); box-shadow: 0 6px 18px color-mix(in srgb, var(--iris) 40%, transparent); }
.btn--secondary:hover { background: var(--iris-deep); border-color: var(--iris-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--iris); color: var(--ink); background: color-mix(in srgb, var(--iris) 7%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.btn--primary:disabled:hover { background: var(--gold); border-color: var(--gold); }

/* ---- Hero banners (photo + purple wash) ---------------------- */
.page-hero,
.home-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  text-align: center;
  overflow: clip;
}
.page-hero,
.home-hero { border-radius: 0 0 var(--r-slab) var(--r-slab); }

/* shared purple wash — the photo stays visible through it */
.page-hero::after,
.home-hero__overlay {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ink) 55%, transparent) 0%,
      transparent 26%,
      transparent 62%,
      color-mix(in srgb, var(--iris) 42%, transparent) 100%),
    color-mix(in srgb, #4c40b3 42%, transparent);
}
/* soft dark pool behind the hero text for guaranteed contrast */
.page-hero__inner::before,
.home-hero__inner::before {
  content: "";
  position: absolute;
  inset: clamp(-3rem, -6vw, -1.5rem) clamp(-4rem, -10vw, -2rem);
  z-index: -1;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--ink) 52%, transparent) 0%,
    color-mix(in srgb, var(--ink) 22%, transparent) 55%,
    transparent 78%);
  filter: blur(8px);
}

/* interior page hero — same min-height on every page (About Us sets the bar) */
.page-hero {
  display: grid;
  place-items: center;
  min-height: 30rem;
  padding: clamp(2.5rem, 6vw, 4rem)
           clamp(1.25rem, 5vw, 3rem)
           clamp(2.75rem, 6vw, 4rem);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 700px) { .page-hero { min-height: 29rem; } }
@media (min-width: 900px) { .page-hero { min-height: 34.5rem; } }
.page-hero__inner { position: relative; z-index: 1; max-width: 44rem; }

/* home hero with background slideshow */
.home-hero {
  display: grid;
  place-items: center;
  min-height: clamp(25rem, 72vh, 36rem);
  padding: clamp(3rem, 8vw, 5.5rem)
           clamp(1.25rem, 5vw, 3rem)
           clamp(3.75rem, 8vw, 5.5rem);
}
.home-hero__slides { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.home-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.home-hero__slide.is-active { opacity: 1; }
.home-hero__overlay { z-index: 1; }
.home-hero__inner { position: relative; z-index: 2; max-width: 46rem; }
.home-hero__toggle {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(20,17,39,0.5);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.home-hero__toggle:hover { background: rgba(20,17,39,0.8); }
@media (prefers-reduced-motion: reduce) {
  .home-hero__slide { transition: none; }
  .home-hero__toggle { display: none; }
}

/* hero text treatment */
.page-hero .kicker,
.home-hero .kicker { color: var(--gold); justify-content: center; }
.page-hero .kicker::before,
.home-hero .kicker::before { background: var(--gold); }
.page-hero h1,
.home-hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.4); max-width: 18ch; margin-inline: auto; }
.page-hero .lede,
.home-hero .lede { color: rgba(255,255,255,0.95); max-width: 42ch; margin-inline: auto; }
.home-hero .form-note { color: rgba(255,255,255,0.82); margin-top: 1.4rem; margin-bottom: 0; }
.home-hero .btn-row { justify-content: center; }
.home-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.home-hero .btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-watch a { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .page-hero__inner > *,
  .home-hero__inner > * { opacity: 0; transform: translateY(18px); animation: rise 0.7s var(--ease) forwards; }
  .page-hero__inner > :nth-child(1), .home-hero__inner > :nth-child(1) { animation-delay: 0.1s; }
  .page-hero__inner > :nth-child(2), .home-hero__inner > :nth-child(2) { animation-delay: 0.2s; }
  .page-hero__inner > :nth-child(3), .home-hero__inner > :nth-child(3) { animation-delay: 0.3s; }
  .page-hero__inner > :nth-child(4), .home-hero__inner > :nth-child(4) { animation-delay: 0.4s; }
  .page-hero__inner > :nth-child(5), .home-hero__inner > :nth-child(5) { animation-delay: 0.5s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* YouTube embed on the About page ("Our story, in two minutes") */
.story-video { max-width: 60rem; margin-inline: auto; }
.story-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-media);
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}

/* ---- Section rhythm & panels (floating rounded slabs) --------- */
.section.panel > .wrap,
.section.panel--sky > .wrap,
.section.panel--ink > .wrap {
  border-radius: var(--r-slab);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: calc(var(--page) - clamp(1rem, 4vw, 3rem));
  overflow: clip;
}
.section.panel > .wrap { background: var(--paper-2); }
.section.panel--sky > .wrap { background: var(--sky-wash); }
.section.panel--ink > .wrap {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 90%, transparent);
  overflow: clip;
  position: relative;
}
.section.panel--ink h1, .section.panel--ink h2, .section.panel--ink h3 { color: var(--paper); }
.section.panel--ink a:not(.btn) { color: var(--gold); }
.section.panel--ink .lede { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.section.panel--ink .form-note { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.section.panel--ink .kicker, .section.panel--ink .eyebrow { color: var(--gold); }
.section.panel--ink .kicker::before, .section.panel--ink .eyebrow::before { background: var(--gold); }
.section.panel--ink .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,0.4); }
.section.panel--ink .btn--ghost:hover { color: var(--paper); border-color: var(--gold); background: rgba(255,255,255,0.06); }
.section.panel--ink > .wrap::before {
  content: "";
  position: absolute;
  width: 42%; padding-bottom: 42%;
  right: -14%; top: -20%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--iris) 42%, transparent), transparent 72%);
  border-radius: 50%;
  pointer-events: none;
}
.section.panel--ink > .wrap > * { position: relative; z-index: 1; }

/* soft tint sections that stay full-bleed keep their color but rounded */
.panel-plain { background: var(--paper-2); border-radius: var(--r-slab); }

/* ---- Closing line — a single statement before the newsletter --- */
.closing-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 30ch;
}

/* ---- Split (text + image) --------------------------------- */
.split { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: start; }
.split--center { align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.12fr 0.88fr; }
  .split--flip .split__media { order: -1; }
}

.split__media { position: relative; margin: 0; }
.split__media > img,
.split__media > a > img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-media);
  box-shadow: var(--shadow-md);
}
.split > .split__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px) rotate(-3deg);
  background: var(--gold-wash);
  border: 2px solid var(--gold);
  border-radius: var(--r-media);
  z-index: 0;
}
.split--flip > .split__media::before { transform: translate(-18px, 18px) rotate(3deg); background: var(--iris-tint); border-color: var(--iris); }

/* subtle hover: photo turns one way, frame the other */
@media (prefers-reduced-motion: no-preference) {
  .split > .split__media:not(.floorplan) > img,
  .split > .split__media:not(.floorplan) > a > img,
  .split > .split__media:not(.floorplan)::before {
    transition: transform 0.45s var(--ease);
  }
  .split > .split__media:not(.floorplan):hover > img,
  .split > .split__media:not(.floorplan):hover > a > img {
    transform: rotate(1.6deg) scale(1.012);
  }
  .split > .split__media:not(.floorplan):hover::before {
    transform: translate(18px, 18px) rotate(-6.5deg);
  }
  .split--flip > .split__media:not(.floorplan):hover > img,
  .split--flip > .split__media:not(.floorplan):hover > a > img {
    transform: rotate(-1.6deg) scale(1.012);
  }
  .split--flip > .split__media:not(.floorplan):hover::before {
    transform: translate(-18px, 18px) rotate(6.5deg);
  }
}

@media (min-width: 880px) {
  .split__media > img,
  .split__media > a > img { max-height: 34rem; object-fit: cover; }
  .split__media.floorplan > a > img { max-height: none; object-fit: contain; }
}
.split__media.floorplan::before { display: none; }
figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; }
@media (min-width: 880px) {
  aside .split__media > img { max-height: 24rem; object-fit: cover; }
}

/* ---- Pull quote ------------------------------------------ */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 30ch;
  margin: 0.5rem 0;
  padding: 1.5rem 1.75rem;
  background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  border-radius: var(--r-card) var(--r-card) var(--r-card) 6px;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.panel--sky .pullquote { background: color-mix(in srgb, var(--sky) 10%, var(--paper)); }

/* ---- Ways to help — rounded cards, gently staggered ------ */
.ways { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.panel > .wrap .way, .panel--sky > .wrap .way { background: var(--paper); }
@media (min-width: 760px) {
  .way:nth-child(2) { transform: translateY(1.5rem); }
  .way:nth-child(5) { transform: translateY(1.5rem); }
  .way:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--iris) 45%, var(--line)); }
  .way:nth-child(2):hover, .way:nth-child(5):hover { transform: translateY(calc(1.5rem - 4px)); }
}
.way h3 { margin: 0; font-size: 1.3rem; }
.way p { margin: 0; color: var(--ink-soft); flex: 1; }
.way .btn { margin-top: 0.4rem; }

/* ---- Rooms list --------------------------------------- */
.rooms { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.6rem; }
.rooms li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

/* ---- Progress ---------------------------------------- */
.progress { margin: 1.5rem 0; }
.progress__bar {
  height: 16px;
  background: var(--paper-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: var(--r-pill); transition: width 0.8s var(--ease); }
.progress__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.7rem; font-size: 0.95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.progress__meta strong { color: var(--ink); font-size: 1.1rem; }

/* ---- Forms ------------------------------------------- */
.form { max-width: 34rem; margin-top: 1.5rem; }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-slab);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }

/* Contact form: two columns, smaller type, top-aligned with the aside beside it */
.contact-form { max-width: none; margin-top: 0; font-size: 0.95rem; }
@media (min-width: 560px) {
  .contact-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .contact-form > h2,
  .contact-form > .field--full,
  .contact-form > .cf-turnstile,
  .contact-form > button { grid-column: 1 / -1; }
}
.contact-form .field input,
.contact-form .field textarea { padding: 0.7rem 0.9rem; }
.field .hint { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-field);
  padding: 0.8rem 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: color-mix(in srgb, var(--iris) 40%, var(--line)); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none;
  border-color: var(--iris);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--iris) 22%, transparent);
}
.field textarea { min-height: 7rem; resize: vertical; }
.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; max-width: var(--measure); }
.checkbox input { width: 1.2rem; height: 1.2rem; margin-top: 0.28rem; flex: none; accent-color: var(--iris); }
.checkbox label { font-weight: 400; }
.cf-turnstile { margin: 0 0 1.15rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.15rem 1.15rem; margin: 0 0 1.15rem; }
legend { font-weight: 600; padding-inline: 0.4rem; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.form-result { margin-top: 1rem; font-weight: 600; color: var(--sky); }

/* ---- Newsletter band -------------------------------- */
.signup { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .signup { grid-template-columns: 1fr 1fr; } }
.signup__embed .form-note { margin: 0.9rem 0 0; }


/* ---- Floor plan ------------------------------------ */
.floorplan > a > img,
.floorplan > img {
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (max-width: 599px) {
  /* the browser's default <figure> side margin was shrinking the image */
  .floorplan { margin-inline: 0; }
}

/* ---- Image pop-up (lightbox) ------------------------ */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 17, 39, 0.82); }
.lightbox__scroll {
  overflow: auto;
  max-height: 94vh;
  border-radius: var(--r-media);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.lightbox__img { display: block; width: 100%; height: auto; }
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.lightbox__close:hover { background: var(--iris-deep); }
.lightbox__close svg { width: 1.35rem; height: 1.35rem; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 699px) {
  /* on phones the plan is wider than the screen — pan or pinch to read the small print */
  .lightbox__img { width: 220%; max-width: none; }
}

/* ---- Hero scripture line --------------------------- */
.hero-scripture {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  max-width: 42ch;
  margin: 1.2rem auto 0;
}

/* ---- Project cards (Projects page) ----------------- */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.panel > .wrap .project-card { background: var(--paper); }
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--iris) 45%, var(--line)); }
}
.project-card__media { margin: 0; background: #fff; }
.project-card__media img { width: 100%; height: 13rem; object-fit: cover; }
.project-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(1.4rem, 3vw, 1.8rem);
  flex: 1;
}
.project-card__body h3 { margin: 0; font-size: 1.3rem; }
.project-card__body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.project-card__body .btn { align-self: center; }
.project-card .progress { width: 100%; margin: 0.5rem 0 0.9rem; }
.project-card .progress__meta { font-size: 0.9rem; }
.project-card .progress__meta strong { font-size: 1rem; }

/* ---- Pillars — Pray / Give / Volunteer ------------- */
.pillars {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--r-pill);
  background: var(--iris-tint);
  color: var(--iris);
}
.pillar__icon svg { width: 1.6rem; height: 1.6rem; }
.pillar h3 { margin: 0.2rem 0 0; font-size: 1.3rem; }
.pillar p { margin: 0; color: var(--ink-soft); flex: 1; }
.pillar .btn { margin-top: 0.5rem; }

/* ---- Give list (what gifts fund) ------------------- */
.give-list { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 700px) { .give-list { grid-template-columns: repeat(3, 1fr); } }
.give-list > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.give-list h3 { font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--sky); }
.give-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: none; }

/* ---- Contact layout ------------------------------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.95fr 1.05fr; } }
.contact-aside {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  border-radius: var(--r-slab);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: clip;
  position: relative;
}
.contact-aside h2, .contact-aside h3 { color: var(--paper); }
.contact-aside a { color: var(--gold); }
.contact-aside a:hover { color: var(--paper); }
.contact-aside hr { border-color: rgba(255,255,255,0.16); margin-block: 1.5rem; }
.contact-aside__intro { color: color-mix(in srgb, var(--paper) 82%, transparent); margin-bottom: 1.25rem; }
.contact-aside::before {
  content: "";
  position: absolute;
  width: 55%; padding-bottom: 55%;
  right: -18%; top: -20%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--iris) 45%, transparent), transparent 72%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-aside > * { position: relative; z-index: 1; }
.contact-aside a.social-icon { color: var(--paper); }
.contact-aside a.social-icon:hover { color: #241a06; }
.contact-methods { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.contact-methods li { display: flex; gap: 0.75rem; align-items: center; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}
.contact-icon svg { width: 1.05rem; height: 1.05rem; }

/* ---- CTA block ------------------------------------ */
.cta-block { max-width: 44ch; }
.cta-block h2 { max-width: 18ch; }
.cta-block p { margin-inline: 0; }

/* ---- Footer -------------------------------------- */
.site-footer {
  background: linear-gradient(160deg, var(--ink) 0%, color-mix(in srgb, var(--iris) 20%, var(--ink)) 100%);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  border-radius: 0;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(3rem, 7vw, 4.5rem);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  padding-bottom: max(clamp(3rem, 7vw, 4.5rem), env(safe-area-inset-bottom));
  font-size: 0.95rem;
}
.site-footer a { color: var(--paper); text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); overflow-wrap: break-word; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr; gap: clamp(1.5rem, 3vw, 2.5rem); } }
.site-footer h2 { font-size: 1.05rem; color: var(--paper); margin-bottom: 0.7rem; font-family: var(--sans); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer address { font-style: normal; line-height: 1.8; overflow-wrap: break-word; }
.footer-logo { height: 84px; width: auto; margin-bottom: 1.1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-desc { font-family: var(--sans); font-style: normal; font-size: 0.98rem; line-height: 1.6; color: color-mix(in srgb, var(--paper) 82%, transparent); max-width: 34ch; }
.footer-follow {
  font-size: 1.05rem;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}
.social-icons { display: flex; gap: 0.6rem; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--paper);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.social-icon svg { width: 1.5rem; height: 1.5rem; }
.social-icon:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.site-footer a.social-icon:hover { color: #241a06; }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  font-size: 0.875rem;
}
.footer-legal .footer-credit { margin-left: auto; }

@media (max-width: 599px) {
  .site-footer__grid { text-align: center; }
  .footer-logo { margin-inline: auto; }
  .footer-desc { margin-inline: auto; }
  .social-icons { justify-content: center; }
  .footer-legal { justify-content: center; }
  .footer-legal .footer-credit { margin-left: 0; }
}

/* ---- Back to top ------------------------------- */
.back-to-top {
  position: fixed;
  right: max(clamp(1rem, 3vw, 1.75rem), env(safe-area-inset-right));
  bottom: max(clamp(1rem, 3vw, 1.75rem), env(safe-area-inset-bottom));
  z-index: 90;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--iris) 55%, var(--line));
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  color: var(--iris-deep);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s, background-color 0.15s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--paper); color: var(--iris-deep); }
.back-to-top svg { width: 1.35rem; height: 1.35rem; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s linear, visibility 0.15s; transform: none; }
}

/* ---- Prose (legal) ------------------------------ */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
/* ---- Utilities --------------------------------- */
.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;
}
