/* Lumos Clean motion and effects layer. Loaded on every page after the page styles. */
:root {
  --lc-primary: #1E2878;
  --lc-secondary: #3B4FC9;
  --lc-accent: #FFB020;
  --lc-ink: #171D3F;
  --lc-tint: #E4EAFB;
  --lc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Scroll reveal (GSAP drives the transform; CSS gives the resting state) ---------- */
[data-fx="reveal"], [data-fx="reveal-stagger"] > * { will-change: transform, opacity; }

/* ---------- Photo frames ---------- */
.lc-photo { position: relative; overflow: hidden; border-radius: 12px; background: var(--lc-tint); }
.lc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc-photo[data-fx="parallax"] img { position: absolute; left: 0; right: 0; top: -10%; height: 120%; will-change: transform; }
@media (max-width: 1000px) { .lc-photo[data-fx="parallax"] img { position: absolute; inset: 0; height: 100%; transform: none !important; } }

/* ---------- Service cards: image zoom + shine sweep ---------- */
.lc-card { position: relative; overflow: hidden; }
.lc-card .lc-card-img { overflow: hidden; }
.lc-card .lc-card-img img { transition: transform 700ms var(--lc-ease-out); will-change: transform; }
.lc-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 900ms var(--lc-ease-out); opacity: 0.8;
}
@media (hover: hover) and (pointer: fine) {
  .lc-card:hover .lc-card-img img { transform: scale(1.06); }
  .lc-card:hover::after { transform: translateX(120%); }
}

/* ---------- Buttons: magnetic + press ---------- */
[data-fx="magnet"] { display: inline-block; will-change: transform; transition: transform 200ms var(--lc-ease-out); }
[data-fx="magnet"]:active { transform: scale(0.97) !important; }

/* ---------- Marquee ---------- */
.lc-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lc-marquee-track { display: flex; gap: 48px; width: max-content; animation: lcMarquee 38s linear infinite; }
.lc-marquee-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--lc-primary); }
.lc-marquee-item i { width: 18px; height: 18px; color: var(--lc-secondary); flex-shrink: 0; }
@keyframes lcMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (hover: hover) { .lc-marquee:hover .lc-marquee-track { animation-play-state: paused; } }

/* ---------- Before / after slider ---------- */
ba-slider { display: block; position: relative; overflow: hidden; border-radius: 12px; background: var(--lc-tint); user-select: none; -webkit-user-select: none; touch-action: pan-y; aspect-ratio: 4 / 3; }
ba-slider .ba-wrap { position: absolute; inset: 0; }
ba-slider .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
ba-slider .ba-after { clip-path: inset(0 0 0 var(--ba, 50%)); }
ba-slider .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba, 50%); width: 0; pointer-events: none; }
ba-slider .ba-line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(30,40,120,0.15); }
ba-slider .ba-knob { position: absolute; top: 50%; left: 0; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 999px; background: #FFFFFF; box-shadow: 0 8px 24px rgba(30,40,120,0.25); display: flex; align-items: center; justify-content: center; color: var(--lc-primary); }
ba-slider .ba-knob svg { width: 22px; height: 22px; }
ba-slider .ba-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; background: rgba(255,255,255,0.92); color: var(--lc-primary); pointer-events: none; backdrop-filter: blur(6px); }
ba-slider .ba-tag-before { left: 14px; }
ba-slider .ba-tag-after { right: 14px; background: var(--lc-primary); color: #FFFFFF; }
ba-slider .ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
ba-slider .ba-range:focus-visible + .ba-handle .ba-knob { outline: 3px solid var(--lc-accent); outline-offset: 2px; }
ba-slider .ba-note { position: absolute; bottom: 12px; left: 14px; font-size: 11px; color: #FFFFFF; background: rgba(23,29,63,0.55); padding: 3px 8px; border-radius: 6px; pointer-events: none; }

/* ---------- Hero wipe reveal (the hero slider auto-wipes on load) ---------- */
ba-slider[auto] { --ba: 100%; }

/* ---------- Counters ---------- */
[data-fx="count"] { font-variant-numeric: tabular-nums; }

/* ---------- Tilt cards ---------- */
[data-fx="tilt"] { transform-style: preserve-3d; transition: transform 300ms var(--lc-ease-out), box-shadow 300ms var(--lc-ease-out); will-change: transform; }

/* ---------- How it works progress path ---------- */
.lc-path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- Header: shrink + glass on scroll ---------- */
header.lc-scrolled { box-shadow: 0 8px 24px rgba(30,40,120,0.08); background: rgba(255,255,255,0.88) !important; backdrop-filter: blur(12px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lc-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .lc-card .lc-card-img img, [data-fx="magnet"], [data-fx="tilt"] { transition: none !important; transform: none !important; }
  .lc-card::after { display: none; }
  .lc-photo[data-fx="parallax"] img { height: 100%; transform: none; }
  ba-slider[auto] { --ba: 50%; }
}

/* ---------- Services bento ---------- */
.lc-svc-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1000px) { .lc-svc-grid { grid-template-columns: repeat(2, 1fr) !important; } .lc-svc-grid > * { grid-column: span 1 !important; } }
@media (max-width: 560px) { .lc-svc-grid { grid-template-columns: 1fr !important; } }

@media (max-width: 900px) { .lc-hero-badge { position: static !important; margin-top: 14px; max-width: none !important; } }

/* ---------- Responsive structure ---------- */
@media (max-width: 900px) {
  .lc-split { grid-template-columns: 1fr !important; }
  .lc-split-photo { min-height: 0 !important; aspect-ratio: 4 / 3; }
  .lc-hero-grid { padding-top: 32px !important; gap: 28px !important; }
}
@media (max-width: 560px) {
  /* Services: horizontal scroll-snap row instead of ten stacked cards */
  .lc-svc-grid { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important; margin: 0 -24px; padding: 4px 24px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lc-svc-grid::-webkit-scrollbar { display: none; }
  .lc-svc-grid > * { flex: 0 0 78vw; max-width: 320px; scroll-snap-align: start; }
  .lc-svc-grid .lc-card-img { aspect-ratio: 4 / 3 !important; }
}
/* Review carousel arrows: outside the track on wide screens, under it on narrow ones */
@media (max-width: 1140px) {
  .lc-rev-arrow { top: auto !important; bottom: -14px !important; transform: none !important; }
  .lc-rev-prev { left: calc(50% - 120px) !important; }
  .lc-rev-next { right: calc(50% - 120px) !important; }
}
.lc-dot { position: relative; }
.lc-dot::after { content: ""; position: absolute; inset: -18px -10px; }
