/* ============================================================
   Lamington Hotel — Christmas layer

   Loaded on every page, but does nothing on its own: christmas.js
   adds the class "xmas" to <html> while the season is on, and
   every rule here hangs off that class or off an element that
   christmas.js creates. Outside the season the site looks
   exactly as it does without it.

   Adds one colour to the palette — a deep Christmas red, which
   sits naturally beside the green and amber.
   ============================================================ */

html.xmas {
  --xmas-red: #A3212B;
}

/* ---------- Greeting ribbon (above the header) ---------- */
.xmas-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.9rem;
  padding: 0.4rem 4vw;
  background: var(--xmas-red);
  color: var(--cream);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}
.xmas-ribbon strong {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--amber-light);
}
.xmas-ribbon svg {
  width: 12px;
  height: 12px;
  flex: none;
  fill: var(--amber-light);
}

/* ---------- String of lights (hangs from the header) ---------- */
.xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 50px;
  pointer-events: none;
}
.xmas-lights svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.xmas-wire {
  fill: none;
  stroke: #0C3A2B;
  stroke-width: 2;
}
.xmas-bulb .halo {
  opacity: 0.6;
  animation: xmas-twinkle var(--t, 3.2s) ease-in-out var(--d, 0s) infinite;
}
@keyframes xmas-twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.95; }
}

/* ---------- Home page headline ---------- */
/* a size down, so "Christmas beneath" stays on one line */
html.xmas .intro h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
@media (max-width: 980px) {
  html.xmas .intro h1 { font-size: min(8.2vw, 3.6rem); }
}

/* ---------- Festive band (home page, just above the rooms) ---------- */
.xmas-band {
  position: relative;
  overflow: hidden;
  padding: 4.8rem 4vw;
  background: var(--xmas-red);
  border-top: 4px solid var(--amber);
  color: var(--cream);
}
.xmas-band-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(220px, 340px);
  justify-content: space-between;
  column-gap: 2.5rem;
}
.xmas-band-copy {
  grid-column: 1;
  grid-row: 1;
}
.xmas-band .label { color: var(--amber-light); }
.xmas-band h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.xmas-band h2 em { color: var(--amber-light); }
.xmas-band-text { margin-top: 1rem; }
.xmas-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.xmas-band .secondary-btn { border-color: var(--cream); color: var(--cream); }
.xmas-band .secondary-btn:hover { background: var(--cream); color: var(--xmas-red); }
.xmas-baubles {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  height: auto;
  margin-top: -4.8rem;        /* hang from the very top edge of the band */
  pointer-events: none;
}

/* ---------- Footer greeting ---------- */
.footer .xmas-footer-note {
  max-width: var(--wrap);
  margin: 2.4rem auto 0;
  font-family: var(--script);
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--amber-light);
}
html.xmas .footer .footer-copy { margin-top: 0.7rem; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .xmas-band { padding: 3.8rem 5vw; }
  .xmas-band-inner { display: block; }
  .xmas-baubles { display: none; }
}
@media (max-width: 600px) {
  .xmas-ribbon { font-size: 0.82rem; }
  .xmas-ribbon strong { font-size: 1.45rem; }
  .xmas-ribbon svg { display: none; }
  .footer .xmas-footer-note { font-size: 1.5rem; }
}
