:root {
  --navy: #071f3e;
  --navy-2: #0d2d57;
  --cream: #fbf3e8;
  --paper: #fffdf9;
  --ink: #081d3d;
  --body: #20232a;
  --muted: #5f6470;
  --red: #a51f25;
  --red-dark: #87191e;
  --gold: #d8ae62;
  --gold-soft: #f4e9d8;
  --line: #e7cfad;
  --shadow: 0 20px 45px rgba(10, 22, 38, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 174, 98, 0.28), transparent 36rem),
    linear-gradient(180deg, #ffffff, #f5efe7 38%, #ffffff);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(7, 31, 62, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
}

.site-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(7, 31, 62, 0.12);
}

.topbar,
.site-footer {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22rem),
    linear-gradient(135deg, var(--navy), #04152e 82%);
  color: white;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.3rem);
}

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

.logo-mark {
  width: clamp(58px, 11vw, 78px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}
.brand-copy strong {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4.7vw, 2rem);
  letter-spacing: 0.025em;
}
.brand-support {
  margin-top: 0.42rem;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(0.92rem, 2.8vw, 1.2rem);
  color: #f8f1e7;
}
.brand-support-short { display: none; }
.brand-copy em {
  margin-top: 0.5rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-button {
  display: grid;
  gap: 6px;
  width: 52px;
  border: 0;
  padding: 0.35rem;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(230px, 1.05fr);
  align-items: stretch;
  padding: clamp(2rem, 6vw, 3.2rem) clamp(1.25rem, 4vw, 2.25rem) 1.4rem;
  background:
    linear-gradient(90deg, rgba(251, 243, 232, 0.98) 0%, rgba(251, 243, 232, 0.94) 45%, rgba(251, 243, 232, 0.2) 68%),
    radial-gradient(circle at 82% 16%, rgba(216, 174, 98, 0.32), transparent 22rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    96deg,
    rgba(251, 243, 232, 1) 0%,
    rgba(251, 243, 232, 0.98) 38%,
    rgba(251, 243, 232, 0.82) 49%,
    rgba(251, 243, 232, 0.18) 63%,
    transparent 72%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 420px;
}

.kicker,
.section-label,
.motto {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.kicker {
  color: #222733;
  font-size: clamp(1.05rem, 3.4vw, 1.55rem);
  line-height: 1.55;
}
.kicker span { color: var(--gold); margin-right: 0.35rem; }

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  color: var(--navy);
}

h1 {
  margin: 0.5rem 0 0.6rem;
  font-size: clamp(4rem, 11vw, 6.35rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.motto {
  color: var(--red);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.rule,
.footer-rule {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 360px);
  margin: 1rem 0;
  color: var(--gold);
}
.rule span,
.footer-rule span { height: 1px; flex: 1; background: var(--line); }

.intro {
  max-width: 355px;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.45;
}

.actions { display: grid; gap: 0.8rem; max-width: 360px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 64px;
  border-radius: 0.65rem;
  border: 2px solid var(--red);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(116, 19, 22, 0.14);
  cursor: pointer;
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #be252b, var(--red-dark));
}
.button-secondary {
  color: var(--red);
  background: rgba(255, 253, 249, 0.72);
}
.button span { font-size: 1.55rem; line-height: 1; }

.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(64%, 600px);
  height: 100%;
  margin: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, #000 28%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, #000 28%, #000 100%);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(1.02) contrast(1.03);
}

.content-stack {
  display: grid;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(1.2rem, 4vw, 2rem);
}

.update-card,
.gallery-card,
.info-card {
  position: relative;
  border-radius: 1.05rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(231, 207, 173, 0.78);
}

.elevated,
.info-card { box-shadow: var(--shadow); }

.update-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: clamp(1.25rem, 4vw, 1.8rem);
  margin-top: -1.2rem;
  z-index: 3;
}

.icon-bubble {
  display: grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 800;
}
.icon-bubble.outline,
.icon-bubble.gold { color: var(--red); background: var(--gold-soft); }
.icon-bubble.navy { color: white; background: var(--navy); }
.icon-bubble.service-icon { color: var(--red); background: linear-gradient(135deg, #f7e9c5, #d8ae62); }

.section-label {
  color: var(--red);
  font-size: 0.95rem;
}

.update-card h2 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(2rem, 7vw, 2.9rem);
}
.update-card p,
.info-card p {
  color: var(--body);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}
.text-link span { font-size: 1.9rem; line-height: 0; }

.gallery-card { padding: 1rem; }
.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.heading-left { display: flex; align-items: center; gap: 0.9rem; }
.gallery-heading h2,
.info-card h2,
.card-title {
  display: block;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.gallery-heading a {
  color: var(--red);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.gallery-card .icon-bubble { width: 50px; font-size: 1.35rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-left: 5rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  border-radius: 0.55rem;
  box-shadow: 0 8px 18px rgba(8, 29, 61, 0.12);
}

.info-card {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.prayer-card { cursor: pointer; }
.prayer-card:hover,
.prayer-card:focus-visible { border-color: var(--gold); }
.info-card p,
.card-description {
  display: block;
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.45;
}
.arrow {
  color: var(--navy);
  font-size: 3rem;
  line-height: 1;
}
.service-card {
  box-shadow: none;
  background: rgba(255, 248, 238, 0.78);
}
.heart-outline {
  color: var(--gold);
  font-size: clamp(4rem, 12vw, 6rem);
  line-height: 1;
}

.community-prayers {
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: clamp(1.25rem, 4vw, 1.8rem);
  background: rgba(255, 253, 249, 0.92);
}
.community-prayers h2 { margin: 0.25rem 0 1rem; font-size: clamp(1.7rem, 5vw, 2.35rem); }
.community-prayer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.community-prayer {
  margin: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0.65rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--gold-soft);
}
.community-prayer p { margin: 0; line-height: 1.55; }
.community-prayer cite { display: block; margin-top: 0.75rem; color: var(--red); font-style: normal; font-weight: 800; }

.prayer-dialog {
  width: min(92vw, 650px);
  max-height: min(90vh, 820px);
  border: 0;
  border-radius: 1.35rem;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(4, 21, 46, 0.35);
  overflow: auto;
}
.prayer-dialog::backdrop {
  background: rgba(4, 21, 46, 0.72);
  backdrop-filter: blur(5px);
}
body:has(.prayer-dialog[open]) { overflow: hidden; }
.prayer-modal {
  position: relative;
  padding: clamp(1.35rem, 5vw, 2.25rem);
  background:
    radial-gradient(circle at top left, rgba(216, 174, 98, 0.18), transparent 18rem),
    var(--paper);
}
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold-soft);
  font: 400 2rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.modal-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2.8rem;
}
.modal-heading .icon-bubble { width: 64px; font-size: 1.7rem; }
.modal-heading h2,
.prayer-success h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.05;
}
#prayer-dialog-description {
  margin: 1.1rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}
.prayer-form,
.prayer-form label { display: grid; }
.prayer-form { gap: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.prayer-form label { gap: 0.45rem; font-weight: 800; }
.prayer-form label small { color: var(--muted); font-weight: 500; }
.prayer-form input,
.prayer-form textarea {
  width: 100%;
  border: 1px solid #d7c4aa;
  border-radius: 0.7rem;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.prayer-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.prayer-form input:focus,
.prayer-form textarea:focus {
  outline: 3px solid rgba(216, 174, 98, 0.32);
  border-color: var(--gold);
}
.prayer-form [aria-invalid="true"] { border-color: var(--red); }
.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 0.7rem !important;
  font-weight: 600 !important;
  line-height: 1.4;
}
.consent-row input { width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--red); }
.privacy-note {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  background: var(--gold-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--red);
  font-weight: 700;
}
.submit-prayer { width: 100%; }
.submit-prayer:disabled { opacity: 0.68; cursor: wait; }
.prayer-success { padding: 2rem 0 0.5rem; text-align: center; }
.success-heart {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 2rem;
}
.prayer-success p { margin: 0.8rem auto 1.4rem; color: var(--muted); line-height: 1.5; }

.site-footer {
  padding: 1.5rem 1.25rem 1.6rem;
  text-align: center;
}
.footer-logo {
  width: 54px;
  height: auto;
  margin-bottom: 0.55rem;
}
.footer-brand {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 700;
}
.footer-support {
  margin: 0.28rem 0 0;
  color: #f4dfb5;
  font-size: 0.96rem;
}
.site-footer .footer-rule { margin: 0.9rem auto 0.65rem; max-width: 360px; }
.footer-message {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-style: italic;
}
.footer-note {
  max-width: 660px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-domain {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.copyright {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .site-shell { box-shadow: none; }
  .topbar { min-height: 104px; }
  .hero {
    min-height: 620px;
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .hero-photo {
    right: 0;
    width: 78%;
    opacity: 0.98;
  }
  .hero-copy { max-width: 59%; }
  h1 { font-size: clamp(3.65rem, 13vw, 5rem); }
  .intro { font-size: 1.02rem; }
  .actions { width: min(360px, calc(100vw - 2rem)); }
  .content-stack { margin-top: 0; }
  .update-card { grid-template-columns: 82px 1fr; }
  .gallery-grid { padding-left: 4.5rem; gap: 0.65rem; }
}

@media (max-width: 520px) {
  .brand { gap: 0.7rem; }
  .logo-mark { width: 56px; }
  .brand-copy strong { font-size: 1.22rem; }
  .brand-support { font-size: 0.84rem; }
  .brand-copy em { font-size: 0.73rem; }
  .menu-button { width: 44px; }
  .prayer-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); border-radius: 1rem; }
  .form-grid,
  .community-prayer-list { grid-template-columns: 1fr; }
  .modal-heading { align-items: flex-start; }
  .hero {
    min-height: 655px;
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }
  .hero::before {
    background: linear-gradient(
      98deg,
      rgba(251, 243, 232, 1) 0%,
      rgba(251, 243, 232, 0.98) 35%,
      rgba(251, 243, 232, 0.78) 48%,
      rgba(251, 243, 232, 0.12) 64%,
      transparent 72%
    );
  }
  .hero-copy { max-width: 64%; }
  h1 { font-size: clamp(3.3rem, 13vw, 4.25rem); }
  .kicker { font-size: 0.98rem; }
  .motto { font-size: 1.15rem; }
  .hero-photo {
    right: 0;
    width: 88%;
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.2) 12%, #000 27%, #000 100%);
    mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.2) 12%, #000 27%, #000 100%);
  }
  .update-card {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }
  .update-card .icon-bubble { width: 62px; }
  .gallery-heading { align-items: flex-start; }
  .gallery-heading a { font-size: 0.9rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding-left: 0; }
  .info-card { grid-template-columns: 60px 1fr auto; gap: 0.75rem; }
  .info-card .icon-bubble { width: 54px; font-size: 1.4rem; }
  .heart-outline { display: none; }
}

@media (max-width: 375px) {
  .topbar { padding-inline: 0.85rem; }
  .logo-mark { width: 50px; }
  .brand-copy strong { font-size: 1.08rem; }
  .brand-support-full { display: none; }
  .brand-support-short { display: block; }
  .brand-copy em { display: none; }
}

@media (min-width: 981px) {
  .site-shell { margin-block: 1.5rem; border-radius: 28px; }
}
