/* ═══════════════════════════════════════════════
   BTN — Buttons
   Mobile-first (375px base)
═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fm-space-sm);
  height: 52px;
  padding: 0 var(--fm-space-xl);
  font-family: var(--fm-font-narrow);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background-color 0.25s var(--fm-ease-hover),
              color 0.25s var(--fm-ease-hover),
              opacity 0.25s var(--fm-ease-hover),
              transform 0.2s var(--fm-ease-hover);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary */
.btn--primary {
  background-color: var(--fm-black);
  color: var(--fm-white);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .btn--primary:focus-visible {
    opacity: 0.8;
  }
}

/* Secondary */
.btn--secondary {
  background-color: var(--fm-beige);
  color: var(--fm-black);
}

@media (hover: hover) and (pointer: fine) {
  .btn--secondary:hover,
  .btn--secondary:focus-visible {
    background-color: var(--fm-beige-dark);
  }
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--fm-black);
  border: 1px solid var(--fm-black);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover,
  .btn--ghost:focus-visible {
    background-color: var(--fm-black);
    color: var(--fm-white);
  }
}

/* Full width */
.btn--full {
  width: 100%;
}

/* Disabled */
.btn--disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Text link style */
.btn--link {
  height: auto;
  padding: 0;
  background: none;
  font-size: 0.6875rem;
  color: var(--fm-black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .btn--link:hover {
    opacity: 0.6;
  }
}
