/* ==========================================================================
   Winona Methodist Church
   ========================================================================== */

:root {
  --navy-950: #111829;
  --navy-900: #172036;
  --navy-800: #1f2b44;
  --navy-700: #283756;
  --navy-600: #34466b;
  --gold-400: #dcc088;
  --gold-500: #c9a45c;
  --gold-600: #a8843f;
  --gold-700: #86662c;
  --cream-50: #fcfaf6;
  --cream-100: #f6f1e8;
  --cream-200: #ece3d4;
  --ink: #1b2233;
  --text: #343c4d;
  --muted: #5b6474;
  --line: #e6ddce;
  --white: #ffffff;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgb(17 24 41 / .05), 0 4px 14px rgb(17 24 41 / .05);
  --shadow: 0 20px 44px -20px rgb(17 24 41 / .3);
  --shadow-lg: 0 40px 80px -32px rgb(17 24 41 / .45);

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

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

a {
  color: var(--gold-700);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s;
}
a:hover { color: var(--navy-800); }

h1, h2, h3 {
  margin: 0 0 .6em;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw + .6rem, 4.6rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.1em; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Shared pieces ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--gold-400); }

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream-100); }
.section--navy {
  background: var(--navy-800);
  color: rgb(255 255 255 / .8);
}
.section--navy h2,
.section--navy h3 { color: #fff; }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head > p:last-child { color: var(--muted); margin-bottom: 0; }
.section-head--light > p:last-child { color: rgb(255 255 255 / .75); }

.lead {
  font-size: 1.18em;
  line-height: 1.6;
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-800);
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: .15rem;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--gold-700); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .8rem 1.55rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  box-shadow: 0 12px 26px -12px rgb(201 164 92 / .9);
}

.btn--ghost {
  border-color: rgb(255 255 255 / .6);
  background: rgb(255 255 255 / .08);
  color: #fff;
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-900); }

.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-600); color: #fff; }

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

.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgb(255 255 255 / .97);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgb(17 24 41 / .35);
  color: var(--ink);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
