/* =====================================================================
   ShipDeez — Button System
   ===================================================================== */

/* Aliases to bridge existing token names into this button system */
:root {
    --brand-orange: var(--shipdeez-orange);       /* #D86A12 */
    --brand-orange-dark: #a85010;
    --brand-orange-lightest: #fbf0e7;
    --brand-green: var(--shipdeez-green);          /* #135D50 */
    --brand-green-dark: #0f4c41;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 3px 3px 0 0 #000;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
    position: relative;
}

.btn:hover {
    box-shadow: 2px 2px 0 0 #000;
    transform: translate(2px, 2px);
}

.btn:active {
    box-shadow: none;
    transform: translate(4px, 4px);
}

/* Small modifier — navbar CTA */
.btn-xs {
    padding: 0.45rem 1.20rem;
    font-size: 0.7rem;
}
.btn-sm {
    padding: 0.65rem 1.50rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 0.85rem;
}

/* Variant: orange fill — primary CTAs */
.btn-primary {
    background-color: var(--brand-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--brand-orange-dark);
    color: #fff;
}

/* Variant: green fill — secondary CTAs */
.btn-secondary {
    background-color: var(--brand-green);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--brand-green-dark);
    color: #fff;
}

/* Variant: white / ghost */
.btn-ghost {
    background-color: #fff;
    color: #111;
}

.btn-ghost:hover {
    background-color: var(--brand-orange-lightest);
    color: var(--brand-orange-dark);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}
