:root {
  --ink: #21134c;
  --muted: #5d5870;
  --paper: #fbfbff;
  --surface: #ffffff;
  --line: #e3e0ef;
  --sage: #37c6c8;
  --pine: #2d1767;
  --gold: #39cfd0;
  --coral: #8d5ad7;
  --warm: #f2c879;
  --sky: #e9fbfb;
  --shadow: 0 18px 45px rgba(33, 19, 76, 0.14);
  --soft-shadow: 0 28px 80px rgba(33, 19, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(251, 251, 255, 0.9), rgba(251, 251, 255, 0.92)),
    url("assets/new-life-facebook-background.jpg") center top / 540px auto repeat;
  background-attachment: scroll;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(57, 207, 208, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(141, 90, 215, 0.1), transparent 38%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(45, 23, 103, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(33, 19, 76, 0.1);
  transform: translateX(-50%);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  border-color: rgba(45, 23, 103, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(33, 19, 76, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--sage);
  border-radius: 8px;
  color: var(--pine);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -4px;
  color: currentColor;
  font-weight: 600;
  opacity: 0.75;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action {
  color: #fff;
  background: linear-gradient(135deg, var(--pine), var(--coral));
  box-shadow: 0 12px 24px rgba(45, 23, 103, 0.18);
}

.button svg,
.icon-button svg,
.ministry-list svg,
.info-card svg,
.site-footer svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pine), #5930a9);
  box-shadow: 0 16px 30px rgba(45, 23, 103, 0.22);
}

.button.primary.dark {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--warm));
  box-shadow: 0 16px 30px rgba(57, 207, 208, 0.2);
}

.button.secondary {
  color: var(--pine);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 61, 49, 0.22);
  box-shadow: 0 12px 26px rgba(33, 19, 76, 0.08);
}

.button:hover,
.header-action:hover,
.sermon-player:hover,
.ministry-list a:hover {
  transform: translateY(-2px);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 96vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 251, 255, 0.99) 0%, rgba(251, 251, 255, 0.93) 43%, rgba(251, 251, 255, 0.62) 100%),
    url("assets/new-life-facebook-background.jpg") right 7vw center / min(82vw, 860px) auto no-repeat,
    var(--paper);
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 70%, rgba(57, 207, 208, 0.18), transparent 34%),
    linear-gradient(0deg, rgba(33, 19, 76, 0.03), rgba(33, 19, 76, 0));
}

.hero-cross {
  position: absolute;
  right: clamp(26px, 8vw, 110px);
  bottom: clamp(40px, 10vh, 120px);
  z-index: 1;
  width: clamp(78px, 10vw, 138px);
  height: clamp(126px, 17vw, 220px);
  opacity: 0.28;
}

.hero-cross::before,
.hero-cross::after {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sage), var(--pine));
  content: "";
  box-shadow: 0 18px 42px rgba(45, 23, 103, 0.18);
}

.hero-cross::before {
  top: 0;
  left: 50%;
  width: 24%;
  height: 100%;
  transform: translateX(-50%);
}

.hero-cross::after {
  top: 26%;
  left: 0;
  width: 100%;
  height: 15%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(130px, 18vh, 190px) clamp(18px, 7vw, 96px);
  color: var(--ink);
}

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

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 28px;
  font-size: 1.22rem;
  color: #3e3366;
}

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

.hero-details {
  position: absolute;
  right: clamp(18px, 6vw, 82px);
  bottom: clamp(24px, 6vh, 58px);
  left: clamp(18px, 6vw, 82px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(45, 23, 103, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.hero-details div {
  display: grid;
  gap: 3px;
  padding: 18px clamp(16px, 3vw, 32px);
  border-right: 1px solid rgba(45, 23, 103, 0.1);
}

.hero-details div:last-child {
  border-right: 0;
}

.hero-details span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-details strong {
  color: var(--pine);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.2;
}

.section {
  padding: clamp(82px, 10vw, 132px) clamp(18px, 6vw, 82px);
  position: relative;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.welcome-section,
.events-section,
.contact-section {
  background: var(--paper);
}

.welcome-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding-top: clamp(96px, 12vw, 150px);
}

.intro-section {
  position: sticky;
  top: 96px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(45, 23, 103, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(233, 251, 251, 0.74));
  box-shadow: var(--soft-shadow);
}

.intro-section p:last-child {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}

.visit-panel {
  display: grid;
  gap: 14px;
}

.visit-panel .section-heading {
  margin-bottom: 4px;
}

.info-card {
  min-height: 188px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
  box-shadow: 0 18px 42px rgba(33, 19, 76, 0.08);
}

.info-card svg {
  width: 32px;
  height: 32px;
  color: var(--sage);
}

.info-card h3,
.event-item h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.life-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 0;
  padding-right: clamp(18px, 6vw, 82px);
  padding-left: clamp(18px, 6vw, 82px);
  background:
    linear-gradient(135deg, rgba(233, 251, 251, 0.96), rgba(245, 239, 255, 0.96)),
    url("assets/new-life-facebook-background.jpg") right 4vw bottom 30px / 380px auto no-repeat;
}

.life-column {
  padding: clamp(42px, 6vw, 76px);
}

.split-section {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-content: center;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 0.58);
}

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

.ministry-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid rgba(45, 23, 103, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(33, 19, 76, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ministry-list svg {
  color: var(--coral);
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-flyer {
  margin: 0 0 24px;
  padding: 10px;
  border: 1px solid rgba(45, 23, 103, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 44px rgba(33, 19, 76, 0.12);
}

.event-flyer img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.event-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(45, 23, 103, 0.16);
}

.event-item:last-child {
  border-bottom: 1px solid var(--line);
}

.event-item time {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pine), var(--coral));
  font-weight: 800;
}

.event-item h3,
.event-item p {
  margin: 0;
}

.sermon-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: clamp(26px, 6vw, 74px);
  align-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(33, 19, 76, 0.98), rgba(45, 23, 103, 0.98) 56%, rgba(23, 61, 92, 0.96)),
    url("assets/new-life-facebook-background.jpg") right 8vw center / 420px auto no-repeat;
}

