/* ==========================================================================
   Emmanuel Presbyterian Church — Bronx, New York
   Stylesheet

   Contents
     1.  Design tokens
     2.  Reset & base
     3.  Typography
     4.  Layout helpers
     5.  Buttons
     6.  Header & navigation
     7.  Hero
     8.  Section furniture
     9.  Cards & grids
     10. Feature rows (image + text)
     11. Schedule / times
     12. Placeholder blocks
     13. Forms
     14. Photo strip & gallery
     15. Footer
     16. Scroll reveal
     17. Utilities
     18. Print
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Brand — taken from the church seal and the pastor's robe */
  --navy:          #1b2a6b;
  --navy-deep:     #121d4d;
  --navy-soft:     #2d3f87;
  --navy-tint:     #e8ebf5;

  /* Accent — the flames in the seal. Used sparingly. */
  --flame:         #e03127;
  --flame-deep:    #b8241c;

  /* Stone — the 1913 fieldstone walls */
  --stone-100:     #faf8f5;
  --stone-200:     #f5f3f0;
  --stone-300:     #e8e4de;
  --stone-400:     #d8d3cc;
  --stone-500:     #a8a199;

  /* Ink */
  --ink:           #23262e;
  --ink-soft:      #4a4f5c;
  --ink-faint:     #6b7280;

  --white:         #ffffff;
  --cream:         #fbf9f6;

  /* Type */
  --font-display:  "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body:     "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
                   Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --fs-xs:    0.8125rem;
  --fs-sm:    0.9375rem;
  --fs-base:  clamp(1.0625rem, 0.5vw + 0.95rem, 1.1875rem);
  --fs-lg:    clamp(1.1875rem, 0.7vw + 1.05rem, 1.375rem);
  --fs-xl:    clamp(1.5rem, 1.2vw + 1.2rem, 1.875rem);
  --fs-2xl:   clamp(1.875rem, 2vw + 1.4rem, 2.625rem);
  --fs-3xl:   clamp(2.25rem, 3.2vw + 1.5rem, 3.5rem);
  --fs-hero:  clamp(2.5rem, 5vw + 1rem, 5rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  --section-y: clamp(3.5rem, 7vw, 7rem);

  /* Structure */
  --wrap:       1200px;
  --wrap-narrow: 760px;
  --radius:     4px;
  --radius-lg:  8px;

  --shadow-sm: 0 1px 3px rgba(27, 42, 107, 0.07),
               0 1px 2px rgba(27, 42, 107, 0.04);
  --shadow:    0 4px 16px rgba(27, 42, 107, 0.08),
               0 1px 4px rgba(27, 42, 107, 0.05);
  --shadow-lg: 0 12px 40px rgba(27, 42, 107, 0.12),
               0 4px 12px rgba(27, 42, 107, 0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h: 84px;
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
}


/* 2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Skip link — first stop for keyboard and screen-reader users */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 2000;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* <main> carries tabindex="-1" so the skip link can move focus into it.
   It should never show a ring of its own. */
main:focus,
main:focus-visible { outline: none; }


/* 3. Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
  /* Keep hyphenated names and long titles from breaking badly */
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--flame); }

strong { font-weight: 600; color: var(--ink); }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Small caps label above a heading */
/* Uses the deeper red: at 13px this text needs 4.5:1, which --flame
   (#e03127) does not reach on the cream and stone backgrounds. */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: var(--sp-3);
}
.eyebrow--light { color: var(--stone-400); }

/* Short rule used under section headings */
.rule {
  width: 56px;
  height: 3px;
  border: 0;
  margin: var(--sp-5) 0;
  background: var(--flame);
}
.rule--center { margin-left: auto; margin-right: auto; }
.rule--light { background: var(--stone-400); }


/* 4. Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }

.section--cream  { background: var(--cream); }
.section--stone  { background: var(--stone-200); }
.section--navy   { background: var(--navy); color: var(--stone-300); }
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section-head { margin-bottom: var(--sp-7); }
.section-head--center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}


/* 5. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--flame-deep);
  border-color: var(--flame-deep);
  color: var(--white);
}

.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-row--center { justify-content: center; }


/* 6. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--stone-300);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* Brand lockup */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand__place {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1rem; }
  .brand__place { font-size: 0.625rem; }
}

@media (max-width: 380px) {
  .brand__place { display: none; }
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: var(--sp-5); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: var(--sp-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--navy); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(360px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-5);
    background: var(--white);
    border-left: 1px solid var(--stone-300);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 0.32s var(--ease), visibility 0.32s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__item { border-bottom: 1px solid var(--stone-300); }

  .nav__link {
    display: block;
    padding: var(--sp-4) var(--sp-2);
    font-size: 1.0625rem;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    color: var(--flame);
    border-left: 3px solid var(--flame);
    padding-left: var(--sp-4);
  }

  .nav__cta { margin-top: var(--sp-5); }
  .nav__cta .btn { width: 100%; }
}

/* Dim the page behind the open drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 29, 77, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }


/* 7. Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 78vh, 760px);
  padding-block: var(--sp-9);
  background: var(--navy-deep);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Scrim keeps white text legible over the photograph */
