:root {
  --blue-950: #08204a;
  --blue-850: #0d3470;
  --blue-700: #155ab6;
  --blue-100: #eaf3ff;
  --white: #ffffff;
  --ink: #13213a;
  --muted: #61718f;
  --line: #d8e6f7;
  --gold: #d8aa4b;
  --teal: #2b9aa0;
  --shadow: 0 18px 60px rgba(8, 32, 74, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 230, 247, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: var(--blue-950);
}

.nav-links a {
  text-decoration: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-950);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 116px clamp(20px, 6vw, 80px) 58px;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("./assets/Hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 32, 74, 0.92) 0%, rgba(8, 32, 74, 0.62) 42%, rgba(8, 32, 74, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 32, 74, 0.56), rgba(8, 32, 74, 0.02) 38%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
}

.hero-logo {
  width: min(190px, 48vw);
  height: auto;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(8, 32, 74, 0.24);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions,
.gallery-heading,
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(21, 90, 182, 0.28);
}

.button.secondary {
  color: var(--blue-950);
  background: var(--white);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.info-band article {
  padding: 28px clamp(20px, 4vw, 46px);
  background: var(--white);
}

.info-band span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-band strong,
.contact-card strong {
  display: block;
  margin: 8px 0;
  color: var(--blue-950);
  font-size: 1.22rem;
}

.info-band p,
.about-grid p,
.values span,
.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(68px, 10vw, 118px) clamp(20px, 6vw, 80px);
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.about-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.about-grid > div:first-child {
  font-size: 1.08rem;
}

.pastor-photo {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pastor-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.pastor-photo figcaption {
  padding: 13px 16px;
  color: var(--blue-950);
  font-size: 0.95rem;
  font-weight: 850;
}

.values {
  display: grid;
  gap: 14px;
}

.values div,
.contact-card,
.contact-info,
.signup-modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(8, 32, 74, 0.08);
}

.values div {
  padding: 20px;
}

.values strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-850);
}

.gallery-section {
  background: var(--blue-100);
}

.gallery-heading {
  justify-content: space-between;
  width: 100%;
}

.gallery-follow {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.gallery-follow a {
  color: var(--blue-700);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link {
  color: var(--blue-700);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.gallery-status {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) center;
  transition: transform 220ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(transparent, rgba(8, 32, 74, 0.84));
  z-index: 1;
}

.gallery-item span {
  position: absolute;
  inset: auto 14px 12px;
  z-index: 2;
  font-weight: 850;
  line-height: 1.25;
}

.contact-form,
.contact-info {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.is-hidden {
  display: none !important;
}

.contact-info strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.25rem;
}

.contact-info span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-info p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-info a {
  color: var(--blue-700);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(21, 90, 182, 0.18);
  border-color: var(--blue-700);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.contact-card {
  padding: 26px;
}

.site-footer {
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.86);
  background: var(--blue-950);
}

.site-footer a {
  color: var(--white);
  font-weight: 850;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-shell.is-visible {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 74, 0.66);
  backdrop-filter: blur(10px);
}

.signup-modal {
  position: relative;
  width: min(480px, 100%);
  padding: 30px;
}

.signup-modal h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 6vw, 2.55rem);
}

.signup-modal p {
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--blue-950);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.checkbox-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .info-band,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Live GitHub contact/gallery cleanup */
.contact-form {
  display: none !important;
}

.contact-card p {
  white-space: pre-line;
}

.gallery-follow a {
  font-size: 0;
}

.gallery-follow a::after {
  content: "Instagram";
  font-size: 1rem;
}

.gallery-follow [data-content="gallery.followSuffix"] {
  display: none;
}


.gallery-follow [data-content="gallery.followSuffix"] {
    display: inline;
}


.gallery-follow span {
    display: inline !important;
}


.contact-info > strong,
.contact-card > strong {
    display: none;
}


.hero-bg {
    background-image: url("./assets/Hero.jpg") !important;
}


.contact-card p {
    font-size: 0;
}

.contact-card p::before {
    content: "Stay in the know about all our services and events";
    font-size: 1.05rem;
}


.gallery-follow a {
      font-size: inherit;
}

.gallery-follow a::after {
      content: none;
}
