/* LHXGO / Core Shimmer
 * An independent CSS implementation inspired by Inspira UI's Shimmer Button.
 * The revolving conic light is restricted to a thin rim; all label text stays still.
 */
.shimmer-button {
  --shimmer-base: #B63F38;
  --shimmer-ink: #FFFFFF;
  --shimmer-rim: #DB514A;
  --shimmer-light: #FFF8EF;
  --shimmer-tail: #F3A094;
  --shimmer-duration: 3s;
  --shimmer-gap: 1.25px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: var(--shimmer-rim);
  color: var(--shimmer-ink);
  text-decoration: none;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(143,48,42,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* The opaque inset creates the same orbiting-outline reading as the reference. */
.shimmer-button::before {
  content: '';
  position: absolute;
  inset: var(--shimmer-gap);
  z-index: 1;
  border-radius: inherit;
  background: var(--shimmer-base);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 3px rgba(48,12,7,.08);
  pointer-events: none;
}
.shimmer-track {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; border-radius: inherit; opacity: .95;
}
.shimmer-beam {
  display: block; position: absolute; left: 50%; top: 50%;
  width: max(240px,180%); aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0deg 270deg, var(--shimmer-tail) 306deg, var(--shimmer-light) 339deg 350deg, transparent 360deg);
  transform: translate(-50%,-50%) rotate(0turn);
  animation: lhx-shimmer-orbit var(--shimmer-duration) linear infinite;
  animation-play-state: paused;
}
.shimmer-content {
  position: relative; z-index: 3;
  display: inline-flex; justify-content: center; align-items: center;
  gap: inherit; color: inherit; white-space: nowrap;
}
.shimmer-content .icon { flex-shrink: 0; }
/* A quiet satin sweep only when the user engages the control, not a strobe. */
.shimmer-button::after {
  content: ''; pointer-events: none; z-index: 2;
  position: absolute; top: -60%; bottom: -60%; left: -60%; width: 40%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent);
  transform: translateX(0) skewX(-22deg);
}
@keyframes lhx-shimmer-orbit {
  to { transform: translate(-50%,-50%) rotate(1turn); }
}
@keyframes lhx-satin-sweep {
  from { transform: translateX(0) skewX(-22deg); }
  to { transform: translateX(530%) skewX(-22deg); }
}
html[data-motion="on"][data-page-visible="true"] .shimmer-button[data-shimmer-visible="true"] .shimmer-beam {
  animation-play-state: running;
}
.shimmer-button:hover {
  background: var(--shimmer-rim); color: var(--shimmer-ink);
  transform: translateY(-2px); box-shadow: 0 7px 18px rgba(143,48,42,.14);
}
.shimmer-button:active { transform: translateY(0) scale(.98); }
.shimmer-button:focus-visible { outline: 3px solid #B63F38; outline-offset: 4px; }
html[data-motion="on"][data-page-visible="true"] .shimmer-button:is(:hover,:focus-visible)::after {
  animation: lhx-satin-sweep .9s ease-out both;
}
.shimmer-secondary {
  --shimmer-base: #FCF9F8;
  --shimmer-ink: #A53A33;
  --shimmer-rim: #E3C5BD;
  --shimmer-light: #DB514A;
  --shimmer-tail: #F3A094;
  --shimmer-duration: 3.8s;
  box-shadow: none;
}
.shimmer-secondary::before { box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.shimmer-secondary::after { background: linear-gradient(90deg,transparent,rgba(219,81,74,.07),transparent); }
.shimmer-paper {
  --shimmer-base: #FFF9F3;
  --shimmer-ink: #98342D;
  --shimmer-rim: #E8B9A9;
  --shimmer-light: #FFFFFF;
  --shimmer-tail: #F3A094;
  --shimmer-gap: 1.5px;
  --shimmer-duration: 3.4s;
}
.shimmer-paper::before { box-shadow: inset 0 1px 0 #fff; }
.shimmer-paper::after { background: linear-gradient(90deg,transparent,rgba(219,81,74,.08),transparent); }
.shimmer-small { min-height: 40px; padding: 0 16px; gap: 10px; font-size: 12px; }
.copy-button.shimmer-small { min-height: 34px; padding: 0 11px; margin-top: 9px; gap: 6px; font-size: 10px; }
.copy-button.shimmer-small:hover { text-decoration: none; }
.shimmer-icon { width: 32px; height: 32px; padding: 0; gap: 0; }
.shimmer-icon .icon { width: 16px; height: 16px; }
.hero-actions { gap: 16px; flex-wrap: wrap; }
.hero-actions .text-link.shimmer-button { min-height: 52px; padding: 0 23px; gap: 14px; font-size: 14px; }
/* Secondary utility actions are at rest until hover or keyboard focus. */
.shimmer-quiet .shimmer-track { opacity: .25; }
html[data-motion="on"][data-page-visible="true"] .shimmer-quiet[data-shimmer-visible="true"] .shimmer-beam { animation-play-state: paused; }
html[data-motion="on"][data-page-visible="true"] .shimmer-quiet[data-shimmer-visible="true"]:is(:hover,:focus-visible) .shimmer-beam { animation-play-state: running; }
.shimmer-quiet:is(:hover,:focus-visible) .shimmer-track { opacity: 1; }
html[data-motion="off"] .shimmer-button, html[data-motion="off"] .shimmer-button:hover { transform: none; transition: none; }
html[data-motion="off"] .shimmer-button::after { animation: none; }
html[data-page-visible="false"] .shimmer-button::after { animation-play-state: paused !important; }
@media (max-width:900px) {
 .header-contact.shimmer-small { font-size: 12px; padding-inline: 14px; }
 .hero-actions .text-link.shimmer-button { min-height: 47px; font-size: 12px; padding-inline: 16px; gap: 12px; }
}
@media (max-width:700px) {
 .header-contact.shimmer-button { display: none; }
 .hero-actions { gap: 10px; }
 .hero-actions .shimmer-button, .hero-actions .text-link.shimmer-button { min-height: 48px; padding-inline: 16px; gap: 12px; font-size: 12px; }
 .hero-actions .shimmer-button .icon { width: 18px; height: 18px; }
 .shimmer-button { --shimmer-duration: 4.5s; }
}
@media (hover:none), (pointer:coarse) {
 .shimmer-button:hover { transform: none; }
 .shimmer-button:active { transform: scale(.98); }
 .shimmer-button::after { display: none; }
}
@media (prefers-reduced-motion:reduce) {
 .shimmer-beam, .shimmer-button::after { animation: none !important; }
 .shimmer-button, .shimmer-button:hover, .shimmer-button:active { transform: none !important; transition: none !important; }
}
@media (forced-colors:active) {
 .shimmer-button { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; box-shadow: none; }
 .shimmer-track,.shimmer-button::before,.shimmer-button::after { display: none; }
}
@media print {
 .shimmer-track, .shimmer-button::after { display: none; }
 .shimmer-button { box-shadow: none; }
}