.sermon-section p {
  color: rgba(255, 255, 255, 0.72);
}

.sermon-actions {
  display: grid;
  gap: 14px;
}

.sermon-player {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(57, 207, 208, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.16);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sermon-player span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
}

.photo-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 1.28fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 251, 251, 0.86)),
    url("assets/new-life-facebook-background.jpg") left 8vw center / 360px auto no-repeat;
}

.photo-slideshow {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.slide-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(57, 207, 208, 0.2), transparent 34%),
    linear-gradient(135deg, #160f31, #2d1767);
  box-shadow: 0 26px 60px rgba(33, 19, 76, 0.22);
}

.slide-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 260ms ease, transform 420ms ease;
}

.slide-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}

.slideshow-control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(45, 23, 103, 0.16);
  border-radius: 999px;
  color: var(--deep-purple);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(33, 19, 76, 0.12);
}

.slideshow-control:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--deep-purple);
}

.slide-footer {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(45, 23, 103, 0.64);
}

.slide-footer a {
  color: var(--deep-purple);
}

.action-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background:
    linear-gradient(rgba(251, 251, 255, 0.92), rgba(251, 251, 255, 0.94)),
    url("assets/new-life-facebook-background.jpg") center center / 520px auto repeat;
}

.giving-section,
.social-section {
  display: grid;
  align-content: space-between;
  gap: 26px;
  min-height: 320px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(45, 23, 103, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 255, 0.86));
  box-shadow: var(--soft-shadow);
}

.social-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(233, 251, 251, 0.9));
}

.giving-section div,
.social-section div {
  max-width: 760px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 90px);
}

address {
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
}

address a {
  color: var(--pine);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd8cf;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible,
.icon-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(213, 159, 69, 0.5);
  outline-offset: 3px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 82px);
  color: #fff;
  background: linear-gradient(135deg, #160d33, #21134c);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    top: 10px;
    width: min(100% - 20px, 1180px);
    border-radius: 18px;
  }

  .icon-button {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 10px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 88vh;
    background:
      linear-gradient(rgba(251, 251, 255, 0.9), rgba(251, 251, 255, 0.9)),
      url("assets/new-life-facebook-background.jpg") center 110px / min(92vw, 630px) auto no-repeat,
      var(--paper);
    background-attachment: scroll;
  }

  .hero-content {
    margin: 0 auto 72px;
    padding-top: 220px;
  }

  .hero-details {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100% - 36px, 760px);
    margin: -42px auto 54px;
    grid-template-columns: 1fr;
  }

  .hero-details div {
    border-right: 0;
    border-bottom: 1px solid rgba(45, 23, 103, 0.1);
  }

  .hero-details div:last-child {
    border-bottom: 0;
  }

  .welcome-section,
  .life-section,
  .action-section,
  .split-section,
  .sermon-section,
  .photo-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-section {
    position: static;
  }

  .life-section {
    padding-right: 0;
    padding-left: 0;
    background:
      linear-gradient(135deg, rgba(233, 251, 251, 0.96), rgba(245, 239, 255, 0.96));
  }

  .life-column {
    padding: clamp(34px, 8vw, 58px) clamp(18px, 6vw, 82px);
  }

  .giving-section,
  .social-section {
    min-height: 0;
  }

  .photo-slideshow {
    grid-template-columns: 1fr 1fr;
  }

  .slide-frame,
  .slide-footer {
    grid-column: 1 / -1;
  }

  .slideshow-control {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

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

  .ministry-list,
  .event-item {
    grid-template-columns: 1fr;
  }

  .event-item time {
    width: 76px;
  }

  .contact-form {
    padding: 18px;
  }

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