/*
 * Komponen bersama halaman publik: tombol, grid, kartu, dan badge.
 */

/* Tombol */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-button);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    border: 1px solid var(--brand-primary);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-wa {
    background: var(--wa-color);
    color: #ffffff !important;
    border: 1px solid var(--wa-color);
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background: var(--wa-hover);
    border-color: var(--wa-hover);
}

.btn-white {
    background: #ffffff;
    color: var(--brand-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background: #f1f5f9;
    color: var(--brand-primary);
    border-color: #cbd5e1;
}

/* Grid responsif */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Kartu */
.card {
    padding: 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Badge pill */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-vehicle {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-stage-before {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-stage-process {
    background: #fef3c7;
    color: #b45309;
}

.badge-stage-after {
    background: #dcfce7;
    color: #15803d;
}