/* illicocash Christmas homepage. Everything here sits on top of the mirrored homepage.
   Positions and sizes live here; all motion lives in xmas.js (GSAP + ScrollTrigger).

   The page tells one small story as you scroll:
   1. Top: gifts and the tree arrive with the festive mascot logo.
   2. Middle: one gift travels down a ribbon at the right edge of the screen (it doubles as a
      scroll-progress marker), two baubles hang in the left margin, and star garlands hang in
      the gaps between sections.
   3. End: the tree returns and the mascot pops up beside it, holding the gifts, to wave goodbye. */

/* illicocash brand colours, from the official colour sheets (ILLICOCASH - Color Palette):
   primary yellow Pantone 1235C #FDB525, its 70% tint #FFCE7B, charcoal 7540C #495056.
   The ribbon and the progress line use the brand yellow. The stars themselves are the star
   artwork supplied by the design team, used as supplied. */
:root { --ilc-yellow: #fdb525; --ilc-yellow-70: #ffce7b; --ilc-charcoal: #495056; }

/* --- Logo: festive mascot replaces the mascot in the logo, wordmark stays --- */
.xmas-logo { position: relative; overflow: visible; }
.xmas-logo__word {
  /* hide the old mascot, keep the wordmark and the exact original layout */
  clip-path: inset(0 0 0 24.2%);
}
.xmas-logo__mascot {
  position: absolute;
  width: auto !important;
  max-width: none !important;
  pointer-events: none;
  transform-origin: 50% 92%;
}

/* --- Fixed decorations ---
   .xmas-item (scroll-driven glide in and out) > .xmas-in (arrival on page load) > img (idle float) */
.xmas-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.xmas-item { position: absolute; width: clamp(56px, 6.2vw, 120px); visibility: hidden; will-change: transform; }
.xmas-in { display: block; will-change: transform; }
.xmas-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(40, 30, 10, 0.18));
}

/* Scene 1, top of the page */
.xmas-h-l1 { left: clamp(-46px, -2.4vw, -20px); top: 15%; }
.xmas-h-l2 { left: clamp(-22px, -1vw, -8px); bottom: -20px; width: clamp(64px, 7vw, 132px); }
.xmas-h-r1 { right: clamp(-46px, -2.4vw, -20px); top: 17%; }
.xmas-h-tree {
  width: clamp(150px, 19vw, 330px);
  right: clamp(-70px, -3.4vw, -30px);
  bottom: clamp(-95px, -5vw, -40px);
}
.xmas-h-r2 { right: clamp(118px, 15.5vw, 270px); bottom: -18px; width: clamp(56px, 6.6vw, 114px); }

/* Scene 2, the journey: a ribbon down the right edge with one gift travelling along it */
.xmas-rail {
  position: absolute;
  top: 20vh;
  height: 58vh;
  right: clamp(20px, 2.6vw, 46px);
  width: 3px;
  margin-right: -1.5px;
  border-radius: 3px;
  background: repeating-linear-gradient(to bottom, var(--ilc-yellow) 0 9px, transparent 9px 17px);
  transform-origin: 50% 0;
  visibility: hidden;
}
.xmas-traveller {
  position: absolute;
  top: 20vh;
  right: clamp(20px, 2.6vw, 46px);
  width: clamp(34px, 3.4vw, 54px);
  margin: clamp(-27px, -1.7vw, -17px) clamp(-27px, -1.7vw, -17px) 0 0;
  visibility: hidden;
  will-change: transform;
}
.xmas-traveller img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(40, 30, 10, 0.2)); }

/* Two baubles hang on strings in the left margin, opposite the ribbon. The box clips them so
   they appear to be lowered from under the header. */
.xmas-hangs {
  position: absolute;
  top: 100px;
  left: 0;
  width: clamp(64px, 6vw, 110px);
  height: 62vh;
  /* clip only along the top edge, so a swinging bauble is never cut at the side */
  clip-path: inset(0 -200px -200px -200px);
  visibility: hidden;
}
.xmas-hang { position: absolute; top: 0; width: clamp(30px, 2.9vw, 46px); will-change: transform; }
.xmas-hang span { display: block; will-change: transform; }
.xmas-hang i { display: block; width: 2px; margin: 0 auto; background: var(--ilc-yellow); border-radius: 0 0 2px 2px; }
.xmas-hang img { display: block; width: 100%; height: auto; margin-top: -3px; }
.xmas-hang--a { left: clamp(4px, 0.5vw, 10px); }
.xmas-hang--a i { height: 11vh; }
.xmas-hang--b { left: clamp(26px, 2.5vw, 44px); }
.xmas-hang--b i { height: 27vh; }

/* Star garlands: they live in the page itself (not fixed to the screen), in the empty gaps
   between sections, so they scroll with the content and never sit on top of it. */
.xmas-garland {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.xmas-garland i { position: absolute; display: block; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); will-change: transform; }
/* the stars are the illicocash star artwork supplied by the design team (images/star-1..4.png) */
.xmas-garland img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Scene 3, the end: the tree and the mascot (holding the gifts) share the bottom left corner,
   so the social links in the footer on the right are never covered */
.xmas-e-tree {
  --tilt: 16;
  width: clamp(110px, 12vw, 200px);
  left: clamp(-50px, -2.6vw, -22px);
  bottom: clamp(-58px, -3.2vw, -26px);
}
.xmas-e-m { left: clamp(56px, 6.4vw, 118px); bottom: -10px; width: clamp(92px, 9.4vw, 158px); }

/* Phones: no side margin to travel in, so the journey becomes a thin gold progress ribbon
   along the very top of the screen. Only a few small pieces show at the top and at the very end. */
.xmas-progress { display: none; }
@media (max-width: 767px) {
  .xmas-h-l1, .xmas-h-r1, .xmas-h-r2, .xmas-rail, .xmas-traveller, .xmas-hangs { display: none; }
  .xmas-h-tree { width: 118px; right: -36px; bottom: 11%; }
  .xmas-h-l2 { width: 58px; left: -12px; bottom: auto; top: 112px; }
  /* phones have a free corner on each side of the footer, so the tree goes back to the right */
  .xmas-e-tree { --tilt: -22; width: 92px; left: auto; right: -26px; bottom: -34px; }
  .xmas-e-m { width: 74px; left: -6px; bottom: -6px; }
  .xmas-progress {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--ilc-yellow);
    transform-origin: 0 50%;
    transform: scaleX(0);
  }
}


/*
Theme Name: Illicocash
Theme URI: https://illicocash.com/
Author: Crackwits
Author URI: https://crackwits.com/
Description: The illicocash site theme: a minimal, Elementor-first theme. Headers, footers and templates come from Crackwits > Theme Builder; the global base styles live in Crackwits > Custom Code.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: illicocash
Tags: custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* Only what any theme needs; the look of the site is carried by Elementor and by Crackwits > Custom Code ("Theme base"). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: #1d2327;
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 7px;
	width: auto;
	z-index: 100000;
}

