/* =========================================
   GLOBAL BUTTONS
   Use .btn + a variant on any element.

   Variants:
     .btn--primary   accent bg, white text
     .btn--secondary white bg, accent text  (for dark sections)
     .btn--ghost     transparent, white border (for dark sections)

   Sizes:
     .btn--sm        reduced padding + clip-path corner

   Modifiers:
     .btn--full      full-width, centred

   Arrow icon:
     <span class="btn__arrow" aria-hidden="true">+</span>
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    gap var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
}

.btn:hover {
  gap: 1.1rem;
  transform: translateY(-2px);
}

/* ---- Primary: accent bg, white text ---- */
.btn--primary {
  background: var(--clr-accent);
  color: #ffffff;
}
.btn--primary:hover { background: var(--clr-accent-dk); }

/* ---- Secondary: white bg, accent text (use on dark backgrounds) ---- */
.btn--secondary {
  background: #ffffff;
  color: var(--clr-accent);
}
.btn--secondary:hover { background: var(--clr-mid); }

/* ---- Ghost: transparent + white border (use on dark backgrounds) ---- */
.btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.5);
  clip-path: none;
}
.btn--ghost:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
}

/* ---- Small ---- */
.btn--sm {
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

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

/* ---- Arrow icon ---- */
.btn__arrow {
  display: inline-block;
  font-size: 1.3rem;
  transform: rotate(45deg);
  line-height: 1;
}
