/* DT Solutions — Seasonal theme styles (shared by every festival).
   Colours come from CSS variables the engine sets per theme:
   --season-a / --season-b (banner gradient), --season-accent, --season-text. */

/* ---------- greeting banner above the menu ---------- */
.season-banner {
    display: flex; align-items: center; justify-content: center; gap: .3rem .9rem; flex-wrap: wrap;
    margin-bottom: .5rem; padding: .4rem 1rem; border-radius: 1.2rem; text-align: center;
    font-family: var(--font-sans), sans-serif;
    font-size: .84rem; font-weight: 600; line-height: 1.5; color: var(--season-text, #fff);
    background: linear-gradient(100deg, var(--season-a), var(--season-b));
    border: 1px solid color-mix(in srgb, var(--season-accent) 60%, transparent);
    box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--season-a) 85%, transparent), inset 0 0 18px color-mix(in srgb, var(--season-accent) 15%, transparent);
    max-height: 5rem; overflow: hidden;
    animation: seasonIn .5s ease both;
    transition: max-height .35s ease, opacity .3s ease, margin .35s ease, padding .35s ease;
}
.season-count { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .6rem; border-radius: 999px; background: rgba(0,0,0,.22); color: var(--season-accent); font-size: .76rem; }
.season-count-left { font-family: var(--font-mono, monospace); }
.season-cta { color: var(--season-accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.season-cta:hover { color: #fff; }
.site-header.is-scrolled .season-banner { max-height: 0; opacity: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
@media (max-width: 991.98px) { .season-cta { display: none; } }

/* Make room for the banner and the artwork. */
body.has-season .hero, body.has-season .page-hero { padding-top: 12rem; }
@media (min-width: 992px) {
    body.has-season .hero { padding-top: 12.5rem; padding-bottom: 15rem; }
    body.has-season .page-hero { padding-top: 13rem; padding-bottom: 10rem; }
}
@media (max-width: 991.98px) { body.has-season .hero { padding-bottom: 13rem; } body.has-season .page-hero { padding-bottom: 9rem; } }

/* ---------- logo accent ---------- */
.navbar-brand { position: relative; }
.season-logo { position: absolute; left: -9px; top: -14px; z-index: 2; pointer-events: none; transform: rotate(-16deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.season-logo svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- garland under the menu bar ---------- */
.nav-shell { position: relative; }
.season-garland { position: absolute; left: 22px; right: 22px; bottom: -16px; height: 24px; overflow: hidden; pointer-events: none; display: flex; justify-content: space-between; }
/* lights on a scalloped wire */
.season-garland-lights { background: radial-gradient(circle at 50% -7px, transparent 10px, #475569 10px 11.5px, transparent 12px) repeat-x 0 0 / 34px 12px; }
.season-garland-lights i { position: relative; flex: 0 0 auto; width: 8px; height: 12px; margin: 5px 13px 0; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: var(--c); box-shadow: 0 0 8px 2px var(--c); animation: seasonTwinkle 1.6s ease-in-out infinite; animation-delay: var(--d); }
.season-garland-lights i::before { content: ''; position: absolute; top: -3px; left: 2px; width: 4px; height: 4px; border-radius: 1px; background: #334155; }
/* triangular flags on a cord */
.season-garland-bunting { border-top: 2px solid #78350f; }
.season-garland-bunting i { flex: 0 0 auto; width: 16px; height: 18px; margin: 0 8px; clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: var(--c); transform-origin: 50% 0; animation: seasonSway 2.8s ease-in-out infinite; animation-delay: var(--d); filter: drop-shadow(0 1px 1px rgba(10,31,92,.35)); }
/* little hearts on a ribbon */
.season-garland-hearts { border-top: 2px solid #f9a8d4; }
.season-garland-hearts i { flex: 0 0 auto; width: 14px; height: 13px; margin: 3px 9px 0; background: var(--c); transform-origin: 50% 0; animation: seasonSway 2.8s ease-in-out infinite; animation-delay: var(--d);
    clip-path: path('M7 13 C 0 8, -1 2, 3 1 C 5 0, 7 2, 7 3 C 7 2, 9 0, 11 1 C 15 2, 14 8, 7 13 Z'); }

/* ---------- canvases ---------- */
.season-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1020; pointer-events: none; }
.season-fireworks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ---------- hero artwork ---------- */
.season-art { position: absolute; z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; width: var(--art-w, 200px); animation: seasonIn .6s ease both; }
.season-art-hero { left: 2%; bottom: 16px; }
.season-art-page { right: 5%; bottom: 10px; width: calc(var(--art-w, 200px) * .75); }
.season-art-svg, .season-art-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.season-art-svg svg { filter: drop-shadow(0 10px 14px rgba(10,31,92,.2)); }
.season-art:focus-visible { outline: 3px solid var(--cyan-400, #00c2ff); outline-offset: 4px; border-radius: 1rem; }
.season-art.is-bouncing .season-art-svg { animation: seasonBounce .5s ease 2; }
@media (max-width: 991.98px) { .season-art-hero { left: auto; right: 4%; width: calc(var(--art-w, 200px) * .78); } }
@media (max-width: 575.98px) {
    .season-art-hero { width: calc(var(--art-w, 200px) * .6); bottom: 12px; }
    .season-art-page { width: calc(var(--art-w, 200px) * .5); right: 3%; }
}

.season-bubble {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px) scale(.9);
    white-space: nowrap; padding: .45rem .8rem; border-radius: .9rem; background: #fff; color: var(--season-a);
    font-family: var(--font-sans), sans-serif; font-size: .82rem; font-weight: 700;
    box-shadow: 0 12px 28px -12px rgba(10,31,92,.45); border: 1px solid color-mix(in srgb, var(--season-accent) 70%, #fff);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.season-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #fff; }
.season-art:hover .season-bubble, .season-art:focus-visible .season-bubble, .season-art.show-bubble .season-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Reusable animation classes used inside the artwork (seasonalThemes.js). */
.season-art .s-sway { transform-box: view-box; animation: seasonSway 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
.season-art .s-float { transform-box: fill-box; transform-origin: 50% 100%; animation: seasonFloat 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.85s); }
.season-art .s-bob { animation: seasonBob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.6s); }
.season-art .s-flicker, .season-logo .s-flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: seasonFlicker 1.1s ease-in-out infinite alternate; }
.season-art .s-glow { transform-box: fill-box; transform-origin: center; animation: seasonGlow 2.2s ease-in-out infinite alternate; }
.season-art .s-twinkle { animation: seasonTwinkle 1.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.3s); }
/* "glow" click action: everything marked s-litup shines brighter for a moment */
.season-art.is-lit .s-litup { animation: none; opacity: 1; filter: brightness(1.25); }
.season-art.is-lit .s-litup .s-twinkle { animation-duration: .45s; }

/* ---------- small accents on the existing design ---------- */
body.has-season .eyebrow:not(:has(.ping-dot))::after { content: var(--season-icon, '✦'); color: var(--season-a); font-size: .8rem; margin-left: -.1rem; }
body.has-season .cta-box { box-shadow: 0 30px 60px -20px rgba(21,101,224,.5), 0 0 0 2px color-mix(in srgb, var(--season-accent) 70%, transparent); }


@keyframes seasonIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes seasonTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes seasonSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes seasonFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes seasonBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes seasonFlicker { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.92, 1.08) rotate(2deg); } 100% { transform: scale(1.05, .95) rotate(-1deg); } }
@keyframes seasonGlow { from { opacity: .6; } to { opacity: 1; } }
@keyframes seasonBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scale(1.03); } }

@media (prefers-reduced-motion: reduce) {
    .season-banner, .season-art, .season-garland i, .season-art .s-sway, .season-art .s-float, .season-art .s-bob,
    .season-art .s-flicker, .season-logo .s-flicker, .season-art .s-glow, .season-art .s-twinkle { animation: none !important; }
}

/* ---------- Santa standing in the bottom-left corner (Christmas) ---------- */
.season-santa { position: fixed; left: 16px; bottom: 16px; z-index: 1040; width: 150px; height: 178px; pointer-events: none; }
.season-santa .santa-disc { position: absolute; left: 0; bottom: 0; width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f6ff 70%, #dbe7fb 100%);
    border: 4px solid #dc2626; box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(10,31,92,.28); }
.season-santa .santa-img { position: absolute; left: 50%; bottom: 10px; width: auto; height: 168px; transform: translateX(-50%);
    transform-origin: 50% 100%; animation: santaSway 3.5s ease-in-out infinite; }
.santa-bubble { position: absolute; left: 150px; top: 40px; white-space: nowrap; background: #fff; color: #b4232a;
    font: 700 .8rem/1.2 Inter, system-ui, sans-serif; padding: .45rem .8rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(10,31,92,.2);
    opacity: 0; transform: translateY(6px); animation: santaSay 12s ease-in-out 1.5s infinite both; }
.santa-bubble::before { content: ''; position: absolute; left: -6px; bottom: 6px; border: 6px solid transparent; border-right-color: #fff; border-left: 0; }
.season-santa .santa-close { position: absolute; left: 128px; bottom: 150px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
    background: #0a1f5c; color: #fff; font-size: 18px; line-height: 26px; text-align: center; cursor: pointer; pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,.2); opacity: .85; }
.season-santa .santa-close:hover, .season-santa .santa-close:focus-visible { opacity: 1; background: #dc2626; }
@keyframes santaSway { 0%, 100% { transform: translateX(-50%) rotate(-2deg); } 50% { transform: translateX(-50%) rotate(2deg); } }
@keyframes santaSay { 0%, 5% { opacity: 0; transform: translateY(6px); } 10%, 45% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; transform: translateY(6px); } }
@media (max-width: 575.98px) {
    .season-santa { left: 10px; bottom: 10px; width: 104px; height: 124px; }
    .season-santa .santa-disc { width: 104px; height: 104px; border-width: 3px; box-shadow: 0 0 0 3px #fff, 0 10px 22px rgba(10,31,92,.28); }
    .season-santa .santa-img { height: 116px; bottom: 7px; }
    .santa-bubble { left: 104px; top: 30px; font-size: .72rem; }
    .season-santa .santa-close { left: 88px; bottom: 104px; width: 24px; height: 24px; line-height: 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .season-santa .santa-img, .santa-bubble { animation: none; } .santa-bubble { opacity: 1; transform: none; } }
@media print { .season-santa { display: none; } }