/* Dark enough on the left for white text, light enough on the right that the
   stonework still reads as a photograph rather than a flat panel. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(18, 29, 77, 0.88) 0%,
      rgba(18, 29, 77, 0.72) 38%,
      rgba(18, 29, 77, 0.34) 68%,
      rgba(18, 29, 77, 0.18) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(18, 29, 77, 0.25) 0%,
      rgba(18, 29, 77, 0.05) 45%,
      rgba(18, 29, 77, 0.40) 100%
    );
}

/* Below the text column the photo is behind the words, so keep it darker. */
@media (max-width: 900px) {
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(18, 29, 77, 0.80) 0%,
      rgba(18, 29, 77, 0.72) 55%,
      rgba(18, 29, 77, 0.84) 100%
    );
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.hero__content { max-width: 680px; }

.hero__title {
  font-size: var(--fs-hero);
  color: var(--white);
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero__text {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--sp-6);
  max-width: 54ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-400);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--flame);
  flex-shrink: 0;
}

/* Where the line wraps, drop the separator rather than stranding it. */
@media (max-width: 560px) {
  .hero__meta { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
  .hero__meta .dot { display: none; }
}

/* Compact hero for interior pages */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 36vh, 400px);
  padding-block: var(--sp-8);
  background: var(--navy);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 29, 77, 0.93) 0%,
    rgba(18, 29, 77, 0.82) 55%,
    rgba(18, 29, 77, 0.6) 100%
  );
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.page-hero__title {
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.page-hero__text {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 58ch;
  margin: 0;
}

/* Breadcrumb */
.crumbs {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
}
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs span { margin-inline: var(--sp-2); opacity: 0.5; }


/* 8. Section furniture
   ========================================================================== */

/* Narrow band of key facts */
.factbar {
  background: var(--navy);
  color: var(--white);
}
.factbar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  padding-block: var(--sp-6);
}
.factbar__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-inline: var(--sp-4);
  border-left: 3px solid var(--flame);
}
.factbar__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-400);
}
.factbar__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--white);
}
.factbar__note { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); }

/* Full-width call to action */
.cta {
  position: relative;
  padding-block: var(--section-y);
  background: var(--navy-deep);
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--sp-5);
  text-align: center;
}
.cta__title { color: var(--white); }
.cta__text {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--sp-6);
}


/* 9. Cards & grids
   ========================================================================== */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card__title { margin-bottom: var(--sp-3); }
.card__text { color: var(--ink-soft); margin-bottom: 0; }

/* Numbered marker used on ministry cards */
.card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-tint);
  border-radius: 50%;
}

.card--accent { border-top: 3px solid var(--flame); }

/* Value chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-tint);
  border-radius: 100px;
}
.chips--center { justify-content: center; }

/* Creed and the Lord's Prayer: set a little quieter than body copy,
   so they read as liturgy rather than instruction. */
.creed {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: var(--sp-4);
}
.creed:last-child { margin-bottom: 0; }

.creed--verse {
  line-height: 1.9;
  text-align: center;
}

.chips a {
  color: inherit;
  text-decoration: none;
}

/* Lettered sub-points inside the mission card */
.mission-list {
  margin: var(--sp-4) 0 0;
  padding-left: var(--sp-5);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.mission-list li { margin-bottom: var(--sp-3); }
.mission-list li:last-child { margin-bottom: 0; }
.mission-list li::marker { color: var(--flame-deep); font-weight: 700; }
.chips li:has(a) { transition: background-color 0.2s var(--ease); }
.chips li:has(a:hover) { background: var(--navy); }
.chips li:has(a:hover) a { color: var(--white); }


/* 10. Feature rows (image + text)
   ========================================================================== */

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature__media { position: relative; }

.feature__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Thin accent frame offset behind the image */
.feature__media--framed::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--flame);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.feature--reverse .feature__media { order: 2; }

@media (max-width: 760px) {
  .feature--reverse .feature__media { order: 0; }
  .feature__media--framed::before { inset: 12px -12px -12px 12px; }
}


/* 11. Schedule / times
   ========================================================================== */

.times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.time-card {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-left: 4px solid var(--flame);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.time-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.time-card__when {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}
.time-card__note {
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  margin: 0;
}

/* Definition-style schedule list */
.schedule {
  margin: 0;
  border-top: 1px solid var(--stone-300);
}
.schedule__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--stone-300);
}
.schedule__name {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.schedule__when {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  margin: 0;
}


/* 12. Placeholder blocks
   --------------------------------------------------------------------------
   Every piece of copy the church still needs to supply uses this pattern.
   It is deliberately obvious so nothing unfinished reaches the public site.
   Remove the whole .needs-content element once real text replaces it.
   ========================================================================== */

.needs-content {
  position: relative;
  padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
  background: repeating-linear-gradient(
    45deg,
    #fffbea,
    #fffbea 12px,
    #fff8dc 12px,
    #fff8dc 24px
  );
  border: 1px dashed #d4a72c;
  border-left: 4px solid #d4a72c;
  border-radius: var(--radius);
  color: #6b5518;
}

.needs-content__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6d1b;
}
.needs-content__label::before { content: "✎"; font-size: 1rem; }

