/* VERDE-XMAS: Christmas decorations for verdewaste.net only.
   All decoration rules are scoped under html.verde-xmas, which xmas.js
   adds only when location.hostname is verdewaste.net or www.verdewaste.net.
   verdewastemanagement.co.uk stays plain even though both domains share public_html.
   Preview-only notice (.xmas-preview-note) is unscoped so it shows on both hosts.
   Remove this file in January. See /workspace/verde-deploy/xmas-REMOVE.md */

/* Preview banner — always visible on the preview page, both hosts */
.xmas-preview-note{
  position:relative;z-index:80;
  background:#1E4A33;color:#fff;
  text-align:center;font-weight:700;font-size:.82rem;
  letter-spacing:.01em;padding:8px 16px;
  border-bottom:3px solid #D71921;
}
.xmas-preview-note strong{color:#9BE15D}
body:has(.xmas-preview-note){--xmas-banner-h:40px}
body:has(.xmas-preview-note) header{top:var(--xmas-banner-h);z-index:90}
@media (max-width:1023px){
  body:has(.xmas-preview-note){--xmas-banner-h:62px}
  body:has(.xmas-preview-note) .hero,
  body:has(.xmas-preview-note) .phero{padding-top:calc(24vw + 100px + var(--xmas-banner-h))}
}

/* Everything below is hostname-gated */
html.verde-xmas .xmas-snow{
  position:fixed;inset:0;width:100%;height:100%;
  pointer-events:none!important;
  z-index:30;
  display:block;
}
html.verde-xmas header .logo{position:relative;overflow:visible}
html.verde-xmas .xmas-hat{
  position:absolute;pointer-events:none!important;
  z-index:2;display:block;
  background:url(santa-hat.svg) no-repeat center / contain;
  filter:drop-shadow(0 2px 3px rgba(11,20,16,.25));
  width:48px;height:48px;
}
html.verde-xmas .xmas-hat-logo{
  top:-22px;right:-14px;
  transform:rotate(20deg);
}
html.verde-xmas .xmas-hat-heading{
  top:-20px;right:-6px;width:36px;height:36px;
  transform:rotate(16deg);
}
html.verde-xmas #services h2,
html.verde-xmas footer .fbig{position:relative}
html.verde-xmas .xmas-presents{
  position:absolute;pointer-events:none!important;
  z-index:2;display:flex;align-items:flex-end;gap:4px;
}
html.verde-xmas .xmas-presents img{
  display:block;height:auto;max-width:none!important;width:auto;
}
html.verde-xmas .xmas-presents-hero{right:4%;bottom:28px}
html.verde-xmas .xmas-presents-hero img:nth-child(1){width:92px}
html.verde-xmas .xmas-presents-hero img:nth-child(2){width:70px;margin-bottom:6px}
html.verde-xmas .xmas-presents-hero img:nth-child(3){width:54px}
html.verde-xmas .xmas-presents-footer{right:20px;bottom:18px}
html.verde-xmas .xmas-presents-footer img:nth-child(1){width:64px}
html.verde-xmas .xmas-presents-footer img:nth-child(2){width:48px;margin-bottom:4px}
html.verde-xmas footer{position:relative}

@media (max-width:1023px){
  html.verde-xmas .xmas-hat-logo{
    top:-16px;right:8px;width:56px;height:56px;
    transform:rotate(16deg);
  }
  html.verde-xmas .xmas-hat-heading{width:28px;height:28px;top:-14px;right:0}
  html.verde-xmas .xmas-presents-hero{display:none}
  html.verde-xmas .xmas-presents-footer{right:12px;bottom:12px}
  html.verde-xmas .xmas-presents-footer img:nth-child(1){width:44px}
  html.verde-xmas .xmas-presents-footer img:nth-child(2){width:34px}
}
@media (max-width:639px){
  html.verde-xmas .xmas-presents-footer{display:none}
  html.verde-xmas .xmas-hat-heading{display:none}
  html.verde-xmas .xmas-hat-logo{width:50px;height:50px;top:-12px;right:6px}
}
@media (prefers-reduced-motion:reduce){
  html.verde-xmas .xmas-snow{display:none}
}

/* 3D Santa sign swaps in as the header/hero logo (hostname-gated).
   Original logo-full / logo-*.png files are not changed. The sign already
   has a hat, so the CSS hat on the header logo is hidden. */
html.verde-xmas header .logo.xmas-logo-swapped{
  background:#163c2a;
  padding:0;
  height:auto;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(11,20,16,.28);
}
html.verde-xmas header .logo.xmas-logo-swapped picture,
html.verde-xmas header .logo.xmas-logo-swapped img{
  display:block;
  width:260px;
  height:auto;
  max-width:100%;
  border-radius:16px;
}
html.verde-xmas header .logo.xmas-logo-swapped .xmas-hat,
html.verde-xmas header .logo .xmas-hat-logo{display:none!important}

@media (min-width:1024px){
  html.verde-xmas header .wrap{
    height:auto;
    min-height:80px;
    padding-top:14px;
    padding-bottom:14px;
    align-items:center;
  }
  html.verde-xmas .hero{padding-top:160px}
  html.verde-xmas .phero{padding-top:170px}
}

@media (max-width:1023px){
  html.verde-xmas header .logo.xmas-logo-swapped{
    width:100%;
    background:none!important;
    padding:0!important;
    height:auto!important;
    border-radius:16px!important;
    box-shadow:0 8px 24px rgba(11,20,16,.28);
  }
  html.verde-xmas header .logo.xmas-logo-swapped picture,
  html.verde-xmas header .logo.xmas-logo-swapped img{
    display:block;
    width:100%!important;
    height:auto!important;
    border-radius:16px!important;
  }
  /* 16:9 sign is taller than logo-full; make room below the header. */
  html.verde-xmas .hero,
  html.verde-xmas .phero{padding-top:calc(56vw + 110px)}
  html.verde-xmas body:has(.xmas-preview-note) .hero,
  html.verde-xmas body:has(.xmas-preview-note) .phero{padding-top:calc(56vw + 110px + var(--xmas-banner-h,62px))}
}
@media (max-width:639px){
  html.verde-xmas .hero,
  html.verde-xmas .phero{padding-top:calc(56vw + 110px)}
}
