/* micro.css — Button micro-interactions */

/* ===== Hover / Active / Focus ===== */
.ui-btn {
  transition:
    transform 0.25s cubic-bezier(.16,1,.3,1),
    box-shadow 0.25s cubic-bezier(.16,1,.3,1);
}

.ui-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(192,178,131,.25);
}

.ui-btn:active {
  transform: scale(.985);
  box-shadow: none;
}

.ui-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(192,178,131,.45);
}

/* ===== Ripple Effect ===== */
.ui-ripple {
  position: relative;
  overflow: hidden;
}

.ripple-ink {
  position: absolute;
  border-radius: 50%;
  background: rgba(192,178,131,.35);
  transform: scale(0);
  animation: rippleExpand 600ms ease-out forwards;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes rippleExpand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== #1 Gradient Border Hover Glow ===== */
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(192,178,131,0.4) 50%, transparent 70%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glow-card:hover::before {
  opacity: 1;
  animation: borderGlow 2s ease infinite;
}
@keyframes borderGlow {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}

/* ===== #3 Card Lift on Hover ===== */
.lift-card {
  transition: transform 0.35s cubic-bezier(.16,1,.3,1),
              box-shadow 0.35s cubic-bezier(.16,1,.3,1);
}
.lift-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10,22,40,0.10), 0 0 0 1px rgba(192,178,131,0.22);
}

/* ===== #4 Staggered Fade-In ===== */
.stagger > [style*="--i"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.16,1,.3,1),
              transform 0.6s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.stagger.visible > [style*="--i"] {
  opacity: 1;
  transform: translateY(0);
}

/* ===== #6 Pulse Ring on CTA ===== */
.pulse-cta {
  position: relative;
}
.pulse-cta::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(192,178,131,0.35);
  animation: pulseRing 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.5; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* ===== #8 Line-by-Line Text Reveal ===== */
.line-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(.16,1,.3,1);
}
.line-reveal.visible {
  clip-path: inset(0 0% 0 0);
}

/* ===== Motion Control ===== */
@media (prefers-reduced-motion: reduce) {
  .ui-btn { transition: none; }
  .ripple-ink { display: none; }
  .glow-card::before, .pulse-cta::after { display: none; }
  .lift-card { transition: none; }
  .stagger > [style*="--i"] { opacity: 1; transform: none; transition: none; }
  .line-reveal { clip-path: none; transition: none; }
}
