/* ═══════════════════════════════════════════════
   PAGE TRANSITION SYSTEM
   Pinewood Landscapes
   ═══════════════════════════════════════════════ */


/* --- Guard: hide body until entrance animation is ready --- */
html.is-transitioning body {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* --- Transition Wrapper --- */
.site-transition-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    pointer-events: none;
    display: flex;
}


/* --- Sweep Panels --- */
.transition-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    will-change: transform;
    opacity: 1;
}

.block-1 { background-color: #283A15; z-index: 30; }
.block-2 { background-color: #354425; z-index: 20; }
.block-3 { background-color: #f7e3d0; z-index: 10; }


/* --- Mobile Menu Overlay --- */
#prestige-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-forest);
    z-index: 5;
    display: none;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 44px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.prestige-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    min-height: 100%;
    width: 100%;
	padding: 0 2rem;
}

body.menu-active #prestige-mobile-menu {
    display: flex;
    pointer-events: auto;
}

body.menu-active {
    overflow: hidden;
}


/* --- Menu Links --- */
.prestige-link {
    display: block;
    color: var(--c-sand) !important;
    text-decoration: none !important;
    font-size: 3.5rem !important;
    font-weight: 400 !important;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    font-family: inherit;
    /*text-align: center;*/
}

.prestige-detail {
    color: var(--c-sand);
    opacity: 0;
    margin-top: 1rem;
    font-size: 1.1rem;
    /*text-align: center;*/
}


/* --- Leaving Animation (covers screen) --- */
.is-leaving .transition-block {
    animation: sweepInRight 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.is-leaving .block-3 { animation-delay: 0s; }
.is-leaving .block-2 { animation-delay: 0.1s; }
.is-leaving .block-1 { animation-delay: 0.2s; }


/* --- Entering Animation (reveals page) --- */
.is-entering .transition-block {
    animation: pullBackLeft 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.is-entering .block-1 { animation-delay: 0s; }
.is-entering .block-2 { animation-delay: 0.1s; }
.is-entering .block-3 { animation-delay: 0.2s; }


/* --- Keyframes --- */
@keyframes sweepInRight {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes pullBackLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* --- Hamburger icon fix --- */
#mobile-toggle-trigger svg {
    pointer-events: none !important;
}

/* ==========================================================================
   FAQ ACCORDION ANIMATIONS
   ========================================================================== */

/* --- 1. Icon Rotation (Spring Easing) --- */
.faq-icon {
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.6s linear(0, 1 44.7%, 0.898 51.8%, 0.874 55.1%, 0.866 58.4%, 0.888 64.3%, 1 77.4%, 0.98 84.5%, 1);
}

.faq-item.is-open .faq-icon {
  transform: rotate(90deg);
}

/* --- 2. "Slot Machine" Status Text Mask --- */
.faq-status {
  height: 1lh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.faq-status-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  transform: translateY(0%);
}

.faq-item.is-open .faq-status-inner {
  transform: translateY(-55%);
}

.faq-status-inner > * {
  line-height: 1;
}