/* =========================================================
   Christmas 2026 + free Business Health Check offer
   Everything here applies only while <html class="festive">,
   which js/festive.js sets until 10 January 2027 (Lagos time).
   ========================================================= */

:root {
  --x-green: #0E4D2F;
  --x-green-2: #17683F;
  --x-gold: #E5B04B;
  --x-gold-2: #F7D88A;
}

/* ---------- Snow (canvas added by festive.js) ---------- */
.xmas-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---------- 1. Offer ribbon ---------- */
.xmas-ribbon {
  position: relative; color: #fff; font-size: 13.5px; line-height: 1.35;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .14) 0 1.2px, transparent 1.6px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 70%, rgba(247, 216, 138, .22) 0 1.2px, transparent 1.6px) 0 0 / 38px 38px,
    linear-gradient(90deg, var(--x-green), var(--x-green-2) 50%, var(--x-green));
}
.xmas-ribbon::after { /* candy-cane edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, #D40019 0 8px, #fff 8px 16px);
}
.xmas-ribbon-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding-block: 6px 10px; }
.xmas-ribbon-link { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 10px; text-align: center; }
.xmas-ribbon-link > svg { width: 20px; height: 20px; flex-shrink: 0; }
.xmas-ribbon .long { display: none; }
.xmas-price-mini { display: inline-flex; align-items: center; gap: 6px; }
.xmas-price-mini s { opacity: .7; }
.xmas-price-mini b { background: var(--x-gold-2); color: var(--navy); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.xmas-ribbon .go { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 216, 138, .7); }
.xmas-ribbon-link:hover .go { color: var(--x-gold-2); }
.xmas-snow-toggle {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background-color .2s, opacity .2s;
}
.xmas-snow-toggle svg { width: 16px; height: 16px; }
.xmas-snow-toggle:hover { background: rgba(255, 255, 255, .12); }
.xmas-snow-toggle[aria-pressed="false"] { opacity: .5; }
.xmas-snow-toggle[aria-pressed="false"] svg { transform: rotate(45deg); }
@media (min-width: 760px) {
  .xmas-ribbon .long { display: inline; }
  .xmas-ribbon .short { display: none; }
  .xmas-ribbon-link { flex-wrap: nowrap; }
}

/* ---------- 2. Fairy lights + Santa hat ---------- */
.xmas-lights {
  position: absolute; left: 0; right: 0; top: 100%; height: 22px; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Cpath d='M0 1Q20 9 40 1' fill='none' stroke='%23314A5F' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 10px;
}
.xmas-lights i {
  position: absolute; top: 5px; width: 8px; height: 12px; margin-left: -4px; margin-top: 2px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: var(--c); box-shadow: 0 0 8px 2px var(--c);
  animation: xmas-twinkle 2.4s ease-in-out infinite; animation-delay: var(--d);
}
.xmas-lights i::before { content: ""; position: absolute; left: 2px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: #314A5F; }
.xmas-lights i:nth-child(even) { transform: rotate(14deg); }
.xmas-lights i:nth-child(odd) { transform: rotate(-12deg); }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }

.festive .brand { position: relative; }
.xmas-hat { position: absolute; width: 19px; left: -5px; top: -6px; transform: rotate(-14deg); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(11, 36, 56, .2)); }
@media (min-width: 1100px) { .xmas-hat { width: 22px; left: -6px; top: -7px; } }

/* ---------- 3. Home hero ---------- */
.xmas-stockings {
  position: absolute; top: 0; right: max(var(--gutter), 4vw); z-index: 1;
  display: flex; align-items: flex-start; gap: 14px; pointer-events: none;
}
.xmas-stockings > span {
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; animation: xmas-swing 4.5s ease-in-out infinite; animation-delay: var(--s);
}
.xmas-stockings > span::before { content: ""; width: 1.5px; height: var(--l); background: rgba(255, 255, 255, .55); }
.xmas-stockings svg { width: 34px; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
@media (min-width: 900px) {
  .xmas-stockings { right: 34%; gap: 20px; }
  .xmas-stockings svg { width: 48px; }
  .xmas-stockings > span::before { height: calc(var(--l) * 1.6); }
}
@keyframes xmas-swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }

