/* GordStore extra motion. Uses `translate`/`scale` (not `transform`) so it
   never fights the existing card tilt / GSAP animations. */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Reveal on scroll */
  .gs-reveal { opacity: 0; translate: 0 22px; scale: .985;
    transition: opacity .6s cubic-bezier(.2,.7,.2,1), translate .6s cubic-bezier(.2,.7,.2,1), scale .6s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--gs-i, 0) * 55ms); }
  .gs-reveal.gs-in { opacity: 1; translate: 0 0; scale: 1; }

  /* 2. Shine sweep on primary buttons */
  .button.primary { position: relative; overflow: hidden; isolation: isolate; }
  .button.primary::after { content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; z-index: -1;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 80%, transparent 100%);
    transform: skewX(-18deg); pointer-events: none; opacity: 0; }
  .button.primary:hover::after, .button.primary:focus-visible::after { animation: gs-shine .75s ease-out; }
  .hero-actions .button.primary::after { animation: gs-shine 1.1s ease-out 1.2s, gs-shine 1.1s ease-out 7s; }
  @keyframes gs-shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }

  /* Gentle lift on cards and buttons */
  .lot, .review-card, .service-row { transition: translate .25s ease, box-shadow .25s ease, border-color .17s; }
  @media (hover: hover) {
    .lot:hover, .review-card:hover { translate: 0 -4px; box-shadow: 0 14px 34px -18px rgba(250, 96, 75, .45); }
    .button:active { scale: .97; }
  }
  .button { transition: background .17s, border-color .17s, scale .12s ease; }

  /* 3. Soft pulse on key actions */
  .service-row:not([hidden]) .service-cta .button.primary, .tg-login-btn:not([hidden]) { animation: gs-pulse 2.6s ease-out 1.5s infinite; }
  .tg-login-btn:not([hidden]) { --gs-pulse: 42, 171, 238; }
  @keyframes gs-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--gs-pulse, 250, 96, 75), .45); }
    70% { box-shadow: 0 0 0 12px rgba(var(--gs-pulse, 250, 96, 75), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--gs-pulse, 250, 96, 75), 0); }
  }

  /* 4. Dialogs and the navigation drawer */
  .modal:not([hidden]) > .dialog { animation: gs-pop .32s cubic-bezier(.2,.8,.2,1.05) both; }
  @keyframes gs-pop { from { opacity: 0; translate: 0 14px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
  dialog.navigation-drawer[open] .gs-drawer-item { animation: gs-slide .38s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(80ms + var(--gs-i, 0) * 45ms); }
  @keyframes gs-slide { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }

  /* FAQ answers slide open */
  .faq-item[open] .faq-body { animation: gs-drop .3s ease-out both; }
  @keyframes gs-drop { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

  /* Telegram code pops in */
  .tg-login-panel:not([hidden]) .tg-login-code { animation: gs-pop .4s cubic-bezier(.2,.8,.2,1.2) both; }
}
