/* Christmas 2026 layer.
   Only applies while <html> has the "xmas" class. The inline script in each page's <head> adds it
   until 7 January 2027 and then stops, so the site goes back to normal on its own.
   To remove it early: delete the "xmas" part of that script (or this file's <link>).
   Static decorations only, apart from one short snowfall on the home page hero that plays once
   (about 5 seconds, never loops) and is skipped when the visitor asks for reduced motion. */

:root {
  --xmas-red: #8E1B22;     /* white text on it: 8.6:1 */
  --xmas-green: #1D5B3A;
  --xmas-gold: #F2A541;    /* the brand amber doubles as gold */
}

.xmas-ribbon, .xmas-only, .snowfall { display: none; }

/* ---------- Ribbon above the header ---------- */
.xmas .xmas-ribbon { display: block; position: relative; background: var(--xmas-red); color: #FAFAF7; font-size: .95rem; }
.xmas-ribbon p { margin: 0; padding: 10px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.xmas-ribbon strong { font-weight: 800; }
.xmas-ribbon a { color: #FAFAF7; font-weight: 700; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.xmas-ribbon :focus-visible { outline-color: #FAFAF7; }
.xmas-ribbon .holly { width: 26px; height: 22px; flex: none; }
/* a string of baubles along the bottom edge (decorative) */
.xmas-ribbon::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 14px; z-index: 51; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 2 Q30 9 60 2 T120 2' fill='none' stroke='%23F2A541' stroke-width='1.5'/%3E%3Ccircle cx='15' cy='9' r='4' fill='%23F2A541'/%3E%3Ccircle cx='45' cy='9' r='4' fill='%23FAFAF7'/%3E%3Ccircle cx='75' cy='9' r='4' fill='%231D5B3A' stroke='%23FAFAF7' stroke-width='1'/%3E%3Ccircle cx='105' cy='9' r='4' fill='%23F2A541'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 14px;
}

/* ---------- Snow on the navy heroes ---------- */
.xmas .hero, .xmas .fx-hero { position: relative; isolation: isolate; }
.xmas .hero::before, .xmas .fx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23FAFAF7'%3E%3Ccircle cx='20' cy='30' r='1.6'/%3E%3Ccircle cx='90' cy='12' r='1.1'/%3E%3Ccircle cx='160' cy='48' r='1.8'/%3E%3Ccircle cx='60' cy='92' r='1.2'/%3E%3Ccircle cx='130' cy='120' r='1.5'/%3E%3Ccircle cx='200' cy='96' r='1'/%3E%3Ccircle cx='30' cy='160' r='1.3'/%3E%3Ccircle cx='100' cy='190' r='1.7'/%3E%3Ccircle cx='180' cy='176' r='1.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FAFAF7' stroke-width='1.2' stroke-linecap='round' opacity='.8'%3E%3Cpath d='M150 140v14M143 147h14M145 142l10 10M155 142l-10 10'/%3E%3Cpath d='M44 52v10M39 57h10M40.5 53.5l7 7M47.5 53.5l-7 7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px;
}
/* a snowdrift edge where the navy hero meets the page */
.xmas .hero { padding-bottom: calc(clamp(40px, 7vw, 88px) + 28px); }
.xmas .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='34' viewBox='0 0 600 34' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C60 6 110 30 170 18 S280 2 340 16 S450 32 510 14 S580 8 600 14 V34 H0Z' fill='%23FAFAF7'/%3E%3C/svg%3E") repeat-x 0 100% / 600px 34px;
}

/* ---------- One short snowfall when the home page opens ---------- */
.xmas .snowfall { display: block; position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.snowfall i {
  position: absolute; top: -12px; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  background: #FAFAF7; opacity: 0;
  animation: xmas-fall var(--d, 4.2s) cubic-bezier(.3, .1, .6, 1) var(--w, 0s) 1 both;
}
@keyframes xmas-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: .9; }
  80% { opacity: .7; }
  100% { opacity: 0; transform: translate3d(var(--x, 20px), 62vh, 0); }
}
@media (prefers-reduced-motion: reduce) { .xmas .snowfall { display: none; } }

/* ---------- Small festive touches ---------- */
.xmas .package.featured { position: relative; }
.xmas .package.featured::after {
  content: ""; position: absolute; top: -16px; right: 18px; width: 46px; height: 38px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 38'%3E%3Cpath d='M23 20 C14 4 4 12 2 6 C8 16 4 22 10 26 C14 18 20 22 23 20Z' fill='%231D5B3A'/%3E%3Cpath d='M23 20 C32 4 42 12 44 6 C38 16 42 22 36 26 C32 18 26 22 23 20Z' fill='%23276E48'/%3E%3Ccircle cx='19' cy='24' r='4.2' fill='%238E1B22'/%3E%3Ccircle cx='27' cy='24' r='4.2' fill='%23A82630'/%3E%3Ccircle cx='23' cy='30' r='4.2' fill='%238E1B22'/%3E%3C/svg%3E") no-repeat center / contain;
}
.xmas .xmas-only { display: block; }
.xmas .footer-xmas { margin: 0 0 6px; color: var(--on-navy); font-weight: 700; }
