/**
 * LawfyCo — shared premium button system (site-wide).
 */

.lawfyco-btn {
  align-items: center;
  border-radius: 0.9375rem;
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  isolation: isolate;
  justify-content: center;
  letter-spacing: 0.12em;
  line-height: 1;
  overflow: hidden;
  padding: 1.125rem 2.5rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.65s cubic-bezier(0.25, 0.9, 0.35, 1),
    box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s ease,
    border-color 0.45s ease,
    color 0.35s ease;
  z-index: 0;
}

.lawfyco-btn--gold {
  background: linear-gradient(155deg, #e8c88e 0%, #d4b06a 22%, #c9a04f 56%, #9a7028 100%);
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.3) inset,
    0 -1px 0 rgb(0 0 0 / 0.14) inset,
    0 0 0 1px rgb(201 160 79 / 0.12),
    0 22px 48px -18px rgb(201 160 79 / 0.65),
    0 8px 20px -12px rgb(0 0 0 / 0.55);
  color: #0a0c0a;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.18);
}

.lawfyco-btn--gold::before {
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 0.34) 50%, transparent 68%);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-140%) skewX(-12deg);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.lawfyco-btn--gold::after {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14) 0%, transparent 42%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .lawfyco-btn--gold:hover {
    border-color: rgb(255 255 255 / 0.28);
    box-shadow:
      0 1px 0 rgb(255 255 255 / 0.34) inset,
      0 -1px 0 rgb(0 0 0 / 0.1) inset,
      0 32px 64px -16px rgb(201 160 79 / 0.78),
      0 0 36px -10px rgb(201 160 79 / 0.42),
      0 12px 28px -14px rgb(0 0 0 / 0.6);
    color: #080a08;
    transform: translateY(-4px) scale(1.012);
  }
}

.lawfyco-btn--gold:hover::before {
  transform: translateX(140%) skewX(-12deg);
}

.lawfyco-btn--gold:active {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.2) inset,
    0 14px 32px -18px rgb(201 160 79 / 0.55);
  transform: translateY(-1px) scale(0.988);
}

.lawfyco-btn--outline {
  backdrop-filter: blur(8px);
  background: linear-gradient(155deg, rgb(255 255 255 / 0.045) 0%, rgb(255 255 255 / 0.015) 100%);
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 14px 36px -22px rgb(0 0 0 / 0.88);
  color: rgb(255 255 255 / 0.94);
  font-weight: 600;
}

.lawfyco-btn--outline::before {
  background: radial-gradient(circle at 50% 0%, rgb(201 160 79 / 0.16), transparent 68%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.45s ease;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .lawfyco-btn--outline:hover {
    background: linear-gradient(155deg, rgb(255 255 255 / 0.08) 0%, rgb(255 255 255 / 0.03) 100%);
    border-color: rgb(201 160 79 / 0.58);
    box-shadow:
      0 1px 0 rgb(255 255 255 / 0.1) inset,
      0 20px 44px -20px rgb(0 0 0 / 0.9),
      0 0 28px -14px rgb(201 160 79 / 0.22);
    color: #fff;
    transform: translateY(-3px) scale(1.008);
  }
}

.lawfyco-btn--outline:hover::before {
  opacity: 1;
}

.lawfyco-btn--outline:active {
  transform: translateY(0) scale(0.988);
}

.lawfyco-btn:focus-visible {
  outline: 2px solid rgb(201 160 79 / 0.65);
  outline-offset: 3px;
}

.lawfyco-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lawfyco-btn,
  .lawfyco-btn--gold::before {
    transition: none;
  }
}