/* ==========================================================================
   Christmas Theme — seasonal decoration layer
   --------------------------------------------------------------------------
   Nothing in here resizes or moves an existing section, heading, button,
   form or image: the decoration rules target `xmas-*` elements the theme
   itself adds, plus the minimum positioning needed to place the homepage
   section accents beneath their section's content. The one deliberate
   exception is section 12, which recolours the site Christmas red by
   re-pointing custom.css's colour variables (contrast-checked; see there).

   Pieces
     1. String lights under the nav bar ......... partials/christmas/lights   (site-wide)
     2. Falling snow canvas ...................... js/christmas-theme.js      (site-wide)
     3. Hero: stars, Santa's sleigh, ornaments,
        gifts, a lit tree, snow drift ............ partials/christmas/hero,
                                                   .../sleigh, .../tree      (homepage)
     4. Section accents (snowflakes, holly, trees,
        wreath, bells, poinsettia, candy cane) ... partials/christmas/accent  (homepage)
     7. Header corner sprays and bells ........... partials/christmas/header-corners (site-wide)
     8. Shared tree component ..................... partials/christmas/tree
     9. Section dividers (bough swag + bells) ..... partials/christmas/divider (homepage)
    10. Service-card holly accents ............... CSS only                   (homepage)
    11. Footer garland and closing scene ......... partials/christmas/footer-* (site-wide)
    12. Christmas red palette .................... CSS only                   (site-wide)

   Artwork: every decoration has a photoreal render slot in
   front/images/christmas/real/<name>.webp. A render is used as soon as its
   file exists (App\Helpers\ChristmasArt decides, per request); until then
   the original illustration is shown — cached SVGs in front/images/christmas/
   (made by resources/christmas-art/build.php) and a few inline drawings.
   Render briefs and sizes: resources/christmas-art/RENDER-SPEC.md. Import
   and optimise renders with resources/christmas-art/import.php.

   To switch the theme off after the season, remove from frontend/app.blade.php:
     - the christmas-theme.css <link> and the christmas.head include below it
     - the @include('frontend.partials.christmas.lights') and
       @include('frontend.partials.christmas.header-corners')
     - the two @include('frontend.partials.christmas.footer-*') lines
     - the christmas-theme.js <script>
   and from frontend/index.blade.php the @include('frontend.partials.christmas.*')
   lines. No other file depends on this layer.
   ========================================================================== */

:root {
  --xmas-red: #c8102e;
  --xmas-green: #0f7a3d;
  --xmas-gold: #d4a12a;
  --xmas-gold-soft: #e9c46a;
  --xmas-white: #fffdf7;
  --xmas-ice: #8db7dd;
}

/* --------------------------------------------------------------------------
   1. String lights
   Hangs from the bottom edge of .btmHead, so it rides along when the header
   turns sticky. z-index 1 keeps it beneath the menu dropdowns (Bootstrap's
   dropdowns sit at 1000 inside the same stacking context).
   -------------------------------------------------------------------------- */
.xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 42px;
  display: flex;
  pointer-events: none;
  z-index: 1;
  /* The glow of the end bulbs must never widen the page. */
  overflow: hidden;
}

.xmas-lights__cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

/* One sag of fine copper wire per cell; the bulb hangs at its low point. */
.xmas-lights__cell::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -7px;
  height: 15px;
  border-bottom: 1px solid #7a5530;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Warm micro "seed" fairy lights, as on a premium window display: a small
   glass seed with a hot filament core and a soft warm halo. The red / green /
   white / gold modifiers are kept for the markup but all read as warm light,
   differing only in temperature and rhythm. */
.xmas-bulb {
  --bulb: #ffd27a;
  --bulb-deep: #d58a1c;
  --glow: rgba(255, 196, 102, .85);
  --glow-soft: rgba(255, 176, 76, .26);
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 9px;
  margin-left: -3px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(ellipse at 50% 55%, #fffdf3 0 22%, var(--bulb) 55%, var(--bulb-deep) 100%);
  /* The glow is static; only opacity animates, which the compositor handles
     without repainting the shadow. */
  box-shadow: 0 0 4px 1px var(--glow), 0 0 14px 5px var(--glow-soft);
  animation: xmasTwinkle 2.8s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) * -1);
}

/* the tiny brass collar the seed sits in */
.xmas-bulb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, #6b4a24, #c9a15a, #6b4a24);
}

