/*
 * Winter 2026 seasonal theme.
 * Loaded only while active, see inc/seasonal-winter.php.
 *
 * Breakpoints follow the theme (and seasonal-bonfire.css): 64rem is CodyFrame
 * @md (desktop header row), 40rem is where the footer stacks into one column.
 * The aurora art covers only the top logo/search block; the navigation bar
 * below it keeps the live site's white background and dark links.
 *
 * The footer art is a bright snow scene, too light for the white footer
 * links to sit on. So the footer keeps its navy background behind the menus,
 * and the scene runs as a strip along the bottom, faded in from the navy.
 */

.seasonal-winter {
    --winter-night: #1b1d5c;   /* deep blue-violet of the header sky */
    --winter-navy: #141f43;    /* the footer's own bg-black */
    --winter-ice: #bfe6ff;
}

/* ---------- Header: background ---------- */

.seasonal-winter .barcare-header .header_outer_block {
    background: var(--winter-night) url(../img/seasonal/winter/winter-header-mobile.webp) no-repeat center top / cover;
    border-bottom: none;
}

@media (min-width: 64rem) {
    .seasonal-winter .barcare-header .header_outer_block {
        background: var(--winter-night) url(../img/seasonal/winter/winter-header-desktop.webp) no-repeat center / cover;
    }
}

/* ---------- Header: white text and icons ---------- */

.seasonal-winter .header_slogon_text a,
.seasonal-winter .header_logon_text a,
.seasonal-winter .barcare-header__store-actions a,
.seasonal-winter .barcare-header__nav a,
.seasonal-winter .barcare-header__tax-toggle,
.seasonal-winter .barcare-header__tax-toggle a {
    color: #fff;
}
.seasonal-winter .header_slogon_text,
.seasonal-winter .header_logon_text,
.seasonal-winter .barcare-header__store-actions p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6);
}
.seasonal-winter .header_logon_text strong {
    color: var(--winter-ice);
}
.seasonal-winter .barcare-header__store-actions a img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.seasonal-winter .barcare-header__logo-link img {
    height: auto;
    filter: drop-shadow(0 0 10px rgba(191, 230, 255, .25));
}
.seasonal-winter .barcare-header__store-actions a:hover,
.seasonal-winter .barcare-header__nav a:hover,
.seasonal-winter .header_slogon_text a:hover,
.seasonal-winter .header_logon_text a:hover {
    color: var(--winter-ice);
}
.seasonal-winter .header_outer_block #product-search-field-0:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 230, 255, .6);
}

/* ---------- Subtle accent: aurora rule under the navy shortcut bar ---------- */

.seasonal-winter .header_short_links_block {
    position: relative;
}
.seasonal-winter .header_short_links_block::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #6a4cff, #2fd1b5, #bfe6ff, #8f6bff, #6a4cff);
    background-size: 200% 100%;
    animation: winter-aurora 14s linear infinite;
}
@keyframes winter-aurora {
    to { background-position: -200% 0; }
}
.seasonal-winter .header_short_links_block a:hover {
    color: var(--winter-ice);
}

/* ---------- Homepage brand carousel ---------- */

/* The winter tiles carry their headline in the artwork, so the theme's
   overlaid caption is hidden visually (kept for screen readers). */
.seasonal-winter .banner-brands .slick-slide h3,
.seasonal-winter .banner-brands .slick-slider > div h3 {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Homepage campaign banner ---------- */

.winter-banner-block {
    padding-bottom: 0;
}
.winter-banner {
    margin: 0;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}
.winter-banner img {
    height: auto;
}

/* ---------- Footer ---------- */

/* phones: tall stacked footer; the portrait scene (~104vw tall at full
   width) sits at the bottom and fades in from the navy over its sky */
.seasonal-winter .barcare-footer.main-footer {
    background:
        linear-gradient(var(--winter-navy), var(--winter-navy) calc(100% - 96vw), rgba(20, 31, 67, 0) calc(100% - 62vw)),
        var(--winter-navy) url(../img/seasonal/winter/winter-footer-mobile.webp) no-repeat center bottom / 100% auto;
    padding-bottom: 88vw;
}

/* tablet and up: the wide scene (~23.3vw tall) runs along the bottom */
@media (min-width: 40rem) {
    .seasonal-winter .barcare-footer.main-footer {
        background:
            linear-gradient(var(--winter-navy), var(--winter-navy) calc(100% - 23.4vw), rgba(20, 31, 67, 0) calc(100% - 13vw)),
            var(--winter-navy) url(../img/seasonal/winter/winter-footer-desktop.webp) no-repeat center bottom / 100% auto;
        padding-bottom: 18.5vw;
    }
}

/* soft shadow so the last links stay crisp where they meet the scene */
.seasonal-winter .barcare-footer.main-footer a,
.seasonal-winter .barcare-footer.main-footer p,
.seasonal-winter .barcare-footer.main-footer h2,
.seasonal-winter .barcare-footer.main-footer h3,
.seasonal-winter .barcare-footer.main-footer h4 {
    text-shadow: 0 1px 3px rgba(10, 15, 40, .85);
}

.seasonal-winter .barcare-footer a:hover {
    color: var(--winter-ice);
}

@media (prefers-reduced-motion: reduce) {
    .seasonal-winter .header_short_links_block::after {
        animation: none;
    }
}
