/* ==========================================================================
   Holidays 2026 — seasonal styles.
   Loaded only by index.html (holiday bar + pop-up) and holiday.html.
   To retire the season: remove this file's <link> and js/holiday.js from
   index.html (the bar and pop-up already switch themselves off on Jan 2, 2027).
   Uses the tokens from site.css; the two seasonal colours live here.
   ========================================================================== */
:root {
  --holly: #1F4D3A;       /* evergreen — 9.6:1 on white */
  --holly-deep: #173A2C;
  --berry: #9B2335;       /* cranberry — 7.4:1 on white, 6.9:1 on sand */
  --holiday-cream: #F4ECDF;
}

/* Things holiday.js switches off or on by date. */
[data-expires][hidden], [data-starts][hidden] { display: none !important; }

/* ---------- Homepage bar (index.html, between the hero and the ribbon) ---------- */
.holiday-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .35rem 1.25rem;
  padding: .95rem var(--page-gutter, 1.5rem);
  background: var(--holly); color: #fff;
  font-size: .9375rem; line-height: 1.45; text-align: center; text-decoration: none;
}
.holiday-bar:hover { background: var(--holly-deep); color: #fff; }
.holiday-bar:focus-visible { outline: 3px solid #7EC8E8; outline-offset: -5px; }
.holiday-bar-tag {
  color: #F0CF8A; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.holiday-bar-cta { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; white-space: nowrap; }

/* ---------- Page: shared bits ---------- */
.holiday-wrap { max-width: 1360px; margin: 0 auto; }
.holiday-eyebrow-berry { color: var(--berry); }

/* The day at a glance */
.holiday-glance {
  list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1080px; margin: 2.5rem auto 0;
  border-top: 1px solid rgba(18, 63, 90, .16); border-bottom: 1px solid rgba(18, 63, 90, .16);
}
.holiday-glance li { padding: 1.1rem .75rem; text-align: center; }
.holiday-glance li + li { border-left: 1px solid rgba(18, 63, 90, .16); }
.holiday-glance-time {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 1.35rem; line-height: 1.2; color: var(--primary);
}
.holiday-glance-what { display: block; margin-top: .2rem; font-size: .875rem; color: var(--text-muted); }

/* Event cards with Sara's artwork */
.holiday-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  max-width: 1360px; margin: 2.5rem auto 0;
}
.holiday-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--light-gray); }
.holiday-card-art { aspect-ratio: 4 / 5; overflow: hidden; background: var(--holiday-cream); }
.holiday-card-art img { width: 100%; height: 100%; object-fit: contain; }
.holiday-card-art--santa { background: #BC120B; }
.holiday-card-art--wine { background: #EFE8E2; }
.holiday-card-art--parade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.5rem; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 12% 18%, #F0CF8A 0 3px, transparent 4px),
    radial-gradient(circle at 30% 11%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 50% 16%, #F0CF8A 0 3px, transparent 4px),
    radial-gradient(circle at 70% 10%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 88% 17%, #F0CF8A 0 3px, transparent 4px),
    radial-gradient(circle at 20% 86%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 42% 90%, #F0CF8A 0 3px, transparent 4px),
    radial-gradient(circle at 62% 85%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 82% 91%, #F0CF8A 0 3px, transparent 4px),
    linear-gradient(180deg, #0D2B3E, #123F5A);
}
.holiday-parade-kicker { color: #F0CF8A; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.holiday-parade-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; }
.holiday-parade-title em { font-style: italic; color: #F0CF8A; }
.holiday-parade-time { font-size: 1rem; color: #e0e9ee; }

.holiday-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.35rem 1.35rem 1.5rem; }
.holiday-card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--primary-deep); }
.holiday-card-meta { margin-top: .4rem; font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--berry); }
.holiday-card-desc { margin: .7rem 0 1.25rem; font-size: 1rem; line-height: 1.6; color: var(--text-muted); }
.holiday-card-body .btn, .holiday-card-body .text-link { margin-top: auto; align-self: flex-start; }

/* Every week */
.holiday-weekly { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 2.5rem auto 0; }
.holiday-weekly .info-card h3 { margin-bottom: .35rem; }
.holiday-weekly .holiday-card-meta { margin: 0 0 .75rem; }

/* Seasonal drinks */
.holiday-sips {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); align-items: start; max-width: 1360px; margin: 2.75rem auto 0;
}
.holiday-sips-art img { width: 100%; border: 1px solid rgba(18, 63, 90, .12); }
.holiday-menu h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; color: var(--primary-deep); }
.holiday-menu .menu-when { margin: .35rem 0 .5rem; color: var(--berry); }
.holiday-menu .menu-item:last-child { border-bottom: 0; }
.holiday-menu .menu-desc { font-size: 1rem; }
.holiday-sips-note { max-width: 1360px; margin: 1.75rem auto 0; font-size: .875rem; color: var(--text-muted); }

/* Hours */
.holiday-hours { width: 100%; max-width: 760px; margin: 2.5rem auto 0; border-collapse: collapse; text-align: left; }
.holiday-hours caption { caption-side: bottom; padding-top: 1.1rem; font-size: .875rem; color: var(--text-muted); text-align: left; }
.holiday-hours th, .holiday-hours td { padding: 1rem .25rem; border-bottom: 1px solid rgba(18, 63, 90, .14); vertical-align: top; font-size: 1rem; }
.holiday-hours tr:first-child th, .holiday-hours tr:first-child td { border-top: 1px solid rgba(18, 63, 90, .14); }
.holiday-hours th { font-weight: 600; color: var(--text); padding-right: 1.25rem; }
.holiday-hours th small { display: block; font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.holiday-hours td { text-align: right; color: var(--primary); font-weight: 600; white-space: nowrap; }
.holiday-hours td small { display: block; font-size: .875rem; font-weight: 400; color: var(--text-muted); white-space: normal; }
.holiday-hours .is-closed td { color: var(--berry); }
.holiday-hours-divider th { padding-top: 2rem; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1100px) {
  .holiday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .holiday-sips { grid-template-columns: 1fr 1fr; }
  .holiday-sips-art { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .holiday-glance { grid-template-columns: 1fr 1fr; }
  .holiday-glance li { border-left: 0 !important; border-top: 1px solid rgba(18, 63, 90, .16); }
  .holiday-glance li:nth-child(-n+2) { border-top: 0; }
  .holiday-glance li:nth-child(even) { border-left: 1px solid rgba(18, 63, 90, .16) !important; }
  .holiday-glance li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .holiday-weekly { grid-template-columns: 1fr; }
  .holiday-sips { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .holiday-grid { grid-template-columns: 1fr; max-width: 420px; }
  .holiday-hours td { white-space: normal; }
  .holiday-card-art--parade { aspect-ratio: 16 / 10; }
  .holiday-bar { font-size: .875rem; }
}

/* ---------- Homepage pop-up (built by js/holiday.js) ---------- */
.holiday-pop-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 26, 38, .62);
  opacity: 0; transition: opacity .3s var(--ease, ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.holiday-pop-backdrop.is-visible { opacity: 1; }
.holiday-pop {
  position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  width: min(780px, 100%); margin: auto;
  background: var(--sand, #FAF6EF); color: var(--text, #0D2B3E);
  box-shadow: 0 30px 80px rgba(5, 18, 27, .45);
  transform: translateY(14px); transition: transform .35s var(--ease, ease);
}
.holiday-pop-backdrop.is-visible .holiday-pop { transform: none; }
.holiday-pop::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--berry) 0 18px, #fff 18px 36px, var(--holly) 36px 54px, #fff 54px 72px);
}
.holiday-pop-art { background: var(--holiday-cream); display: flex; align-items: center; }
.holiday-pop-art img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.holiday-pop-body { padding: 2.6rem 2.2rem 2rem; align-self: center; }
.holiday-pop-eyebrow { color: var(--berry); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.holiday-pop-title {
  margin: .5rem 0 1rem; padding-right: 1.5rem;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.08; letter-spacing: -.03em; color: var(--primary-deep);
}
.holiday-pop-title em { font-style: italic; color: var(--holly); }
.holiday-pop-list { list-style: none; margin: 0 0 1.5rem; border-top: 1px solid rgba(18, 63, 90, .16); }
.holiday-pop-list li { display: grid; grid-template-columns: 6.2rem 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgba(18, 63, 90, .16); font-size: .9375rem; line-height: 1.45; }
.holiday-pop-list strong { color: var(--holly); font-weight: 600; }
.holiday-pop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.holiday-pop-actions .btn { flex: 0 0 auto; }
.holiday-pop-close {
  position: absolute; top: 10px; right: 8px; z-index: 2; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--text, #0D2B3E); cursor: pointer; font-size: 28px; line-height: 1;
}
.holiday-pop-close:hover { color: var(--berry); }
.holiday-pop :focus-visible { outline: 3px solid var(--primary, #123F5A); outline-offset: 3px; }
@media (max-width: 680px) {
  .holiday-pop-backdrop { align-items: flex-end; padding: 12px; }
  .holiday-pop { grid-template-columns: 1fr; margin: auto auto 0; }
  .holiday-pop-art { display: none; }
  .holiday-pop-body { padding: 2.3rem 1.35rem 1.4rem; }
  .holiday-pop-list li { grid-template-columns: 5.4rem 1fr; }
  .holiday-pop-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-pop-backdrop, .holiday-pop { transition: none; transform: none; }
}
@media print { .holiday-pop-backdrop, .holiday-bar { display: none !important; } }
