/* Christmas effects - see js/christmas.js
   Everything here is decorative: the snow takes no pointer events and is
   switched off for visitors who ask for reduced motion. */

/* ---- falling snow (canvas is created by the script) ---- */
.xmas-snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
}

/* ---- on/off switch ---- */
.xmas-toggle {
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2002;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.xmas-toggle:hover,
.xmas-toggle:focus-visible {
  transform: scale(1.1);
}

.xmas-toggle:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

/* effects switched off: grey the button so it reads as "off" */
.xmas-toggle[aria-pressed="false"] {
  background: #6c757d;
  filter: grayscale(1);
}

@media (prefers-reduced-motion: reduce) {
  .xmas-toggle { transition: none; }
}

/* ---- office-closure notice (js/closure-notice.js) ---- */
.closure-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  max-width: 92vw;
  max-height: 92vh;
}

.closure-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.closure-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.closure-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.closure-close:hover,
.closure-close:focus-visible {
  background: #9c1c1c;
}

.closure-close:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

/* inline version, shown on the contact page */
.closure-banner {
  background: #f7f5f3;
  padding: 1.5rem 1rem 0;
}

.closure-banner img {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

@media print {
  .xmas-snow,
  .xmas-toggle { display: none !important; }
}
