/* Public seasonal layer. Remove sma-halloween to restore the standard site.
   The family photograph is restricted to the homepage; forms keep their layout. */
.halloween-pumpkin,
.halloween-dangling-spider,
.halloween-mobile-booking,
.halloween-scene {
    display: none;
}

body.sma-halloween {
    background-color: #fffdf9;
    background-image:
        radial-gradient(ellipse at 0 280px, rgba(237, 147, 62, 0.07), transparent 450px),
        radial-gradient(ellipse at 100% 620px, rgba(55, 34, 62, 0.04), transparent 420px);
}
body.sma-halloween.sma-halloween-home .hero {
    background:
        linear-gradient(rgba(0, 20, 60, 0.64), rgba(0, 16, 48, 0.78)),
        url('../img/halloween-hero-2026.webp') center / cover;
}
body.sma-halloween .hero-content {
    position: relative;
    z-index: 1;
}
body.sma-halloween > header {
    box-shadow:
        0 2px 0 #d4af37,
        0 4px 20px rgba(16, 27, 56, 0.09);
}
body.sma-halloween > header::before,
body.sma-halloween > header::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 112px;
    height: 112px;
    background: url('../img/halloween-cobweb.svg') top left / contain no-repeat;
    pointer-events: none;
    opacity: 0.55;
}
body.sma-halloween > header::before {
    left: 0;
}
body.sma-halloween > header::after {
    right: 0;
    transform: scaleX(-1);
}
body.sma-halloween .logo > a {
    position: relative;
}
body.sma-halloween .halloween-pumpkin {
    display: inline-block;
    width: 34px;
    height: 40px;
    flex: 0 0 34px;
    margin-left: 9px;
    background: url('../img/halloween-pumpkin.svg') center / contain no-repeat;
    filter: drop-shadow(0 3px 3px rgba(83, 40, 22, 0.17));
    pointer-events: none;
    transform: rotate(6deg);
}
body.sma-halloween .nav-links {
    gap: 22px;
}
body.sma-halloween .nav-cta {
    position: relative;
}
body.sma-halloween .halloween-dangling-spider {
    display: block;
    width: 48px;
    height: 88px;
    position: absolute;
    top: calc(100% - 2px);
    right: 14px;
    background: url('../img/halloween-spider.svg') center / contain no-repeat;
    pointer-events: none;
    transform-origin: 50% 0;
    z-index: 2;
}
body.sma-halloween .halloween-scene {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    height: 78px;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 25%, #f3cc8090 0 1px, transparent 2px),
        radial-gradient(circle at 71% 72%, #f3cc8080 0 1px, transparent 2px),
        radial-gradient(circle at 40% 81%, #f3cc8050 0 1px, transparent 2px),
        linear-gradient(110deg, #101b38 10%, #37223e 52%, #101b38 95%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
}
body.sma-halloween .halloween-scene::before,
body.sma-halloween .halloween-scene::after {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}
body.sma-halloween .halloween-scene::before {
    width: 142px;
    height: 82px;
    bottom: -8px;
    left: max(40px, calc((100% - 1080px) / 2));
    background-image: url('../img/halloween-pumpkin-cluster.svg');
}
body.sma-halloween .halloween-scene::after {
    width: 176px;
    height: 80px;
    top: 0;
    right: max(54px, calc((100% - 1000px) / 2));
    background-image: url('../img/halloween-moon-bats.svg');
}
body.sma-halloween .halloween-scene-label {
    color: #f3cc80;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
body.sma-halloween > .container > h1 {
    text-decoration: underline;
    text-decoration-color: #ed933e;
    text-decoration-thickness: 2px;
    text-underline-offset: 12px;
}
body.sma-halloween > footer {
    position: relative;
    padding-top: 108px;
    background:
        radial-gradient(ellipse at 85% 0, rgba(237, 147, 62, 0.12), transparent 45%),
        linear-gradient(115deg, #101b38, #211c3b 65%, #101b38);
    border-top: 2px solid #b88b48;
}
body.sma-halloween > footer::before,
body.sma-halloween > footer::after {
    content: '';
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}
body.sma-halloween > footer::before {
    background-image: url('../img/halloween-pumpkin-cluster.svg');
    width: 220px;
    height: 127px;
    top: -38px;
    right: max(24px, calc((100% - 1120px) / 2));
}
body.sma-halloween > footer::after {
    background-image: url('../img/halloween-cobweb.svg');
    width: 130px;
    height: 130px;
    top: 0;
    left: 0;
    opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
    body.sma-halloween .halloween-dangling-spider {
        animation: sma-halloween-spider-dangle 4.8s ease-in-out both;
    }
    body.sma-halloween .halloween-scene::after {
        animation: sma-halloween-night-arrival 3.6s ease-out both;
    }
}
@keyframes sma-halloween-spider-dangle {
    0% {
        transform: scaleY(0.4) rotate(-5deg);
        opacity: 0;
    }
    45% {
        transform: scaleY(1) rotate(5deg);
        opacity: 1;
    }
    72% {
        transform: rotate(-4deg);
    }
    100% {
        transform: rotate(0);
        opacity: 1;
    }
}
@keyframes sma-halloween-night-arrival {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Preserve the existing 80px header/menu geometry at intermediate widths. */
@media (max-width: 1180px) {
    body.sma-halloween .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fffdf9;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        z-index: 3;
    }
    body.sma-halloween .nav-links.active {
        display: flex;
    }
    body.sma-halloween .halloween-mobile-booking {
        display: list-item;
    }
    body.sma-halloween .halloween-mobile-booking a {
        color: var(--primary-blue);
        font-weight: 700;
        border-bottom: 2px solid #ed933e;
        padding-bottom: 5px;
    }
    body.sma-halloween .menu-toggle {
        display: block;
    }
    body.sma-halloween .nav-cta {
        display: none;
    }
}
@media (max-width: 768px) {
    body.sma-halloween.sma-halloween-home .hero {
        background-position: 58% center;
    }
    body.sma-halloween > header::before,
    body.sma-halloween > header::after {
        width: 52px;
        height: 52px;
    }
    body.sma-halloween .halloween-scene {
        height: 66px;
    }
    body.sma-halloween .halloween-scene-label {
        font-size: 1.05rem;
        letter-spacing: 0.03em;
    }
    body.sma-halloween .halloween-scene::before {
        width: 87px;
        height: 58px;
        left: 4px;
        bottom: -4px;
    }
    body.sma-halloween .halloween-scene::after {
        width: 88px;
        height: 48px;
        top: 10px;
        right: -5px;
    }
    body.sma-halloween > footer::before {
        width: 155px;
        height: 90px;
        top: -28px;
        right: 18px;
    }
    body.sma-halloween > footer {
        padding-top: 80px;
    }
}
@media (max-width: 480px) {
    body.sma-halloween .logo {
        font-size: 0.98rem;
    }
    body.sma-halloween .logo > a > img {
        height: 40px !important;
        width: 40px;
        margin-right: 7px !important;
    }
    body.sma-halloween .halloween-pumpkin {
        width: 24px;
        height: 30px;
        flex-basis: 24px;
        margin-left: 5px;
    }
}
@media (max-width: 360px) {
    body.sma-halloween .logo {
        font-size: 0.85rem;
    }
    body.sma-halloween .halloween-pumpkin {
        width: 20px;
        flex-basis: 20px;
        margin-left: 3px;
    }
    body.sma-halloween .halloween-scene-label {
        font-size: 0.95rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.sma-halloween.sma-halloween-home .hero h1,
    body.sma-halloween.sma-halloween-home .hero p,
    body.sma-halloween.sma-halloween-home .hero-buttons {
        animation: none;
        opacity: 1;
    }
}
