﻿/**
 * GWM Church Home premium styles.
 */

body.gwm-church-home-active {
  --gwm-navy: #07172f;
  --gwm-navy-2: #0c2446;
  --gwm-ivory: #fffaf0;
  --gwm-white: #ffffff;
  --gwm-gold: #d4af37;
  --gwm-gold-soft: rgba(212, 175, 55, 0.58);
  --gwm-text: #172033;
  --gwm-muted: #5b6472;
  --gwm-radius: 5px;
  --gwm-section-y: clamp(4rem, 8vw, 7.5rem);
  background: var(--gwm-white);
}

body.gwm-church-home-active .site-header,
body.gwm-church-home-active header.site-header,
body.gwm-church-home-active .gwm-site-header {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  background: rgba(7, 23, 47, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gwm-church-home-main {
  overflow: hidden;
}

.gwm-church-section {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.gwm-section-inner {
  width: min(100% - 40px, 1220px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.gwm-video-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--gwm-white);
  background: var(--gwm-navy);
  overflow: hidden;
}

.gwm-hero-fallback-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gwm-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.gwm-hero-overlay,
.gwm-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 23, 47, 0.88), rgba(7, 23, 47, 0.58), rgba(7, 23, 47, 0.38)),
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.18), transparent 32%);
}

.gwm-hero-inner {
  padding-block: clamp(7rem, 14vw, 10rem) clamp(4rem, 10vw, 7rem);
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.gwm-hero-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  margin-bottom: 1.2rem;
}

.gwm-hero-logo {
  max-width: 72px;
  height: auto;
}

.gwm-kicker {
  color: var(--gwm-gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  margin: 0 0 .85rem;
}

.gwm-hero-title {
  font-size: clamp(2.9rem, 7vw, 6.8rem);
  line-height: .96;
  letter-spacing: -.055em;
  margin: 0;
  color: var(--gwm-white);
}

.gwm-hero-subtitle {
  max-width: 760px;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: rgba(255,255,255,.9);
}

.gwm-hero-actions,
.gwm-section-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.gwm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border-radius: var(--gwm-radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.gwm-btn:hover,
.gwm-btn:focus-visible {
  transform: translateY(-2px);
}

.gwm-btn-primary {
  background: var(--gwm-gold);
  color: var(--gwm-navy);
  border-color: var(--gwm-gold);
}

.gwm-btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--gwm-white);
  border-color: rgba(255,255,255,.42);
}

.gwm-text-link {
  color: var(--gwm-gold);
  font-weight: 800;
  text-decoration: none;
}

.gwm-visit-strip {
  margin-top: -44px;
  z-index: 5;
  padding-bottom: 3rem;
}

.gwm-visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gwm-line-card {
  border: 1px solid var(--gwm-gold-soft);
  border-radius: var(--gwm-radius);
  background: rgba(255,255,255,.86);
  position: relative;
}

.gwm-visit-card {
  padding: 1.4rem;
  background: rgba(7, 23, 47, .96);
  color: var(--gwm-white);
}

.gwm-visit-card h2,
.gwm-visit-card p {
  color: inherit;
}

.gwm-visit-card h2 {
  margin: 0 0 .65rem;
  font-size: 1.05rem;
}

.gwm-visit-card p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.78);
}

.gwm-church-welcome,
.gwm-latest-message,
.gwm-events-preview,
.gwm-contact-visit {
  padding-block: var(--gwm-section-y);
  background: var(--gwm-white);
}

.gwm-archbishop-message,
.gwm-giving-section {
  padding-block: var(--gwm-section-y);
  background:
    radial-gradient(circle at top left, rgba(212,175,55,.14), transparent 30%),
    linear-gradient(135deg, var(--gwm-navy), var(--gwm-navy-2));
  color: var(--gwm-white);
}

.gwm-bishop-julien,
.gwm-ministry-pathways {
  padding-block: var(--gwm-section-y);
  background: var(--gwm-ivory);
}

.gwm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.gwm-split-reverse {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1fr);
}

.gwm-section-copy h2,
.gwm-section-header h2,
.gwm-message-card h2,
.gwm-covering-card h2,
.gwm-events-card h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 0 0 1rem;
}

.gwm-section-copy p,
.gwm-section-header p,
.gwm-message-card p,
.gwm-covering-card p,
.gwm-events-card p,
.gwm-prayer-card p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gwm-muted);
}

.gwm-archbishop-message p,
.gwm-archbishop-message h2,
.gwm-bishop-julien .gwm-message-card p,
.gwm-giving-section p {
  color: inherit;
}

.gwm-message-card,
.gwm-events-card,
.gwm-prayer-card,
.gwm-covering-card,
.gwm-message-feature-card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.gwm-signature {
  margin-block: 1.6rem;
  display: grid;
  gap: .2rem;
}

.gwm-signature strong {
  font-size: 1.05rem;
}

.gwm-signature span {
  color: var(--gwm-gold);
  font-weight: 700;
}

.gwm-image-frame,
.gwm-portrait-frame {
  margin: 0;
  padding: .7rem;
  border: 1px solid var(--gwm-gold-soft);
  border-radius: var(--gwm-radius);
  position: relative;
}

