:root {
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --bg: #f4f4f4;
  --bg-alt: #e4e4e4;
  --ink: #201714;
  --muted: #635a55;
  --primary: #83171d;
  --primary-deep: #5c0f13;
  --secondary: #17837d;
  --accent: #834717;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.9);
  --stroke: rgba(131, 23, 29, 0.18);
  --shadow: 0 24px 60px rgba(32, 23, 20, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(23, 131, 125, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(131, 23, 29, 0.2), transparent 55%);
  line-height: 1.65;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/flair-pattern-light.png");
  background-size: 380px;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 244, 244, 0.7), rgba(244, 244, 244, 0.95));
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 16px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 2.4vw + 2rem, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 1.8vw + 1.4rem, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.8rem);
}

strong {
  font-weight: 700;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.mt-12 {
  margin-top: 12px;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.topbar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #f4f4f4;
  font-size: 0.95rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.topbar__cta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.topbar__cta:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  background: rgba(244, 244, 244, 0.9);
  border-bottom: 1px solid var(--stroke);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  background: transparent;
}

.brand__text {
  display: grid;
}

.brand__name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.brand__tag {
  font-size: 0.95rem;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav .btn::after {
  content: none;
}

.nav .btn {
  padding-bottom: 0;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.nav__toggle span {
  height: 2px;
  width: 24px;
  background: var(--primary);
  display: block;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(92, 15, 19, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--outline {
  border-color: rgba(131, 23, 29, 0.3);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(23, 131, 125, 0.3);
  background: rgba(23, 131, 125, 0.08);
  color: var(--secondary);
}

.btn--ghost:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  padding: 90px 0 120px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(131, 23, 29, 0.35), transparent 70%);
  filter: blur(2px);
  opacity: 0.7;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

.hero__highlights {
  display: grid;
  gap: 12px;
}

.highlight {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 18px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.highlight__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 4px;
}

.highlight__value {
  font-weight: 600;
}

.hero__visual {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: end;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(32, 23, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.hero__photo img,
.hero__photo iframe {
  width: 100%;
  height: 420px;
}

.hero__photo img {
  object-fit: cover;
  margin-bottom: 10px;
}

.hero__photo iframe {
  display: block;
  border: 0;
  background: #000;
}

.hero__card {
  background: linear-gradient(140deg, rgba(131, 23, 29, 0.92), rgba(23, 131, 125, 0.92));
  color: #f8f5f0;
  padding: 16px 18px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(32, 23, 20, 0.3);
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.hero__card h3 {
  color: #fff;
}

.hero__pattern {
  position: absolute;
  inset: -30px -30px 40% 40%;
  background-image: url("assets/flair-pattern-dark.png");
  background-size: 320px;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: 40px;
  z-index: 0;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section--alt {
  background: rgba(228, 228, 228, 0.7);
  border-top: 1px solid rgba(131, 23, 29, 0.1);
  border-bottom: 1px solid rgba(131, 23, 29, 0.1);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section__head--left {
  text-align: left;
  max-width: 640px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.card--highlight {
  border-color: rgba(131, 23, 29, 0.4);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(244, 244, 244, 0.7));
}

.card--accent {
  border-color: rgba(23, 131, 125, 0.4);
  background: linear-gradient(135deg, rgba(23, 131, 125, 0.08), rgba(255, 255, 255, 0.85));
}

.card__kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(131, 23, 29, 0.12);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--primary);
}

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #fff;
  box-shadow: var(--shadow);
}

.map__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(244, 244, 244, 0.85);
  border-bottom: 1px solid var(--stroke);
  font-weight: 600;
}

.map__link {
  color: var(--primary);
}

.map iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gallery__item {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(131, 23, 29, 0.15);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.gallery__item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  transform: scale(1.01);
  transition: transform 0.18s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery--collapsible.is-collapsed .gallery__item:nth-child(n + 7) {
  display: none;
}

.gallery__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

#gallery .container {
  transition: width 0.3s ease;
}

#gallery.is-expanded .container {
  width: min(1400px, 100%);
}

.media {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
}

.media iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.divider {
  height: 1px;
  background: var(--stroke);
  margin: 16px 0;
}

.events {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.event {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
}

.event__date {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
  text-align: center;
}

.event__month {
  display: block;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.65rem;
}

.event__day {
  display: block;
  font-weight: 900;
  font-size: 1rem;
  margin-top: 6px;
}

.pastor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.pastor__photo {
  display: grid;
  gap: 16px;
  align-items: center;
}

.pastor__image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 6px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 32px rgba(92, 15, 19, 0.35);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.quote {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.quote--boxed {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.give {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.secure {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: 600;
}

.secure__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(131, 23, 29, 0.12);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--primary);
}

.contact-cards {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(23, 131, 125, 0.2);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--primary);
}

.form {
  display: grid;
  gap: 14px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.form__note {
  margin: 0;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  padding: 60px 0 40px;
  background: #1d1412;
  color: #f4eee6;
}

.footer .muted {
  color: rgba(244, 238, 230, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer__links h4 {
  margin-bottom: 12px;
}

.footer__links a {
  display: block;
  margin-bottom: 8px;
  color: rgba(244, 238, 230, 0.78);
}

.footer__bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.backtotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(92, 15, 19, 0.3);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.page-loaded .hero__content,
body.page-loaded .hero__visual {
  opacity: 1;
  transform: translateY(0);
  animation: hero-rise 0.9s ease both;
}

body.page-loaded .hero__visual {
  animation-delay: 0.2s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  #gallery.is-expanded .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero__photo img,
  .hero__photo iframe {
    height: 360px;
  }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    right: 24px;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    background: rgba(244, 244, 244, 0.98);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__toggle {
    display: inline-flex;
  }

  .grid--2,
  .grid--3,
  .split,
  .pastor,
  .give {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .media iframe {
    height: 260px;
  }

  .event {
    grid-template-columns: 1fr;
  }

  .event__date {
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .event__month,
  .event__day {
    margin: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .backtotop {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
