:root {
  --navy: #00113b;
  --navy-light: #0a1d54;
  --gold: #e6b55b;
  --gold-dark: #cf9c3f;
  --cream: #f8f6f1;
  --text-dark: #1a1a1a;
  --text-muted: #5a5f6e;
  --max-width: min(85vw, 1600px);
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 17, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
}

/* Fixed full-page background photo (shows through the transparent hero,
   then gets covered as opaque sections scroll up over it).
   TODO: replace the gradient below with url("images/worship-photo.jpg") once you have the photo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(230, 181, 91, 0.45), rgba(0, 17, 59, 0.55)),
    url("../images/360_F_476117117_wazBWfOV92TjlaJEx5hGtNL0a2mx3hqI.jpg");
  background-size: cover;
  background-position: center;
}

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.brand span {
  color: var(--gold);
}

/* Mobile-first: base rules below are the small-screen (hamburger) nav;
   the min-width query enhances up to the full horizontal desktop nav. */
.nav-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-links.open {
  max-height: 320px;
}

.nav-links a {
  color: #e9e9ee;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  display: block;
  padding: 14px 24px;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(230, 181, 91, 0.15);
  color: var(--gold);
}

.nav-links a.active {
  color: var(--navy);
  background: var(--gold);
  font-weight: 600;
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    gap: 8px;
    max-height: none;
    overflow: visible;
    background: none;
  }

  .nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
  }
}

/* ---------- Hero ---------- */
/* Background is intentionally translucent so the fixed body::before photo shows through. */
.hero {
  position: relative;
  background: linear-gradient(160deg, rgba(0, 17, 59, 0.72) 0%, rgba(10, 29, 84, 0.72) 100%);
  color: #ffffff;
  padding: 56px 0 40px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero {
    padding: 90px 0 70px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.hero .tagline {
  color: var(--gold);
  font-size: 1.15rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 28px;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #d7dae3;
  font-size: 1.05rem;
}

.hero-kicker {
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-time {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 28px;
}

.hero-caption {
  max-width: 620px;
  margin: 32px auto 0;
  color: #d7dae3;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
}

.hero-secondary {
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.9rem;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  justify-items: center;
}

@media (min-width: 561px) {
  .button-row {
    grid-template-columns: 1fr 1fr;
  }
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  box-shadow: 0 8px 20px rgba(230, 181, 91, 0.35);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Sections ---------- */
/* Explicit opaque background so these cover the fixed hero background photo as they scroll over it. */
section {
  padding: 48px 0;
  background: #ffffff;
}

@media (min-width: 640px) {
  section {
    padding: 64px 0;
  }
}

section.alt {
  background: var(--cream);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: 1.9rem;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--gold);
}

.section-heading p {
  color: var(--text-muted);
}

/* ---------- Section banner (solid color header) ---------- */
.section-banner {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .section-banner {
    padding: 96px 24px;
  }
}

.section-banner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.section-banner p {
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Video embed ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ecebe6;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.card .btn {
  align-self: center;
  margin-top: auto;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card .btn {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* ---------- Announcements (dynamic) ---------- */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.announcement {
  background: #ffffff;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.announcement .date {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.announcement h4 {
  margin: 6px 0 6px;
  font-size: 1.05rem;
}

.announcement p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.15;
  transition: background 0.15s ease;
}

.store-badge:hover {
  background: #222;
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge .badge-text {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.store-badge .badge-text small {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-right: 4px;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .page-header {
    padding: 56px 0 48px;
  }
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 420px;
  opacity: 0.08;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Content blocks ---------- */
.prose {
  max-width: min(75vw, 1100px);
  margin: 0 auto;
}

.prose h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-dark);
}

.prose ul,
.prose ol {
  color: var(--text-dark);
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 10px;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 761px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.rector-bio {
  overflow: auto;
}

.rector-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .rector-photo {
    float: left;
    width: 280px;
    margin: 4px 28px 16px 0;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 480px;
  margin: 32px auto 0;
  text-align: center;
}

@media (min-width: 561px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
  }
}

.stat-row .stat strong {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
  color: var(--navy);
}

.stat-row .stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero .stat-row .stat strong {
  color: #ffffff;
}

.hero .stat-row .stat span {
  color: var(--gold);
}

/* ---------- Giving ---------- */
.giving-hero {
  text-align: center;
  padding-bottom: 24px;
}

.giving-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.giving-note {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Connect / links ---------- */
.card-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.link-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid #ecebe6;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 17, 59, 0.14);
}

.link-card .icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.link-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.link-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link-card-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--gold-dark);
  font-size: 1.4rem;
}

/* ---------- Institute promo ---------- */
.institute-logo {
  max-width: 220px;
  margin: 0 auto;
}

/* ---------- Give / scripture quote ---------- */
.scripture-quote {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 8px 28px;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: center;
  border-left: none;
}

.scripture-quote footer {
  margin-top: 12px;
  font-style: normal;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: #c9cbd6;
  padding: 48px 0 24px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 380px;
  opacity: 0.06;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid a {
  color: #c9cbd6;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #8b8fa3;
}

/* ---------- Modal / Prayer Request form ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 17, 59, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-box h3 {
  margin-bottom: 8px;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
}

.modal-close:hover {
  color: var(--navy);
}

.form-field {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d7d7de;
  border-radius: 6px;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-hint {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-group .field-label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-divider {
  border: none;
  border-top: 1px solid #ecebe6;
  margin: 20px 0;
}

.modal-box-wide {
  max-width: 640px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
}

.form-status.success {
  color: #1a7a3c;
}

.form-status.error {
  color: #b3261e;
}
