/* ==========================================================================
   City Spin — seasonal themes (layered over styles.css)
   Every rule here only applies while a theme is on: <html data-season="...">.
   Dates and wording live in assets/js/seasonal.js.
   ========================================================================== */

[data-season="holiday"] {
  --season-accent: #A3212A;        /* deep festive red */
  --season-accent-light: #E0666D;
  --season-green: #2E8B4E;
  --season-line: linear-gradient(90deg, transparent, var(--gold) 18%, var(--season-accent) 50%, var(--gold) 82%, transparent);
}
[data-season="newyear"] {
  --season-accent: #1C2B4D;        /* midnight navy */
  --season-accent-light: #F3E5C3;  /* champagne */
  --season-line: linear-gradient(90deg, transparent, var(--season-accent-light) 18%, var(--gold) 50%, var(--season-accent-light) 82%, transparent);
}

/* ---------- Site-wide accents (both themes) ---------- */
[data-season] .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--season-line); pointer-events: none;
}
[data-season] .eyebrow::before { background: var(--season-accent); }
[data-season] .hero-card .eyebrow::before,
[data-season] .cta-band .eyebrow::before { background: var(--season-accent-light); }
[data-season] .marquee-track span::after { color: var(--season-accent-light); }
[data-season="holiday"] .cta-band::before { border-color: rgba(224, 102, 109, .55); }
[data-season="newyear"] .cta-band::before { border-color: rgba(243, 229, 195, .55); }
[data-season] .gallery-dots button[aria-current="true"]::after { background: linear-gradient(90deg, var(--gold), var(--season-accent)); }
[data-season] .promo-banner { border-color: rgba(230, 207, 143, 0.75); }
[data-season] .hero-card .eyebrow { margin-bottom: 8px; }

/* ---------- Home hero greeting ---------- */
.season-greeting {
  margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.35rem, 4.6vw, 1.75rem); line-height: 1.2; color: var(--gold-light);
}
.season-greeting > span::before { content: "✦ "; font-style: normal; font-size: .8em; color: var(--season-accent-light); }
.season-greeting small {
  display: block; margin-top: 4px; font: 700 0.75rem/1.4 var(--font-body); font-style: normal;
  letter-spacing: .2em; text-transform: uppercase; color: var(--white); opacity: .9;
}
[data-season] .hero > .container { position: relative; z-index: 1; }
.season-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.season-fx.is-paused *, .season-fx.is-paused *::after { animation-play-state: paused !important; }


/* ==========================================================================
   HOLIDAY — Caribbean Christmas
   ========================================================================== */

/* Warm red/gold tint over the hero photo (replaces the teal fade) */
[data-season="holiday"] .hero::after {
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(240, 190, 100, .28), transparent 70%),
    linear-gradient(180deg, rgba(58, 12, 16, .62) 0%, rgba(120, 30, 34, .16) 30%, rgba(110, 26, 30, .32) 58%, rgba(74, 12, 20, .92) 100%);
}

/* Draped string of lights under the nav (home hero) */
.xmas-lights {
  position: absolute; left: 0; right: 0; top: var(--header-h); height: 40px;
}
.xmas-wire { position: absolute; inset: 0; width: 100%; height: 40px; overflow: visible; }
.xmas-bulb {
  --c: #F2C661; --glow: rgba(242, 198, 97, .75);
  position: absolute; width: 9px; height: 13px; margin-left: -4.5px;
  transform: rotate(var(--tilt)); transform-origin: 50% 0;
}
.xmas-bulb::before { /* socket */
  content: ""; position: absolute; left: 2px; top: 0; width: 5px; height: 4px; border-radius: 1px; background: #24372A;
}
.xmas-bulb::after { /* glass, with its glow */
  content: ""; position: absolute; left: 0; top: 3px; width: 9px; height: 11px;
  border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 40% 35%, #FFF6DD 0 18%, var(--c) 55%);
  box-shadow: 0 0 6px 2px var(--glow), 0 0 16px 4px var(--glow);
  animation: xmas-twinkle var(--d) ease-in-out var(--delay) infinite alternate;
}
.xmas-bulb.is-red   { --c: #E5343F; --glow: rgba(229, 52, 63, .7); }
.xmas-bulb.is-green { --c: #33B566; --glow: rgba(51, 181, 102, .65); }
@keyframes xmas-twinkle {
  from { opacity: .45; }
  to   { opacity: 1; }
}

/* Soft gold bokeh floating over the photo */
.fx-bokeh {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 140, .55) 0%, rgba(255, 200, 110, .22) 45%, transparent 70%);
  opacity: .6; will-change: transform, opacity;
  animation: fx-bokeh var(--d) ease-in-out var(--delay) infinite alternate;
}
.fx-bokeh.is-red { background: radial-gradient(circle, rgba(240, 96, 104, .45) 0%, rgba(220, 70, 80, .18) 45%, transparent 70%); }
@keyframes fx-bokeh {
  from { opacity: .3;  transform: translate3d(0, 0, 0) scale(.9); }
  to   { opacity: .85; transform: translate3d(var(--drift), -28px, 0) scale(1.08); }
}