/* Transparent over the hero photo until the page is scrolled */
.js .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand__mark {
  width: 22px;
  height: 33px;
  flex: none;
  color: var(--gold-600);
}
.js .site-header:not(.is-scrolled):not(.is-open) .brand__mark { color: var(--gold-400); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand__sub {
  margin-top: .32rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  position: relative;
  padding: .4rem 0;
  color: inherit;
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nav__phone .icon { width: 1.05em; height: 1.05em; }
.nav__phone:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-right: -.5rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }
.is-open .nav-toggle .icon--open { display: none; }
.is-open .nav-toggle .icon--close { display: block; }

@media (max-width: 1040px) {
  .js .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: .5rem var(--gutter) 1.5rem;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 40px -24px rgb(17 24 41 / .45);
    border-top: 1px solid var(--line);
  }
  .is-open .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav__list a::after { display: none; }
  .nav__phone { justify-content: center; padding: .8rem 1rem; font-size: 1.05rem; }
  /* Without JavaScript the menu can't open, so the page simply scrolls */
  html:not(.js) .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: calc(var(--header-h) + 3rem) 0 9rem;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 45%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgb(17 24 41 / .9) 0%, rgb(17 24 41 / .72) 45%, rgb(17 24 41 / .3) 100%),
    linear-gradient(0deg, rgb(17 24 41 / .6) 0%, transparent 45%);
}
.hero__content > * { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero__lead {
  max-width: 34em;
  margin-bottom: 2.1rem;
  font-size: clamp(1.1rem, .8vw + .95rem, 1.35rem);
  line-height: 1.6;
  color: rgb(255 255 255 / .9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 700px) {
  .hero { min-height: 88vh; padding-bottom: 8rem; }
  .hero::before {
    background: linear-gradient(180deg, rgb(17 24 41 / .55) 0%, rgb(17 24 41 / .78) 55%, rgb(17 24 41 / .9) 100%);
  }
}

/* ---------- Church information: service times card + details + map ---------- */
.info { padding-top: 0; }
#info { scroll-margin-top: calc(var(--header-h) + 6.5rem); }
.times {
  position: relative;
  z-index: 2;
  margin-top: -5.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.times__card {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.times__intro .eyebrow { margin-bottom: .35rem; }
.times__intro h2 { margin: 0; font-size: 1.65rem; }
.times__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.times__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  background: var(--cream-100);
  color: var(--gold-700);
}
.times__icon .icon { width: 24px; height: 24px; }
.times__icon .icon--cross { width: 16px; height: 24px; }
.times__label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.times__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
}
.times__sub {
  display: block;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .times__card { grid-template-columns: repeat(3, 1fr); }
  .times__intro { grid-column: 1 / -1; }
  .times__intro + .times__item { padding-left: 0; border-left: 0; }
}
@media (max-width: 680px) {
  .times { margin-top: -4.5rem; }
  .times__card { grid-template-columns: 1fr; gap: 0; padding: 1.5rem 1.4rem .5rem; }
  .times__intro { margin-bottom: 1rem; }
  .times__item,
  .times__intro + .times__item {
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Welcome ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split__text > :last-child { margin-bottom: 0; }
.split__media { position: relative; isolation: isolate; margin: 0; }
.split__media img {
  width: 100%;
  aspect-ratio: 704 / 609;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -22px;
  bottom: -22px;
  width: 62%;
  height: 62%;
  border-radius: var(--radius-lg);
  background: var(--cream-200);
}
.split__media::after {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 64px;
  height: 96px;
  background:
    linear-gradient(var(--gold-500), var(--gold-500)) 50% 0 / 25% 100% no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 0 30% / 100% 16.667% no-repeat;
  opacity: .9;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media::before,
  .split__media::after { display: none; }
}

/* ---------- Mission ---------- */
.mission__head { max-width: 980px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.mission__head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.mission__statement {
  margin: 0;
  font-size: clamp(1.85rem, 2.9vw + 1rem, 3.2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.mission__statement em { font-style: italic; color: var(--gold-400); }

.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgb(255 255 255 / .14);
}
.mission__card { position: relative; }
.mission__card h3 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.mission__kicker {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1vw + 1rem, 1.55rem);
  line-height: 1.4;
  color: #fff;
}
.mission__card > :last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .mission__grid { grid-template-columns: 1fr; }
}

/* ---------- Ministries ---------- */
.verse {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 640px;
  padding: 0;
}
.verse p {
  margin-bottom: .6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}
.verse cite {
  font-size: .82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.75rem;
}
@media (max-width: 1080px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .programs { grid-template-columns: 1fr; } }

.program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.program__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-700);
}
.program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.program__badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .96);
  box-shadow: 0 4px 12px rgb(17 24 41 / .18);
  color: var(--navy-800);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.program__badge--new {
  left: auto;
  right: .9rem;
  background: var(--gold-500);
  color: var(--navy-900);
}

/* Tablets: an odd last card spans the full row, with its artwork on the left */
@media (min-width: 701px) and (max-width: 1080px) {
  .program:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .program:last-child:nth-child(odd) .program__media { flex: 0 0 42%; aspect-ratio: auto; }
}

/* Header cropped from a flier that has a white background (Tweens) */
.program__media--flier {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* Youth Bible Study header artwork */
.ybs-art__frame {
  position: absolute;
  inset: 12% 7%;
  display: flex;
  align-items: center;
  padding: 0 7%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08), inset 0 0 0 1px rgb(0 0 0 / .08);
}
.ybs-art__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.3vw, 2.5rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / .45), 0 1px 2px rgb(0 0 0 / .5);
}
.ybs-art__title span:nth-child(2) { padding-left: .8em; }
.ybs-art__title span:nth-child(3) { padding-left: 1.6em; }