.xmas-bulb--red {
  --bulb: #ffb45e;
  --bulb-deep: #c86a12;
  --glow: rgba(255, 166, 80, .85);
  --glow-soft: rgba(255, 140, 50, .24);
  animation-duration: 2.6s;
}

.xmas-bulb--green {
  --bulb: #ffe2a6;
  --bulb-deep: #d49a3c;
  --glow: rgba(255, 220, 150, .8);
  --glow-soft: rgba(255, 200, 120, .22);
  animation-duration: 2.2s;
}

.xmas-bulb--white {
  --bulb: #fff3d9;
  --bulb-deep: #e6c58a;
  --glow: rgba(255, 240, 205, .9);
  --glow-soft: rgba(255, 226, 170, .28);
  animation-duration: 3.6s;
}

.xmas-bulb--gold { animation-duration: 3.1s; }

/* Real fairy lights shimmer rather than blink: a shallow dip in brightness. */
@keyframes xmasTwinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .62; }
}

/* --------------------------------------------------------------------------
   2. Snow canvas (created by christmas-theme.js)
   Above page content, below the header (z-index 99) and every modal, so it
   never covers navigation or dialogs, and it never takes a click.
   -------------------------------------------------------------------------- */
.xmas-snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* --------------------------------------------------------------------------
   3. Homepage hero
   -------------------------------------------------------------------------- */
.xmas-hero {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.xmas-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --- Hanging ornaments ------------------------------------------------- */
.xmas-ornaments {
  position: absolute;
  top: 0;
  right: 5%;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  transform-origin: 100% 0;
}

.xmas-ornament {
  position: relative;
  width: var(--size, 56px);
  height: calc(var(--len, 160px) + var(--size, 56px) * 1.2);
  transform-origin: 50% 0;
  animation: xmasSway var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}

.xmas-ornament__string {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: var(--len, 160px);
  margin-left: -.5px;
  background: linear-gradient(to bottom, rgba(233, 196, 106, 0), rgba(233, 196, 106, .95) 35%);
}

.xmas-ornament__bob {
  position: absolute;
  left: 0;
  top: calc(var(--len, 160px) - 2px);
  display: block;
  width: var(--size, 56px);
  transform-origin: 50% 0;
  /* Only the bauble itself is hoverable — for the jingle — never the string. */
  pointer-events: auto;
}

.xmas-ornament__art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .32));
}

.xmas-ornament__bob.is-jingling { animation: xmasJingle 1.1s ease-out; }

@keyframes xmasSway {
  0%, 100% { transform: rotate(-2.6deg); }
  50%      { transform: rotate(2.6deg); }
}

@keyframes xmasJingle {
  0%   { transform: rotate(0); }
  18%  { transform: rotate(14deg); }
  38%  { transform: rotate(-10deg); }
  58%  { transform: rotate(6deg); }
  78%  { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}

/* --- Gifts -------------------------------------------------------------- */
.xmas-gifts {
  position: absolute;
  /* Clear of the floating WhatsApp button in the bottom-right corner. */
  right: 7%;
  bottom: 12px;
  width: 170px;
  pointer-events: auto;
}

.xmas-gifts svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .28));
}

.xmas-gift__lid {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.xmas-gifts:hover .xmas-gift__lid { transform: translateY(-9px) rotate(-7deg); }

/* A photoreal stack can't open its lid, so hovering lifts the whole stack
   slightly instead, its shadow spreading beneath it. */
.xmas-gifts--real img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .28));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), filter .5s ease;
}

.xmas-gifts--real:hover img {
  transform: translateY(-6px);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .26));
}

.xmas-gift__sparkles path {
  transform-box: fill-box;
  transform-origin: center;
  animation: xmasSparkle 2.4s ease-in-out infinite;
}

.xmas-gift__sparkles path:nth-child(2) { animation-delay: -.8s; }
.xmas-gift__sparkles path:nth-child(3) { animation-delay: -1.6s; }

@keyframes xmasSparkle {
  0%, 100% { opacity: .2; transform: scale(.6); }
  50%      { opacity: 1;  transform: scale(1); }
}

/* --- Snow drift --------------------------------------------------------- */
.xmas-drift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
}