/* Wreath badge: garland replaces the spinning words; steering wheel stays in the middle */
[data-season="holiday"] .spin-badge { background: rgba(20, 22, 26, .38); border-color: rgba(230, 207, 143, .35); }
[data-season="holiday"] .spin-ring { display: none; }
.xmas-wreath { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
[data-season="holiday"] .spin-badge-core { position: relative; width: 38%; height: 38%; }

/* Hero card: thin red-and-gold ribbon border with a bow */
[data-season="holiday"] .hero-card {
  position: relative;
  border-color: rgba(230, 207, 143, .9);
  box-shadow: 0 0 0 3px rgba(163, 33, 42, .92), 0 0 0 4px rgba(230, 207, 143, .8), 0 18px 50px rgba(0, 0, 0, .3);
}
.xmas-card-bow {
  position: absolute; top: -24px; left: 18px; width: 58px; height: 42px; z-index: 2;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); pointer-events: none;
}
[data-season="holiday"] .season-greeting { font-size: clamp(1.75rem, 6.6vw, 2.5rem); margin-bottom: 4px; }
.season-note {
  margin: 16px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--gold-light);
  display: flex; align-items: center; gap: 8px;
}
.season-note::before { content: "✦"; color: var(--season-accent-light); }

/* Festive strip under the hero */
.season-strip {
  margin: 0; padding: 12px var(--gutter); text-align: center;
  font-size: 0.9rem; font-weight: 600; line-height: 1.45; color: #FFF3D6;
  background: linear-gradient(90deg, #6A141C, #8E1B23 50%, #6A141C);
  border-top: 1px solid rgba(230, 207, 143, .6); border-bottom: 1px solid rgba(230, 207, 143, .6);
}

/* String-lights line under the nav on every page */
[data-season="holiday"] .site-header::after {
  bottom: -14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='14'%3E%3Cpath d='M0 2 Q18 7 36 2 T72 2' fill='none' stroke='%231E3324' stroke-width='1'/%3E%3Cg%3E%3Cellipse cx='12' cy='8.5' rx='2.6' ry='3.4' fill='%23E5343F'/%3E%3Cellipse cx='36' cy='6' rx='2.6' ry='3.4' fill='%23F2C661'/%3E%3Cellipse cx='60' cy='8.5' rx='2.6' ry='3.4' fill='%2333B566'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 72px 14px repeat-x;
  filter: drop-shadow(0 0 3px rgba(255, 200, 110, .8));
  animation: xmas-strand 2.8s ease-in-out infinite alternate;
}
@keyframes xmas-strand { from { opacity: .7; } to { opacity: 1; } }
/* On the home page the big draped strand takes over until you scroll */
[data-season="holiday"] .page-home .site-header:not(.is-solid):not(.is-open)::after { display: none; }

/* Holly sprigs on section dividers */
[data-season="holiday"] .section-head::before,
[data-season="holiday"] .page-hero .container::before,
[data-season="holiday"] .cta-band .container::before {
  content: ""; display: block; width: 46px; height: 24px; margin: 0 auto 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 24'%3E%3Cpath d='M23 13 C18 6 10 3 2 5 L5 7.5 L3 10.5 L7 10.8 L6 14 L10 13 L10.5 16.5 L14 14.5 L15.5 17.5 L18 14.5 Z' fill='%232E7D46'/%3E%3Cpath d='M23 13 C28 6 36 3 44 5 L41 7.5 L43 10.5 L39 10.8 L40 14 L36 13 L35.5 16.5 L32 14.5 L30.5 17.5 L28 14.5 Z' fill='%23236B3A'/%3E%3Ccircle cx='20' cy='14.5' r='3.2' fill='%23C8232F'/%3E%3Ccircle cx='26' cy='14.5' r='3.2' fill='%23C8232F'/%3E%3Ccircle cx='23' cy='19' r='3.2' fill='%23B01E2A'/%3E%3Ccircle cx='19.2' cy='13.6' r='.9' fill='%23FFD9DC'/%3E%3Ccircle cx='25.2' cy='13.6' r='.9' fill='%23FFD9DC'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "NEW" tags become little gift tags */
[data-season="holiday"] .new-pill,
[data-season="holiday"] .promo-badge {
  background: linear-gradient(135deg, #C8323C, #8E1B23);
  color: #FFF3D6; border-radius: 2px 5px 5px 2px; padding-left: 17px;
  box-shadow: inset 0 0 0 1px rgba(230, 207, 143, .85);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 9px 50%, transparent 2.2px, #000 2.8px);
          mask: radial-gradient(circle at 9px 50%, transparent 2.2px, #000 2.8px);
}
[data-season="holiday"] .car-card-media .new-pill { padding-left: 19px; transform: rotate(-6deg); box-shadow: inset 0 0 0 1px rgba(230, 207, 143, .85); }

[data-season="holiday"] .season-greeting { text-wrap: balance; }

/* Phones: wreath hangs between the logo and the menu button, card starts below the lights */
@media (max-width: 699px) {
  [data-season="holiday"] .spin-badge {
    display: grid; width: 56px; height: 56px; top: 8px; right: auto; left: 50%; margin-left: -28px;
    background: rgba(20, 22, 26, .3);
  }
  [data-season="holiday"] .hero { padding-top: calc(var(--header-h) + 50px); }
  .xmas-card-bow { width: 48px; height: 35px; top: -20px; left: 14px; }
  .season-strip { font-size: 0.84rem; padding-top: 10px; padding-bottom: 10px; }
}
/* Tablet and desktop: a little more room between the lights and the card */
@media (min-width: 700px) {
  [data-season="holiday"] .hero { padding-top: calc(var(--header-h) + 64px); }
  .xmas-lights { top: calc(var(--header-h) - 6px); }
}


/* ==========================================================================
   NEW YEAR — gold/champagne and navy
   ========================================================================== */
[data-season="newyear"] .new-pill,
[data-season="newyear"] .promo-badge { background: linear-gradient(135deg, #2B3F6B, var(--season-accent)); color: var(--season-accent-light); }
[data-season="newyear"] .hero::after {
  background: linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.05) 30%, rgba(20,26,48,.3) 55%, rgba(18,28,54,.9) 100%);
}
[data-season="newyear"] .cta-band { background: radial-gradient(120% 140% at 50% 0%, #2B3F6B 0%, var(--season-accent) 45%, #111B33 100%); }
[data-season="newyear"] .marquee { background: var(--season-accent); }

/* Midnight sparkle in the sky over the photo */
[data-season="newyear"] .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 70% 10%, rgba(243, 229, 195, .22), transparent 70%);
}

/* Big gold year, with a slow shimmer */
.season-year {
  margin: 0 0 2px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.6rem, 17vw, 6.8rem); line-height: .9; letter-spacing: .03em;
  background: linear-gradient(100deg, #B08A35 0%, #E6CF8F 25%, #FFF8E6 35%, #E6CF8F 45%, #B08A35 65%, #E6CF8F 85%, #B08A35 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(230, 207, 143, .35));
  animation: ny-shimmer 7s linear infinite;
}
@keyframes ny-shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
[data-season="newyear"] .season-greeting { font-size: clamp(1.6rem, 6.2vw, 2.4rem); text-wrap: balance; }
[data-season="newyear"] .season-greeting small { margin-top: 6px; color: var(--season-accent-light); }

/* Hero card: thin gold border with a subtle moving shimmer */
[data-season="newyear"] .hero-card { position: relative; border-color: transparent; }
[data-season="newyear"] .hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(110deg, #9C7A2C 0%, #E6CF8F 20%, #FFF8E6 26%, #E6CF8F 32%, #9C7A2C 50%, #E6CF8F 70%, #FFF8E6 76%, #E6CF8F 82%, #9C7A2C 100%);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ny-border 8s linear infinite;
}
@keyframes ny-border { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* Badge: gold ring with twinkling sparkles (the slogan keeps spinning) */
[data-season="newyear"] .spin-badge { border-color: transparent; background: rgba(18, 28, 54, .45); }
.ny-ring { position: absolute; inset: -4%; width: 108%; height: 108%; overflow: visible; filter: drop-shadow(0 0 6px rgba(230, 207, 143, .45)); }
.ny-spark { transform-box: fill-box; transform-origin: center; animation: ny-spark 3.2s ease-in-out infinite; }
@keyframes ny-spark { 0%, 100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }

/* Gold strip under the hero */
[data-season="newyear"] .season-strip {
  color: var(--season-accent);
  background: linear-gradient(90deg, #B8913A, #E6CF8F 30%, #F3E5C3 50%, #E6CF8F 70%, #B8913A);
  border-top: 1px solid rgba(28, 43, 77, .25); border-bottom: 1px solid rgba(28, 43, 77, .25);
}

/* Gold sparkle accents on section headings */
[data-season="newyear"] .section-head::before,
[data-season="newyear"] .page-hero .container::before,
[data-season="newyear"] .cta-band .container::before {
  content: ""; display: block; width: 46px; height: 24px; margin: 0 auto 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23B08A35'/%3E%3Cstop offset='.5' stop-color='%23F3E5C3'/%3E%3Cstop offset='1' stop-color='%23C9A24A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M23 1 L25.2 9.8 L34 12 L25.2 14.2 L23 23 L20.8 14.2 L12 12 L20.8 9.8 Z' fill='url(%23g)'/%3E%3Cpath d='M8 7 L9.1 10.9 L13 12 L9.1 13.1 L8 17 L6.9 13.1 L3 12 L6.9 10.9 Z' fill='url(%23g)' opacity='.85'/%3E%3Cpath d='M38 5 L38.9 8.1 L42 9 L38.9 9.9 L38 13 L37.1 9.9 L34 9 L37.1 8.1 Z' fill='url(%23g)' opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(230, 207, 143, .5));
}

/* Fireworks: rays fly out from each burst point, fade, and repeat.
   Keyframes use fixed values only (Safari-safe); size, angle and timing are set on each element by seasonal.js.
   Not shown with "reduce motion" on. */
.fw-burst { position: absolute; left: 50%; top: 30%; width: 0; height: 0; z-index: 1; }
.fw-arm { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.fw-flash {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0 30%, rgba(243, 229, 195, 0) 70%);
  opacity: 0;
  -webkit-animation: fw-flash 4s ease-out infinite; animation: fw-flash 4s ease-out infinite;
}
.fw-arm i {
  position: absolute; left: -1.5px; top: -9px; width: 3px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, #FFFFFF, #FFF3D0 25%, currentColor 60%, rgba(201, 162, 74, 0));
  box-shadow: 0 0 8px 1px currentColor;
  opacity: 0;
  -webkit-animation: fw-ray 4s cubic-bezier(.15, .7, .3, 1) infinite; animation: fw-ray 4s cubic-bezier(.15, .7, .3, 1) infinite;
}
.fw-arm i::after { /* glowing spark at the tip of each ray */
  content: ""; position: absolute; left: -1px; top: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: #FFF8E6; box-shadow: 0 0 6px 2px currentColor;
}
@-webkit-keyframes fw-ray {
  0%   { -webkit-transform: translateY(0) scaleY(.3); opacity: 0; }
  6%   { opacity: 1; }
  45%  { -webkit-transform: translateY(-56px) scaleY(1); opacity: .95; }
  70%, 100% { -webkit-transform: translateY(-63px) scaleY(.5); opacity: 0; }
}
@keyframes fw-ray {
  0%   { transform: translateY(0) scaleY(.3); opacity: 0; }
  6%   { opacity: 1; }
  45%  { transform: translateY(-56px) scaleY(1); opacity: .95; }
  70%, 100% { transform: translateY(-63px) scaleY(.5); opacity: 0; }
}
@-webkit-keyframes fw-flash {
  0% { -webkit-transform: scale(.2); opacity: 0; } 5% { -webkit-transform: scale(2.4); opacity: 1; } 30%, 100% { -webkit-transform: scale(.5); opacity: 0; }
}
@keyframes fw-flash {
  0% { transform: scale(.2); opacity: 0; } 5% { transform: scale(2.4); opacity: 1; } 30%, 100% { transform: scale(.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fw-burst { display: none; } }

/* Phones: leave a strip of photo above the card for the fireworks */
@media (max-width: 699px) {
  [data-season="newyear"] .hero { padding-top: calc(var(--header-h) + 128px); }
}

/* Confetti and streamers. Base position is spread down the hero so the still version (reduce motion) looks scattered. */
.fx-confetti, .fx-streamer {
  position: absolute; top: var(--y0); left: var(--x);
  background: var(--c); opacity: var(--o); will-change: transform;
  animation: fx-confetti var(--d) linear var(--delay) infinite;
  transform: rotate(var(--spin));
}
.fx-confetti { width: calc(var(--s) * .75); height: calc(var(--s) * 1.4); border-radius: 1px; box-shadow: 0 0 4px rgba(243, 229, 195, .4); }
.fx-streamer {
  width: 3px; height: calc(var(--s) * 3.4); border-radius: 3px;
  background: linear-gradient(180deg, var(--c), #FFF8E6 50%, var(--c));
  animation-name: fx-streamer;
}
@keyframes fx-confetti {
  from { transform: translate3d(0, calc(var(--y0) * -1 - 24px), 0) rotate(0deg); }
  to   { transform: translate3d(var(--drift), calc(var(--fall, 900px) - var(--y0)), 0) rotate(var(--spin)); }
}
@keyframes fx-streamer {
  0%   { transform: translate3d(0, calc(var(--y0) * -1 - 40px), 0) rotate(0deg) skewX(0deg); }
  25%  { transform: translate3d(calc(var(--drift) * .25), calc((var(--fall, 900px) * .25) - var(--y0)), 0) rotate(calc(var(--spin) * .25)) skewX(18deg); }
  50%  { transform: translate3d(calc(var(--drift) * .5), calc((var(--fall, 900px) * .5) - var(--y0)), 0) rotate(calc(var(--spin) * .5)) skewX(-18deg); }
  75%  { transform: translate3d(calc(var(--drift) * .75), calc((var(--fall, 900px) * .75) - var(--y0)), 0) rotate(calc(var(--spin) * .75)) skewX(18deg); }
  100% { transform: translate3d(var(--drift), calc(var(--fall, 900px) - var(--y0)), 0) rotate(var(--spin)) skewX(0deg); }
}


/* Wide screens: the big year sits over the photo, to the right of the card */
@media (min-width: 1000px) {
  [data-season="newyear"] .season-year {
    position: absolute; left: calc(100% + 6vw); top: 8%; margin: 0;
    font-size: clamp(6.5rem, 11vw, 10.5rem);
    filter: drop-shadow(0 4px 18px rgba(10, 16, 34, .7)) drop-shadow(0 0 20px rgba(230, 207, 143, .35));
  }
}

/* Phones: smaller bursts; the gold ring hangs between the logo and the menu button */
@media (max-width: 699px) {
  [data-season="newyear"] .hero-card .eyebrow { margin-bottom: 4px; }
  [data-season="newyear"] .spin-badge {
    display: grid; width: 56px; height: 56px; top: 8px; right: auto; left: 50%; margin-left: -28px;
  }
  [data-season="newyear"] .spin-ring { display: none; }
  [data-season="newyear"] .spin-badge-core { position: relative; width: 52%; height: 52%; }
  [data-season="newyear"] .ny-spark { transform: scale(1.4); }
}

/* ---------- Preview label (only shown when ?theme=... is used) ---------- */
.season-preview-tag {
  position: fixed; z-index: 150; left: 10px; bottom: 10px;
  max-width: calc(100vw - 90px); padding: 7px 12px; border-radius: 999px;
  background: rgba(20, 22, 26, .85); color: var(--white); text-decoration: none;
  font-size: .75rem; line-height: 1.3; box-shadow: var(--shadow);
}
.season-preview-tag strong { color: var(--gold-light); }
@media (max-width: 959px) { body.has-sticky .season-preview-tag { bottom: 96px; } }