.program__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.7rem;
}
.program__title { margin-bottom: .75rem; font-size: 1.75rem; }
.program__meta {
  display: grid;
  gap: .45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.program__meta li { display: flex; align-items: flex-start; gap: .6rem; }
.program__meta .icon { width: 18px; height: 18px; margin-top: .12em; color: var(--gold-600); }
.program__body p { font-size: .98rem; color: var(--muted); }
.program__theme {
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  font-size: .93rem !important;
  line-height: 1.6;
}
.program__theme strong { color: var(--ink); }
.program__next {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .2rem 0 1.1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: #fff !important;
  font-size: .95rem !important;
  font-weight: 500;
  line-height: 1.4;
}
.program__next .icon { width: 18px; height: 18px; color: var(--gold-400); }
.program__next strong { font-weight: 700; color: var(--gold-400); white-space: nowrap; }
.program__next[hidden] { display: none; }

.dates__label {
  margin-bottom: .65rem !important;
  font-size: .92rem !important;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink) !important;
}
.dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
.dates li {
  padding: .45rem .7rem;
  border: 1px solid var(--cream-200);
  border-radius: 10px;
  background: var(--cream-100);
  color: var(--navy-800);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
}
/* is-past / is-next are added by main.js, based on today's date */
.dates li.is-past {
  border-color: var(--line);
  background: transparent;
  color: #8d94a1;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: rgb(141 148 161 / .75);
}
.dates li:not(.is-past) time.is-past {
  color: #8d94a1;
  font-weight: 500;
  text-decoration: line-through;
}
.dates li.is-next {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-900);
}
.dates li.is-next time.is-past { color: rgb(23 32 54 / .55); }

.dates__note {
  margin: -.6rem 0 1.2rem !important;
  font-size: .85rem !important;
  line-height: 1.5;
}

.flier-link { align-self: flex-start; margin-bottom: 1.3rem; }

.tag-new {
  display: inline-block;
  margin-left: .3rem;
  padding: .12rem .45rem;
  border-radius: 5px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: .1em;
}
.program__contact {
  margin: 0 !important;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .93rem !important;
  line-height: 1.6;
}
.program__contact strong { color: var(--ink); }
.program__contact a { font-weight: 600; white-space: nowrap; }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 920px;
  margin: 2.25rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--gold-600);
  border-radius: var(--radius);
  background: var(--cream-50);
  font-size: .98rem;
}
.form-note p { margin: 0; }
.form-note strong { color: var(--ink); }
.form-note__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--cream-100);
  color: var(--gold-700);
}
.form-note__icon .icon { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .form-note { flex-direction: column; gap: .8rem; padding: 1.25rem; }
}

/* ---------- Staff ---------- */
.staff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
}
@media (max-width: 860px) {
  .staff__grid { grid-template-columns: 1fr; max-width: 520px; }
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.person__avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
  box-shadow: 0 0 0 6px var(--cream-100), 0 0 0 7px var(--cream-200);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.person__avatar svg { width: 26px; height: 39px; }
.person h3 { margin-bottom: .3rem; font-size: 1.5rem; }
.person__role {
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.person__email {
  margin-bottom: 1.4rem;
  font-size: .98rem;
  overflow-wrap: anywhere;
}
.person .btn { margin-top: auto; }

/* Phones: avatar beside the name to keep the cards compact */
@media (max-width: 860px) {
  .person {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1.2rem;
    padding: 1.5rem;
    text-align: left;
  }
  .person__avatar {
    grid-row: span 3;
    width: 76px;
    height: 76px;
    margin: 0;
    font-size: 1.6rem;
  }
  .person__avatar svg { width: 20px; height: 30px; }
  .person h3 { margin-bottom: .15rem; font-size: 1.35rem; }
  .person__role { margin-bottom: .35rem; }
  .person__email { margin-bottom: 0; }
  .person .btn { grid-column: 1 / -1; justify-self: start; margin-top: 1.2rem; }
}

/* ---------- Watch ---------- */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 700px) { .stream-grid { grid-template-columns: 1fr; } }

.stream-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 2rem;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .05);
  color: #fff;
  text-decoration: none;
  transition: background-color .25s, border-color .25s, transform .25s;
}
.stream-card:hover {
  border-color: rgb(255 255 255 / .28);
  background: rgb(255 255 255 / .09);
  color: #fff;
  transform: translateY(-3px);
}
.stream-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 16px;
  color: #fff;
}
.stream-card__icon .icon { width: 30px; height: 30px; }
.stream-card--youtube .stream-card__icon { background: #e62117; }
.stream-card--facebook .stream-card__icon { background: #1877f2; }
@media (max-width: 560px) {
  .stream-card { padding: 1.5rem; }
  .stream-card__icon { width: 50px; height: 50px; margin-bottom: .75rem; }
}
.stream-card__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.stream-card__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.25;
}
.stream-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-400);
}
.stream-card__cta .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.stream-card:hover .stream-card__cta .icon { transform: translateX(4px); }

