/* ==========================================================================
   Subnetic – Christmas & New Year opening hours
   Contact page: full panel (.sn-fest--panel)
   Home page:    slim strip  (.sn-fest--strip)
   Everything is scoped under .sn-fest so it cannot clash with main.css.
   Hidden by default; festive-hours.js adds .is-live between the show/hide dates.
   ========================================================================== */

.sn-fest {
  --snf-slate: #3c4d53;
  --snf-slate-mid: #46565b;
  --snf-slate-deep: #2f3d42;
  --snf-line: #55666c;
  --snf-white: #ffffff;
  --snf-muted: #ffffff;
  --snf-green: #8dc53e;
  --snf-lime: #d6df22;
  --snf-orange: #f7931e;
  --snf-blue: #00adee;
  display: none;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}
.sn-fest.is-live { display: block; }
.sn-fest *, .sn-fest *::before, .sn-fest *::after { box-sizing: border-box; }

/* ---------- Shared card ---------- */
.sn-fest .snf-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--snf-white);
  background: radial-gradient(120% 90% at 0% 0%, var(--snf-slate-mid) 0%, var(--snf-slate) 45%, var(--snf-slate-deep) 100%);
}
.sn-fest .snf-card::before { /* 4-colour signal stripe, same colours as the logo bars */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--snf-green) 0 25%, var(--snf-lime) 25% 50%, var(--snf-orange) 50% 75%, var(--snf-blue) 75% 100%);
}
.sn-fest .snf-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Christmas lights logo ----------
   The GIF has dark "subnetic" lettering, so it sits on a white tile to stay readable on the dark card. */
.sn-fest .snf-xmas-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 150px; padding: 14px 16px 12px; border-radius: 12px;
  background: #ffffff; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.sn-fest .snf-xmas-logo img { display: block; width: 100%; height: auto; max-width: none; margin: 0; }

/* ---------- Contact page: full panel ---------- */
.sn-fest--panel { position: relative; z-index: 2; padding: 60px 20px 0; } /* z-index keeps the card above the site's green curve (#bg3) */
.sn-fest--panel .snf-card { max-width: 1180px; margin: 0 auto; border-radius: 14px; box-shadow: 0 18px 40px rgba(47,61,66,.18); }
.sn-fest .snf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; padding: 48px 48px 44px; }
.sn-fest .snf-intro { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sn-fest h2.snf-title {
  margin: 6px 0 0; padding: 0; text-align: left;
  font-family: inherit; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: 0; text-transform: none;
  color: var(--snf-white);
}
.sn-fest h2.snf-title span { color: var(--snf-green); }
.sn-fest p.snf-text { margin: 0; padding: 0; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--snf-muted); text-align: left; max-width: 46ch; }
.sn-fest .snf-resume {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 8px;
  background: rgba(141,197,62,.14); border: 1px solid rgba(141,197,62,.45);
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--snf-white);
}
.sn-fest .snf-resume svg { flex: none; width: 22px; height: 22px; }
.sn-fest .snf-signoff { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--snf-line); display: flex; flex-direction: column; gap: 18px; }
.sn-fest .snf-signoff strong { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--snf-white); }

