/* Seasonal themes (see season.js for the dates).
   Every rule here sits under html[data-season="..."], so with no data-season the site is the
   normal Daylight design with nothing left over (the one exception is the .xmas-art rule,
   which keeps the Christmas images hidden there). Art is drawn in CSS/SVG, except the
   Christmas mascot, wordmark and tree images in assets/. */

/* ============================== CHRISTMAS ============================== */

html[data-season="christmas"] {
  --xmas-pine: #1F5C3A;       /* 7.9:1 on the light ground */
  --xmas-pine-deep: #0E3820;
  --xmas-red: #9E1B1B;
  --xmas-gold: #E9C46A;       /* only on black: 12:1 */
  --xmas-garland: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22'%3E%3Cpath d='M0 7 L4 7.1 L8 7.4 L12 7.8 L16 8.4 L20 9.0 L24 9.6 L28 10.2 L32 10.6 L36 10.9 L40 11.0 L44 10.9 L48 10.6 L52 10.2 L56 9.6 L60 9.0 L64 8.4 L68 7.8 L72 7.4 L76 7.1 L80 7.0 L84 7.1 L88 7.4 L92 7.8 L96 8.4 L100 9.0 L104 9.6 L108 10.2 L112 10.6 L116 10.9 L120 11.0 L124 10.9 L128 10.6 L132 10.2 L136 9.6 L140 9.0 L144 8.4 L148 7.8 L152 7.4 L156 7.1 L160 7.0' fill='none' stroke='%230E3820' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M51.8 9.2L50.0 7.1M66.9 7.2L63.9 6.4M16.5 8.7L17.7 11.1M26.4 9.5L30.1 8.2M20.7 8.4L16.7 11.0M67.0 7.6L62.1 5.8M10.8 6.8L12.8 9.4M16.4 8.6L11.1 7.7M23.5 9.7L27.7 10.3M54.0 9.9L58.5 9.5M76.7 7.5L77.7 5.1M105.2 9.3L102.0 8.5M132.3 11.3L134.6 13.2M109.2 10.4L104.3 10.8M39.8 10.3L40.4 6.9M134.4 8.8L137.4 11.0M107.4 9.9L108.3 12.8M40.5 9.9L35.7 10.7M112.5 10.3L108.8 10.0M18.1 10.0L18.8 14.1M23.9 10.9L19.6 9.2' stroke='%231F5C3A' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M23.1 8.3L21.3 12.1M74.5 8.5L72.2 10.7M153.2 6.2L154.8 8.8M1.9 8.0L3.5 10.7M63.7 8.1L59.7 8.5M111.4 9.8L109.1 11.9M85.2 8.0L83.5 10.5M152.8 6.9L153.5 9.7M145.6 9.0L145.6 5.6M74.1 7.9L77.0 9.3M127.9 11.3L131.8 13.7M139.6 9.9L135.8 7.4M121.6 12.2L117.4 13.5M110.8 10.4L106.7 9.7M111.9 11.7L115.3 10.7M143.5 7.4L142.5 3.8M63.7 8.4L68.8 8.1M42.5 9.6L43.2 6.7' stroke='%232E7D4F' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M90.3 8.0L86.0 8.1M111.8 9.8L108.0 8.3M122.3 11.2L125.0 9.1M95.1 8.5L90.2 9.6M56.9 9.8L53.3 9.9M11.3 6.9L8.0 9.4M76.9 6.5L79.9 9.6M76.6 7.6L73.1 7.4M56.9 8.1L60.5 8.6M31.0 10.8L28.2 14.2M69.4 8.8L71.0 6.3M27.6 10.0L26.9 6.6M113.0 12.2L109.7 14.0M44.6 11.8L46.8 15.6' stroke='%23174A2E' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M58.5 7.9L55.4 7.8M151.6 7.8L148.9 6.6M7.9 6.5L4.8 5.6M116.7 10.3L120.0 10.0M75.9 7.6L80.3 9.0M45.5 10.5L44.0 8.3M26.6 9.7L26.0 12.3M138.2 8.6L134.9 10.2M73.1 8.4L77.6 7.3M96.4 8.4L99.5 10.6M129.0 11.5L128.7 8.6M69.4 8.1L74.0 10.3M4.4 7.4L-0.1 8.2M34.0 10.8L34.4 7.7M133.5 8.7L133.1 4.5M51.0 11.0L55.3 11.4M131.2 11.3L128.8 7.5' stroke='%233A8F5C' stroke-width='1.3' stroke-linecap='round'/%3E%3Crect x='28.7' y='11.4' width='2.6' height='2.4' rx='0.6' fill='%235B5B4E'/%3E%3Cellipse cx='30' cy='16.4' rx='2.6' ry='3.6' fill='%23F2B705'/%3E%3Cellipse cx='29.2' cy='15.4' rx='0.8' ry='1.3' fill='%23FFFFFF' fill-opacity='0.6'/%3E%3Crect x='78.7' y='8.0' width='2.6' height='2.4' rx='0.6' fill='%235B5B4E'/%3E%3Cellipse cx='80' cy='13.0' rx='2.6' ry='3.6' fill='%23FFE6B0'/%3E%3Cellipse cx='79.2' cy='12.0' rx='0.8' ry='1.3' fill='%23FFFFFF' fill-opacity='0.6'/%3E%3Crect x='128.7' y='11.4' width='2.6' height='2.4' rx='0.6' fill='%235B5B4E'/%3E%3Cellipse cx='130' cy='16.4' rx='2.6' ry='3.6' fill='%23E0412F'/%3E%3Cellipse cx='129.2' cy='15.4' rx='0.8' ry='1.3' fill='%23FFFFFF' fill-opacity='0.6'/%3E%3C/svg%3E");
  --xmas-holly: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='30' viewBox='0 0 40 30'%3E%3Cpath d='M20 17C15 16 12 12 6 13c1-2 0-4-2-5 3 0 4-2 4-4 2 2 4 2 6 1-1 2 0 4 2 4 1 2 2 5 4 8z' fill='%231F5C3A' stroke='%230E3820' stroke-width='1' stroke-linejoin='round'/%3E%3Cpath d='M20 17c5-1 8-5 14-4-1-2 0-4 2-5-3 0-4-2-4-4-2 2-4 2-6 1 1 2 0 4-2 4-1 2-2 5-4 8z' fill='%232E7D4F' stroke='%230E3820' stroke-width='1' stroke-linejoin='round'/%3E%3Cpath d='M20 17C16 13 11 10 7 10M20 17c4-4 9-7 13-7' fill='none' stroke='%230E3820' stroke-width='0.8' stroke-opacity='0.7'/%3E%3Ccircle cx='17' cy='20' r='3.4' fill='%23B3261E'/%3E%3Ccircle cx='23.5' cy='20.5' r='3.4' fill='%23C42F24'/%3E%3Ccircle cx='20' cy='25.3' r='3.4' fill='%239E1B1B'/%3E%3Ccircle cx='16' cy='19' r='0.9' fill='%23fff' fill-opacity='0.7'/%3E%3Ccircle cx='22.5' cy='19.5' r='0.9' fill='%23fff' fill-opacity='0.7'/%3E%3Ccircle cx='19' cy='24.3' r='0.9' fill='%23fff' fill-opacity='0.7'/%3E%3C/svg%3E");
  --xmas-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 0H120V6C114 6 112 10 106 10C100 10 99 6 94 6C88 6 86 11 80 11C74 11 73 7 68 7C62 7 60 10 54 10C48 10 47 6 42 6C36 6 34 11 28 11C22 11 21 7 16 7C10 7 6 6 0 6Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}
