/* Shared Coastal Glow feedback. The overlay owns its decoration, preserving
   existing button icons, patterns, colors, dimensions, and card transforms. */
.light-sweep-position { position: relative; }
.service-card.light-sweep-surface { isolation: isolate; }

.light-sweep-surface > .button-light-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 22% 0%, rgb(164 231 255 / 19%), transparent 65%);
  opacity: 0;
  transition: opacity 180ms ease;
}
/* Span the inspection video as well as the four photo tiles, above their film. */
.service-card.light-sweep-surface > .button-light-layer {
  position: absolute;
  z-index: 3;
}
.button-light-layer::after {
  content: "";
  position: absolute;
  inset: -90% auto -90% -50%;
  width: 45%;
  background: linear-gradient(105deg, transparent 16%, rgb(178 230 255 / 13%) 35%, rgb(255 255 255 / 38%) 50%, rgb(193 241 255 / 15%) 61%, transparent 78%);
  transform: translateX(-150%) skewX(-12deg);
}
.light-sweep-trigger:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible, .is-light-sweep-active) .button-light-layer {
  opacity: 1;
}
.light-sweep-trigger:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible, .is-light-sweep-active) .button-light-layer::after {
  animation: button-light-sweep 1.15s cubic-bezier(.2, .65, .35, 1) 1 both;
}
@keyframes button-light-sweep {
  from { transform: translateX(-150%) skewX(-12deg); }
  to { transform: translateX(500%) skewX(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .light-sweep-surface > .button-light-layer { transition: none; }
  .light-sweep-surface > .button-light-layer::before,
  .light-sweep-surface > .button-light-layer::after { display: none; animation: none !important; }
}
@media (forced-colors: active) {
  .light-sweep-surface > .button-light-layer { display: none; }
}
