/* =========================================
   T&R FALL THEME
   ========================================= */

.seasonal-leaf-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;

    pointer-events: none;
    z-index: 9999;
}

.seasonal-leaf {
    position: absolute;
    top: -50px;

    opacity: 0.8;

    animation-name: tr-leaf-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

@keyframes tr-leaf-fall {

    0% {
        transform:
            translate3d(0, -60px, 0)
            rotate(0deg);
    }

    50% {
        transform:
            translate3d(var(--leaf-drift), 50vh, 0)
            rotate(180deg);
    }

    100% {
        transform:
            translate3d(0, 110vh, 0)
            rotate(360deg);
    }
}

/* Phones get slightly smaller leaves */
@media (max-width: 768px) {

    .seasonal-leaf {
        opacity: 0.7;
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {

    .seasonal-leaf-layer {
        display: none;
    }
}
/* =========================================
   OCTOBER - T&R HALLOWEEN
   ========================================= */


/* ----- NAV PUMPKIN DISPLAY ----- */



.halloween-nav-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    margin: 0;

    pointer-events: none;
    z-index: 20;
}


.pumpkin-stack {
    position: relative;

    width: 58px;
    height: 48px;

    flex-shrink: 0;
}


.pumpkin-stack span {
    position: absolute;

    filter:
        drop-shadow(0 3px 3px rgba(0,0,0,.7))
        saturate(.85);
}


/* bottom left */
.pumpkin-stack span:nth-child(1) {
    font-size: 31px;
    left: 0;
    bottom: 0;

    transform: rotate(-8deg);
}


/* bottom right */
.pumpkin-stack span:nth-child(2) {
    font-size: 27px;
    right: 0;
    bottom: 0;

    transform: rotate(7deg);
}


/* top pumpkin */
.pumpkin-stack span:nth-child(3) {
    font-size: 24px;

    left: 17px;
    top: 0;
}


.fall-message {
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.4px;

    white-space: nowrap;

    color: #d88732;

    text-shadow:
        0 0 7px rgba(216,135,50,.35);
}


/* =========================================
   BATS
   ========================================= */

.seasonal-bat-layer {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 9998;
}


.seasonal-bat {
    position: absolute;

    left: -70px;

    font-size: var(--bat-size);

    opacity: .82;

    filter:
        grayscale(1)
        brightness(.35)
        drop-shadow(0 3px 4px rgba(0,0,0,.8));

    animation:
        tr-bat-fly 8s linear forwards;
}


@keyframes tr-bat-fly {

    0% {
        transform:
            translateX(-70px)
            translateY(0)
            rotate(-8deg);
    }

    25% {
        transform:
            translateX(28vw)
            translateY(-35px)
            rotate(8deg);
    }

    50% {
        transform:
            translateX(55vw)
            translateY(20px)
            rotate(-5deg);
    }

    75% {
        transform:
            translateX(82vw)
            translateY(-25px)
            rotate(7deg);
    }

    100% {
        transform:
            translateX(115vw)
            translateY(5px)
            rotate(-4deg);
    }
}


/* =========================================
   LOW GARAGE FOG
   ========================================= */

.seasonal-fog {
    position: fixed;
    left: -10%;
    bottom: -35px;

    width: 120%;
    height: 180px;

    pointer-events: none;
    z-index: 9997;

    opacity: .55;

    background:
        radial-gradient(
            ellipse at 20% 70%,
            rgba(210, 210, 210, .55) 0%,
            rgba(150, 150, 150, .28) 28%,
            transparent 65%
        ),
        radial-gradient(
            ellipse at 55% 80%,
            rgba(190, 190, 190, .45) 0%,
            rgba(120, 120, 120, .22) 32%,
            transparent 68%
        ),
        radial-gradient(
            ellipse at 85% 65%,
            rgba(220, 220, 220, .40) 0%,
            rgba(130, 130, 130, .18) 30%,
            transparent 65%
        );

    filter: blur(22px);

    animation:
        tr-fog-move 15s ease-in-out infinite alternate;
}


@keyframes tr-fog-move {

    from {
        transform: translateX(-4%);
    }

    to {
        transform: translateX(4%);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .halloween-nav-badge {
        display: none;
    }

    .pumpkin-stack {
        width: 45px;
        height: 38px;

        transform: scale(.82);
    }

    .fall-message {
        font-size: 9px;
        letter-spacing: .8px;
    }

    .seasonal-fog {
        height: 140px;
        bottom: -25px;
        opacity: .45;
        filter: blur(18px);
    }
    .explore-menu {
    position: relative;
}

.explore-menu::before,
.explore-menu::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
}

.holiday-halloween .explore-menu::before {
    content: "🎃";
    left: 14px;
}

.holiday-halloween .explore-menu::after {
    content: "🎃";
    right: 14px;
}

}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .seasonal-bat-layer{ display:none;
    }
    .seasonal-fog {
        animation: none;
    }
}
/* =========================================
   NOVEMBER / THANKSGIVING NAV
   ========================================= */

.thanksgiving-nav-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    margin: 0;
    pointer-events: none;
    z-index: 20;

    white-space: nowrap;
}