.xmas-drift svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Paused while the hero is off screen (toggled by christmas-theme.js). */
.xmas-hero.is-paused *,
.xmas-hero.is-paused .xmas-ornament { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   4. Section accents (homepage)
   The host section becomes the positioning box and its content wrapper is
   lifted one level, so the accent always sits beneath real content. `:has()`
   scopes this to sections that actually include an accent — no class is added
   to, and no other section is touched.
   -------------------------------------------------------------------------- */
#home-page section:has(> .xmas-accent),
#home-page section:has(> .xmas-divider) { position: relative; }

#home-page section:has(> .xmas-accent) > .container,
#home-page section:has(> .xmas-accent) > .container-fluid,
#home-page section:has(> .xmas-accent) > h2 {
  position: relative;
  z-index: 1;
}

.xmas-accent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.xmas-accent__art {
  position: absolute;
  width: 340px;
  color: var(--xmas-ice);
}

.xmas-accent__art svg,
.xmas-accent__art > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Snowflake crystal: fine icy line work with gold tips, turning very slowly. */
.xmas-accent__art--snowflake {
  opacity: .3;
  animation: xmasSpin 240s linear infinite;
}

.xmas-accent__tip,
.xmas-accent__core {
  fill: var(--xmas-gold-soft);
  stroke: none;
}

/* On the two photo / dark-overlay sections the crystal reads in white. */
#home-page .workTogether .xmas-accent__art--snowflake,
#home-page .awards .xmas-accent__art--snowflake {
  color: #fff;
  opacity: .22;
}

.xmas-accent--sm { width: 220px; }
.xmas-accent--xs { width: 150px; opacity: .24; }

/* Holly: a solid object rather than a pattern, so it is smaller and opaque. */
.xmas-accent__art--holly {
  width: 150px;
  opacity: .92;
  filter: drop-shadow(0 6px 10px rgba(1, 10, 36, .16));
}

.xmas-accent__art--holly.xmas-accent--sm { width: 120px; }
.xmas-accent__art--holly.xmas-accent--xs { width: 96px; opacity: .92; }

.xmas-accent--left         { left: -110px;  bottom: -90px; }
.xmas-accent--right        { right: -110px; top: -90px; }
.xmas-accent--top-left     { left: -60px;   top: -55px; }
.xmas-accent--top-right    { right: -60px;  top: -55px; }
.xmas-accent--bottom-left  { left: -60px;   bottom: -55px; }
.xmas-accent--bottom-right { right: -60px;  bottom: -55px; }
.xmas-accent--mid-left     { left: -70px;   top: 40%; }
.xmas-accent--mid-right    { right: -70px;  top: 36%; }

/* Holly tucks into its corner instead of hanging far past it. */
.xmas-accent__art--holly.xmas-accent--top-left     { left: -14px;  top: -10px; }
.xmas-accent__art--holly.xmas-accent--top-right    { right: -14px; top: -10px; transform: scaleX(-1); }
.xmas-accent__art--holly.xmas-accent--bottom-left  { left: -14px;  bottom: -10px; transform: scaleY(-1); }
.xmas-accent__art--holly.xmas-accent--bottom-right { right: -14px; bottom: -10px; transform: scale(-1); }

/* Neighbouring crystals turn in opposite directions. */
.xmas-accent--right.xmas-accent__art--snowflake,
.xmas-accent--top-right.xmas-accent__art--snowflake,
.xmas-accent--bottom-right.xmas-accent__art--snowflake,
.xmas-accent--mid-right.xmas-accent__art--snowflake { animation-direction: reverse; }

.xmas-accent__art.is-paused,
.xmas-accent__art.is-paused * { animation-play-state: paused; }

@keyframes xmasSpin { to { transform: rotate(360deg); } }

/* --- Object accents: trees, wreath, bells, poinsettia, candy cane, gifts.
   Solid illustrations rather than patterns, so they are opaque, sized per
   object (the lg/sm/xs scale is for snowflakes) and tucked into a corner
   instead of hanging far past it. ------------------------------------------ */
.xmas-accent__art.xmas-accent__art--object {
  opacity: 1;
  color: inherit;
  filter: drop-shadow(0 8px 12px rgba(1, 10, 36, .14));
}

.xmas-accent__art--object img {
  display: block;
  width: 100%;
  height: auto;
}

/* Standing objects stay within a section's 100px bottom padding, so they
   never rise behind the content above them. */
.xmas-accent__art--object.xmas-accent__art--tree       { width: 70px; }
.xmas-accent__art--object.xmas-accent__art--gifts      { width: 124px; }
.xmas-accent__art--object.xmas-accent__art--wreath     { width: 104px; }
.xmas-accent__art--object.xmas-accent__art--bells      { width: 84px; }
.xmas-accent__art--object.xmas-accent__art--poinsettia { width: 150px; }
.xmas-accent__art--object.xmas-accent__art--candycane  { width: 40px; }