.gwm-framed-image,
.gwm-portrait-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--gwm-radius) - 1px);
}

.gwm-portrait-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gwm-parallax {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding-block: var(--gwm-section-y);
  color: var(--gwm-white);
  background-image: var(--gwm-parallax-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.gwm-parallax .gwm-section-overlay {
  background:
    linear-gradient(90deg, rgba(7,23,47,.92), rgba(7,23,47,.68), rgba(7,23,47,.54)),
    radial-gradient(circle at 20% 25%, rgba(212,175,55,.20), transparent 32%);
}

.gwm-covering-card,
.gwm-prayer-card {
  max-width: 720px;
  background: rgba(7, 23, 47, .74);
  color: var(--gwm-white);
  backdrop-filter: blur(8px);
}

.gwm-covering-card p,
.gwm-prayer-card p,
.gwm-parallax-expect p {
  color: rgba(255,255,255,.84);
}

.gwm-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.4rem;
}

.gwm-card-grid {
  display: grid;
  gap: 1rem;
}

.gwm-card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gwm-card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gwm-expect-card,
.gwm-ministry-card {
  padding: 1.4rem;
}

.gwm-expect-card {
  background: rgba(7,23,47,.58);
  color: var(--gwm-white);
  backdrop-filter: blur(6px);
}

.gwm-ministry-card {
  background: rgba(255,255,255,.72);
  transition: transform .25s ease, border-color .25s ease;
}

.gwm-ministry-card:hover {
  transform: translateY(-4px);
  border-color: var(--gwm-gold);
}

.gwm-expect-card h3,
.gwm-ministry-card h3 {
  margin: 0 0 .7rem;
  font-size: 1.15rem;
}

.gwm-expect-card p,
.gwm-ministry-card p {
  margin: 0;
  line-height: 1.7;
}

.gwm-media-feature,
.gwm-giving-inner,
.gwm-contact-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.gwm-message-feature-card,
.gwm-events-card {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.gwm-prayer-card {
  text-align: center;
  margin-inline: auto;
}

.gwm-giving-inner {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
}

.gwm-giving-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.gwm-giving-tags span {
  border: 1px solid var(--gwm-gold-soft);
  border-radius: var(--gwm-radius);
  padding: .7rem .9rem;
  color: var(--gwm-white);
}

.gwm-contact-panel {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.gwm-contact-logo {
  justify-self: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gwm-gold-soft);
  background: var(--gwm-white);
}

.gwm-contact-logo-image {
  width: 74px;
  height: auto;
}

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

.js .gwm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.js .gwm-stagger-item:nth-child(2) { transition-delay: 80ms; }
.js .gwm-stagger-item:nth-child(3) { transition-delay: 160ms; }
.js .gwm-stagger-item:nth-child(4) { transition-delay: 240ms; }
.js .gwm-stagger-item:nth-child(5) { transition-delay: 320ms; }
.js .gwm-stagger-item:nth-child(6) { transition-delay: 400ms; }

.gwm-border-draw::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: calc(var(--gwm-radius) - 1px);
  pointer-events: none;
  opacity: .9;
}

@media (max-width: 1024px) {
  .gwm-split,
  .gwm-split-reverse,
  .gwm-giving-inner {
    grid-template-columns: 1fr;
  }

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

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

  .gwm-parallax {
    background-attachment: scroll;
  }
}

@media (max-width: 720px) {
  .gwm-section-inner {
    width: min(100% - 30px, 1220px);
  }

  .gwm-hero-inner {
    text-align: left;
  }

  .gwm-hero-actions,
  .gwm-section-actions {
    justify-content: flex-start;
  }

  .gwm-btn {
    width: 100%;
  }

  .gwm-visit-grid,
  .gwm-card-grid-four,
  .gwm-card-grid-three {
    grid-template-columns: 1fr;
  }

  .gwm-visit-strip {
    margin-top: 0;
    padding-top: 1rem;
  }

  .gwm-section-header {
    text-align: left;
  }
}

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

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

  .gwm-parallax,
  .gwm-parallax-bg {
    transform: none !important;
    background-attachment: scroll !important;
  }
}
/* GWM CHURCH HERO FORCE FIX */
body.gwm-church-home-active .gwm-video-hero {
  min-height: 100vh !important;
  height: 100vh !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
}

body.gwm-church-home-active .gwm-hero-video,
body.gwm-church-home-active .gwm-hero-image,
body.gwm-church-home-active .gwm-hero-fallback-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 0 !important;
}

body.gwm-church-home-active .gwm-hero-fallback-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

body.gwm-church-home-active .gwm-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

body.gwm-church-home-active .gwm-hero-inner {
  position: relative !important;
  z-index: 3 !important;
  padding-top: 120px !important;
}

body.gwm-church-home-active .gwm-parallax,
body.gwm-church-home-active .gwm-parallax-expect,
body.gwm-church-home-active .gwm-prayer-parallax,
body.gwm-church-home-active .gwm-leadership-covering {
  background-image: var(--gwm-parallax-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 620px !important;
}

