/* Trustworthy Plumbing & Building - v15 Christmas theme (draft, summer Christmas).
   Isolated seasonal layer: do not edit styles.css or main.js.
   To revert, redeploy v14, or delete this file, assets/xmas.js, and the [data-xmas] markup.
   JS adds html.xmas-off and hides [data-xmas] after 26 Dec 2026 23:59 Australia/Melbourne. */

.xmas-banner[hidden],
.xmas-sparkles[hidden],
.xmas-baubles[hidden],
.xmas-bush[hidden]{display:none}

/* ----- Banner: deep festive red, gold accents ----- */
.xmas-banner{position:relative;background:linear-gradient(180deg,#7A2434 0%,#5C1822 100%);color:#fff;border-bottom:1px solid rgba(245,180,0,.55);font-size:14.5px;font-weight:600;line-height:1.35;z-index:51}
.xmas-lights{position:relative;height:20px;pointer-events:none;overflow:hidden}
.xmas-wire{position:absolute;left:0;right:0;top:1px;width:100%;height:10px;display:block}
.xmas-bulb{position:absolute;width:8px;height:10px;border-radius:50%;box-shadow:0 0 5px 1px currentColor;color:transparent;transform:translateX(-50%)}
.xmas-bulb::before{content:"";position:absolute;left:50%;top:-3px;width:5px;height:3px;margin-left:-2.5px;background:#E8C547;border-radius:1px;box-shadow:0 -2px 0 0 #C9A227}
.xmas-bulb-gold{background:radial-gradient(circle at 35% 35%,#FFE27A,#F5B400 55%,#C4921A);color:rgba(245,180,0,.55)}
.xmas-bulb-cream{background:radial-gradient(circle at 35% 35%,#FFF6D4,#F3E0A8 55%,#D4BC74);color:rgba(243,224,168,.5)}
.xmas-bulb-red{background:radial-gradient(circle at 35% 35%,#F07575,#C4393A 55%,#8E1E24);color:rgba(196,57,58,.55)}
.xmas-bulb-green{background:radial-gradient(circle at 35% 35%,#7EC98F,#3E7A52 55%,#2A5538);color:rgba(62,122,82,.5)}
.xmas-bulb-blue{background:radial-gradient(circle at 35% 35%,#7EB6F0,#0057B8 55%,#0B2545);color:rgba(0,87,184,.5)}
.xmas-bulb:nth-child(3n){animation:tpb-xmas-twinkle 2.6s ease-in-out infinite}
.xmas-bulb:nth-child(3n+1){animation:tpb-xmas-twinkle 3.1s ease-in-out infinite .5s}
.xmas-bulb:nth-child(3n+2){animation:tpb-xmas-twinkle 2.3s ease-in-out infinite 1.1s}

.xmas-banner-inner{display:flex;align-items:center;gap:8px;min-height:40px;padding-top:4px;padding-bottom:8px}
.xmas-banner-msg{margin:0;flex:1;text-align:center;display:flex;align-items:center;justify-content:center;gap:.5em;max-width:none}
.xmas-ico{flex:none;width:15px;height:15px;color:#F5B400}
.xmas-ico svg{width:100%;height:100%;display:block}
.xmas-dismiss{flex:none;appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#fff;cursor:pointer;width:44px;height:44px;margin:0 -8px 0 0;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;opacity:.88;font:inherit}
.xmas-dismiss:hover{opacity:1;background:rgba(255,255,255,.1)}
.xmas-dismiss svg{width:16px;height:16px;display:block}

/* ----- Hero gold sparkles + hanging baubles + poinsettia (summer Christmas; no snow) ----- */
.hero .hero-inner{z-index:3}
.hero .xmas-sparkles,
.hero .xmas-baubles,
.hero .xmas-bush{position:absolute;pointer-events:none;z-index:2}
.hero .xmas-sparkles{inset:0;overflow:hidden}

.xmas-sparkle{position:absolute;width:10px;height:10px;opacity:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23F5B400' d='M8 0l1.05 6.2L16 8l-6.95 1.8L8 16l-1.05-6.2L0 8l6.95-1.8z'/%3E%3Ccircle cx='8' cy='8' r='1.15' fill='%23FFF3C4'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:tpb-xmas-sparkle 3.2s ease-in-out infinite}
.xmas-sparkle:nth-child(1){top:16%;left:72%;width:11px;height:11px;animation-duration:3.1s;animation-delay:0s}
.xmas-sparkle:nth-child(2){top:24%;left:88%;width:8px;height:8px;animation-duration:3.8s;animation-delay:-.6s}
.xmas-sparkle:nth-child(3){top:32%;left:64%;width:13px;height:13px;animation-duration:2.8s;animation-delay:-1.4s}
.xmas-sparkle:nth-child(4){top:12%;left:93%;width:7px;height:7px;animation-duration:4.2s;animation-delay:-2s}
.xmas-sparkle:nth-child(5){top:42%;left:80%;width:10px;height:10px;animation-duration:3.4s;animation-delay:-.3s}
.xmas-sparkle:nth-child(6){top:52%;left:70%;width:8px;height:8px;animation-duration:4s;animation-delay:-1.8s}
.xmas-sparkle:nth-child(7){top:18%;left:54%;width:6px;height:6px;animation-duration:3.6s;animation-delay:-2.4s}
.xmas-sparkle:nth-child(8){top:60%;left:90%;width:12px;height:12px;animation-duration:2.7s;animation-delay:-1s}
.xmas-sparkle:nth-child(9){top:36%;left:12%;width:7px;height:7px;animation-duration:4.4s;animation-delay:-.9s}
.xmas-sparkle:nth-child(10){top:58%;left:6%;width:6px;height:6px;animation-duration:3.3s;animation-delay:-2.2s}
.xmas-sparkle:nth-child(11){top:68%;left:76%;width:9px;height:9px;animation-duration:3.9s;animation-delay:-.4s}
.xmas-sparkle:nth-child(12){top:22%;left:40%;width:6px;height:6px;animation-duration:4.6s;animation-delay:-1.6s}
.xmas-sparkle:nth-child(13){top:74%;left:58%;width:8px;height:8px;animation-duration:3s;animation-delay:-2.8s}
.xmas-sparkle:nth-child(14){top:8%;left:82%;width:9px;height:9px;animation-duration:3.5s;animation-delay:-.2s}
.xmas-sparkle:nth-child(15){top:48%;left:96%;width:7px;height:7px;animation-duration:4.1s;animation-delay:-1.2s}
.xmas-sparkle:nth-child(16){top:64%;left:48%;width:10px;height:10px;animation-duration:2.9s;animation-delay:-2.6s}

.xmas-baubles{top:0;right:clamp(6px,3.5vw,48px);display:flex;align-items:flex-start;gap:clamp(8px,1.6vw,18px);filter:drop-shadow(0 4px 8px rgba(11,37,69,.4))}
.xmas-bauble{display:block;flex:none;transform-origin:50% 0;animation:tpb-xmas-sway 4.4s ease-in-out infinite}
.xmas-bauble-a{width:44px;animation-duration:4.6s}
.xmas-bauble-b{width:36px;animation-duration:5.1s;animation-delay:-.9s}
.xmas-bauble-c{width:40px;animation-duration:4.3s;animation-delay:-1.7s}
.xmas-bush{right:clamp(8px,3vw,36px);bottom:16px;width:64px;filter:drop-shadow(0 3px 8px rgba(11,37,69,.35))}
.xmas-bush svg{width:100%;height:auto;display:block}
@media (max-width:760px){
  .xmas-baubles{right:8px;gap:8px}
  .xmas-bauble-a{width:26px}
  .xmas-bauble-b{width:22px}
  .xmas-bauble-c{width:24px}
  .xmas-bush{width:46px;bottom:auto;top:148px;right:10px}
}

/* ----- Section dividers + service-card ribbon (CSS only; gated by html.xmas-off) ----- */
html:not(.xmas-off) .section-head h2::after,
html:not(.xmas-off) #pm-title::after,
html:not(.xmas-off) #about-title::after,
html:not(.xmas-off) .legal h1::after{
  content:"";display:block;width:112px;height:14px;margin:12px 0 0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='14' viewBox='0 0 112 14'%3E%3Cpath d='M4 7h40' stroke='%23C9A227' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M68 7h40' stroke='%23C9A227' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M56 2.2l1.7 3.5 3.8.6-2.75 2.7.65 3.8L56 10.8l-3.4 1.8.65-3.8-2.75-2.7 3.8-.6z' fill='%23F5B400'/%3E%3C/svg%3E") no-repeat center / contain
}
html:not(.xmas-off) .contact-wrap>.section-head h2::after{margin-left:auto;margin-right:auto}
html:not(.xmas-off) .bento-card::before{
  content:"";position:absolute;left:0;right:0;top:0;height:3px;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#6E2030 0%,#F5B400 25%,#0B2545 50%,#F5B400 75%,#6E2030 100%);
  border-radius:var(--r-md,20px) var(--r-md,20px) 0 0
}

@keyframes tpb-xmas-sparkle{
  0%,100%{opacity:0;transform:scale(.55) rotate(0deg)}
  30%{opacity:.9;transform:scale(1) rotate(18deg)}
  50%{opacity:.3;transform:scale(.75) rotate(28deg)}
  68%{opacity:.85;transform:scale(1.08) rotate(40deg)}
}
@keyframes tpb-xmas-twinkle{
  0%,100%{filter:brightness(1);opacity:.92}
  45%{filter:brightness(1.45);opacity:1}
}
@keyframes tpb-xmas-sway{
  0%,100%{transform:rotate(-3deg)}
  50%{transform:rotate(3.2deg)}
}

@media (prefers-reduced-motion:reduce){
  .xmas-sparkle{animation:none!important;opacity:.5}
  .xmas-sparkle:nth-child(n+7){display:none}
  .xmas-bulb,.xmas-bauble{animation:none!important}
}

@media print{
  .xmas-banner,.xmas-sparkles,.xmas-baubles,.xmas-bush,
  html:not(.xmas-off) .section-head h2::after,
  html:not(.xmas-off) #pm-title::after,
  html:not(.xmas-off) #about-title::after,
  html:not(.xmas-off) .legal h1::after,
  html:not(.xmas-off) .bento-card::before{display:none!important;content:none!important}
}

html.xmas-off .section-head h2::after,
html.xmas-off #pm-title::after,
html.xmas-off #about-title::after,
html.xmas-off .legal h1::after,
html.xmas-off .bento-card::before{content:none!important;display:none!important;background:none!important}
