/* Homepage hero hierarchy update */
.hero-content {
  grid-template-columns: 460px minmax(0, 580px);
}

.hero-logo-stack {
  width: min(440px, 80vw);
}

.hero-logo-stack img {
  width: 100%;
}

.hero-copy .hero-title {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.06;
}

.hero-copy .hero-title em {
  display: block;
  margin-top: 8px;
  max-width: 560px;
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 19px);
  font-style: normal;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.hero-intro {
  max-width: 540px;
  font-size: clamp(15px, 1.25vw, 18px);
}

@media (width <= 980px) {
  .hero-content {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .hero-logo-stack {
    width: 320px;
  }

  .hero-copy .hero-title {
    font-size: clamp(36px, 5.4vw, 54px);
  }
}

@media (width <= 760px) {
  .hero-logo-stack {
    width: 270px;
  }

  .hero-copy .hero-title {
    max-width: 560px;
    margin-inline: auto;
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-intro {
    font-size: 15px;
  }
}

/* Use the prayer-flags spa image as the shared site atmosphere. */
body {
  background:
    linear-gradient(rgba(246, 240, 227, 0.78), rgba(238, 229, 212, 0.82)),
    url("media/sacred-sanctuary-spa.jpg") center / cover fixed;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(2, 20, 27, 0.58) 0%, rgba(4, 33, 41, 0.4) 48%, rgba(4, 28, 34, 0.26) 100%),
    linear-gradient(rgba(0, 0, 0, 0.04) 48%, rgba(4, 26, 33, 0.46)),
    url("media/sanctuary-exterior.jpg") center 48% / cover;
}

.welcome {
  background: rgba(246, 240, 227, 0.9);
}

.tour {
  background: rgba(238, 231, 217, 0.9);
}

.facts-section,
.how-it-works {
  background: linear-gradient(rgba(246, 240, 227, 0.9), rgba(238, 229, 212, 0.9));
}

.kind-words {
  background: rgba(243, 237, 223, 0.9);
}

.experiences {
  background: linear-gradient(145deg, rgba(6, 31, 39, 0.94), rgba(10, 52, 57, 0.9) 55%, rgba(9, 38, 47, 0.92));
}

.healing-space {
  background: rgba(10, 57, 64, 0.93);
}

.memberships {
  background: linear-gradient(155deg, rgba(6, 29, 38, 0.95), rgba(10, 51, 58, 0.91) 52%, rgba(11, 37, 47, 0.93));
}

.final-bg {
  background:
    linear-gradient(rgba(4, 25, 30, 0.52), rgba(4, 27, 33, 0.58) 42%, rgba(2, 20, 26, 0.88)),
    url("media/sacred-sanctuary-spa.jpg") center / cover;
}

/* Real woven prayer-flag strands lowered into the two cream sections. */
.prayer-flag-divider {
  z-index: 12;
  width: 100%;
  height: 0;
  pointer-events: none;
  position: relative;
}

.prayer-flag-divider img {
  width: min(1180px, 98vw);
  height: auto;
  max-width: none;
  opacity: 0.9;
  filter: saturate(0.9)
    drop-shadow(0 12px 16px rgba(3, 24, 29, 0.2));
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(0.62) rotate(-0.35deg);
  transform-origin: center;
}

/* The welcome strand sits slightly closer to the section edge. */
.prayer-flag-divider-welcome img {
  top: 54px;
}

@media (width <= 760px) {
  body {
    background-attachment: scroll;
  }

  .prayer-flag-divider img {
    width: 112vw;
    opacity: 0.92;
    top: 46px;
    transform: translate(-50%, -50%) scaleY(0.7) rotate(-0.5deg);
  }

  .prayer-flag-divider-welcome img {
    top: 36px;
  }

  .hero-image {
    background:
      linear-gradient(rgba(4, 28, 34, 0.35) 0%, rgba(3, 27, 34, 0.54) 45%, rgba(2, 20, 27, 0.76) 100%),
      url("media/sanctuary-exterior.jpg") center / cover;
  }
}

/* Relocate the session cards above How it works. */
.welcome {
  padding-top: 130px;
}

.facts-section {
  background: linear-gradient(rgba(246, 240, 227, 0.9), rgba(238, 229, 212, 0.9));
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}

.facts-section::before {
  content: "";
  background: var(--deep-teal);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  height: 160px;
  position: absolute;
  top: -110px;
  left: -8%;
  right: -8%;
}

.facts-section .facts {
  margin-top: 0;
  margin-bottom: 0;
}

.how-it-works {
  padding-top: 70px;
}

.how-it-works::before {
  display: none;
}

@media (width <= 760px) {
  .welcome {
    padding-top: 95px;
  }

  .facts-section {
    padding: 105px 0 48px;
  }

  .facts-section::before {
    height: 95px;
    top: -65px;
  }

  .how-it-works {
    padding-top: 65px;
  }
}

/* Let the transparent logo glow directly against the site. */
.brand img,
.hero-mark img,
.final-content > img {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background: transparent;
  box-shadow: none;
}

.brand img {
  filter: brightness(1.04) saturate(1.08)
    drop-shadow(0 0 8px rgba(114, 221, 210, 0.48))
    drop-shadow(0 0 18px rgba(69, 184, 255, 0.24));
}

.hero-logo-stack {
  position: relative;
}

.hero-mark .hero-logo-base {
  opacity: 0.84;
  filter: brightness(0.96) saturate(0.96)
    drop-shadow(0 0 10px rgba(114, 221, 210, 0.46))
    drop-shadow(0 0 28px rgba(68, 190, 255, 0.26));
  animation: none;
}

.hero-mark .hero-logo-text {
  position: absolute;
  inset: 0;
  opacity: 0.74;
  clip-path: inset(80.5% 0 0 0);
  filter: brightness(1.02) saturate(1.03)
    drop-shadow(0 0 7px rgba(114, 221, 210, 0.58));
  animation: none;
  pointer-events: none;
}

.final-content > img {
  width: 160px;
  height: 160px;
  filter: brightness(1.04) saturate(1.06)
    drop-shadow(0 0 12px rgba(114, 221, 210, 0.62))
    drop-shadow(0 0 34px rgba(68, 190, 255, 0.35));
}

@keyframes logo-illuminate {
  0%,
  100% {
    filter: brightness(1.02) saturate(1.06)
      drop-shadow(0 0 12px rgba(114, 221, 210, 0.7))
      drop-shadow(0 0 34px rgba(68, 190, 255, 0.48))
      drop-shadow(0 0 68px rgba(80, 212, 204, 0.28));
  }

  50% {
    filter: brightness(1.1) saturate(1.14)
      drop-shadow(0 0 20px rgba(114, 221, 210, 0.92))
      drop-shadow(0 0 54px rgba(68, 190, 255, 0.66))
      drop-shadow(0 0 96px rgba(80, 212, 204, 0.4));
  }
}

.hero-mark .orbit {
  display: none;
}

/* Align the sanctuary heading with the copy and place the spa image beneath it. */
.welcome-grid {
  align-items: stretch;
  gap: clamp(42px, 6vw, 82px);
}

.welcome-grid .section-intro {
  display: flex;
  flex-direction: column;
}

.welcome-grid .section-intro h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.welcome-copy {
  padding-left: 38px;
  isolation: isolate;
}

.welcome-copy::before {
  content: "";
  z-index: 0;
  width: clamp(220px, 24vw, 320px);
  height: clamp(330px, 36vw, 460px);
  pointer-events: none;
  opacity: 0.5;
  background: url("media/quartz-cluster-watermark.png") center / contain no-repeat;
  filter: saturate(1.08) contrast(1.08)
    drop-shadow(0 0 24px rgba(114, 221, 210, 0.2));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.welcome-copy > * {
  z-index: 1;
  position: relative;
}

.welcome-copy p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.55;
}

.welcome-copy .lotus-glyph {
  display: none;
}

.welcome-sanctuary-photo {
  width: 100%;
  height: 0;
  min-height: 220px;
  flex: 1 1 0;
  margin-top: 28px;
  object-fit: cover;
  object-position: center;
  border-radius: 110px 24px 24px;
  box-shadow: 0 28px 70px rgba(23, 50, 56, 0.18);
}

@media (width <= 760px) {
  .welcome-grid {
    align-items: start;
  }

  .welcome-grid .section-intro {
    display: block;
  }

  .welcome-grid .section-intro h2 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .welcome-copy {
    padding-left: 22px;
  }

  .welcome-copy::before {
    width: 58%;
    height: 72%;
    left: 54%;
    opacity: 0.44;
  }

  .welcome-copy p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.55;
  }

  .welcome-sanctuary-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-height: 440px;
    margin-top: 22px;
    border-radius: 80px 20px 20px;
  }
}
