:root {
  --ink: #182435;
  --muted: #647080;
  --blue: #167fbd;
  --blue-deep: #12335a;
  --gold: #d9ad3a;
  --wine: #7b2f4f;
  --cloud: #f6fafc;
  --paper: #ffffff;
  --line: rgba(24, 36, 53, 0.1);
  --shadow: 0 18px 46px rgba(18, 51, 90, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  font-family: var(--sans);
  line-height: 1.55;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--blue-deep);
  border-radius: 6px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 48px);
  color: var(--paper);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(18, 51, 90, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 152px));
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(9, 25, 43, 0.2));
}

.brand span {
  display: inline-block;
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.15;
  text-wrap: balance;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a {
  text-decoration: none;
  opacity: 0.92;
}

.main-nav a:hover {
  color: var(--gold);
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.menu-active .main-nav a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 76px) 64px;
  color: var(--paper);
}

.dove-accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  width: clamp(96px, 14vw, 190px);
  height: auto;
  opacity: 0.16;
  filter: drop-shadow(0 18px 32px rgba(255, 255, 255, 0.18)) drop-shadow(0 12px 30px rgba(18, 51, 90, 0.16));
  animation: doveFloat 7s ease-in-out infinite;
}

.hero-dove {
  top: clamp(96px, 18vh, 170px);
  right: clamp(18px, 8vw, 110px);
  width: clamp(120px, 18vw, 250px);
  opacity: 0.2;
  transform: rotate(-8deg);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center;
  animation: imageBreath 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 25, 43, 0.84), rgba(9, 25, 43, 0.48) 50%, rgba(9, 25, 43, 0.14)),
    linear-gradient(0deg, rgba(9, 25, 43, 0.64), rgba(9, 25, 43, 0.04) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin-inline: auto;
  text-align: center;
  animation: heroReveal 920ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.hero-logo {
  width: clamp(118px, 16vw, 164px);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.22));
}

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

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 8px;
  font-weight: 740;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

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

.button:hover::after {
  transform: translateX(120%);
}

.button-primary {
  color: #142033;
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(217, 173, 58, 0.25);
}

