@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --purple-950: #26002f;
  --purple-850: #430052;
  --purple-700: #64166f;
  --plum: #7b2c72;
  --gold: #d6a13b;
  --amber: #f17a22;
  --olive: #677314;
  --rose: #f6d5e5;
  --paper: #fffaf3;
  --ink: #1f1824;
  --muted: #6e6170;
  --line: rgba(67, 0, 82, 0.16);
  --shadow: 0 24px 70px rgba(38, 0, 47, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 6vw;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(38, 0, 47, 0.74), rgba(38, 0, 47, 0.38)),
    linear-gradient(90deg, rgba(100, 22, 111, 0.34), rgba(214, 161, 59, 0.08));
  box-shadow: 0 20px 60px rgba(20, 0, 25, 0.22);
  backdrop-filter: blur(18px) saturate(150%);
}

.site-header.compact {
  position: sticky;
  top: 0;
  margin: 0;
  inset: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
}

.brand img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(100, 22, 111, 0.1);
}

.brand strong {
  display: block;
  color: white;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.brand em {
  display: block;
  color: white;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 6px;
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  place-items: center;
}

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

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 146px 6vw 42px;
  color: white;
}

.hero-media {
  position: absolute;
  inset: -8% 0;
  background: url("assets/church-hero.png") center / cover no-repeat;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 0, 47, 0.9), rgba(67, 0, 82, 0.52) 46%, rgba(38, 0, 47, 0.18)),
    linear-gradient(0deg, rgba(38, 0, 47, 0.8), rgba(38, 0, 47, 0.1) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
}

h1, h2 {
  font-family: Cinzel, Georgia, serif;
}

h1 {
  font-size: clamp(2.55rem, 6.2vw, 5.4rem);
  letter-spacing: 0;
}

h2 {
  color: var(--purple-850);
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  color: var(--purple-850);
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--purple-700), var(--amber));
  box-shadow: 0 14px 32px rgba(241, 122, 34, 0.25);
}

.button.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.button.ghost-dark {
  color: var(--purple-850);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.service-ribbon {
  position: absolute;
  right: 6vw;
  bottom: 40px;
  z-index: 2;
  width: min(440px, calc(100% - 12vw));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(160%);
}

.service-ribbon span,
.service-ribbon a {
  color: var(--gold);
  font-weight: 900;
}

.service-ribbon strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 1.25rem;
}

.service-ribbon p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  line-height: 1.35;
}

.verse-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--purple-950);
  color: white;
}

.verse-strip article {
  min-height: 238px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), transparent 48%);
}

.verse-strip span,
.verse-strip em {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verse-strip strong {
  display: block;
  margin: 18px 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.section {
  padding: 88px 6vw;
}

.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: 54px;
  align-items: start;
}

.welcome-section {
  isolation: isolate;
  overflow: hidden;
}

.welcome-section > div:not(.nj-map) {
  position: relative;
  z-index: 1;
}

.nj-map {
  position: absolute;
  inset: 18px 5vw 18px auto;
  z-index: 0;
  width: min(28vw, 290px);
  opacity: 0.14;
  transform: rotate(-7deg);
  pointer-events: none;
}

.nj-map svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(67, 0, 82, 0.2));
}

.nj-map path {
  fill: url("#nj-map-fill");
}

.rich-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.pillars,
.values,
.ministry-grid,
.sermon-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gloss-card,
.values article,
.ministry-grid article,
.sermon-list article,
.contact-panel,
.gloss-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 22, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 213, 229, 0.35));
  box-shadow: var(--shadow);
}

.gloss-card::before,
.values article::before,
.ministry-grid article::before,
.sermon-list article::before,
.contact-panel::before,
.gloss-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent);
  pointer-events: none;
}

.gloss-card,
.values article,
.ministry-grid article,
.sermon-list article,
.contact-panel,
.gloss-panel {
  padding: 28px;
}

.gloss-card > *,
.values article > *,
.ministry-grid article > *,
.sermon-list article > *,
.contact-panel > *,
.gloss-panel > * {
  position: relative;
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: white;
  background: var(--purple-850);
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.28);
  font-size: 1.35rem;
  font-weight: 900;
}

.gloss-card p,
.values p,
.ministry-grid p,
.sermon-list p,
.contact-panel p,
.gloss-panel p,
.steps p {
  color: var(--muted);
  margin: 14px 0 0;
}

