/* Landing-page-only styles: the hero and the cardinal's perch.
   Everything else comes from site.css. */

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: var(--color-ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.hero-scrim-x {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 34, 46, 0.8) 0%, rgba(18, 34, 46, 0.52) 42%, rgba(18, 34, 46, 0.05) 78%);
}
.hero-scrim-y {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 34, 46, 0.45) 0%, rgba(18, 34, 46, 0) 22%, rgba(18, 34, 46, 0) 80%, rgba(248, 245, 239, 0.2) 100%);
}
.hero .site-nav {
  position: relative;
  background: transparent;
  border-bottom: 0;
}
.hero .site-nav .wordmark b,
.hero .site-nav .wordmark small,
.hero .site-nav .nav-links a:not(.btn) {
  color: #fff;
}
.hero .site-nav .nav-links a.btn-primary {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.hero-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
}
.hero-content .wrap {
  width: 100%;
}
.hero-text {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-eyebrow {
  position: relative; /* the cardinal's perch anchors to this line */
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #cdebe8;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-sub {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #eef4f4;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}
.hero-actions .btn-candle {
  box-shadow: 0 12px 40px -12px rgba(242, 201, 140, 0.6);
}
.hero-actions .link-underline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Cardinal flight + perch */
#bd-cardinal {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
  visibility: hidden;
}
#bd-fly {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  background-image: url("/assets/cardinal-flight-strip.png");
  background-size: 600% 100%;
  background-repeat: no-repeat;
  animation: bd-flap 0.42s steps(6) infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: opacity 0.18s ease;
}
@keyframes bd-flap {
  to { background-position-x: 120%; }
}
#bd-sit {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  max-width: none;
  display: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
  transition: opacity 0.18s ease;
}

/* Video placeholder */
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg, #eaf4f2, #f1eff8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-size: 15px;
}

@media (max-width: 767px) {
  .hero-content { padding: 48px 0; }
  .hero-sub { font-size: 17px; }
  .hero-actions { flex-wrap: wrap; gap: 18px; }
  /* Smaller bird to match the smaller type */
  #bd-fly { width: 64px; height: 64px; }
  #bd-sit { width: 44px; }
}

/* .narrow on inner blocks (not .wrap) needs centering — site.css only sets max-width */
.narrow { margin-left: auto; margin-right: auto; }

/* First-session steps (v01 layout) and the cardinal divider */
.steps-3 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps-3 li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid #c9c3e3;
}
.step-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-lavender);
}
.cardinal-divider {
  background: var(--color-lavender-mist);
  padding: 40px 0 0;
}
.cardinal-divider .wrap {
  position: relative;
  height: 72px;
}
.cardinal-divider .divider-line {
  position: absolute;
  left: var(--space-gutter-x);
  right: var(--space-gutter-x);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 87, 148, 0) 0%, rgba(95, 87, 148, 0.35) 30%, rgba(95, 87, 148, 0.35) 70%, rgba(95, 87, 148, 0) 100%);
}
.cardinal-divider img {
  position: absolute;
  left: 64%;
  bottom: -3px;
  width: 56px;
  max-width: none;
  height: auto;
}
@media (max-width: 767px) {
  .steps-3 { grid-template-columns: 1fr; gap: 28px; }
}

