/* SoBe Pooch motion v2 — progressive enhancement. Nothing is hidden unless html.js-motion is set by motion.js. */

/* ----- Hero entrance (CSS only, starts with first paint) ----- */
@media (prefers-reduced-motion: no-preference) {
  .hero .tag,
  .hero h1,
  .hero p.lead,
  .hero .btns,
  .hero .hero-walkies,
  .hero .badges,
  .hero-trust {
    animation: sobe-fade-up .9s cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero .tag { animation-delay: 0ms; }
  .hero h1 { animation-delay: 160ms; }
  .hero p.lead { animation-delay: 300ms; }
  .hero .btns { animation-delay: 440ms; }
  .hero .hero-walkies,
  .hero .badges { animation-delay: 580ms; }
  .hero-trust {
    animation-name: sobe-fade;
    animation-duration: .85s;
    animation-delay: 500ms;
  }
  /* LCP image: short fade, no delay, no travel */
  .hero .hero-img {
    animation: sobe-fade .6s ease-out both;
  }
}

@keyframes sobe-fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes sobe-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----- Scroll reveal (only after JS opts in) ----- */
html.js-motion .motion-reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition:
    opacity 1s cubic-bezier(.16, 1, .3, 1),
    transform 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--motion-delay, 0ms);
}
html.js-motion .motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----- Hover: buttons ----- */
.btn,
.btn2,
.walkies-store-pills a,
.walkies-downloads a {
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

/* ----- Hover: cards and photos ----- */
.card,
.walkies-photo,
.walkies-captures figure,
.team-spotlight,
img.photo,
img.team-hero-img {
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease;
}
.svc img.service-scene,
.team-card img,
.walkies-photo img,
.walkies-captures img,
.team-avatars img {
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}

/* Clip image zoom to existing frames */
.team-card,
.walkies-captures figure {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover,
  .btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 27, 46, .2);
  }
  .btn.ghost:hover {
    background: rgba(255, 255, 255, .28);
    box-shadow: none;
  }

  .card:hover,
  html.js-motion .motion-reveal.is-visible.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(60, 30, 120, .14);
  }
  .card.feat:hover,
  html.js-motion .motion-reveal.is-visible.card.feat:hover {
    box-shadow: 0 22px 48px rgba(109, 63, 209, .26);
  }
  .team-spotlight:hover,
  html.js-motion .motion-reveal.is-visible.team-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(60, 30, 120, .12);
  }

  .card.svc:hover img.service-scene,
  .team-card:hover img,
  .walkies-photo:hover img,
  .walkies-captures figure:hover img {
    transform: scale(1.05);
  }

  img.photo:hover,
  img.team-hero-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(60, 30, 120, .16);
  }
  .hero .hero-img:hover {
    transform: scale(1.05);
  }
}

/* Never motion-animate chrome: nav, header bar, floating contact, sticky bar */
.nav,
.nav *,
.home-contact,
.home-contact *,
.sticky,
.sticky * {
  animation: none !important;
}

/* Reduced motion: show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  .hero .tag,
  .hero h1,
  .hero p.lead,
  .hero .btns,
  .hero .hero-walkies,
  .hero .badges,
  .hero .hero-img,
  .hero-trust,
  html.js-motion .motion-reveal,
  html.js-motion .motion-reveal.is-visible {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn,
  .btn2,
  .card,
  .walkies-photo,
  .walkies-captures figure,
  .team-spotlight,
  img.photo,
  img.team-hero-img,
  .svc img.service-scene,
  .team-card img,
  .walkies-photo img,
  .walkies-captures img,
  .team-avatars img,
  .walkies-store-pills a,
  .walkies-downloads a {
    transition: none !important;
  }
}
