/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease-out;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

/* Primary — dark blue CTA (8.2:1 contrast with white text) */
.btn-primary {
    background: var(--cta-bg);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(5, 74, 145, 0.3);
}

.btn-primary:hover {
    background: var(--cta-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 103, 0, 0.3);
}

/* Focus-visible for all button variants */
.btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(5, 74, 145, 0.3);
}

/* Secondary — ghost/outline for dark backgrounds */
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* Secondary on light backgrounds */
.btn-secondary--light {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
}

.btn-secondary--light:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outline — for light backgrounds */
.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Gradient Fill Button (SafeRide pattern)
   ============================================ */

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--brand-orange);
    background: linear-gradient(90deg, var(--brand-orange) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: var(--text-on-dark);
    transition: background-position 0.4s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.btn-gradient:hover {
    background-position: 0% 0;
    color: var(--surface-white);
}

.btn-gradient:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: 3px;
}

/* ============================================
   Solid Button (for orange CTA sections)
   ============================================ */

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    background: var(--surface-white);
    color: var(--brand-orange);
    border: 2px solid var(--surface-white);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.btn-solid:hover {
    background: transparent;
    color: var(--surface-white);
    transform: translateY(-2px);
}

.btn-solid:focus-visible {
    outline: 3px solid var(--surface-white);
    outline-offset: 3px;
}

/* ============================================
   Text Link with Arrow
   ============================================ */

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-orange);
    transition: color 0.15s ease;
    text-decoration: none;
}

.link-arrow::after {
    content: '\2192';
    display: inline-block;
    transition: transform 0.2s ease;
}

.link-arrow:hover {
    color: var(--brand-orange);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

.link-arrow--light {
    color: var(--text-on-dark);
}

.link-arrow--light:hover {
    color: var(--brand-yellow);
}