.xmas-tree { display: none; }
@media (min-width: 900px) {
  .hero .xmas-tree {
    display: block; position: absolute; z-index: 1; pointer-events: none;
    right: clamp(24px, 6vw, 110px); bottom: -4px; width: clamp(190px, 18vw, 250px);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  }
  .xmas-tree svg { width: 100%; height: auto; display: block; }
}
.xt-star { transform-origin: 100px 19px; animation: xmas-star 3s ease-in-out infinite; filter: drop-shadow(0 0 6px #F7D88A); }
.xt-lights circle { animation: xmas-twinkle 1.8s ease-in-out infinite; }
.xt-lights circle:nth-child(2n) { animation-delay: -.6s; }
.xt-lights circle:nth-child(3n) { animation-delay: -1.2s; }
@keyframes xmas-star { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- 5. Health Check page offer ---------- */
.xmas-offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  width: fit-content; max-width: 100%; margin: -6px 0 26px; padding: 14px 18px;
  border-radius: 16px; border: 1.5px dashed rgba(247, 216, 138, .6); background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .85); font-size: 14px; position: relative; z-index: 1;
}
.xmas-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--x-gold-2); color: var(--navy); font-size: 12.5px; font-weight: 600;
}
.xmas-badge svg { width: 18px; height: 18px; }
.xmas-offer-price { display: inline-flex; align-items: baseline; gap: 10px; }
.xmas-offer-price s { color: rgba(255, 255, 255, .55); font-size: 18px; }
.xmas-offer-price strong { color: var(--x-gold-2); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }

/* BHC page: the tree stands in the empty right side of the hero on big screens */
@media (min-width: 1100px) {
  .page-hero .xmas-tree { display: block; position: absolute; z-index: 1; pointer-events: none; right: clamp(40px, 7vw, 120px); bottom: 0; width: 230px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
  .page-hero .xmas-tree svg { width: 100%; height: auto; display: block; }
  .festive .page-hero--dark:has(.xmas-tree)::before { opacity: 0; }
}

/* ---------- 6. "Free" tag on Health Check buttons ---------- */
.xmas-tag {
  margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--x-gold-2); color: var(--navy);
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4;
}

/* ---------- 7. Footer ---------- */
.festive .site-footer { position: relative; isolation: isolate; }
.festive .site-footer > .container { position: relative; z-index: 1; }
.xmas-treeline { position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: 70px; pointer-events: none; z-index: 1; }
.xmas-treeline .hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 30px; }
.xmas-treeline .pine { position: absolute; bottom: 10px; aspect-ratio: 2 / 3; transform: translateX(-50%); }
.xmas-treeline .pine svg { width: 100%; height: 100%; display: block; }
.xmas-treeline .pine--far { opacity: .85; bottom: 14px; }
@media (max-width: 699px) {
  .xmas-treeline .pine:nth-child(3n + 2) { display: none; }
  .xmas-treeline .pine { height: 40px !important; }
}