.banner {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(38, 0, 47, 0.92), rgba(38, 0, 47, 0.32)),
    url("assets/church-hero.png") center 58% / cover no-repeat;
  background-attachment: fixed;
  color: white;
}

.banner-inner {
  padding: 88px 6vw;
  max-width: 760px;
}

.banner h2 {
  color: white;
  margin-bottom: 28px;
}

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

.feature-grid article {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid p {
  color: var(--muted);
  max-width: 620px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--purple-850);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.connect-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 68px 6vw;
  background: linear-gradient(135deg, var(--purple-950), #5f123f 54%, #6f5d15);
  color: white;
}

.connect-band h2 {
  color: white;
}

.connect-band p {
  color: rgba(255, 255, 255, 0.75);
}

.quick-form,
.contact-form {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-weight: 900;
  font-size: 0.86rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(100, 22, 111, 0.18);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

.page-main {
  min-height: 72vh;
}

.page-hero {
  margin-top: -96px;
  padding: 220px 6vw 76px;
  background:
    linear-gradient(120deg, rgba(38, 0, 47, 0.95), rgba(100, 22, 111, 0.72), rgba(214, 161, 59, 0.42)),
    url("assets/church-hero.png") center / cover no-repeat;
  color: white;
}

.page-hero h1 {
  max-width: 980px;
}

.worship-hero {
  background-position: center 56%;
}

.values {
  grid-template-columns: repeat(4, 1fr);
}

.ministry-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sermon-list {
  grid-template-columns: repeat(2, 1fr);
}

.sermon-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 34px;
  align-items: center;
}

.sermon-feature p {
  max-width: 620px;
  color: var(--muted);
}

.sermon-feature .button {
  margin-top: 16px;
}

.video-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(100, 22, 111, 0.16);
  background: var(--purple-950);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.featured-event {
  padding-bottom: 0;
}

.event-card-large {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 0, 47, 0.94), rgba(100, 22, 111, 0.78)),
    linear-gradient(45deg, rgba(214, 161, 59, 0.22), transparent);
  color: white;
  box-shadow: var(--shadow);
}

.event-card-large h2 {
  color: white;
}

.event-card-large p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.event-card-large dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.event-card-large dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.event-card-large dt {
  color: var(--gold);
  font-weight: 900;
}

.event-card-large dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.event-flyer {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.event-flyer img {
  width: 100%;
  aspect-ratio: 0.79;
  object-fit: cover;
  object-position: top center;
}

.sermon-list span,
.gloss-panel span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.steps h2 {
  margin-bottom: 28px;
}

.steps > div,
.event-timeline {
  display: grid;
  gap: 16px;
}

.steps article,
.event-timeline article {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps strong,
.event-timeline time {
  display: grid;
  width: 68px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--purple-850), var(--amber));
  font-weight: 900;
  font-size: 0.82rem;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
}

.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 6vw;
  color: white;
  background: var(--purple-950);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.site-footer img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    width: 100vw;
    padding: 12px 6vw 18px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: rgba(38, 0, 47, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(160%);
  }

  .nav-links.open {
    display: grid;
  }

  .menu-toggle {
    display: block;
  }

  .service-ribbon {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin-top: 38px;
  }

  .hero {
    align-items: center;
  }

  .verse-strip,
  .pillars,
  .values,
  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .feature-grid,
  .schedule,
  .connect-band,
  .contact-layout,
  .event-card-large,
  .sermon-feature {
    grid-template-columns: 1fr;
  }

  .nj-map {
    inset: 28px 0 auto auto;
    width: 230px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-header.compact {
    inset: 0 0 auto;
    margin: 0;
    padding: 10px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand em {
    display: block;
    font-size: 0.68rem;
  }

  .hero {
    min-height: auto;
    padding: 132px 22px 28px;
  }

  .hero-media {
    background-position: 60% center;
  }

  .section,
  .banner-inner,
  .connect-band {
    padding: 58px 22px;
  }

  .page-hero {
    padding: 180px 22px 58px;
  }

  .verse-strip,
  .pillars,
  .values,
  .ministry-grid,
  .sermon-list {
    grid-template-columns: 1fr;
  }

  .verse-strip article {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .event-card-large {
    padding: 22px;
  }

  .event-card-large dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