/* black bands: warm gold accents instead of orange-red */
html[data-season="christmas"] :is(.site-head, .hero, .menu-board, .site-foot, .show-dialog) {
  --accent: var(--xmas-gold);
  --slot-corner: rgba(233, 196, 106, 0.6);
}

/* Christmas-only images in the HTML (class xmas-art): hidden on the normal site. They are
   loading="lazy", so while hidden the browser does not download them. */
.xmas-art { display: none; }

/* ---------- Logo: Christmas pizza mascot + Christmas wordmark replace the mascot and the name ---------- */
html[data-season="christmas"] .brand { gap: 4px; }
html[data-season="christmas"] .brand img:not(.xmas-art) { display: none; }
html[data-season="christmas"] .brand .xmas-art { display: block; flex: none; width: auto; mix-blend-mode: normal; }
html[data-season="christmas"] .brand .brand__mascot { height: 50px; margin-block: 4px; }
html[data-season="christmas"] .brand .brand__wordmark { height: auto; width: 104px; }
/* the words are in the artwork, so the text stays only for screen readers and search */
html[data-season="christmas"] .brand__name,
html[data-season="christmas"] .foot-brand .display {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
html[data-season="christmas"] .foot-brand__art { display: flex; align-items: center; gap: 8px; margin-left: -4px; }
html[data-season="christmas"] .foot-brand__art img { display: block; flex: none; height: auto; }
html[data-season="christmas"] .foot-brand__art img:nth-child(1) { width: 64px; }
html[data-season="christmas"] .foot-brand__art img:nth-child(2) { width: 184px; }
html[data-season="christmas"] .foot-brand__art .xmas-tree--foot { width: 48px; pointer-events: none; user-select: none; }
@media (min-width: 640px) {
  html[data-season="christmas"] .brand { gap: 6px; }
  html[data-season="christmas"] .brand .brand__mascot { height: 60px; }
  html[data-season="christmas"] .brand .brand__wordmark { width: 150px; }
}
@media (min-width: 900px) {
  html[data-season="christmas"] .foot-brand__art img:nth-child(1) { width: 86px; }
  html[data-season="christmas"] .foot-brand__art img:nth-child(2) { width: 230px; }
  html[data-season="christmas"] .foot-brand__art .xmas-tree--foot { width: 76px; margin-left: 4px; }
}
/* 960px and up the nav sits in the header line: brand a touch smaller until there is room */
@media (min-width: 960px) {
  html[data-season="christmas"] .site-head__inner { gap: 16px; }
  html[data-season="christmas"] .nav a { padding: 0 8px; }
  html[data-season="christmas"] .brand .brand__mascot { height: 56px; margin-block: 6px; }
  html[data-season="christmas"] .brand .brand__wordmark { width: 116px; }
}
@media (min-width: 1100px) {
  html[data-season="christmas"] .site-head__inner { gap: 24px; }
  html[data-season="christmas"] .nav a { padding: 0 12px; }
  html[data-season="christmas"] .brand { gap: 8px; }
  html[data-season="christmas"] .brand .brand__mascot { height: 76px; }
  html[data-season="christmas"] .brand .brand__wordmark { width: 168px; }
}

/* ---------- Tree mascot: small, decorative, only on black bands ---------- */
html[data-season="christmas"] :is(.hero, .menu-board) { position: relative; }
html[data-season="christmas"] .xmas-tree {
  display: block; position: absolute; z-index: 3; height: auto; pointer-events: none; user-select: none;
}
/* top-right corner of the hero, in the black outside the arch */
html[data-season="christmas"] .xmas-tree--hero { width: 42px; top: 16px; right: 6px; }
/* bottom-right corner of the menu board, below the notes */
html[data-season="christmas"] .xmas-tree--menu { width: 44px; bottom: 4px; right: max(var(--gutter), calc((100% - var(--max)) / 2)); }
/* footer: the third picture in the footer logo row (see .foot-brand__art) */
@media (min-width: 900px) {
  html[data-season="christmas"] .xmas-tree--hero { width: 84px; top: 18px; right: calc(max(var(--gutter), (100% - var(--max)) / 2) - 4px); }
  html[data-season="christmas"] .xmas-tree--menu { width: 84px; bottom: 12px; }
}
/* very small phones: no trees, the content needs the room */
@media (max-width: 359px) {
  html[data-season="christmas"] .xmas-tree,
  html[data-season="christmas"] .foot-brand__art .xmas-tree--foot { display: none; }
}

/* ---------- Garland with warm lights along the bottom edge of the header ---------- */
html[data-season="christmas"] .site-head::after,
html[data-season="christmas"] .site-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
  margin-top: -6px; pointer-events: none;
}
html[data-season="christmas"] .site-head::after {
  z-index: 1;
  background: var(--xmas-garland) left top / 160px 22px repeat-x;
}
/* soft glow around two of every three bulbs; it is what twinkles */
html[data-season="christmas"] .site-head::before {
  z-index: 2; opacity: 0.85;
  background:
    radial-gradient(circle at 30px 16px, rgba(255, 214, 120, 0.75) 0 2px, rgba(255, 196, 80, 0.28) 4px, rgba(255, 196, 80, 0) 9px) left top / 160px 22px repeat-x,
    radial-gradient(circle at 130px 16px, rgba(255, 120, 96, 0.7) 0 2px, rgba(255, 90, 70, 0.25) 4px, rgba(255, 90, 70, 0) 9px) left top / 160px 22px repeat-x;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-season="christmas"] .site-head::before { animation: xmas-twinkle 3.4s ease-in-out infinite; will-change: opacity; }
}
@keyframes xmas-twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Festive accents (colour only, nothing moves or resizes) ---------- */
html[data-season="christmas"] .btn--book { box-shadow: 0 10px 24px -12px rgba(17, 17, 17, 0.45), inset 0 0 0 1.5px rgba(233, 196, 106, 0.55); }
html[data-season="christmas"] .btn--book:hover { box-shadow: 0 16px 30px -14px rgba(17, 17, 17, 0.5), inset 0 0 0 1.5px rgba(233, 196, 106, 0.8); }
html[data-season="christmas"] .bar { border-top: 2px solid var(--xmas-pine); }
html[data-season="christmas"] .bar .bar-book { box-shadow: inset 0 0 0 1.5px rgba(233, 196, 106, 0.55); }
html[data-season="christmas"] .bar .bar-alt .icon,
html[data-season="christmas"] main :is(.trust, .occasions, .book-alt, .follow, .faq summary, .cred) .icon,
html[data-season="christmas"] main .steps li::before { color: var(--xmas-pine); }
html[data-season="christmas"] main .hero .trust .icon { color: var(--xmas-gold); }
html[data-season="christmas"] .marquee { border-block-color: rgba(31, 92, 58, 0.35); }
html[data-season="christmas"] .marquee__track span::after { background: var(--xmas-pine); }
html[data-season="christmas"] .marquee__track span:nth-child(3n+2)::after { background: var(--xmas-red); }
html[data-season="christmas"] .marquee__track span:nth-child(3n)::after { background: #C99A2E; }
html[data-season="christmas"] .site-foot { border-top: 2px solid var(--xmas-pine); }
html[data-season="christmas"] .menu-item { border-bottom-color: rgba(233, 196, 106, 0.35); }

/* ---------- Holly sprigs on a few headings ---------- */
html[data-season="christmas"] :is(#occ-title, #menu-title, #reviews-title, #why-title, #faq-title, #book-title) { position: relative; }
html[data-season="christmas"] :is(#occ-title, #menu-title, #reviews-title, #why-title, #faq-title, #book-title)::before {
  content: ""; position: absolute; left: -6px; top: -42px; width: 48px; height: 36px;
  background: var(--xmas-holly) center / contain no-repeat; pointer-events: none;
  transform: rotate(-12deg);
}

/* ---------- Snow resting on the top edge of cards ---------- */
html[data-season="christmas"] :is(.cred, .review, .next__empty, .form) { position: relative; }
html[data-season="christmas"] :is(.cred, .review, .next__empty, .form)::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: -3px; height: 12px;
  background: var(--xmas-cap) left top / 120px 12px repeat-x;
  border-radius: 6px 6px 0 0; pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(17, 17, 17, 0.14));
}

