/*
 * RTS modern pass: shared helper classes (Rack owns this file; Craft wrote the contents).
 * Location: wp-content/mu-plugins/rts-assets/rts-modern.css  (enqueue sitewide, after Elementor frontend CSS)
 * Every page must still read correctly WITHOUT this file. These are enhancements only.
 * Classes in use on /tolerate-tech/ (20899): rts-glass, rts-card-lift. rts-grid-bg is for later pages.
 */

/* Glass: blur whatever sits behind a see-through card. The card's dark fill and border are set natively in Elementor. */
.rts-glass {
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

/* Card lift: the -6px hover offset and hover border color are native Elementor settings.
   This only smooths the shadow and border change so the lift feels like one move. */
.rts-card-lift {
  transition: transform 250ms cubic-bezier(.2,.7,.2,1), border-color 250ms ease-out, box-shadow 250ms ease-out;
  will-change: transform;
}

/* Grid texture: faint 44px kit-white grid for dark sections (no image request).
   /tolerate-tech/ already uses the native tile image (media 1002207), so this class is optional there. */
.rts-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Touch screens: no hover lift (it would stick after a tap). */
@media (hover: none) {
  .rts-card-lift:hover { transform: none !important; }
}

/* Reduced motion: stop every Elementor scroll effect, entrance animation and hover lift; show all content at once. */
@media (prefers-reduced-motion: reduce) {
  .elementor-motion-effects-element,
  .elementor-motion-effects-layer,
  .elementor-motion-effects-container {
    transform: none !important;
    transition: none !important;
  }
  .elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
  }
  .animated,
  .elementor-element.animated {
    animation: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
  .rts-card-lift,
  .rts-card-lift:hover {
    transform: none !important;
    transition: none !important;
  }
  html:focus-within { scroll-behavior: auto !important; }
}
