/* ---------- New Premium Preloader ---------- */
#wedding-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, #ffffff 0%, #fff5f7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.dark #wedding-preloader {
    background: radial-gradient(circle at center, #1a0b10 0%, #0f0508 100%);
}

#wedding-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Floating Petals */
.petal-1,
.petal-2,
.petal-3 {
    content: "";
    position: absolute;
    background: #ee2b5b;
    border-radius: 150% 0 150% 0;
    opacity: 0.1;
    filter: blur(1px);
    pointer-events: none;
    z-index: 1;
}

.petal-1 {
    width: 15px;
    height: 18px;
    left: 20%;
    bottom: -20px;
    animation: petal-fly 9s infinite linear;
}

.petal-2 {
    width: 12px;
    height: 14px;
    left: 50%;
    bottom: -20px;
    animation: petal-fly 7s infinite linear 2s;
}

.petal-3 {
    width: 18px;
    height: 22px;
    left: 80%;
    bottom: -20px;
    animation: petal-fly 11s infinite linear 4s;
}

@keyframes petal-fly {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.15;
    }

    80% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-110vh) rotate(450deg);
        opacity: 0;
    }
}

/* Center Container */
.preloader-icon-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.preloader-heart {
    color: #ee2b5b;
    font-size: 4.5rem !important;
    line-height: 1;
    filter: drop-shadow(0 0 15px rgba(238, 43, 91, 0.3));
    animation: premium-pulse 2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.preloader-ring {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(238, 43, 91, 0.1);
    border-top: 2px solid #ee2b5b;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    animation: rotate 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    z-index: 1;
}

.loading-text {
    margin-top: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ee2b5b;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.6;
    animation: text-fade 1.5s infinite ease-in-out;
    z-index: 2;
}

@keyframes premium-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(238, 43, 91, 0.23));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(238, 43, 91, 0.5));
    }
}

@keyframes text-fade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ---------- Utility animation classes ---------- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 15s ease-in-out infinite;
}

.badge-pulse {
    animation: subtlePulse 2s infinite ease-in-out;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* ---------- Accordion transition ---------- */
details[open] summary~* {
    animation: fadeInUp 0.4s ease-out;
}

/* ---------- Hover card effects ---------- */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover-card-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgb(238 43 91 / 0.15);
}

/* ---------- Filter button transition ---------- */
.filter-btn-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn-transition:hover {
    transform: translateY(-2px);
}

/* ---------- Material Symbols icon fix ---------- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-display: block;
}

/* ---------- Blocksy full-width wrapper ---------- */
.wedding-ui-wrapper {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: #f8f6f6;
}

.dark .wedding-ui-wrapper {
    background-color: #221015;
}

/*
 * Sub-page header offset
 * Blocksy sticky header: use --theme-header-height if available,
 * fallback to 80px. Applied via .wedding-subpage class on non-homepage wrappers.
 */
.wedding-subpage {
    padding-top: var(--theme-header-height, 80px);
}

/* Hide Blocksy page title that may conflict */
.page-header,
.entry-header {
    display: none !important;
}

#content {
    padding: 0 !important;
    max-width: none !important;
}


/* ---------- Scroll reveal (legacy fallback) ---------- */
.reveal-item,
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item.is-visible,
.reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---------- Animate-on-scroll (pricing page) ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
    animation: fadeInUp 0.8s ease-out forwards;
}