.xmas-accent__art--object.xmas-accent--top-left     { left: 2.2%;  top: 0;    bottom: auto; right: auto; }
.xmas-accent__art--object.xmas-accent--top-right    { right: 2.2%; top: 0;    bottom: auto; left: auto; }
.xmas-accent__art--object.xmas-accent--bottom-left  { left: 2.2%;  bottom: 0; top: auto;    right: auto; }
.xmas-accent__art--object.xmas-accent--bottom-right { right: 2.2%; bottom: 0; top: auto;    left: auto; }

/* A poinsettia is seen from above, so it peeks in from the corner. */
.xmas-accent__art--poinsettia.xmas-accent--bottom-left  { left: -38px;  bottom: -38px; }
.xmas-accent__art--poinsettia.xmas-accent--bottom-right { right: -38px; bottom: -38px; }
.xmas-accent__art--poinsettia.xmas-accent--top-left     { left: -38px;  top: -38px; }
.xmas-accent__art--poinsettia.xmas-accent--top-right    { right: -38px; top: -38px; }
.xmas-accent__art--poinsettia { animation: xmasSpin 400s linear infinite; }

/* The candy cane leans against the corner. */
.xmas-accent__art--candycane { transform: rotate(-12deg); transform-origin: 50% 100%; }
.xmas-accent__art--candycane.xmas-accent--bottom-left { transform: rotate(12deg) scaleX(-1); }

/* Hanging things swing from where they hang. */
.xmas-accent__art--wreath,
.xmas-accent__art--bells {
  transform-origin: 50% 0;
  animation: xmasSwing 4.2s ease-in-out infinite;
}

.xmas-accent__art--bells { animation-duration: 3.2s; }

@keyframes xmasSwing {
  0%, 100% { transform: rotate(-3.5deg); }
  50%      { transform: rotate(3.5deg); }
}

/* --------------------------------------------------------------------------
   3b. Hero additions: glowing stars, Santa's sleigh, the lit tree
   -------------------------------------------------------------------------- */
.xmas-stars {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.xmas-stars i,
.xmas-scene__anchor {
  position: absolute;
  width: calc(26px * var(--s, 1));
  height: calc(26px * var(--s, 1));
  animation: xmasStarGlow 4.6s ease-in-out infinite;
}

.xmas-stars i::before,
.xmas-scene__anchor::before,
.xmas-scene__anchor::after,
.xmas-stars i::after {
  content: "";
  position: absolute;
}

.xmas-scene__anchor::before,
.xmas-stars i::before {
  top: -40%;
  right: -40%;
  bottom: -40%;
  left: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 190, .85) 0, rgba(255, 214, 120, .3) 28%, rgba(255, 214, 120, 0) 62%);
}

/* four-point star */
.xmas-scene__anchor::after,
.xmas-stars i::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff7dc;
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
}

@keyframes xmasStarGlow {
  0%, 100% { opacity: .2; transform: scale(.65) rotate(0deg); }
  50%      { opacity: 1;  transform: scale(1) rotate(25deg); }
}

/* Santa's sleigh: crosses left → right with a gentle climb, then rests off
   screen for a while before the next pass. It flies *behind* the hanging
   ornaments (they come later in the markup), which gives the sky depth. */
.xmas-sleigh {
  position: absolute;
  left: 0;
  top: 24%;
  width: 400px;
  animation: xmasFly 32s linear 1.2s infinite both;
  will-change: transform;
}

.xmas-sleigh__bob {
  position: relative;
  animation: xmasBob 3.2s ease-in-out infinite alternate;
}

.xmas-sleigh__art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(1, 10, 36, .38));
}

/* stardust streaming from the runners */
.xmas-sleigh__trail,
.xmas-sleigh__dust {
  position: absolute;
  right: 97%;
  top: 73%;
  width: 65%;
  height: 35%;
}

/* Soft out-of-focus glints (bokeh), as a camera would catch them, rather
   than drawn sparkle shapes. */
.xmas-sleigh__dust i {
  position: absolute;
  width: calc(8px * var(--s, 1));
  height: calc(8px * var(--s, 1));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 222, .95) 0, rgba(255, 226, 160, .55) 38%, rgba(255, 214, 130, 0) 70%);
  animation: xmasSparkle 1.6s ease-in-out infinite;
}

