/* ---------- Scroll-reveal ----------
   GSAP/ScrollTrigger (assets/animations.js) owns the actual animation via
   gsap.from(); this just prevents a flash of fully-visible content before
   JS attaches. If GSAP fails to load, animations.js falls back to setting
   opacity back to 1 directly. */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; }
}

/* ---------- Hover micro-interactions ----------
   Lift/shadow on .hover-lift and .zone-card is applied by GSAP (smoother
   easing/tween than a CSS transition); CSS below only covers the simpler
   hover effects that don't need a JS tween. */

.hover-scale { transition: transform .25s ease; }
.hover-scale:hover { transform: scale(1.035); }

.btn-anim { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn-anim:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(37,99,235,.45); }
.btn-anim:active { transform: translateY(0); }

.gallery-anim img { transition: transform .5s ease; }
.gallery-anim:hover img { transform: scale(1.08); }

.zone-card { border-color: transparent; }

/* ---------- Service card media: hover-swap "video-style" preview ----------
   sweepingcorp.com swaps in a more active real video clip on hover; we have
   no video footage, so the same interaction is built from our real before/
   after photos instead: default shows the "before" shot, hover crossfades
   to "after" while GSAP (animations.js) slowly pans/zooms both layers to
   read as motion rather than a flat photo swap. */
.service-media { background: #0f172a; }
.service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .6s ease;
}
.service-media .media-after { opacity: 0; }
.service-media::after {
  content: "Avant / Apres";
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15,23,42,.55);
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  transition: opacity .3s ease;
}
.hover-lift:hover .media-after { opacity: 1; }
.hover-lift:hover .service-media::after { opacity: 0; }

.hero-pattern { position: relative; overflow: hidden; }

/* Static decorative shapes used on secondary-page hero banners (About,
   Services, Zones, FAQ, etc). No motion — kept as fixed background shapes. */
.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}
.hero-blob.b1 { width: 340px; height: 340px; background: #2563eb; top: -80px; left: -60px; }
.hero-blob.b2 { width: 260px; height: 260px; background: #3b82f6; bottom: -60px; right: 10%; }
.hero-blob.b3 { width: 200px; height: 200px; background: #60a5fa; top: 30%; right: -60px; }
.hero-blob.b4 { width: 300px; height: 300px; background: #2563eb; bottom: -80px; left: -70px; }

/* ---------- Sticky header shrink ---------- */
.site-header { transition: box-shadow .3s ease, padding .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 20px -12px rgba(15,23,42,.25); }

/* ---------- WhatsApp pulse ---------- */
.whatsapp-pulse { animation: waPulse 2.4s ease-in-out infinite; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%      { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

/* ---------- Hero bell badge ----------
   Short double-ring burst, then a pause, repeating - mimics a notification
   bell rather than a constant wobble. */
.hero-bell-badge__icon {
  display: inline-block;
  transform-origin: 50% 0%;
  animation: heroBellRing 3.2s ease-in-out infinite;
}
@keyframes heroBellRing {
  0%, 6%, 12%, 18%, 24%, 100% { transform: rotate(0deg); }
  3%,  15% { transform: rotate(14deg); }
  9%,  21% { transform: rotate(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bell-badge__icon { animation: none; }
}

/* ---------- Devis CTA ----------
   Soft glow pulse plus a light sweep every few seconds so the quote button
   catches the eye without constant motion; lifts on hover. */
.cta-devis {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6);
  animation: ctaDevisGlow 2.8s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease, filter .3s ease;
}
.cta-devis::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: ctaDevisShine 4.5s ease-in-out infinite;
}
.cta-devis:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .75); }
@keyframes ctaDevisGlow {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6), 0 0 0 0 rgba(59, 130, 246, .45); }
  50%      { box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6), 0 0 0 8px rgba(59, 130, 246, 0); }
}
@keyframes ctaDevisShine {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-devis, .cta-devis::after { animation: none; }
  .cta-devis:hover { transform: none; }
}

/* ---------- Interactive department map ---------- */
.interactive-zone-map__link { cursor: pointer; }
.interactive-zone-map__shape {
  fill: rgba(37, 99, 235, .08);
  stroke: var(--color-primary);
  stroke-width: 1;
  transition: fill .25s ease, stroke-width .25s ease;
}
.interactive-zone-map__link:hover .interactive-zone-map__shape,
.interactive-zone-map__link:focus-visible .interactive-zone-map__shape {
  fill: var(--color-primary);
  stroke-width: 1.6;
}
.interactive-zone-map__link:focus-visible { outline: none; }
.interactive-zone-map__link:focus-visible .interactive-zone-map__shape { stroke: var(--color-dark); }
.interactive-zone-map__badge circle {
  fill: var(--color-primary);
  stroke: var(--color-surface);
  stroke-width: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  .interactive-zone-map__shape { transition: fill .1s linear; }
}