.devotionals { max-width: 980px; margin: 3.5rem auto 0; text-align: center; }
.devotionals h3 {
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.devotionals__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px) { .devotionals__links { grid-template-columns: 1fr; } }
.devo-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy-800);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.devo-link:hover { color: var(--navy-800); transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgb(0 0 0 / .6); }
.devo-link__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--cream-100);
  color: var(--gold-700);
}
.devo-link__icon .icon { width: 22px; height: 22px; }
.devo-link__ext { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }

/* ---------- Events ---------- */
.calendar-card {
  padding: clamp(.4rem, 1.2vw, .9rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.calendar-card iframe {
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: var(--radius);
}
@media (max-width: 640px) { .calendar-card iframe { height: 560px; } }
.calendar-link { margin: 1.25rem 0 0; text-align: center; font-size: .98rem; }
.calendar-link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.calendar-link .icon { width: 1em; height: 1em; }

/* ---------- Gallery ---------- */
.gallery__eyebrow { display: flex; justify-content: center; }
.gallery__eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr .95fr;
  grid-template-rows: repeat(2, clamp(180px, 22vw, 270px));
  gap: 1rem;
}
.gallery__grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-100);
}
.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.gallery__grid figure:hover img { transform: scale(1.04); }
.g-story   { grid-column: 1 / 3; grid-row: 1; }
.g-kids    { grid-column: 3; grid-row: 1 / 3; }
.g-easter  { grid-column: 1; grid-row: 2; }
.g-bowling { grid-column: 2; grid-row: 2; }

@media (max-width: 700px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 190px 170px 170px;
    gap: .75rem;
  }
  .g-story   { grid-column: 1 / 3; grid-row: 1; }
  .g-kids    { grid-column: 2; grid-row: 2 / 4; }
  .g-easter  { grid-column: 1; grid-row: 2; }
  .g-bowling { grid-column: 1; grid-row: 3; }
}

/* ---------- Visit ---------- */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
  margin: .5rem 0 2.2rem;
}
.info-list dt {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.info-list dt .icon { width: 16px; height: 16px; }
.info-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.info-list dd a { font-weight: 600; overflow-wrap: anywhere; }
.info-list__wide { grid-column: 1 / -1; }
.visit__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.visit__map {
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-200);
  box-shadow: var(--shadow);
}
.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map, .visit__map iframe { min-height: 360px; }
}
@media (max-width: 520px) {
  .info-list { grid-template-columns: 1fr; gap: 1.3rem; }
  .visit__actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 4.5rem 0 2rem;
  background: var(--navy-950);
  color: rgb(255 255 255 / .7);
  font-size: .98rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr .8fr;
  gap: 2.5rem;
}
.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.brand--footer { margin-bottom: 1.4rem; color: #fff; }
.brand--footer:hover { color: #fff; text-decoration: none !important; }
.brand--footer .brand__mark { color: var(--gold-500); }
.footer__mission {
  max-width: 30em;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  color: rgb(255 255 255 / .88);
}
.footer__tagline {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .55);
}
.social { display: flex; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: #fff;
  transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--gold-500); color: var(--navy-900); }
.social .icon { width: 20px; height: 20px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .88rem;
}
.footer__bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .7s ease, translate .7s ease;
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 404 page ---------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  background: var(--cream-100);
  text-align: center;
}
.notfound__mark { width: 40px; height: 60px; margin: 0 auto 1.5rem; color: var(--gold-600); }
.notfound p { max-width: 32em; margin-inline: auto; color: var(--muted); }
.notfound .btn { margin-top: 1rem; }