/* ---------- Snowfall: two light layers, moved by transform only (cheap on phones) ---------- */
html[data-season="christmas"] body::before,
html[data-season="christmas"] body::after {
  content: ""; position: fixed; left: 0; right: 0; z-index: 30; pointer-events: none;
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-season="christmas"] body::before,
  html[data-season="christmas"] body::after { display: block; will-change: transform; }
  html[data-season="christmas"] body::before {
    top: -480px; height: calc(100vh + 480px);
    background:
      radial-gradient(circle at 60px 40px, rgba(255, 255, 255, 0.9) 0 1.6px, rgba(200, 210, 220, 0.35) 2.2px, transparent 3px),
      radial-gradient(circle at 330px 150px, rgba(255, 255, 255, 0.85) 0 1.3px, rgba(200, 210, 220, 0.3) 2px, transparent 2.6px),
      radial-gradient(circle at 170px 280px, rgba(255, 255, 255, 0.9) 0 1.8px, rgba(200, 210, 220, 0.35) 2.4px, transparent 3.2px),
      radial-gradient(circle at 420px 380px, rgba(255, 255, 255, 0.8) 0 1.2px, rgba(200, 210, 220, 0.3) 1.8px, transparent 2.4px),
      radial-gradient(circle at 250px 440px, rgba(255, 255, 255, 0.8) 0 1.2px, transparent 2.2px);
    background-size: 480px 480px;
    animation: xmas-snow-a 36s linear infinite;
  }
  html[data-season="christmas"] body::after {
    top: -360px; height: calc(100vh + 360px); opacity: 0.6;
    background:
      radial-gradient(circle at 100px 80px, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
      radial-gradient(circle at 270px 210px, rgba(255, 255, 255, 0.9) 0 1.1px, transparent 1.9px),
      radial-gradient(circle at 30px 300px, rgba(255, 255, 255, 0.9) 0 0.9px, transparent 1.6px);
    background-size: 360px 360px;
    animation: xmas-snow-b 48s linear infinite;
  }
}
@keyframes xmas-snow-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 480px, 0); } }
@keyframes xmas-snow-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 360px, 0); } }

/* ============================== SPRING / SUMMER / AUTUMN ==============================
   Placeholders. Switched off in season.js and no styling yet.
   When one is built, put its rules here under html[data-season="spring"] (etc.). */