.button-secondary {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button-uber {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #111111, #2b2b2b);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.section-heading h2,
.story-copy h2,
.location-layout h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.service-strip {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(22, 127, 189, 0.05), rgba(255, 255, 255, 0)),
    var(--paper);
}

.service-strip .section-inner,
.ministries-section .section-inner,
.location-section .section-inner {
  position: relative;
  z-index: 2;
}

.section-dove {
  top: 22px;
  right: clamp(18px, 7vw, 92px);
  width: clamp(92px, 11vw, 148px);
  opacity: 0.18;
  animation-delay: -1.4s;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.schedule-card {
  min-height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(18, 51, 90, 0.08);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.schedule-card:hover {
  border-color: rgba(22, 127, 189, 0.2);
  box-shadow: 0 18px 42px rgba(18, 51, 90, 0.12);
  transform: translateY(-5px);
}

.schedule-card.highlight {
  color: var(--paper);
  border-color: rgba(217, 173, 58, 0.42);
  background: linear-gradient(135deg, var(--blue-deep), #1b456f 62%, var(--wine));
}

.day {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.schedule-card.highlight .day {
  color: var(--gold);
}

.schedule-card strong {
  margin: 24px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
}

.schedule-card p {
  margin: 0;
  color: var(--muted);
}

.schedule-card.highlight p {
  color: rgba(255, 255, 255, 0.82);
}

.story-section,
.ministries-section,
.gallery-section,
.location-section {
  padding: clamp(68px, 8vw, 104px) 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.story-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.leader-feature {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #122033;
  box-shadow: var(--shadow);
  transition:
    transform 320ms ease,
    box-shadow 320ms ease;
}

.leader-feature:hover {
  box-shadow: 0 22px 54px rgba(18, 51, 90, 0.16);
  transform: translateY(-4px);
}

.leader-feature img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.leader-feature figcaption {
  display: grid;
  gap: 4px;
  padding: 20px;
  color: var(--paper);
}

.leader-feature span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.ministries-section {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f3f8fb 74%, #ffffff);
}

.ministries-dove {
  top: 52px;
  left: clamp(16px, 5vw, 78px);
  width: clamp(90px, 10vw, 142px);
  opacity: 0.14;
  transform: scaleX(-1) rotate(6deg);
  animation-delay: -3s;
}

.ministries-section .section-heading h2 {
  color: var(--ink);
}

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ministry-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(18, 51, 90, 0.08);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.ministry-card:hover {
  border-color: rgba(217, 173, 58, 0.28);
  box-shadow: 0 22px 48px rgba(18, 51, 90, 0.12);
  transform: translateY(-6px);
}

.ministry-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
  transition: transform 520ms ease;
}

.ministry-card:hover img {
  transform: scale(1.035);
}

.ministry-card:nth-child(2) img {
  object-position: center 58%;
}

.ministry-card div {
  padding: 22px;
}

.ministry-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.ministry-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(210px, 22vw, 282px);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 51, 90, 0.08);
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: 0 18px 44px rgba(18, 51, 90, 0.14);
  transform: translateY(-3px);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 220ms ease;
}

.gallery-item:first-child img {
  object-position: center top;
}

.gallery-item:nth-child(4) img {
  object-position: center 58%;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.location-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(13, 38, 64, 0.94), rgba(123, 47, 79, 0.84)),
    image-set(url("assets/cultos-3-960.jpg") 1x, url("assets/cultos-3-1400.jpg") 2x) center / cover;
}

.location-dove {
  right: clamp(18px, 8vw, 112px);
  bottom: 24px;
  width: clamp(120px, 16vw, 230px);
  opacity: 0.14;
  animation-delay: -2.2s;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
}

.location-layout h2 {
  color: var(--paper);
}

address {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
  font-style: normal;
}

.location-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.location-panel::before {
  content: "";
  position: absolute;
  top: -38px;
  right: -36px;
  width: 120px;
  height: 120px;
  background: url("assets/dove-accent-320.png") center / contain no-repeat;
  opacity: 0.12;
  transform: rotate(-10deg);
}

.location-panel span {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.location-panel p {
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.84);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding: 24px clamp(20px, 4vw, 48px);
  background: #121d2a;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--paper);
  font-weight: 800;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 18, 30, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.schedule-card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

.leader-feature.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.ministry-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.gallery-item.reveal.is-visible:hover,
.gallery-item.reveal.is-visible:focus-visible {
  transform: translateY(-3px);
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes imageBreath {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

@keyframes doveFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

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

  .main-nav {
    position: fixed;
    top: 73px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 14px;
    border-radius: 6px;
  }

  .main-nav a:hover {
    background: var(--cloud);
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-dove {
    top: 90px;
    right: 10px;
    width: 138px;
    opacity: 0.14;
  }

  .hero-media img {
    object-position: 52% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(9, 25, 43, 0.86), rgba(9, 25, 43, 0.34)),
      linear-gradient(90deg, rgba(9, 25, 43, 0.72), rgba(9, 25, 43, 0.28));
  }

  .section-heading.compact,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-grid,
  .ministries-grid,
  .story-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .leader-feature {
    width: min(520px, 100%);
    justify-self: center;
  }

  .leader-feature img {
    aspect-ratio: 4 / 5;
  }

  .ministry-card img {
    aspect-ratio: 16 / 11;
  }

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

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .section-dove,
  .ministries-dove,
  .location-dove {
    width: 112px;
    opacity: 0.11;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 104px 18px 44px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.7rem);
  }

  .hero-logo {
    width: 118px;
  }

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

  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .schedule-card {
    min-height: 178px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: min(68vw, 280px);
  }

  .location-panel {
    padding: 22px;
  }

  .dove-accent {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