/* A photoreal sleigh carries its own shading; keep only a soft cast shadow. */
.xmas-sleigh__art--real { filter: drop-shadow(0 14px 18px rgba(1, 10, 36, .32)); }

@keyframes xmasFly {
  0%   { transform: translate3d(-140%, 64px, 0) rotate(-2deg); }
  64%  { transform: translate3d(calc(100vw + 40%), -36px, 0) rotate(-4deg); }
  100% { transform: translate3d(calc(100vw + 40%), -36px, 0) rotate(-4deg); }
}

@keyframes xmasBob {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

/* The lit tree, standing in the snow drift in the bottom-left corner. The
   drift comes later in the markup, so it covers the trunk's base. */
.xmas-hero-tree {
  position: absolute;
  left: 4%;
  bottom: 6px;
  width: 112px;
}

/* --------------------------------------------------------------------------
   7. Header corner sprays (site-wide)
   Hung from the bottom corners of .btmHead — below the bar, never over the
   logo or the menu — and click-through. z-index 1 keeps them beneath the
   menu dropdowns, which share the bar's stacking context.
   -------------------------------------------------------------------------- */
.xmas-corner {
  position: absolute;
  top: 100%;
  width: 150px;
  margin-top: -1px;
  z-index: 1;
  pointer-events: none;
}

.xmas-corner > img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(1, 10, 36, .28));
}

.xmas-corner--left  { left: 0; }
.xmas-corner--right { right: 0; }
.xmas-corner--right > img { transform: scaleX(-1); }

/* golden bells on a thread under the right-hand spray */
.xmas-corner__bells {
  position: absolute;
  right: 98px;
  top: 30px;
  width: 50px;
  transform-origin: 50% 0;
  animation: xmasSwing 3.4s ease-in-out infinite;
}

.xmas-corner__bells::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 30px;
  background: linear-gradient(rgba(233, 196, 106, 0), #e9c46a);
}

.xmas-corner__bells img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 6px rgba(1, 10, 36, .3));
}

/* --------------------------------------------------------------------------
   8. Tree component (partials/christmas/tree)
   -------------------------------------------------------------------------- */
.xmas-tree {
  position: relative;
  display: block;
}

.xmas-tree > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Same 120 × 160 grid as the image underneath, so bulbs land on the swags. */
.xmas-tree__fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.xmas-tree__lights {
  filter: drop-shadow(0 0 1.5px rgba(255, 226, 150, .95));
}

.xmas-tree__lights circle {
  animation: xmasBulb 2.4s ease-in-out infinite;
}

.xmas-tree__halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: xmasHalo 3.6s ease-in-out infinite;
}

@keyframes xmasBulb {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

@keyframes xmasHalo {
  0%, 100% { opacity: .5; transform: scale(.85); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   9. Section dividers (homepage): a bough swag at a section's top edge
   -------------------------------------------------------------------------- */
.xmas-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 340px;
  height: 90px;
  margin-left: -170px;
  z-index: 2;
  pointer-events: none;
}

.xmas-divider__bough {
  position: absolute;
  top: -14px;
  width: 168px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(1, 10, 36, .16));
}

.xmas-divider__bough--right {
  left: 50%;
  margin-left: -12px;
  transform: rotate(9deg);
  transform-origin: 0 60%;
}

/* Mirrored about its own centre: flipping about an edge would swing the
   bough over to the other side. */
.xmas-divider__bough--left {
  right: 50%;
  margin-right: -12px;
  transform: scaleX(-1) rotate(9deg);
  transform-origin: 50% 60%;
}

.xmas-divider__bells {
  position: absolute;
  left: 50%;
  top: 0;
  width: 70px;
  margin-left: -35px;
  transform-origin: 50% 10%;
  animation: xmasSwing 3.6s ease-in-out infinite;
}

.xmas-divider__bells img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(1, 10, 36, .22));
}

.xmas-divider.is-paused * { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   10. Service cards (homepage): a sprig of holly with a tiny bell tucked on
   each card's top edge. A pseudo-element only — the card markup, size and
   content are untouched. It gives a small nod when the card is hovered.
   -------------------------------------------------------------------------- */
#home-page .solution .box { position: relative; }

#home-page .solution .box::after {
  content: "";
  position: absolute;
  top: -16px;
  right: 34px;
  width: 72px;
  height: 48px;
  /* --xmas-card-holly is set by partials/christmas/head once a photoreal
     render exists; until then the drawn sprig is used. */
  background: var(--xmas-card-holly, url("../images/christmas/card-holly.svg")) no-repeat center / contain;
  filter: drop-shadow(0 4px 5px rgba(1, 10, 36, .16));
  transform-origin: 50% 30%;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
  z-index: 1;
}

