/* Dare Plumbing — subtle motion overlay for the ORIGINAL pre-SEO design.
   No colour, image, typography, copy or layout changes. */
@media (prefers-reduced-motion: no-preference) {
  /* The site's existing scroll-reveal transitions gain a tiny stagger. */
  html.motion-on .reveal { transition-delay: var(--dare-stagger, 0ms); }

  /* Gentle entrance for headline and actions on the homepage. */
  html.motion-on .hero-content > .eyebrow { animation: dare-enter .64s .04s both cubic-bezier(.2,.74,.25,1); }
  html.motion-on .hero-content > h1 { animation: dare-enter .75s .13s both cubic-bezier(.2,.74,.25,1); }
  html.motion-on .hero-content > .hero-intro { animation: dare-enter .72s .26s both cubic-bezier(.2,.74,.25,1); }
  html.motion-on .hero-actions { animation: dare-enter .7s .38s both cubic-bezier(.2,.74,.25,1); }
  html.motion-on .hero-bottom { animation: dare-enter .7s .51s both cubic-bezier(.2,.74,.25,1); }

  /* Quiet motion only on larger screens so the imagery remains easy to read. */
  @media (min-width: 801px) {
    html.motion-on .hero-photo { animation: dare-photo-breathe 16s ease-in-out infinite alternate; transform-origin:60% 50%; }
  }
  /* Items already displayed can settle in softly when scrolling into view. */
  html.motion-on .motion-appear { animation: dare-enter .68s cubic-bezier(.2,.74,.25,1) both; }

  @media (hover:hover) and (pointer:fine) {
    html.motion-on .btn { transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, border-color .25s ease; }
    html.motion-on .btn:hover { transform: translateY(-3px); }
    html.motion-on .btn:active { transform: translateY(0); }

    html.motion-on .service-card,
    html.motion-on .feature-card,
    html.motion-on .how-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
    html.motion-on .service-card:hover,
    html.motion-on .feature-card:hover,
    html.motion-on .how-card:hover { transform: translateY(-5px); }

    html.motion-on .project-card-image img { transition: transform .7s cubic-bezier(.2,.68,.2,1); }
    html.motion-on .project-card:hover .project-card-image img { transform:scale(1.045); }
  }
}

@keyframes dare-enter {
  from { opacity:.16; transform:translate3d(0,17px,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes dare-photo-breathe {
  from { transform:scale(1); }
  to { transform:scale(1.025); }
}

/* Always show content and stop movement when motion reduction is requested. */
@media (prefers-reduced-motion:reduce) {
  html.motion-on .hero-content > *,
  html.motion-on .hero-photo,
  html.motion-on .motion-appear { animation:none!important; }
  html.motion-on .reveal { transition-delay:0ms!important; }
}
