/* ==========================================================================
   Theme extras, used with designs.js and theme.js.
   - Nothing here changes Design 1 on its own: the Bold rules only apply with
     <html data-style="bold">, and the seasonal parts only exist when a season
     is active.
   - Anything that moves only moves with <html data-motion="on">. Animations
     off (or "reduce motion" on the visitor's device) keeps the decorations
     but stops the movement.
   ========================================================================== */

:root {
    --border-width: 0px;
    --border-color: transparent;
    --season-from: #9e1b32;
    --season-to: #1e5631;
    --season-text: #ffffff;
    --season-ring: #d4af37;
}

/* --------------------------------------------------------------------------
   Design 3 "Bold": flat colours, thick black outlines, hard offset shadows.
   -------------------------------------------------------------------------- */
[data-style="bold"] h1,
[data-style="bold"] h2,
[data-style="bold"] h3,
[data-style="bold"] h4,
[data-style="bold"] .nav-brand span {
    font-weight: 900;
    letter-spacing: -0.01em;
}

[data-style="bold"] .section-title {
    text-transform: uppercase;
}

[data-style="bold"] .eyebrow {
    background: var(--gold);
    color: var(--border-color);
    padding: 4px 10px;
    border: var(--border-width) solid var(--border-color);
}

[data-style="bold"] .site-header,
[data-style="bold"] .nav-links {
    background: var(--gold);
}

[data-style="bold"] .site-header {
    box-shadow: none;
    border-bottom: var(--border-width) solid var(--border-color);
}

[data-style="bold"] .nav-brand img {
    border: var(--border-width) solid var(--border-color);
}

[data-style="bold"] .btn {
    border: var(--border-width) solid var(--border-color);
    box-shadow: 4px 4px 0 var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-style="bold"] .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--border-color);
}

[data-style="bold"] .btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--border-color);
}

[data-style="bold"] .site-header .btn-gold,
[data-style="bold"] .btn-outline {
    background: var(--surface);
    color: var(--text);
}

[data-style="bold"] .btn-outline:hover {
    background: var(--gold-light);
}

[data-style="bold"] .hours-table,
[data-style="bold"] .special-hours,
[data-style="bold"] .menu-category,
[data-style="bold"] .gallery img,
[data-style="bold"] .booking-card,
[data-style="bold"] .confirmation-card,
[data-style="bold"] .social-feed-wrap {
    border: var(--border-width) solid var(--border-color);
    box-shadow: var(--shadow);
}

[data-style="bold"] .hours-table th {
    background: var(--border-color);
}

[data-style="bold"] .menu-category-title {
    border-bottom: var(--border-width) solid var(--border-color);
    text-transform: uppercase;
}

[data-style="bold"] .gallery-controls button {
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--btn-radius);
    color: var(--border-color);
    box-shadow: 3px 3px 0 var(--border-color);
}

[data-style="bold"] .field input,
[data-style="bold"] .field select,
[data-style="bold"] .field textarea,
[data-style="bold"] .booking-card textarea {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--btn-radius) !important;
    background: var(--surface) !important;
}

[data-style="bold"] .field input:focus,
[data-style="bold"] .field select:focus {
    box-shadow: 3px 3px 0 var(--gold);
}

[data-style="bold"] .site-footer {
    border-top: var(--border-width) solid var(--border-color);
}

@media (max-width: 780px) {
    [data-style="bold"] .nav-links {
        border-bottom: var(--border-width) solid var(--border-color);
        box-shadow: none;
    }
}

/* --------------------------------------------------------------------------
   Seasonal banner (inserted under the header by theme.js)
   -------------------------------------------------------------------------- */
.season-banner {
    position: relative;
    z-index: 5;
    background: linear-gradient(100deg, var(--season-from), var(--season-to));
    color: var(--season-text);
    border-bottom: 3px solid var(--season-ring);
}

[data-style="bold"] .season-banner {
    background: var(--season-from);
    border-bottom: var(--border-width) solid var(--border-color);
}

.season-banner-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
    position: relative;
}

/* Room for the fairy lights hanging from the header. */
[data-season="christmas"] .season-banner-inner {
    padding-top: 26px;
}

.season-banner-img {
    width: 64px;
    height: 64px;
    flex: none;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--season-ring);
}

.season-banner-icon {
    font-size: 2rem;
    line-height: 1;
    flex: none;
}

.season-banner-holly,
.season-menu-holly {
    flex: none;
    width: 40px;
    height: 26px;
}

.season-banner-copy {
    flex: 1;
    min-width: 0;
}

.season-banner-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.25;
}

.season-banner-text {
    margin: 2px 0 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.season-banner-btn {
    flex: none;
    padding: 10px 22px;
    font-size: 0.9rem;
}

.season-banner-close {
    flex: none;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.8;
}

.season-banner-close:hover {
    opacity: 1;
}

@media (max-width: 700px) {
    .season-banner-inner {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding-right: 40px;
    }

    .season-banner-img {
        width: 48px;
        height: 48px;
    }

    .season-banner-title {
        font-size: 1.05rem;
    }

    .season-banner-text {
        font-size: 0.88rem;
    }

    .season-banner-btn {
        width: 100%;
        text-align: center;
    }

    .season-banner-close {
        position: absolute;
        top: 8px;
        right: 12px;
    }

    [data-season="christmas"] .season-banner-close {
        top: 20px;
    }
}

/* --------------------------------------------------------------------------
   Seasonal menu highlight and "Festive" dishes (Menu section)
   -------------------------------------------------------------------------- */
.season-menu-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto 1.6rem;
    padding: 14px 20px;
    background: linear-gradient(100deg, var(--season-from), var(--season-to));
    color: var(--season-text);
    border: 2px solid var(--season-ring);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.season-menu-highlight:hover {
    transform: translateY(-2px);
}

[data-style="bold"] .season-menu-highlight {
    background: var(--season-from);
    border: var(--border-width) solid var(--border-color);
}

.season-menu-icon {
    font-size: 1.5rem;
}

.season-menu-text {
    flex: 1;
}

.season-menu-arrow {
    font-size: 1.3rem;
}

.menu-group li.festive-dish {
    padding-left: 10px;
    box-shadow: inset 3px 0 0 #d4af37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), transparent 70%);
}

.festive-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 9px;
    border-radius: 999px;
    background: #b3122a;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.03em;
    vertical-align: 2px;
}