.needs-content p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 0;
  color: #6b5518;
}
.needs-content p + p { margin-top: var(--sp-3); }

.needs-content--inline {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}

/* On dark sections */
.section--navy .needs-content,
.cta .needs-content {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  border-left-color: var(--stone-400);
  color: var(--stone-300);
}
.section--navy .needs-content p,
.cta .needs-content p { color: var(--stone-300); }
.section--navy .needs-content__label,
.cta .needs-content__label { color: var(--stone-400); }


/* 13. Forms
   ========================================================================== */

.form { display: grid; gap: var(--sp-5); }

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.field__label .req { color: var(--flame); margin-left: 2px; }

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 0.8125rem var(--sp-4);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--stone-400);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__textarea { min-height: 170px; resize: vertical; }

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 107, 0.12);
}

.field__input::placeholder,
.field__textarea::placeholder { color: var(--stone-500); }

.field__hint { font-size: var(--fs-xs); color: var(--ink-faint); }

/* Validation */
.field__error {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--flame-deep);
}
.field.has-error .field__input,
.field.has-error .field__select,
.field.has-error .field__textarea {
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(224, 49, 39, 0.1);
}
.field.has-error .field__error { display: block; }

/* Status message after submit */
.form__status {
  display: none;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form__status.is-visible { display: block; }
.form__status--ok {
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
}
.form__status--warn {
  background: #fff8e1;
  border-left: 4px solid #d4a72c;
  color: #6b5518;
}

/* Honeypot — hidden from people, catches naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* 14. Photo strip & gallery
   ========================================================================== */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--stone-300);
}
.strip__item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.strip__item:hover .strip__img { transform: scale(1.05); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.gallery__item { margin: 0; }
.gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.gallery__caption {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}

/* Divider band showing the leaded-glass windows */
.band {
  position: relative;
  height: clamp(200px, 30vw, 340px);
  overflow: hidden;
}
.band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 29, 77, 0.3),
    rgba(18, 29, 77, 0.55)
  );
}


/* 15. Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: var(--stone-400);
  padding-top: var(--sp-8);
}

.site-footer a { color: var(--stone-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}

.footer__brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer__mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
}
.footer__tagline {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--stone-400);
  max-width: 34ch;
  margin: 0;
}

.footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.footer__address {
  font-style: normal;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--stone-400);
}

/* A white band across the full width, so the designer's logo shows in its
   own colours rather than fighting the navy above it. */
/* Social icon row in the footer */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--stone-300);
  transition: background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}
.social a:hover {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--white);
}
.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__bottom {
  background: var(--white);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-4);
}

.footer__bottom p { margin: 0; }

/* Designer credit: small text beside the logo, the whole thing one link */
.credit {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}
.credit:hover { opacity: 0.8; }

.credit__text {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.credit__logo {
  width: auto;
  height: 26px;
}

@media (max-width: 560px) {
  .footer__bottom-inner {
    justify-content: center;
    text-align: center;
    gap: var(--sp-3);
  }
  .credit__logo { height: 22px; }
}


/* 16. Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Honour the reader's motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .card:hover { transform: none; }
  .strip__item:hover .strip__img { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* No JS? Show everything. */
.no-js .reveal { opacity: 1; transform: none; }


/* 17. Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

/* Contact page: form beside the church details.
   The form column is given more room, and both columns start at the top
   rather than centring against each other. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

/* Postal address inside a card */
.card address,
.address-block {
  font-style: normal;
  line-height: 1.9;
}

/* Telephone number: large and easy to tap on a phone */
.contact-line {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.contact-line a {
  color: var(--navy);
  text-decoration: none;
}
.contact-line a:hover { color: var(--flame-deep); text-decoration: underline; }

.contact-line__who {
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  margin-bottom: 0;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1.35fr 1fr; }
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

.prose > * + * { margin-top: var(--sp-4); }
.prose h3 { margin-top: var(--sp-6); }

/* Simple vertical timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  position: relative;
  padding: 0 0 var(--sp-5) var(--sp-6);
  border-left: 2px solid var(--stone-300);
}
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--flame);
  border: 2px solid var(--white);
  border-radius: 50%;
}
.timeline__when {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--sp-1);
}
.timeline__what { font-weight: 600; color: var(--navy); margin: 0; }


/* 18. Print
   ========================================================================== */

@media print {
  .site-header,
  .nav,
  .nav-toggle,
  .nav-scrim,
  .skip-link,
  .cta,
  .btn,
  .band,
  .strip { display: none !important; }

  body { font-size: 11pt; color: #000; background: #fff; }
  .hero, .page-hero { min-height: auto; padding-block: 1rem; background: none; }
  .hero__bg, .page-hero__bg, .hero__scrim, .page-hero__scrim { display: none; }
  .hero__title, .page-hero__title, .hero__text, .page-hero__text { color: #000; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .section { padding-block: 1rem; }
}