/* v01 parity: video card, split ratios, display price, flat FAQ */
.split-5-7 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
#contact .split-5-7 { align-items: start; }
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 22%, rgba(242, 201, 140, 0.45) 0%, rgba(242, 201, 140, 0) 45%), linear-gradient(140deg, #24404f 0%, #2f6a70 60%, #5ba7a5 100%);
  box-shadow: 0 30px 70px -30px rgba(31, 51, 64, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  left: 26px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: #fbf3e4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(251, 243, 228, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 14px rgba(251, 243, 228, 0.26);
}
.video-play svg {
  width: 24px;
  height: 24px;
}
.video-caption {
  position: absolute;
  left: 106px;
  bottom: 47px;
  color: #fff;
  font-size: 15px;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(31, 51, 64, 0.55);
}
.video-card.is-playing .video-play,
.video-card.is-playing .video-caption {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.price-line { margin: 0; }
.price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
}
.faq-flat { display: flex; flex-direction: column; }
.faq-flat details { padding: 30px 0; border-top: 1px solid #dce4e3; }
.faq-flat details:last-child { border-bottom: 1px solid #dce4e3; }
.faq-flat summary {
  font-family: var(--font-display);
  font-size: 28px;
  cursor: pointer;
  list-style: none;
}
.faq-flat summary::-webkit-details-marker { display: none; }
.faq-flat p { margin: 14px 0 0; color: var(--color-ink-soft); max-width: 620px; }
@media (max-width: 767px) {
  .split-5-7 { grid-template-columns: 1fr; gap: 36px; }
  .faq-flat summary { font-size: 22px; }
  .video-play { width: 48px; height: 48px; left: 16px; bottom: 14px; box-shadow: 0 0 0 7px rgba(251, 243, 228, 0.18); }
  .video-play svg { width: 20px; height: 20px; }
  .video-caption { display: none; }
}

/* Tighten the space above the cardinal divider */
#first-session.section { padding-bottom: 48px; }
.cardinal-divider { padding-top: 16px; }

/* Honeypot: parked far off-screen (display:none gets skipped by smarter bots) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hero entrance: a quiet staggered rise. Skipped entirely under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions {
    animation: bd-rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero-eyebrow { animation-delay: 0.1s; }
  .hero h1 { animation-delay: 0.25s; }
  .hero-sub { animation-delay: 0.4s; }
  .hero-actions { animation-delay: 0.55s; }
}

/* Living water: ripple rings spreading from under the arch, and faint
   glints of light on the surface. Overlays only — the painting is untouched. */
.hero-water {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-water .ripple {
  position: absolute;
  left: 76%;
  top: 84%;
  width: 260px;
  height: 60px;
  margin: -30px 0 0 -130px;
  border: 3px solid rgba(214, 238, 238, 0.42);
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(3.5px);
}
.hero-water .flow {
  position: absolute;
  left: 52%;
  top: 76%;
  width: 33%; /* must end left of the bridge's right pier (~86% at wide aspects) */
  height: 10%;
  background: linear-gradient(100deg, rgba(242, 224, 180, 0) 20%, rgba(242, 224, 180, 0.22) 45%, rgba(214, 238, 238, 0.18) 55%, rgba(242, 224, 180, 0) 80%);
  background-size: 300% 100%;
  mix-blend-mode: screen;
  filter: blur(6px);
  border-radius: 50%;
}
.hero-water .glint {
  position: absolute;
  width: 46px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 224, 180, 1), rgba(242, 224, 180, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateZ(0);
}
.hero-water .g1 { left: 62%; top: 88%; }
.hero-water .g2 { left: 80%; top: 79%; width: 34px; }
.hero-water .g3 { left: 83%; top: 92%; width: 56px; }
.hero-water .g4 { left: 70%; top: 82%; width: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-water .ripple { animation: bd-ripple 9s linear infinite; }
  .hero-water .r2 { animation-delay: 3s; }
  .hero-water .r3 { animation-delay: 6s; }
  .hero-water .glint { animation: bd-glint 7s ease-in-out infinite; }
  .hero-water .flow { animation: bd-flow 16s ease-in-out infinite alternate; }
  .hero-water .g2 { animation-delay: 1.8s; animation-duration: 8.5s; }
  .hero-water .g3 { animation-delay: 3.4s; animation-duration: 6.2s; }
  .hero-water .g4 { animation-delay: 5.1s; animation-duration: 9.4s; }
}
@keyframes bd-ripple {
  0% { transform: scale(0.25); opacity: 0; }
  12% { opacity: 0.55; }
  70% { opacity: 0.12; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes bd-glint {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.75; }
}
@keyframes bd-flow {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}