.thanksgiving-turkey {
    font-size: 25px;
    line-height: 1;
}

.thanksgiving-message {
    color: #ffb045;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

.thanksgiving-message span {
    display: block;
    font-size: 11px;
    margin-top: 3px;
    letter-spacing: 2px;
}


/* ============= DESKTOP ============= */

@media (min-width: 701px) {

    .thanksgiving-nav-badge {
        top: 50%;
        gap: 28px;
    }

    .thanksgiving-message {
        font-size: 15px;
        letter-spacing: 2.5px;
    }

    .thanksgiving-message span {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .thanksgiving-turkey {
        font-size: 27px;
    }
}


/* ============= MOBILE ============= */

@media (max-width: 700px) {

    .thanksgiving-nav-badge {
        width: 100%;
        top: 72px;
        left: 0;
        transform: none;
        display: block;
    }

    .thanksgiving-message {
        font-size: 10px;
        letter-spacing: 1px;
        line-height: 1.25;
    }

    .thanksgiving-message span {
        font-size: 9px;
        margin-top: 2px;
        letter-spacing: 1.2px;
    }

    /* Put turkeys INSIDE the Explore button */
    .thanksgiving-turkey {
        position: absolute;
        top: -47px;
        font-size: 23px;
    }

    .thanksgiving-turkey:first-child {
        left: 22px;
    }

    .thanksgiving-turkey:last-child {
        right: 22px;
    }
}
/* =========================================
   THANKSGIVING FINAL POSITION FIXES
   ========================================= */


/* ---------- DESKTOP ---------- */

@media (min-width: 701px) {

    .thanksgiving-nav-badge {
        top: 42%; /* moves banner up slightly */
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    /* Give Thanksgiving header a little more room */
    body.holiday-thanksgiving .header {
        padding-bottom: 34px;
    }

    /* Badge becomes the Happy Thanksgiving banner */
    .thanksgiving-nav-badge {
        width: 100%;
        left: 0;
        top: auto;
        bottom: 6px;
        transform: none;
        display: block;
        text-align: center;
    }

    /* Hide "Burning Diesel & Breaking Bread" on mobile */
    .thanksgiving-message {
        font-size: 0;
        line-height: 1;
    }

    /* ONLY show Happy Thanksgiving */
    .thanksgiving-message span {
        display: block;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
        margin: 0;
        line-height: 1;
    }

    /* Turkeys move up beside EXPLORE */
    .thanksgiving-turkey {
        position: absolute;
        top: -43px;
        font-size: 22px;
        line-height: 1;
    }

    .thanksgiving-turkey:first-child {
        left: 20px;
    }

    .thanksgiving-turkey:last-child {
        right: 20px;
    }
}
/* =========================================
   THANKSGIVING FINAL POSITION FIXES
   ========================================= */


/* ---------- DESKTOP ---------- */

@media (min-width: 701px) {

    .thanksgiving-nav-badge {
        top: 42%; /* moves banner up slightly */
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    /* Give Thanksgiving header a little more room */
    body.holiday-thanksgiving .header {
        padding-bottom: 20px;
    }

    /* Badge becomes the Happy Thanksgiving banner */
    .thanksgiving-nav-badge {
        width: 100%;
        left: 0;
        top: auto;
        bottom: 6px;
        transform: none;
        display: block;
        text-align: center;
    }

    /* Hide "Burning Diesel & Breaking Bread" on mobile */
    .thanksgiving-message {
        font-size: 0;
        line-height: 1;
    }

    /* ONLY show Happy Thanksgiving */
    .thanksgiving-message span {
        display: block;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
        margin: 0;
        line-height: 1;
    }

    /* Turkeys move up beside EXPLORE */
    .thanksgiving-turkey {
        position: absolute;
        top: -45px;
        font-size: 22px;
        line-height: 1;
    }

    .thanksgiving-turkey:first-child {
        left: 20px;
    }

    .thanksgiving-turkey:last-child {
        right: 20px;
    }
}