.xmas-greeting {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(32px, 5vw, 48px); padding: 16px 20px;
  border-radius: 18px; border: 1px solid rgba(247, 216, 138, .35); background: rgba(255, 255, 255, .04);
}
.xmas-greeting svg { width: 44px; height: 44px; flex-shrink: 0; }
.xmas-greeting p { font-size: 15px; }
.xmas-greeting strong { color: #fff; font-weight: 500; }
.xmas-greeting span { color: rgba(255, 255, 255, .72); }

/* ---------- 8. The popup ---------- */
html.xmas-lock { overflow: hidden; }
.xmas-pop {
  padding: 0; border: 0; background: transparent; color: var(--ink-2);
  width: 100%; max-width: 100%; max-height: 100%; margin: auto auto 0; overflow: visible;
}
.xmas-pop::backdrop { background: rgba(6, 20, 32, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.xmas-pop[open] { animation: xp-up .45s var(--ease) both; }
.xmas-pop[open]::backdrop { animation: xp-fade .3s ease both; }
.xmas-pop.is-closing { animation: xp-down .22s ease both; }

.xp-card {
  position: relative; background: #fff; overflow: hidden;
  border-radius: 26px 26px 0 0; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, .25);
}

/* the "wrapped gift" panel */
.xp-art {
  position: relative; height: 128px; overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2px) 0 0 / 34px 34px,
    radial-gradient(circle at 60% 75%, rgba(255, 255, 255, .35) 0 1.2px, transparent 1.7px) 0 0 / 26px 26px,
    radial-gradient(120% 140% at 30% 0%, #E8283D 0%, #C8102E 45%, #8E0012 100%);
}
.xp-band { position: absolute; background: linear-gradient(90deg, #E5B04B, #F7D88A 45%, #E5B04B); box-shadow: 0 0 0 1px rgba(142, 0, 18, .15); }
.xp-band--v { top: 0; bottom: 0; left: 50%; width: 22px; margin-left: -11px; }
.xp-band--h { left: 0; right: 0; top: 56%; height: 18px; background: linear-gradient(180deg, #E5B04B, #F7D88A 45%, #E5B04B); }
.xp-bow { position: absolute; left: 50%; top: 56%; width: 112px; margin: -30px 0 0 -56px; filter: drop-shadow(0 4px 6px rgba(80, 0, 10, .35)); z-index: 2; }
.xmas-pop[open] .xp-bow { animation: xp-bow .7s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.xp-tag {
  position: absolute; left: 16px; top: 22px; z-index: 3; width: 108px; padding: 9px 10px 9px 18px;
  background: #FFF8E8; color: var(--navy); font-size: 12px; font-weight: 500; line-height: 1.25;
  border-radius: 4px 12px 12px 4px; transform: rotate(-6deg); box-shadow: 0 6px 14px rgba(60, 0, 10, .3);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.xp-tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #C8102E; }
.xp-tag small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.xp-tag small + * { margin-top: 0; }
.xp-tag small:not(:first-child) { margin-top: 4px; }
.xp-bauble { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; transform-origin: 50% -40px; animation: xmas-swing 3.6s ease-in-out infinite; }
.xp-bauble::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: var(--l); background: rgba(255, 255, 255, .7); }
.xp-bauble::after { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.xp-bauble--1 { --l: 22px; left: 64%; top: 22px; background: radial-gradient(circle at 35% 35%, #FBE7B0, #E5B04B); }
.xp-bauble--2 { --l: 44px; left: 74%; top: 44px; width: 14px; height: 14px; background: radial-gradient(circle at 35% 35%, #fff, #CFE4F5); animation-delay: -1.2s; }
.xp-bauble--3 { --l: 14px; left: 68%; top: 14px; width: 12px; height: 12px; background: radial-gradient(circle at 35% 35%, #5FD69A, #17683F); animation-delay: -2s; }

.xp-confetti {
  position: absolute; left: 50%; top: 56%; width: 7px; height: 11px; border-radius: 2px; z-index: 4; pointer-events: none;
  animation: xp-burst 1.6s cubic-bezier(.15, .7, .3, 1) both;
}

.xp-card:focus { outline: none; }
.xp-note { display: none; }
.xp-body { position: relative; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); }
.xp-close {
  position: absolute; top: -48px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.xp-close svg { width: 16px; height: 16px; }
.xp-close:hover { background: #fff; transform: rotate(90deg); transition: transform .25s var(--ease); }
.xp-kicker { font-size: 13px; font-weight: 500; color: var(--red); margin-bottom: 8px; }
.xmas-pop h2 { font-size: clamp(24px, 6.4vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 14px; }
.xp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.xp-price s { font-size: 20px; color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.xp-price strong { font-size: 40px; line-height: 1; font-weight: 600; color: var(--x-green-2); letter-spacing: -.03em; }
.xp-save { font-size: 12.5px; font-weight: 500; color: var(--x-green-2); background: var(--green-tint); padding: 4px 10px; border-radius: 999px; }
#xp-desc { font-size: 15px; margin-bottom: 14px; }
.xp-list { display: grid; gap: 8px; margin-bottom: 20px; font-size: 14.5px; color: var(--ink); }
.xp-list li { display: flex; gap: 10px; align-items: flex-start; }
.xp-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.xp-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.xp-cta { width: 100%; font-size: 16px; padding-block: 15px; }
.xp-later { padding: 10px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.xp-later:hover { color: var(--navy); }
.xp-count {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding-top: 14px;
  border-top: 1px dashed var(--line-strong); font-size: 11px; color: var(--muted);
}
.xp-count .lbl { margin-right: 4px; font-size: 12.5px; }
.xp-count .u { display: grid; justify-items: center; min-width: 42px; padding: 5px 4px; border-radius: 10px; background: var(--cream); line-height: 1.15; }
.xp-count b { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--navy); }

@media (min-width: 760px) {
  .xmas-pop { width: min(860px, calc(100% - 48px)); margin: auto; }
  .xmas-pop[open] { animation-name: xp-pop; }
  .xp-card { display: grid; grid-template-columns: 300px 1fr; border-radius: 28px; max-height: calc(100svh - 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
  .xp-art { height: auto; min-height: 100%; }
  .xp-band--h { top: 38%; }
  .xp-bow { top: 38%; width: 150px; margin: -40px 0 0 -75px; }
  .xp-confetti { top: 38%; }
  .xp-note { display: block; position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #fff; font-size: 13px; letter-spacing: .02em; opacity: .9; }
  .xp-note b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 10px rgba(60, 0, 10, .35); }
  .xp-tag { right: auto; left: 50%; top: calc(38% + 52px); margin-left: 4px; width: 126px; font-size: 13px; transform: rotate(-6deg); }
  .xp-bauble--1 { left: 12%; } .xp-bauble--2 { left: 76%; } .xp-bauble--3 { left: 88%; --l: 30px; top: 30px; }
  .xp-body { padding: 40px 40px 30px; }
  .xp-close { top: 14px; right: 14px; background: var(--cream); box-shadow: none; }
  .xp-actions { flex-direction: row; align-items: center; gap: 14px; }
  .xp-cta { width: auto; padding-inline: 28px; }
  .xp-count { justify-content: flex-start; }
}

@keyframes xp-fade { from { opacity: 0; } }
@keyframes xp-up { from { transform: translateY(100%); } }
@keyframes xp-down { to { transform: translateY(100%); opacity: 0; } }
@keyframes xp-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes xp-bow { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
@keyframes xp-burst {
  0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 90px)) rotate(var(--r)); opacity: 0; }
}
@media (min-width: 760px) { .xmas-pop.is-closing { animation-name: xp-out; } }
@keyframes xp-out { to { opacity: 0; transform: scale(.97); } }

/* ---------- Popup on phones: the whole offer fits on one screen, no scrolling ---------- */
@media (max-width: 759px) {
  .xp-card { max-height: 100svh; }
  .xp-art { height: 84px; }
  .xp-bow { width: 84px; margin: -22px 0 0 -42px; }
  .xp-tag { top: 16px; left: 14px; width: auto; padding: 7px 12px 7px 18px; font-size: 11.5px; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; }
  .xp-tag small:not(:first-child) { margin-top: 2px; }
  .xp-tag small { font-size: 8.5px; margin: 0; }
  .xp-bauble--1 { top: 18px; --l: 18px; } .xp-bauble--2 { top: 30px; --l: 30px; } .xp-bauble--3 { top: 12px; --l: 12px; }
  .xp-body { padding: 16px 18px calc(12px + env(safe-area-inset-bottom)); }
  .xp-close { top: -62px; right: 12px; width: 34px; height: 34px; }
  .xp-kicker { font-size: 12px; margin-bottom: 4px; }
  .xmas-pop h2 { font-size: clamp(20px, 6vw, 24px); margin-bottom: 8px; }
  .xp-price { margin-bottom: 8px; gap: 4px 10px; }
  .xp-price s { font-size: 17px; }
  .xp-price strong { font-size: 32px; }
  .xp-save { font-size: 11.5px; padding: 3px 9px; }
  #xp-desc { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
  .xp-list { gap: 5px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.4; }
  .xp-list svg { width: 18px; height: 18px; margin-top: 0; }
  .xp-cta { padding-block: 13px; font-size: 15.5px; }
  .xp-later { padding: 6px; font-size: 13.5px; }
  .xp-count { margin-top: 6px; padding-top: 10px; gap: 5px; }
  .xp-count .lbl { font-size: 12px; margin-right: 2px; }
  .xp-count .u { min-width: 38px; padding: 3px 4px; font-size: 10px; }
  .xp-count b { font-size: 15px; }
}
/* shorter phones: drop the paragraph (the heading, price and ticks already say it) */
@media (max-width: 759px) and (max-height: 619px) {
  #xp-desc { display: none; }
}
/* very short phones: a slimmer gift band, no tag */
@media (max-width: 759px) and (max-height: 579px) {
  .xp-art { height: 64px; }
  .xp-bow { width: 68px; margin: -18px 0 0 -34px; }
  .xp-tag { display: none; }
  .xp-close { top: -52px; }
}

/* ---------- Calm for people who prefer less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .xmas-lights i, .xmas-stockings > span, .xt-star, .xt-lights circle, .xp-bauble,
  .xmas-pop[open], .xmas-pop[open]::backdrop, .xmas-pop[open] .xp-bow, .xmas-pop.is-closing { animation: none !important; }
}
