/* Vibrotone Christmas layer. Active only when <html> has class "xmas" (added by christmas.js).
   Load AFTER styles.css. Photo goes in assets/img/VibrotoneFrontXmas.jpg */

:root {
  --xmas-berry: #c8262c;
  --xmas-holly: #2f7d3a;
  --xmas-gold: #e6c34a;
  --xmas-door: #3a3d33;
  --brand-green: #85ac1c;
}

/* Ribbon (script style echoes the red "Merry Christmas" on the door) */
.xmas-ribbon {
  position: relative;
  z-index: 1031;
  background: var(--xmas-door);
  color: #fff;
  text-align: center;
  padding: 0.4rem 2.5rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.3;
  border-bottom: 3px solid var(--xmas-berry);
}
.xmas-ribbon .xmas-script {
  font-family: "Dancing Script", "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.6rem;
  color: #ff7a7a;
  margin-right: 0.25rem;
}
.xmas-ribbon a { color: var(--xmas-gold); margin-left: 0.5rem; text-decoration: underline; }
.xmas-ribbon button {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.xmas-ribbon a:focus-visible, .xmas-ribbon button:focus-visible { outline: 2px solid var(--xmas-gold); outline-offset: 2px; }

/* Hero: swap in the decorated shopfront, darkened so the text stays readable */
html.xmas header.masthead {
  background-image:
    linear-gradient(rgba(37, 35, 33, 0.72), rgba(37, 35, 33, 0.72)),
    url("../assets/img/VibrotoneFrontXmas.jpg");
}



/* Buttons: berry red, brand green on hover */
html.xmas .btn-dark,
html.xmas .gait-cta {
  background-color: var(--xmas-berry);
  border-color: var(--xmas-berry);
  color: #fff;
}
html.xmas .btn-dark:hover,
html.xmas .gait-cta:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #212529;
}
html.xmas .gait-eyebrow { background: var(--xmas-berry); }

/* Dark sections get a berry top edge */
/* Dark sections get a candy-cane stripe along the top */
html.xmas .bg-primary {
  background-image: repeating-linear-gradient(-45deg, #c8262c 0 14px, #fff 14px 28px);
  background-size: 100% 8px;
  background-repeat: no-repeat;
  background-position: top;
}

/* The green divider bars become holly sprigs */
html.xmas hr.divider,
html.xmas hr.divider-light {
  height: 22px;
  max-width: 120px;
  margin: 1.25rem auto;
  border: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'><path d='M10 11 Q22 1 34 11 Q22 21 10 11Z' fill='%232f7d3a'/><path d='M86 11 Q98 1 110 11 Q98 21 86 11Z' fill='%232f7d3a'/><circle cx='52' cy='12' r='5' fill='%23c8262c'/><circle cx='62' cy='9' r='5' fill='%23c8262c'/><circle cx='70' cy='13' r='5' fill='%23c8262c'/></svg>") center / contain no-repeat;
}

/* Snow */
#xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1020; }
@media (prefers-reduced-motion: reduce) { #xmas-snow { display: none; } }

/* Fairy lights hanging from the ribbon (two alternating rows that twinkle) */
.xmas-ribbon::before, .xmas-ribbon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 16px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15px 9px, #ff4d4d 0 5px, transparent 6px),
    radial-gradient(circle at 45px 9px, #ffd24d 0 5px, transparent 6px),
    radial-gradient(circle at 75px 9px, #4dd26a 0 5px, transparent 6px),
    radial-gradient(circle at 105px 9px, #4da6ff 0 5px, transparent 6px);
  background-size: 120px 16px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
  animation: xmas-twinkle 1.6s ease-in-out infinite alternate;
}
.xmas-ribbon::after { background-position: 15px 0; animation-direction: alternate-reverse; }
@keyframes xmas-twinkle { from { opacity: 0.35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xmas-ribbon::before, .xmas-ribbon::after { animation: none; } }

/* Script greetings (added by christmas.js) */
.xmas-greeting {
  font-family: "Dancing Script", "Brush Script MT", "Segoe Script", cursive;
  font-size: 3rem;
  line-height: 1.1;
  color: #ff7a7a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}
.xmas-greeting .xmas-star { color: var(--xmas-gold); font-size: 0.6em; vertical-align: middle; }
.xmas-greeting-dark { color: var(--xmas-berry); text-shadow: none; font-size: 2.2rem; }

/* Snow drift along the bottom of the hero */
html.xmas header.masthead { position: relative; }
html.xmas header.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 72px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M-60 80V46Q15 10 90 46Q150 26 210 46Q300 -2 390 46Q460 18 530 46Q610 6 690 46Q755 22 820 46Q905 2 990 46Q1065 10 1140 46Q1200 26 1260 46V80Z' fill='%23c9d8e8'/><path d='M0 80V58Q65 26 130 58Q215 10 300 58Q360 34 420 58Q500 14 580 58Q650 22 720 58Q810 6 900 58Q955 30 1010 58Q1085 18 1160 58Q1225 26 1290 58V80Z' fill='white'/></svg>") center bottom / 100% 100% no-repeat;
}

/* Hero greeting sits under the title block (adds height downwards only, so it never runs into the navbar) */
.xmas-greeting-hero { font-size: 2.6rem; margin: 0.25rem 0 0.75rem; }
@media (max-width: 991px) { .xmas-greeting-hero { font-size: 2rem; } }

/* Keep the hero content above the snow drift so the drift can never cover text or images */
html.xmas header.masthead .container { position: relative; z-index: 1; }
html.xmas header.masthead::after { z-index: 0; }

/* Navbar on scroll (desktop): stays transparent while it is over the hero photo (white links, like at the top),
   then becomes a frosted bar with a berry line once the page content is behind it. */
@media (min-width: 992px) {
  html.xmas #mainNav.navbar-shrink {
    background-color: rgba(173, 189, 183, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--xmas-berry);
  }
  html.xmas #mainNav.navbar-shrink.xmas-nav-clear {
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 0;
  }
  html.xmas #mainNav.navbar-shrink.xmas-nav-clear .navbar-nav .nav-item .nav-link {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }
  html.xmas #mainNav.navbar-shrink.xmas-nav-clear .navbar-nav .nav-item .nav-link:hover { color: var(--brand-green); }
}
@media (max-width: 991px) {
  html.xmas #mainNav { border-bottom: 3px solid var(--xmas-berry); }
}

/* Pages with a blank spacer above the hero (e.g. booking.html): drop it so no white band shows under the lights */
html.xmas hr.divider-blank { display: none; }