/* --------------------------------------------------------------------------
   Christmas decorations (added by theme.js only while Christmas is on)
   -------------------------------------------------------------------------- */

/* Fairy lights hanging in loops under the header (it's sticky, so they follow). */
.xmas-lights {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 32px;
    z-index: -1; /* under the open mobile menu */
    pointer-events: none;
    overflow: hidden;
}

.xmas-lights svg {
    display: block;
}

[data-motion="on"] .xmas-bulb {
    animation: bb-twinkle 3.4s ease-in-out infinite;
}

[data-motion="on"] .xmas-bulb.d1 { animation-delay: -1.1s; }
[data-motion="on"] .xmas-bulb.d2 { animation-delay: -2.3s; }

@keyframes bb-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Night sky in the hero: a soft moon and Santa's sleigh flying past every 24s. */
.xmas-sky {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.xmas-moon {
    position: absolute;
    right: 6%;
    top: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #fffdf0, #efe2b0);
    box-shadow: 0 0 50px rgba(255, 246, 200, 0.35);
    opacity: 0.85;
}

.xmas-sleigh {
    position: absolute;
    top: 48px;
    left: 0;
    width: 230px;
    height: 48px;
    color: #f6efdf;
    opacity: 0;
}

[data-motion="on"] .xmas-sleigh {
    animation: bb-fly 24s linear infinite;
}

/* Animations off: the sleigh waits beside the moon instead. */
[data-motion="off"] .xmas-sleigh {
    opacity: 0.8;
    left: auto;
    right: calc(6% + 76px);
    top: 56px;
}

@keyframes bb-fly {
    0% { transform: translate(-260px, 24px); opacity: 0; }
    3% { opacity: 0.85; }
    32% { opacity: 0.85; }
    36% { transform: translate(calc(100vw + 20px), -16px); opacity: 0; }
    100% { transform: translate(calc(100vw + 20px), -16px); opacity: 0; }
}

/* Three baubles swinging in the hero's top corner (not on phones). */
.xmas-baubles {
    position: absolute;
    top: 0;
    left: max(2vw, 8px);
    width: 140px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.xmas-sway {
    transform-origin: 50% 0;
    transform-box: fill-box;
}

[data-motion="on"] .xmas-sway { animation: bb-sway 5s ease-in-out infinite; }
[data-motion="on"] .xmas-sway.b { animation-duration: 6.4s; animation-delay: -2s; }
[data-motion="on"] .xmas-sway.c { animation-duration: 5.7s; animation-delay: -4s; }

@keyframes bb-sway {
    0%, 100% { transform: rotate(4deg); }
    50% { transform: rotate(-4deg); }
}

/* Snowdrift along the bottom of the hero. */
.xmas-drift {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 22px;
    z-index: 1;
    pointer-events: none;
}

.xmas-drift svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Snow resting on top of the cards. */
[data-season="christmas"] .menu-category {
    position: relative;
    overflow: visible;
}

[data-season="christmas"] .menu-category-title {
    border-radius: var(--radius);
}

[data-season="christmas"] .menu-category-title.active {
    border-radius: var(--radius) var(--radius) 0 0;
}

[data-season="christmas"] .menu-category-content {
    border-radius: 0 0 var(--radius) var(--radius);
}

[data-season="christmas"] .booking-card,
[data-season="christmas"] .confirmation-card {
    position: relative;
}

[data-season="christmas"] .menu-category::before,
[data-season="christmas"] .booking-card::before,
[data-season="christmas"] .confirmation-card::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: -9px;
    height: 15px;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 100%, #fff 6px, transparent 7px),
        radial-gradient(circle at 63% 100%, #fff 5px, transparent 6px),
        #fff;
    border-radius: 16px 16px 8px 8px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

[data-season="christmas"][data-style="bold"] .menu-category::before,
[data-season="christmas"][data-style="bold"] .booking-card::before,
[data-season="christmas"][data-style="bold"] .confirmation-card::before {
    border: 2px solid var(--border-color);
    top: -11px;
}

@media (max-width: 700px) {
    .xmas-baubles {
        display: none;
    }

    .xmas-moon {
        width: 44px;
        height: 44px;
        top: 30px;
    }

    .xmas-sleigh {
        width: 160px;
        height: 34px;
        top: 38px;
    }

    [data-motion="off"] .xmas-sleigh {
        right: calc(6% + 52px);
        top: 40px;
    }
}

/* --------------------------------------------------------------------------
   Falling snow / leaves / blossom (one canvas, added by theme.js)
   -------------------------------------------------------------------------- */
.season-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90; /* under the sticky header (100), over the page */
}

@media (prefers-reduced-motion: reduce) {
    .season-canvas {
        display: none;
    }

    .xmas-bulb,
    .xmas-sway,
    .season-menu-highlight,
    .season-menu-highlight:hover {
        animation: none !important;
        transition: none;
        transform: none;
    }
}
