/* Kode23 Studios — Christmas Edition (approved mobile mockup inspired)
   Seasonal presentation only: original markup, Netlify forms, Tebex checkout,
   product data, navigation and orange Blinkz branding stay intact. */
html.winter-theme,body.winter-theme {overflow-x:clip;}
body.winter-theme {
 --snow:#f9fdff;--ice:#c8e9ff;
 background:radial-gradient(ellipse 950px 570px at 52% 0%,rgba(28,98,167,.28),transparent 72%),
 radial-gradient(ellipse 650px 420px at 100% 65%,rgba(27,99,167,.11),transparent 74%),
 linear-gradient(180deg,#031020 0%,#06182a 44%,#04101e 100%);
 background-attachment:fixed;
}
/* Snowflakes live on a separate canvas; still behind modal/dialog surfaces. */
body.winter-theme #winter-snow{position:fixed;inset:0;z-index:19;width:100%;height:100%;pointer-events:none;opacity:.88;mix-blend-mode:screen;}
body:not(.winter-theme) #winter-snow{display:none;}
body.winter-theme .storm{display:none;}
body.winter-theme .storm-glow::before{background:radial-gradient(closest-side,rgba(32,119,218,.25),transparent);}
body.winter-theme .storm-glow::after{background:radial-gradient(closest-side,rgba(125,195,247,.12),transparent);}
body.winter-theme::before{
 content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
 background:radial-gradient(ellipse 60vw 29vh at 9% 90%,rgba(48,98,147,.1),transparent 80%),
 linear-gradient(180deg,rgba(0,10,24,.03),transparent 44%,rgba(1,17,30,.05));
 opacity:.8;
}
/* The Christmas garland is a dedicated, full-width image row beneath navigation.
   It is never used as a clipped pseudo-element or a repeating background. */
.holiday-garland{display:none;}
body.winter-theme .site-header{
  z-index:24;
  padding-bottom:0;
  background:rgba(3,10,22,.96);
  border-bottom-color:rgba(133,201,245,.32);
  box-shadow:0 5px 25px rgba(0,0,0,.45),inset 0 1px rgba(223,243,255,.08);
}
body.winter-theme .site-header::before,
body.winter-theme .site-header::after{content:none!important;}
body.winter-theme .holiday-garland{
  display:block;
  position:relative;
  width:100%;
  height:clamp(55px,5.5vw,82px);
  margin:0;
  background:linear-gradient(180deg,#071323 0%,#071525 100%);
  line-height:0;
  pointer-events:none;
  overflow:visible;
}
body.winter-theme .holiday-garland img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:fill;
  object-position:center center;
  pointer-events:none;
  filter:drop-shadow(0 5px 4px rgba(0,4,13,.36));
}
body.winter-theme .brand img{filter:drop-shadow(0 0 11px rgba(62,146,243,.22));}
body.winter-theme .menu-btn{background:rgba(8,22,41,.77);box-shadow:inset 0 0 0 1px rgba(109,181,255,.2);}
body.winter-theme .nav a[aria-current]{box-shadow:0 5px 12px -8px rgba(177,226,255,.95);}
/* Scenic hero — all original text, links, structure and image stay unchanged. */
body.winter-theme .hero,body.winter-theme .page-hero{isolation:isolate;position:relative;overflow:hidden;}
body.winter-theme .hero{
 background:radial-gradient(ellipse at 54% 12%,rgba(30,117,203,.19),transparent 61%),
 linear-gradient(125deg,#051629 0%,#0b213c 53%,#071a2d 100%);
}
body.winter-theme .hero::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background-image:linear-gradient(180deg,rgba(6,20,41,.16),rgba(5,19,35,.32) 67%,rgba(3,15,28,.72)),
 url('/assets/christmas-cabin.webp'),url('/assets/christmas-pines.webp');
 background-repeat:no-repeat;
 background-size:100% 100%,auto min(67%,600px),auto min(65%,565px);
 background-position:center,right 7% center,left 3% center;
 opacity:.88;
}
body.winter-theme .hero::after,body.winter-theme .page-hero::after{content:none;}
body.winter-theme .hero-grid{position:relative;z-index:1;padding-top:clamp(2.7rem,5vw,4.1rem);padding-bottom:clamp(3.2rem,5vw,4.8rem);}
body.winter-theme .hero-art{position:relative;isolation:isolate;}
body.winter-theme .hero-art::after{
 content:"";position:absolute;z-index:3;top:1%;left:2%;width:35%;height:38%;
 background:url('/assets/christmas-hat-realistic.png') center top / contain no-repeat;
 transform:rotate(-11deg);pointer-events:none;
 filter:drop-shadow(0 8px 12px rgba(0,0,0,.38));
}
body.winter-theme .hero-art img{filter:drop-shadow(0 10px 25px rgba(7,19,35,.9)) drop-shadow(0 0 20px rgba(39,132,255,.28));}
body.winter-theme .hero-title{
 background:linear-gradient(180deg,#fff 9%,#eef6ff 46%,#bdcddd 96%);
 -webkit-background-clip:text;background-clip:text;color:transparent;
 text-shadow:0 8px 32px rgba(1,6,16,.36);
}
body.winter-theme .hero-title .winter-accent-phrase{
 background:linear-gradient(180deg,#b6f3ff 0%,#37bbff 44%,#007ff2 94%);
 -webkit-background-clip:text;background-clip:text;color:transparent;
 filter:drop-shadow(0 0 12px rgba(27,126,248,.27));
}
body.winter-theme .hero-sub{color:#e0eaf6;text-shadow:0 2px 12px rgba(1,7,20,.7);}
body.winter-theme .hero-proof{color:#d3e0ef;text-shadow:0 2px 10px rgba(0,0,0,.7);}
body.winter-theme .page-hero{background:radial-gradient(ellipse at 83% 8%,rgba(47,134,219,.24),transparent 65%),linear-gradient(115deg,#08172a,#0b2743 52%,#071728);}
body.winter-theme .page-hero::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:url('/assets/christmas-pines.webp') left center / auto 160% no-repeat;
 opacity:.23;
}
body.winter-theme .page-hero .wrap{position:relative;z-index:1;}
/* Winter cards and glass panels get bright frozen rims without altering their contents. */
body.winter-theme .block-head{position:relative;padding-bottom:.56rem;border-bottom:1px solid rgba(166,220,251,.26);}
body.winter-theme .block-head h2{filter:drop-shadow(0 1px 10px rgba(98,174,237,.16));}
body.winter-theme .block-head h2::after{content:" ❄";font:400 .47em var(--body);color:#bfebff;-webkit-text-fill-color:#bfebff;vertical-align:.18em;}
body.winter-theme .block-head::after{
 content:"";position:absolute;left:0;bottom:-2px;width:38%;height:2px;
 background:linear-gradient(90deg,rgba(210,243,255,.85),rgba(70,173,255,.28),transparent);
}
body.winter-theme .tile,body.winter-theme .faq,body.winter-theme .contact-panel,body.winter-theme .contact-side-box,body.winter-theme .cta-band{
 border-top-color:rgba(172,220,251,.29);background-color:rgba(7,20,38,.86);
 box-shadow:inset 0 1px rgba(223,245,255,.09),0 9px 26px rgba(0,0,0,.16);
}
body.winter-theme .grid{column-gap:clamp(1.2rem,2.3vw,2rem);row-gap:3rem;}
body.winter-theme .card{
 position:relative;overflow:visible;clip-path:none;border-radius:17px;padding:1px;
 background:linear-gradient(145deg,rgba(159,218,255,.84),rgba(35,108,188,.75) 42%,rgba(36,95,162,.66) 85%,rgba(167,224,255,.67));
 animation:none!important;
 box-shadow:0 14px 35px rgba(0,2,15,.48),0 0 18px rgba(63,157,255,.19);
 transition:transform .22s ease,box-shadow .22s ease;
}
body.winter-theme .card:hover{transform:translateY(-3px);box-shadow:0 20px 38px rgba(0,2,15,.5),0 0 25px rgba(74,176,255,.27);}
body.winter-theme .card.blinkz-card{
 background:linear-gradient(145deg,rgba(255,177,109,.9),rgba(222,94,11,.8) 40%,rgba(125,53,16,.8) 78%,rgba(255,176,104,.82));
 box-shadow:0 15px 36px rgba(0,2,15,.5),0 0 20px rgba(255,118,23,.2);
}
body.winter-theme .card.blinkz-card:hover{box-shadow:0 20px 38px rgba(0,2,15,.5),0 0 27px rgba(255,134,30,.26);}
body.winter-theme .card-in{clip-path:none;border-radius:16px;overflow:hidden;background:linear-gradient(180deg,rgba(12,28,51,.98),rgba(6,18,36,.98));}
body.winter-theme .card.blinkz-card .card-in{background:linear-gradient(180deg,rgba(34,22,27,.98),rgba(21,15,25,.98));}
body.winter-theme .card .card-media{border-radius:16px 16px 0 0;}
body.winter-theme .card .card-media::after{background:linear-gradient(180deg,rgba(3,12,27,.12),transparent 54%,rgba(4,9,23,.65));}
body.winter-theme .card .card-body{position:relative;}
/* Real textured snow rests on top of the light wire. The tops of sockets get covered;
   hanging bulbs, side strands, and bottom lights remain visible. */
body.winter-theme .card::before{
 /* Anchor the visible snow, not the transparent image margins, to the top frame. */
 content:"";position:absolute;left:5px;right:5px;top:-11px;height:15px;z-index:16;pointer-events:none;
 background:url('/assets/christmas-card-snow-edge.webp') center bottom / 100% 100% no-repeat;
 filter:drop-shadow(0 2px 2px rgba(5,19,35,.48));
}
body.winter-theme .card::after,body.winter-theme .card-in::before,body.winter-theme .card-in::after{content:none!important;}
body.winter-theme .holiday-card-lights{position:absolute;z-index:12;pointer-events:none;overflow:visible;filter:drop-shadow(0 0 3px rgba(255,220,154,.18));}
body.winter-theme .holiday-light-halo{animation:holiday-lamp-breathe 4.8s ease-in-out infinite;transform-box:fill-box;transform-origin:center;}
@keyframes holiday-lamp-breathe{0%,100%{opacity:.5;}50%{opacity:.78;}}
body.winter-theme .card .chip,body.winter-theme .card .tag-sale,body.winter-theme .card .badge-price{z-index:5;}
/* Cut-corner buttons have a hard clipping mask in the ordinary theme;
   remove only that mask during Christmas so snow can visibly rest ABOVE them. */
body.winter-theme .btn{
 clip-path:none;border-radius:8px;overflow:visible;isolation:isolate;
 border:1px solid rgba(204,235,255,.25);
 box-shadow:inset 0 1px rgba(255,255,255,.15),0 4px 17px rgba(29,123,233,.23);
}
body.winter-theme .btn::before{
 /* The snowy overhang sits ABOVE the button face with a small front lip. */
 content:"";position:absolute;left:5px;right:5px;top:-9px;height:12px;z-index:1;pointer-events:none;
 background:url('/assets/christmas-button-snow-edge.webp') center bottom / 100% 100% no-repeat;
 filter:drop-shadow(0 2px 1.5px rgba(4,20,34,.35));
}
body.winter-theme .btn::after{content:none!important;}
body.winter-theme .btn:hover{filter:drop-shadow(0 0 16px rgba(70,178,255,.58)) brightness(1.05);}
body.winter-theme .btn-ghost{border-color:rgba(162,204,237,.4);background:linear-gradient(180deg,#253b5c,#10213c);}
body.winter-theme .blinkz-card .btn:not(.btn-ghost){border-color:rgba(255,191,133,.44);}
body.winter-theme .btn-small::before{top:-7px;height:10px;left:4px;right:4px;}
body.winter-theme .btn:focus-visible{outline:2px solid #fff;outline-offset:3px;}
body.winter-theme .site-footer{background:linear-gradient(180deg,rgba(7,21,40,.96),rgba(4,9,19,.98));border-top-color:rgba(143,210,249,.43);margin-top:1rem;}
body.winter-theme .site-footer::before{
 content:"";position:absolute;left:0;right:0;top:-13px;height:34px;
 background:url('/assets/christmas-garland-frameless.webp') center top / 100% 100% no-repeat;
 pointer-events:none;filter:drop-shadow(0 -2px 4px rgba(0,0,0,.38));
}
body.winter-theme .site-footer::after{content:none;}
/* Accessibility and space-conscious mobile tuning. */
@media (max-width:900px){
 body.winter-theme .hero-grid{padding-top:3.2rem;padding-bottom:3.7rem;}
 body.winter-theme .hero::before{background-size:100% 100%,auto 315px,auto 340px;background-position:center,right 1% top,left 0 top;opacity:.78;}
 body.winter-theme .hero-art::after{top:1%;left:2%;width:35%;height:39%;}
}
@media (max-width:640px){
 body.winter-theme .holiday-garland{height:52px;}
 
 body.winter-theme .hero-grid{padding-top:3rem;padding-bottom:3.5rem;gap:1rem;}
 body.winter-theme .hero::before{background-size:100% 100%,auto 305px,auto 305px;background-position:center,right -9px top,left -15px top;opacity:.82;}
 body.winter-theme .hero-art::after{top:1%;left:2%;width:37%;height:40%;}
 body.winter-theme .hero-title{font-size:clamp(2.1rem,8vw,3rem);}
 body.winter-theme .hero-sub{color:#d4e2f2;}
 body.winter-theme .grid{row-gap:3.3rem;}
 body.winter-theme #winter-snow{opacity:.78;}
 body.winter-theme .card::before{left:4px;right:4px;top:-10px;height:14px;}
 body.winter-theme .btn::before{top:-8px;height:11px;}
 body.winter-theme .btn-small::before{top:-7px;height:10px;}
 body.winter-theme .site-footer::before{background-size:100% auto;}
}
@media (prefers-reduced-motion:reduce){
 body.winter-theme #winter-snow{display:none;}
 body.winter-theme .holiday-light-halo,body.winter-theme .card{animation:none!important;transition:none!important;}
 body.winter-theme .storm-glow::before,body.winter-theme .storm-glow::after{animation:none!important;}
}

/* Christmas desktop composition.
   The phone/tablet presentation intentionally stays exactly as approved. */
@media (min-width: 1100px) {
  /* Use the available width instead of leaving the storefront in a narrow column. */
  body.winter-theme .wrap {
    width: min(1420px, calc(100% - clamp(72px, 8vw, 180px)));
  }
  body.winter-theme .bar { min-height: 78px; }
  body.winter-theme .brand img { height: 51px; }
  body.winter-theme .nav { gap: clamp(1.4rem, 2vw, 2.1rem); }
  body.winter-theme .nav a { font-size: 1rem; }

  /* Keep the imagery proportional rather than flattening it to screen width. */
  body.winter-theme .holiday-garland {
    height: clamp(98px, 7vw, 116px);
    overflow: hidden;
    background: linear-gradient(180deg, #071323 0%, #061627 85%, #061424 100%);
  }
  body.winter-theme .holiday-garland img {
    width: min(100%, 1420px);
    height: 100%;
    object-fit: fill;
    margin-inline: auto;
    filter: drop-shadow(0 5px 7px rgba(0, 4, 13, .44));
  }

  /* Make the hero as rich and legible on a monitor as it is on a phone. */
  body.winter-theme .hero {
    background:
      radial-gradient(ellipse 50% 58% at 54% 38%, rgba(44, 118, 204, .19), transparent 78%),
      linear-gradient(120deg, #07182a 0%, #0b2541 52%, #06182d 100%);
  }
  body.winter-theme .hero::before {
    background-size: 100% 100%, auto min(78vh, 740px), auto min(78vh, 740px);
    background-position: center, right -1.3vw bottom, left -1vw bottom;
    opacity: .91;
  }
  body.winter-theme .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
    gap: clamp(2.8rem, 4vw, 5rem);
    min-height: clamp(580px, 69vh, 740px);
    padding-top: clamp(3.2rem, 5vh, 5rem);
    padding-bottom: clamp(3.6rem, 6vh, 5rem);
  }
  body.winter-theme .hero-grid > * { min-width: 0; }
  body.winter-theme .hero-title {
    font-size: clamp(3.05rem, 3.55vw, 4rem);
    line-height: 1.06;
    max-width: 20ch;
    text-wrap: balance;
    margin-bottom: 1.25rem;
  }
  body.winter-theme .hero-sub {
    font-size: clamp(1.12rem, 1.24vw, 1.24rem);
    line-height: 1.75;
    max-width: 56ch;
    margin-bottom: 2.1rem;
  }
  body.winter-theme .hero-cta { gap: 1rem; }
  body.winter-theme .hero-cta .btn {
    min-height: 52px;
    padding-inline: 1.55rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  body.winter-theme .hero-proof { font-size: 1rem; margin-top: 1.35rem; }
  body.winter-theme .hero-art {
    width: 100%;
    max-width: 680px;
    justify-self: center;
    align-self: center;
  }
  body.winter-theme .hero-art img { width: 100%; }

  /* Roomier product grid and natural-looking decorative border on desktop. */
  body.winter-theme .block { padding-top: 3.5rem; padding-bottom: 3.8rem; }
  body.winter-theme .grid { gap: clamp(1.3rem, 2vw, 2rem); }
  body.winter-theme .card::before {
    top: -12px;
    height: 17px;
  }
  body.winter-theme .site-footer {
    margin-top: 3.25rem;
    padding-block: 3rem 2.7rem;
  }
  body.winter-theme .site-footer::before {
    top: -70px;
    height: 88px;
    background-position: center top;
    background-size: min(1420px, 100%) 88px;
    background-repeat: no-repeat;
  }
}

/* Compact laptops still get a balanced two-column hero, not the large-monitor size. */
@media (min-width: 901px) and (max-width: 1099px) {
  body.winter-theme .hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: 2rem;
  }
  body.winter-theme .hero-title { font-size: clamp(2.65rem, 4vw, 3.35rem); }
  body.winter-theme .holiday-garland { height: 77px; }
  body.winter-theme .holiday-garland img { width: 100%; height: 100%; }
}

/* Desktop-only: compact garland. Use a capped natural-size image rather than
   filling the header width or forcing the graphic into a fixed-height strip.
   Mobile (900px and below) intentionally keeps its existing layout. */
@media (min-width: 901px) {
  body.winter-theme .holiday-garland {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: 0 16px 4px;
    overflow: visible;
    background: linear-gradient(180deg, #071323, #061627);
  }
  body.winter-theme .holiday-garland img {
    flex: none;
    display: block;
    width: min(55vw, 650px);
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
  /* Make the matching footer decoration compact too, without empty space. */
  body.winter-theme .site-footer { margin-top: 5.6rem; }
  body.winter-theme .site-footer::before {
    top: -92px;
    height: 103px;
    background-position: center bottom;
    background-size: auto 103px;
    background-repeat: no-repeat;
  }
}

/* Desktop: one slim, uninterrupted garland across the full viewport.
   Dedicated artwork is panoramic so foliage, snow, bulbs, and bow are not
   vertically squashed to fit a short bar. The mobile source remains unchanged. */
body.winter-theme .holiday-garland picture {
  display: block;
  width: 100%;
  height: 100%;
}
@media (min-width: 901px) {
  body.winter-theme .holiday-garland {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #061525;
    line-height: 0;
  }
  body.winter-theme .holiday-garland picture {
    display: block;
    width: 100%;
    height: auto;
  }
  body.winter-theme .holiday-garland img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0;
    filter: drop-shadow(0 3px 4px rgba(0, 4, 13, .35));
  }
}

/* Seasonal hover polish: no electrical hover glows or zaps.
   Christmas lights and snowcaps stay in place, with simple responsive feedback. */
body.winter-theme .card:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(0,2,15,.44), 0 0 10px rgba(87,157,216,.13);
}
body.winter-theme .card.blinkz-card:hover {
  filter: none;
  box-shadow: 0 17px 34px rgba(0,2,15,.46), 0 0 10px rgba(255,135,45,.12);
}
body.winter-theme .btn:hover,
body.winter-theme .btn-ghost:hover,
body.winter-theme .btn.sale-cta:hover,
body.winter-theme .card.blinkz-card .card-foot .btn:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}
/* The wider-format desktop image has a shorter intrinsic height; allowing it
   to size automatically preserves the complete full-width image. */
@media (min-width:901px) {
  body.winter-theme .holiday-garland,
  body.winter-theme .holiday-garland picture {height:auto;}
  body.winter-theme .holiday-garland img {width:100%;height:auto;object-fit:contain;}
}


/* Desktop footer garland: match the slim, full-viewport header artwork.
   Desktop asset is 2400 × 97; 97 / 2400 = 0.0404167, so the height tracks
   viewport width without distorting the pine needles or Christmas bulbs.
   Mobile rules at <=900px are deliberately unaffected. */
@media (min-width: 901px) {
  body.winter-theme .site-footer {
    margin-top: calc(4.041667vw + 1.25rem);
  }
  body.winter-theme .site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 0;
    height: 4.041667vw;
    transform: translateY(-100%);
    background-image: url('/assets/christmas-garland-desktop-short.webp');
    background-position: center bottom;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 1;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, .32));
  }
}
