/* Seller Build site animations (preview 20260927anim).
   1 button shine · 2 services marquee · 3 service-card glow border · 4 process line
   5 floating WhatsApp · 6 scroll progress · 7 smooth FAQ. Transform/opacity only where possible. */

@property --sa-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- 1. Button shine ---------- */
.btn-whatsapp,
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-whatsapp::after,
.btn-primary::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 38%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-18deg);
}
.sa-shine-live::after { animation: sa-shine 5.2s ease-in-out infinite; animation-delay: var(--sa-d, 1.2s); }
@keyframes sa-shine {
  0% { transform: translateX(-180%) skewX(-18deg); }
  22%, 100% { transform: translateX(360%) skewX(-18deg); }
}

/* ---------- 2. Services marquee (homepage, below hero) ---------- */
.sa-marquee {
  position: relative; overflow: hidden; contain: paint;
  border-block: 1px solid rgba(188,239,18,.16);
  background: linear-gradient(90deg, rgba(188,239,18,.06), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(188,239,18,.06)), #000;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.sa-marquee-track { display: flex; width: max-content; animation: sa-marquee 30s linear infinite; will-change: transform; }
.sa-marquee:hover .sa-marquee-track,
.sa-marquee.sa-off .sa-marquee-track { animation-play-state: paused; }
.sa-set { display: flex; align-items: center; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.sa-set li {
  display: flex; align-items: center; white-space: nowrap; padding: .95rem 0;
  font-size: clamp(.95rem, 1.6vw, 1.12rem); font-weight: 600; letter-spacing: -.01em; color: rgba(255,255,255,.9);
}
.sa-set li::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; margin: 0 1.6rem;
  background: var(--sb-lime, #BCEF12); box-shadow: 0 0 10px rgba(188,239,18,.7);
}
@keyframes sa-marquee { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ---------- 3. Service cards: travelling lime border ---------- */
.service-card::before {
  display: block; content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--sa-angle),
    rgba(188,239,18,.10) 0%, rgba(188,239,18,.10) 58%,
    rgba(188,239,18,.95) 82%, #F4FFD2 90%, rgba(188,239,18,.10) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease; pointer-events: none; z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-6px); border-color: rgba(188,239,18,.18);
    box-shadow: 0 0 0 1px rgba(188,239,18,.08), 0 24px 50px -22px rgba(188,239,18,.35); }
  .service-card:hover::before { opacity: 1; animation: sa-spin 3.2s linear infinite; }
}
.service-card.sa-touch-glow::before { animation: sa-spin 2.6s linear 1, sa-glow 2.6s ease 1; }
@keyframes sa-spin { to { --sa-angle: 360deg; } }
@keyframes sa-glow { 0% { opacity: 0; } 18%, 72% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 4. Process steps: drawing line ---------- */
.process-rail { position: relative; padding-top: 30px; }
@media (max-width: 799.98px) { .process-rail { padding-top: 0; padding-left: 30px; } }
.sa-line { position: absolute; background: #27272A; border-radius: 2px; pointer-events: none; }
.sa-line.sa-h { top: 10px; height: 2px; }
.sa-line.sa-v { left: 9px; width: 2px; }
.sa-line-fill { position: absolute; inset: 0; border-radius: inherit;
  background: var(--sb-lime, #BCEF12); box-shadow: 0 0 10px rgba(188,239,18,.6);
  transform-origin: 0 0; transition: transform .12s linear; }
.sa-h .sa-line-fill { transform: scaleX(var(--sa-p, 0)); }
.sa-v .sa-line-fill { transform: scaleY(var(--sa-p, 0)); }
.sa-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #000; border: 2px solid #3f3f46; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.sa-h .sa-dot { top: 1px; left: var(--sa-at); }
.sa-v .sa-dot { left: 1px; top: var(--sa-at); }
.sa-dot.on { background: var(--sb-lime, #BCEF12); border-color: var(--sb-lime, #BCEF12); box-shadow: 0 0 0 4px rgba(188,239,18,.16), 0 0 12px rgba(188,239,18,.7); }
.sa-rail .process-step { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), border-color .3s ease; }
.sa-rail .process-step:not(.sa-in) { opacity: 0; transform: translateY(18px); }

/* ---------- 5. Floating WhatsApp button ---------- */
.sa-fab {
  position: fixed; z-index: 90;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.6), 0 2px 6px rgba(0,0,0,.4);
  transition: background .25s ease, transform .25s ease, opacity .25s ease, visibility .25s;
  animation: sa-fab-in .5s cubic-bezier(.2,.7,.2,1) .6s backwards;
  -webkit-tap-highlight-color: transparent;
}
.sa-fab svg { width: 28px; height: 28px; display: block; position: relative; z-index: 1; }
.sa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  opacity: 0; z-index: 0; animation: sa-pulse 2.8s ease-out 1.4s infinite;
}
.sa-fab:hover { background: #1EBE5A; transform: translateY(-2px) scale(1.04); }
.sa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body.nav-open .sa-fab { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
@keyframes sa-pulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes sa-fab-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .sa-fab { width: 52px; height: 52px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .sa-fab svg { width: 26px; height: 26px; }
  /* keep the last footer line clear of the floating button */
  .site-footer .footer-bottom { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 6. Scroll progress bar (inside sticky header) ---------- */
.sa-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; z-index: 2; }
.sa-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #BCEF12, #CDF53F); box-shadow: 0 0 8px rgba(188,239,18,.55); }
body.nav-open .sa-progress { opacity: 0; }

/* ---------- 7. Smooth FAQ ---------- */
.faq-item.sa-anim > :not(summary) { transition: opacity .3s ease, transform .3s ease; }
.faq-item.sa-closing > :not(summary),
.faq-item.sa-opening-start > :not(summary) { opacity: 0; transform: translateY(-6px); }
.faq-item summary::after { transition: background .25s ease, color .25s ease, transform .25s ease; }

/* ---------- Reduced motion: stop everything ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp::after, .btn-primary::after { display: none; animation: none !important; }
  .sa-marquee { -webkit-mask-image: none; mask-image: none; }
  .sa-marquee-track { animation: none !important; width: auto; justify-content: center; }
  .sa-set[aria-hidden="true"] { display: none; }
  .sa-set:first-child { flex-wrap: wrap; justify-content: center; padding-inline: 1rem; }
  .sa-set:first-child li:last-child::after { display: none; }
  .service-card::before, .service-card:hover::before, .service-card.sa-touch-glow::before { animation: none !important; opacity: 0 !important; }
  .service-card:hover { transform: none; }
  .sa-rail .process-step:not(.sa-in) { opacity: 1; transform: none; }
  .sa-line-fill { transition: none; }
  .sa-fab, .sa-fab::before { animation: none !important; }
  .sa-fab::before { display: none; }
  .sa-progress { display: none; }
  .faq-item.sa-anim > :not(summary) { transition: none; }
}
