/* ================================================================
   STARTORCH STUDIOS — buttons.css
   Rolling CTA button system: primary, ghost, outline variants.
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  will-change: transform;
  position: relative;
  letter-spacing: 0.02em;
  user-select: none;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--clr-blue-vivid);
  outline-offset: 3px;
}

/* Primary: Solid Electric Light Blue */
.btn-primary {
  background: var(--clr-blue-vivid);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.38);
  transition: all var(--ease);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--clr-blue-deep);
  box-shadow: 0 12px 42px rgba(14, 165, 233, 0.55);
}

/* Ghost */
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: all var(--ease);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #38BDF8;
  color: #38BDF8;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.3);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--clr-blue);
  border: 1.5px solid var(--clr-blue);
  transition: all var(--ease);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--clr-blue-vivid);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(14, 165, 233, 0.4);
}

/* Rolling Text Animation inside CTA */
.btn-roll {
  position: relative;
  display: block;
  height: 1.3em;
  overflow: hidden;
  line-height: 1.3em;
}
.btn-roll span {
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-roll span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
}
.btn:hover .btn-roll span {
  transform: translateY(-100%);
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
