/* Homepage motion touches */

/* Discover section: slow drift on the backdrop photo */
.discover-section {
    position: relative;
    isolation: isolate;
}

.discover-section::before {
    content: "";
    position: absolute;
    inset: -3%;
    z-index: -2;
    background: inherit;
    background-size: cover;
    background-position: center;
    animation: hgDrift 32s ease-in-out infinite alternate;
    will-change: transform;
    pointer-events: none;
}

.discover-section .hg-motes {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes hgDrift {
    0% { transform: scale(1) translate3d(0, 0, 0); }
    50% { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
    100% { transform: scale(1.09) translate3d(1%, -1.5%, 0); }
}

/* Testimonial stars: a gentle golden wave */
.testimonial-section .testimonial-stars span {
    display: inline-block;
    transform-origin: 50% 60%;
    animation: hgStarWave 4s ease-in-out infinite;
}

.testimonial-section .testimonial-stars span:nth-child(2) { animation-delay: .12s; }
.testimonial-section .testimonial-stars span:nth-child(3) { animation-delay: .24s; }
.testimonial-section .testimonial-stars span:nth-child(4) { animation-delay: .36s; }
.testimonial-section .testimonial-stars span:nth-child(5) { animation-delay: .48s; }

.testimonial-section .swiper-slide-active .testimonial-stars span {
    animation: hgStarIn .6s cubic-bezier(.2, .9, .3, 1.4) both, hgStarWave 4s 1.2s ease-in-out infinite;
}

.testimonial-section .swiper-slide-active .testimonial-stars span:nth-child(2) { animation-delay: .08s, 1.32s; }
.testimonial-section .swiper-slide-active .testimonial-stars span:nth-child(3) { animation-delay: .16s, 1.44s; }
.testimonial-section .swiper-slide-active .testimonial-stars span:nth-child(4) { animation-delay: .24s, 1.56s; }
.testimonial-section .swiper-slide-active .testimonial-stars span:nth-child(5) { animation-delay: .32s, 1.68s; }

@keyframes hgStarWave {
    0%, 22%, 100% { transform: none; text-shadow: none; }
    8% { transform: translateY(-4px) scale(1.18) rotate(-8deg); text-shadow: 0 0 12px rgba(201, 178, 92, .75); }
    15% { transform: translateY(0) scale(.96); }
}

@keyframes hgStarIn {
    from { opacity: 0; transform: scale(.3) rotate(-40deg); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .discover-section::before,
    .testimonial-section .testimonial-stars span {
        animation: none !important;
    }

    .discover-section .hg-motes {
        display: none;
    }
}

/* Hero video: black fade rising from the bottom (plus a soft fade under the header) */
.hero-section .wp-block-cover:has(.wp-block-cover__video-background)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .96) 0%,
            rgba(0, 0, 0, .78) 14%,
            rgba(0, 0, 0, .42) 34%,
            rgba(0, 0, 0, 0) 62%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, .55) 0%,
            rgba(0, 0, 0, 0) 26%);
}

.hero-section .wp-block-cover:has(.wp-block-cover__video-background) .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* Testimonials: large serif quote marks */
.testimonial-section .testimonial-card { position: relative; }

.testimonial-section .testimonial-card::before,
.testimonial-section .testimonial-card::after {
    position: absolute;
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-weight: 700;
    font-size: 190px;
    line-height: 1;
    color: var(--wp--preset--color--custom-golden);
    pointer-events: none;
}

.testimonial-section .testimonial-card::before { content: "\201C"; top: 18px; left: 34px; }
.testimonial-section .testimonial-card::after { content: "\201D"; right: 34px; bottom: -58px; }

@media (max-width: 781px) {
    .testimonial-section .testimonial-card::before,
    .testimonial-section .testimonial-card::after { font-size: 110px; }
    .testimonial-section .testimonial-card::before { top: 8px; left: 14px; }
    .testimonial-section .testimonial-card::after { right: 14px; bottom: -34px; }
}
.testimonial-section .testimonial-card blockquote { quotes: none; }
.testimonial-section .testimonial-card blockquote::before,
.testimonial-section .testimonial-card blockquote::after { content: none !important; }
