/* Optional, finite motion. Menus and answers stay visible without animation. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cc-soft-open {
    from { opacity: .65; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .faq-list details[open] > .faq-answer {
    animation: cc-soft-open 260ms cubic-bezier(.2, .7, .2, 1) 1;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1000px) {
  .main-nav.is-open {
    animation: cc-soft-open 240ms cubic-bezier(.2, .7, .2, 1) 1;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1001px) {
  .service-menu[open] > .mega-menu {
    animation: cc-soft-open 240ms cubic-bezier(.2, .7, .2, 1) 1;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .button > .button-arrow,
  .text-link > .icon,
  .card-link > .icon,
  .package-action > .icon,
  .link-card-action > .icon {
    transition: transform 220ms ease-out;
  }

  .button:hover > .button-arrow,
  .text-link:hover > .icon,
  .card-link:hover > .icon,
  .package-action:hover > .icon,
  .link-card:hover .link-card-action > .icon {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav.is-open,
  .service-menu[open] > .mega-menu,
  .faq-list details[open] > .faq-answer {
    animation: none !important;
  }

  .button > .button-arrow,
  .text-link > .icon,
  .card-link > .icon,
  .package-action > .icon,
  .link-card-action > .icon {
    transition: none !important;
    transform: none !important;
  }
}

@media print {
  .main-nav.is-open,
  .service-menu[open] > .mega-menu,
  .faq-list details[open] > .faq-answer {
    animation: none !important;
  }

  .button > .button-arrow,
  .text-link > .icon,
  .card-link > .icon,
  .package-action > .icon,
  .link-card-action > .icon {
    transition: none !important;
    transform: none !important;
  }
}