#home-page .solution .box:hover::after { transform: rotate(-9deg) scale(1.08); }

/* --------------------------------------------------------------------------
   11. Footer (site-wide): garland along the top, closing scene at the bottom
   -------------------------------------------------------------------------- */
footer:has(> .xmas-garland) { position: relative; }

.xmas-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 1;
  pointer-events: none;
}

.xmas-garland__rope {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 36px;
  background: url("../images/christmas/garland.svg") repeat-x 0 0 / auto 36px;
  filter: drop-shadow(0 4px 4px rgba(1, 10, 36, .14));
}

/* bulbs tucked into the garland and strung across the closing scene */
.xmas-garland__bulb,
.xmas-scene__bulb {
  --bulb: #ffd27a;
  --bulb-deep: #d58a1c;
  --glow: rgba(255, 196, 102, .8);
  position: absolute;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fffdf3 0 24%, var(--bulb) 60%, var(--bulb-deep) 100%);
  box-shadow: 0 0 4px 1px var(--glow), 0 0 12px 4px rgba(255, 186, 90, .22);
  animation: xmasTwinkle 2.8s ease-in-out infinite;
}

/* same warm palette as the nav-bar string (see 1.) */
.xmas-garland__bulb--red   { --bulb: #ffb45e; --bulb-deep: #c86a12; --glow: rgba(255, 166, 80, .8); }
.xmas-garland__bulb--green { --bulb: #ffe2a6; --bulb-deep: #d49a3c; --glow: rgba(255, 220, 150, .75); }
.xmas-garland__bulb--white { --bulb: #fff3d9; --bulb-deep: #e6c58a; --glow: rgba(255, 240, 205, .85); }

/* bells hanging at each end, out in the footer's side margins */
.xmas-garland__bells {
  position: absolute;
  top: 6px;
  width: 50px;
  transform-origin: 50% 15%;
  animation: xmasSwing 3.6s ease-in-out infinite;
}

.xmas-garland__bells--left  { left: .5%; }
.xmas-garland__bells--right { right: .5%; animation-delay: -1.8s; }

.xmas-garland__bells img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 6px rgba(1, 10, 36, .2));
  transform-origin: 50% 12%;
  /* The one hoverable part of the garland: the bells give a jingle. */
  pointer-events: auto;
}

.xmas-garland__bells img.is-jingling { animation: xmasJingle 1.1s ease-out; }

/* The closing scene is a band beneath the footer's content; the negative
   bottom margin lets the snow run to the very bottom of the page instead of
   stopping above the footer's own bottom padding. */
.xmas-scene {
  position: relative;
  height: 170px;
  margin: 26px 0 -20px;
  overflow: hidden;
  pointer-events: none;
}

.xmas-scene__land {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* photoreal landscape strip: cropped from the centre, ground kept in view */
.xmas-scene__land--real {
  display: block;
  object-fit: cover;
  object-position: 50% 100%;
}

.xmas-scene__wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: visible;
}

.xmas-scene__bulb { margin-top: -2px; }

/* the gold stars the light string hangs from (shape shared with the hero
   stars; gold here, because cream would vanish on the light footer) */
.xmas-scene__anchor {
  top: 30px;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  animation: xmasAnchorGlow 3.8s ease-in-out infinite;
}

.xmas-scene__anchor::after {
  background: linear-gradient(135deg, #fff2bf, #d9a634 55%, #9a6b12);
}

@keyframes xmasAnchorGlow {
  0%, 100% { opacity: .75; transform: scale(.88); }
  50%      { opacity: 1;   transform: scale(1.06) rotate(12deg); }
}

.xmas-scene__item {
  position: absolute;
  bottom: 24px;
}

.xmas-scene__item > img {
  display: block;
  width: 100%;
  height: auto;
}

.xmas-scene__item--tree-lg  { width: 96px; }
.xmas-scene__item--tree-md  { width: 72px; bottom: 32px; }
.xmas-scene__item--tree-sm  { width: 58px; bottom: 32px; }
.xmas-scene__item--gifts    { width: 104px; bottom: 20px; }
.xmas-scene__item--gift     { width: 50px; bottom: 22px; }
.xmas-scene__item--gift-sm  { width: 38px; }
.xmas-scene__item--cane     { width: 26px; bottom: 26px; transform: rotate(-10deg); }

.xmas-scene.is-paused *,
.xmas-garland.is-paused * { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   12. Christmas red palette (site-wide)
   The site's colours all flow from five custom properties in custom.css;
   re-pointing them here turns the whole site Christmas red, and removing
   this stylesheet restores the original palette untouched.

   Every pairing was checked for legibility (WCAG contrast):
     --green-color   main accent, buttons    #c8102e  white text 5.9:1, on white 5.9:1
     --blue-color    secondary accent        #9e0b22  white text 8.3:1, on white 8.3:1
     --primary-color dark bars / panels      #2e0811  white text 18:1
     --orange-color  button hover            #9c7418  white text 4.3:1 (bold 16px+ buttons)
     --lightBg       pale section background #fcf4f3  dark body text unchanged
   -------------------------------------------------------------------------- */
:root {
  --green-color: #c8102e;
  --blue-color: #9e0b22;
  --primary-color: #2e0811;
  --orange-color: #9c7418;
  --lightBg: #fcf4f3;
}

/* Buttons that sat dark text on the bright green now sit white text on red
   (dark text on red would be only 2.6:1). */
.siteBtn,
.blackBtn.siteBtn { color: #fff !important; }

/* …except the variants that are white or transparent at rest: their text
   stays dark, and turns white only on their red hover. */
.solutions .siteBtn.blackBtn { color: var(--bs-dark) !important; }
.solutions .siteBtn.blackBtn:hover { color: #fff !important; }
.newsLwttwr .siteBtn { color: var(--bs-dark) !important; }

/* The "work together" photo band had a teal wash; make it a deep wine one
   (white text on it stays well above 7:1). */
.workTogether:before { background: rgba(70, 6, 18, .82); }

/* Embedded LeadConnector forms are cross-origin iframes: their dark label
   text can't be restyled from here, and their page background is
   transparent. Where they sit on a dark red surface (the "work together"
   band, and the full-screen "How can we help?" pop-up whose background is
   --green-color) they get a warm off-white card behind them instead, so
   their text is dark-on-light again (dark grey on it is 8–11:1, the blue
   links 4.8:1); the white fields keep their own grey borders. */
.workTogether iframe[src*="leadconnectorhq.com"],
.modal-fullscreen .modal-body iframe[src*="leadconnectorhq.com"] {
  /* No padding: the iframe is inline width:100% and the form already has
     its own inner spacing, so the card is just the iframe's own box. */
  background: #f8efed;
  box-shadow: 0 18px 40px rgba(30, 0, 8, .35);
}

/* Homepage banner: a soft wine-red vignette around the edges only. The
   centre stays clear, so anything in the banner image/video keeps its
   contrast. Sits above the media and beneath the Christmas decorations. */
.banner::before {
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 85% at 50% 45%,
      rgba(120, 8, 26, 0) 55%, rgba(120, 8, 26, .22) 82%, rgba(80, 4, 16, .42) 100%);
}

/* --------------------------------------------------------------------------
   5. Tablet and mobile
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* The header stacks into two rows here and gets taller, so the cluster
     starts lower to keep every bauble clear of it. */
  .xmas-ornaments { top: 64px; transform: scale(.72); right: 3%; }
  .xmas-gifts { width: 128px; }
  .xmas-drift { height: 26px; }

  .xmas-accent__art { width: 260px; }
  .xmas-accent--sm { width: 180px; }
  .xmas-accent--xs { width: 130px; }
  .xmas-accent__art--holly { width: 120px; }
  .xmas-accent__art--holly.xmas-accent--sm { width: 100px; }
  .xmas-accent__art--holly.xmas-accent--xs { width: 84px; }

  .xmas-sleigh { width: 300px; top: 30%; }
  .xmas-hero-tree { width: 84px; }

  .xmas-corner { width: 112px; }
  .xmas-corner__bells { right: 72px; top: 24px; width: 40px; }

  /* Section padding halves below 992px — no room left for the swags. */
  .xmas-divider { display: none; }

  .xmas-accent__art--object.xmas-accent__art--tree   { width: 44px; }
  .xmas-accent__art--object.xmas-accent__art--gifts  { width: 66px; }
  .xmas-accent__art--object.xmas-accent__art--wreath { width: 80px; }
  .xmas-accent__art--object.xmas-accent__art--bells  { width: 64px; }
  .xmas-accent__art--object.xmas-accent__art--poinsettia { width: 116px; }

  .xmas-garland__bells { width: 40px; }
}

@media (max-width: 767px) {
  /* Half the bulbs: each remaining cell simply draws a wider sag. */
  .xmas-lights { height: 36px; }
  .xmas-lights__cell:nth-child(2n) { display: none; }
  .xmas-bulb { width: 7px; height: 11px; margin-left: -3.5px; }

  /* The hero is short on phones and starts below the header, so the
     ornaments hang from its top edge, shrink, thin out, and move left of
     the gifts so the two never meet. */
  .xmas-ornaments { top: 0; transform: scale(.42); right: 30%; gap: 22px; }
  .xmas-ornament--gold,
  .xmas-ornament--green { display: none; }

  .xmas-gifts { width: 76px; right: 2%; bottom: 4px; }
  .xmas-drift { height: 14px; }

  .xmas-accent__art { width: 200px; }
  .xmas-accent--sm { width: 140px; }
  .xmas-accent--xs { display: none; }
  .xmas-accent__art--holly { width: 84px; }
  .xmas-accent__art--holly.xmas-accent--sm { width: 72px; }

  /* The phone hero is roughly 210px tall: a smaller sleigh in the upper
     third, the stars thinned out, the tree reduced to a sapling. */
  .xmas-sleigh { width: 170px; top: 16%; }
  .xmas-stars i:nth-child(2n) { display: none; }
  .xmas-hero-tree { width: 46px; left: 3%; bottom: 2px; }

  .xmas-corner { width: 84px; }
  .xmas-corner__bells { right: 52px; top: 18px; width: 30px; }
  .xmas-corner__bells::before { height: 18px; }

  /* Content sits close to the section edges on phones, so the standing and
     hanging objects step aside and only the flatter accents remain. */
  .xmas-accent__art--tree,
  .xmas-accent__art--gifts,
  .xmas-accent__art--wreath,
  .xmas-accent__art--bells,
  .xmas-accent__art--candycane { display: none; }
  .xmas-accent__art--object.xmas-accent__art--poinsettia { width: 90px; }

  #home-page .solution .box::after { width: 56px; height: 38px; top: -12px; right: 28px; }

  .xmas-garland,
  .xmas-garland__rope { height: 28px; }
  .xmas-garland__rope { background-size: auto 28px; }
  .xmas-garland__bulb { width: 6px; height: 6px; margin-left: -3px; }
  .xmas-garland__bulb:nth-of-type(2n) { display: none; }
  .xmas-garland__bells { display: none; }

  .xmas-scene { height: 116px; margin-top: 18px; }
  .xmas-scene__wire,
  .xmas-scene__bulb,
  .xmas-scene__anchor,
  .xmas-scene__item--tree-md,
  .xmas-scene__item--cane,
  .xmas-scene__item--gift-sm { display: none; }
  .xmas-scene__item--tree-lg { width: 66px; bottom: 16px; }
  .xmas-scene__item--tree-sm { width: 46px; bottom: 22px; }
  .xmas-scene__item--gifts { width: 76px; left: 22% !important; bottom: 14px; }
  .xmas-scene__item--gift { width: 38px; right: 26% !important; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   6. Reduced motion — everything stays, nothing moves
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .xmas-bulb,
  .xmas-ornament,
  .xmas-ornament__bob,
  .xmas-gift__sparkles path,
  .xmas-accent__art,
  .xmas-stars i,
  .xmas-sleigh__bob,
  .xmas-sleigh__dust i,
  .xmas-tree__lights circle,
  .xmas-tree__halo,
  .xmas-corner__bells,
  .xmas-divider__bells,
  .xmas-garland__bulb,
  .xmas-garland__bells,
  .xmas-scene__bulb,
  .xmas-scene__anchor { animation: none !important; }

  /* The sleigh doesn't fly: it is parked, quietly, high on the left. */
  .xmas-sleigh {
    animation: none !important;
    transform: translate3d(6vw, 0, 0) rotate(-3deg);
  }

  .xmas-gift__lid,
  .xmas-gifts--real img,
  #home-page .solution .box::after { transition: none; }
  .xmas-snow { display: none; }
}
