/*
 * VirtualFlex seasonal Christmas theme
 * Keep this file separate from style.css so the seasonal design can be removed cleanly.
 * Enable for December, then remove the stylesheet link and snow canvas from home.blade.
 */

:root {
    --vf-xmas-red: #a9232d;
    --vf-xmas-green: #0d493d;
    --vf-xmas-gold: #d9b66f;
    --vf-xmas-ice: #f4f8fb;
}

/* Decorative layers never block links, buttons, or scrolling. */
.vf-christmas-snow {
    position: fixed;
    inset: 0;
    z-index: 40;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .72;
}

.vf-christmas-glow {
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    z-index: 41;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%, var(--vf-xmas-red) 12%, var(--vf-xmas-gold) 27%,
        #f5f1df 42%, var(--vf-xmas-green) 58%, var(--vf-xmas-gold) 75%,
        var(--vf-xmas-red) 90%, transparent 100%);
    box-shadow: 0 0 12px rgba(217, 182, 111, .45);
}

/* Seasonal hero treatment: retain original hero imagery and typography. */
.vf-hero {
    isolation: isolate;
}

.vf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 85% 12%, rgba(217, 182, 111, .16), transparent 32%),
        linear-gradient(115deg, rgba(5, 27, 44, .10), transparent 48%);
}

.vf-hero__copy {
    position: relative;
    z-index: 2;
}

.vf-hero__eyebrow i {
    background: var(--vf-xmas-red);
    box-shadow: 0 0 0 4px rgba(169, 35, 45, .13), 0 0 16px rgba(217, 182, 111, .5);
}

.vf-hero .vf-btn--gold {
    background: linear-gradient(115deg, #b88b45, #e2c783);
    border-color: #e2c783;
    color: #102d40;
    box-shadow: 0 8px 24px rgba(169, 35, 45, .16);
}

.vf-hero .vf-btn--gold:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

/* Small festive accent on section headings, without changing their text. */
.vf-solutions .solutions-title,
.vf-why-choose__header h2,
.vf-principles-redesign__heading h2,
.vf-engineering__header h2,
.vf-process__header h2,
.vf-industry-grid__heading {
    text-decoration-color: rgba(169, 35, 45, .35);
    text-decoration-thickness: 3px;
    text-underline-offset: 9px;
}

/* Scroll reveal: content becomes visible only when it approaches the viewport. */
.vf-christmas-reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
}

.vf-christmas-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.vf-christmas-card-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(.985);
    transition:
        opacity .65s ease var(--vf-christmas-delay, 0ms),
        transform .65s cubic-bezier(.2, .7, .2, 1) var(--vf-christmas-delay, 0ms);
}

.vf-christmas-card-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Elegant seasonal hover accent rather than replacing the brand palette. */
.vf-solution-card,
.vf-engineering__card,
.vf-industry-card,
.vf-why-choose__item {
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.vf-solution-card:hover,
.vf-engineering__card:hover,
.vf-industry-card:hover {
    border-color: rgba(217, 182, 111, .75);
    box-shadow: 0 16px 38px rgba(8, 49, 79, .10);
}

.vf-process,
.vf-partners-wrap {
    position: relative;
}

@media (max-width: 767px) {
    .vf-christmas-snow { opacity: .48; }
    .vf-christmas-reveal { transform: translate3d(0, 20px, 0); }
    .vf-christmas-card-reveal { transform: translate3d(0, 14px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .vf-christmas-snow,
    .vf-christmas-glow { display: none !important; }

    .vf-christmas-reveal,
    .vf-christmas-card-reveal,
    .vf-christmas-reveal.is-visible,
    .vf-christmas-card-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}