.sn-fest ul.snf-schedule {
  list-style: none; margin: 0; padding: 0; min-width: 0; align-self: start;
  background: rgba(0,0,0,.16); border: 1px solid var(--snf-line); border-radius: 10px; overflow: hidden;
}
.sn-fest .snf-schedule li {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  margin: 0; padding: 13px 18px; border-top: 1px solid var(--snf-line); list-style: none;
}
.sn-fest .snf-schedule li::before { content: none; }
.sn-fest .snf-schedule li:first-child { border-top: 0; }
.sn-fest .snf-date { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 8px 0 7px; border-radius: 6px; background: rgba(255,255,255,.07); }
.sn-fest .snf-dow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--snf-muted); }
.sn-fest .snf-num { font-size: 21px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; color: var(--snf-white); }
.sn-fest .snf-num.is-range { font-size: 16px; white-space: nowrap; margin-top: 7px; }
.sn-fest .snf-mon { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--snf-muted); margin-top: 4px; }
.sn-fest .snf-day { min-width: 0; }
.sn-fest .snf-day b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--snf-white); }
.sn-fest .snf-day span { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--snf-muted); font-variant-numeric: tabular-nums; }
.sn-fest .snf-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.sn-fest .snf-tag--open   { background: rgba(141,197,62,.18); color: #b5e07a; }
.sn-fest .snf-tag--half   { background: rgba(214,223,34,.16); color: var(--snf-lime); }
.sn-fest .snf-tag--closed { background: rgba(247,147,30,.18); color: #ffb35c; }
.sn-fest .snf-tag--back   { background: var(--snf-blue); color: #fff; }
.sn-fest .is-closed .snf-day b { color: #ffd2a1; }
.sn-fest .is-closed .snf-date { background: rgba(247,147,30,.14); }
.sn-fest .is-back { background: rgba(0,173,238,.10); }

/* ---------- Home page: strip ---------- */
.sn-fest--strip { position: relative; z-index: 2; }
.sn-fest--strip .snf-card { border-bottom: 1px solid rgba(0,0,0,.35); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.sn-fest .snf-strip { display: flex; align-items: center; gap: 36px; max-width: 1475px; margin: 0 auto; padding: 26px 38px 24px; }
.sn-fest--strip .snf-xmas-logo { width: 92px; padding: 9px 10px 8px; border-radius: 10px; }
.sn-fest .snf-strip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sn-fest .snf-strip-text strong { font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--snf-white); }
.sn-fest .snf-strip-text p { margin: 0; padding: 0; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--snf-muted); text-align: left; }
.sn-fest .snf-strip-text p b { color: #ffb35c; font-weight: 700; }
.sn-fest a.snf-btn {
  flex: none; display: inline-block; margin: 0; padding: 12px 26px; border-radius: 999px;
  background: var(--snf-blue); color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  transition: background .2s ease, transform .2s ease;
}
.sn-fest a.snf-btn:hover { background: #0096cf; transform: translateY(-1px); }
.sn-fest a.snf-btn:focus-visible { outline: 3px solid var(--snf-lime); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sn-fest .snf-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 40px 28px 32px; }
  .sn-fest .snf-signoff { margin-top: 0; }
  .sn-fest .snf-strip { flex-wrap: wrap; gap: 16px 28px; padding: 24px 24px 22px; }
  .sn-fest .snf-strip-text { flex-basis: calc(100% - 130px); }
}
@media (max-width: 767px) {
  .sn-fest--panel { padding: 40px 15px 0; }
  .sn-fest h2.snf-title { font-size: 27px; }
  .sn-fest .snf-grid { padding: 34px 20px 26px; }
  .sn-fest .snf-xmas-logo { width: 120px; }
  .sn-fest .snf-strip { flex-direction: column; align-items: flex-start; padding: 24px 20px 22px; }
  .sn-fest .snf-strip-text { flex-basis: auto; }
  .sn-fest--strip .snf-xmas-logo { width: 84px; }
}
@media (max-width: 420px) {
  .sn-fest .snf-schedule li { grid-template-columns: 70px minmax(0, 1fr); gap: 6px 14px; padding: 12px 14px; }
  .sn-fest .snf-schedule .snf-date { grid-row: span 2; }
  .sn-fest .snf-schedule .snf-tag { justify-self: start; }
  .sn-fest .snf-num.is-range { font-size: 14px; }
}


/* ==========================================================================
   LIGHT VARIANT – add class "sn-fest--light" to the <section>.
   White panel, dark text; the logo sits straight on white (no tile needed).
   ========================================================================== */
.sn-fest.sn-fest--light {
  --snf-white: #2b3a3f;          /* main text becomes dark slate */
  --snf-muted: #4a5b61;          /* secondary text */
  --snf-line: #e2e8ea;
  --snf-snow: #9fb3ba;           /* read by festive-hours.js */
}
.sn-fest.sn-fest--light .snf-card { background: #ffffff; color: var(--snf-white); }
.sn-fest.sn-fest--light.sn-fest--panel .snf-card { box-shadow: 0 18px 44px rgba(47,61,66,.14); border: 1px solid #e7ecee; }
.sn-fest.sn-fest--light .snf-xmas-logo { background: transparent; box-shadow: none; padding: 0; }
.sn-fest.sn-fest--light h2.snf-title { color: var(--snf-slate); }
.sn-fest.sn-fest--light h2.snf-title span { color: #6fa52a; }
.sn-fest.sn-fest--light .snf-resume { background: #f1f8e8; border-color: #cfe6b0; color: var(--snf-slate); }
.sn-fest.sn-fest--light .snf-resume svg { stroke: #6fa52a; }
.sn-fest.sn-fest--light .snf-signoff strong { color: var(--snf-slate); }
.sn-fest.sn-fest--light ul.snf-schedule { background: #f6f8f9; border-color: var(--snf-line); }
.sn-fest.sn-fest--light .snf-date { background: #ffffff; border: 1px solid var(--snf-line); }
.sn-fest.sn-fest--light .snf-dow,
.sn-fest.sn-fest--light .snf-mon { color: #6b7c82; }
.sn-fest.sn-fest--light .snf-num { color: var(--snf-slate); }
.sn-fest.sn-fest--light .snf-day b { color: var(--snf-slate); }
.sn-fest.sn-fest--light .snf-tag--open   { background: #e9f5da; color: #4d7a17; }
.sn-fest.sn-fest--light .snf-tag--half   { background: #f4f6c4; color: #6d7100; }
.sn-fest.sn-fest--light .snf-tag--closed { background: #fde9d2; color: #b45f00; }
.sn-fest.sn-fest--light .is-closed .snf-day b { color: #b45f00; }
.sn-fest.sn-fest--light .is-closed .snf-date { background: #fff4e8; border-color: #f6d8b4; }
.sn-fest.sn-fest--light .is-back { background: #e8f7fd; }
.sn-fest.sn-fest--light .snf-strip-text strong { color: var(--snf-slate); }
.sn-fest.sn-fest--light .snf-strip-text p b { color: #b45f00; }
.sn-fest.sn-fest--light.sn-fest--strip .snf-card { border-bottom: 1px solid #e2e8ea; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
