.elementor-kit-9{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-9 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS *//* ======================================================
   FULLSCREEN ENVELOPE OVERLAY CONTAINER
   ====================================================== */
.envelope-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    
    /* Solid background prevents ANY part of the homepage from leaking through */
    background: #FFFFFF !important; /* Replace with your desired color (e.g. #FAF8F5 for off-white) */
    
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;

    /* Perspective gives the flap realistic 3D depth as it rises */
    perspective: 1200px;
}

/* Ensure background transparency inside the wrapper components */
.envelope,
.envelope-body,
.envelope-flap {
    background: transparent !important;
}

/* ======================================================
   ENVELOPE WRAPPER (FULLSCREEN STRETCH)
   ====================================================== */
.envelope-wrapper {
    position: relative;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================================================
   ENVELOPE BASE (BOTTOM POCKET)
   ====================================================== */
.envelope-body {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
    /* Cover forces the image to fill the entire screen, matching mobile */
    object-fit: cover !important;
    object-position: center !important;
    z-index: 10;
}

/* ======================================================
   ENVELOPE FLAP & SEAL (TOP RISING PIECE)
   ====================================================== */
.envelope-flap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
    /* Cover forces the flap image to match base dimensions exactly */
    object-fit: cover !important;
    object-position: center !important;
    z-index: 20;

    /* Sets flap hinge along the top edge */
    transform-origin: top center;
    transform-style: preserve-3d !important;
    cursor: pointer;

    /* Hardware acceleration & backface fix for Chrome/Safari */
    will-change: transform, opacity;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: rotateX(0deg) translateZ(0);

    /* Clean shadow without dynamic expensive box re-filters */
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.12));

    /* Smooth transition for flap movement and fade */
    transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 1.5s ease-in-out !important;
}

/* Optional hover boost before clicking */
.envelope-flap:hover {
    filter: drop-shadow(0px 12px 18px rgba(0, 0, 0, 0.18));
}

/* ======================================================
   TAP TO OPEN HINT
   ====================================================== */
.tap-to-open {
    position: absolute !important;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    color: #9FAD8C;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

/* ======================================================
   OPENING ANIMATION TRIGGER
   ====================================================== */

/* Flap rotates open AND fades out so the upside-down seal disappears */
.envelope.open .envelope-flap,
.envelope-overlay.is-opening .envelope-flap {
    transform: rotateX(160deg) !important;
    opacity: 0 !important;
}

/* Hide tap text immediately on click */
.envelope-overlay.is-opening .tap-to-open {
    opacity: 0;
    pointer-events: none;
}

/* Softly fade out and remove overlay AFTER the flap opens */
.envelope-overlay.is-opening {
    pointer-events: none;
    animation: fadeAndRemove 1.0s ease 1.2s forwards;
}

@keyframes fadeAndRemove {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
        visibility: hidden;
    }
}/* End custom CSS */