/* ═══════════════════════════════════════════════════════
   CUSTOM STYLES — PT. Altara Sukses Sejahtera
   ═══════════════════════════════════════════════════════ */

/* ───── FONT FACE (Self-hosted, faster than Google Fonts) ───── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-var.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/sora-var.woff2') format('woff2-variations');
}

/* ───── GLOW EFFECTS ───── */
.glow-gold {
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-gold:hover {
    box-shadow: 0 0 25px rgba(201, 162, 39, 0.6);
}

.glow-blue {
    box-shadow: 0 0 15px rgba(30, 79, 163, 0.35);
    transition: box-shadow 0.3s ease;
}

.glow-blue:hover {
    box-shadow: 0 0 25px rgba(30, 79, 163, 0.65);
}

/* ───── BACKGROUND GRID ───── */
.bg-grid {
    background-image:
        linear-gradient(to right, rgba(15, 42, 92, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 42, 92, 0.15) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
}

/* ───── GOLD TEXT GRADIENT ───── */
.text-gold-gradient {
    background: linear-gradient(135deg, #F5D77F 0%, #C9A227 50%, #9A721D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ───── REVEAL ON SCROLL ───── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ───── PRODUCT CARD HOVER ───── */
.product-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* ───── BUTTONS ───── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C9A227;
    color: #000;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #F5D77F;
    transform: translateY(-2px);
}

/* ───── WHATSAPP FLOAT PULSE ───── */
#waFloat {
    animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ───── SCROLLBAR CUSTOM ───── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: #1E4FA3;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C9A227;
}

/* ───── ACCESSIBILITY ───── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ───── REDUCED MOTION ───── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ───── PRINT STYLES ───── */
@media print {

    nav,
    footer,
    #waFloat,
    #backToTop,
    #configModal {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ═══════════════════════════════════════════════════════
   17. WHATSAPP BRANCH PICKER
   ═══════════════════════════════════════════════════════ */

/* Scrollbar di dalam picker */
#waPicker .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#waPicker .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#waPicker .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.3);
    border-radius: 3px;
}

#waPicker .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.5);
}

/* Branch item hover effect */
.wa-branch-item {
    transition: all 0.2s ease;
}

.wa-branch-item:active {
    transform: scale(0.98);
}

/* Light mode overrides untuk picker */
html.light #waPicker {
    background-color: #ffffff !important;
    border-color: #C9A227 !important;
    box-shadow: 0 20px 50px rgba(15, 42, 92, 0.25) !important;
}

html.light #waPicker .border-slate-800\/60 {
    border-color: #E8E5DC !important;
}

html.light #waPicker .text-slate-400 {
    color: #64748b !important;
}

html.light #waPicker .text-slate-500 {
    color: #94a3b8 !important;
}

html.light #waPicker .text-white {
    color: #0F2A5C !important;
}

html.light .wa-branch-item:hover {
    background-color: rgba(239, 246, 255, 0.8) !important;
}

html.light .wa-branch-item:hover .text-white {
    color: #9A721D !important;
}

html.light #waPicker .bg-altara-navy\/60 {
    background-color: #EFF6FF !important;
}

html.light #waPicker .bg-altara-dark\/80 {
    background-color: #F8FAFC !important;
    border-top-color: #E8E5DC !important;
}

/* Animasi entrance picker */
@keyframes waPickerIn {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#waPicker:not(.scale-0) {
    animation: waPickerIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Badge notification dot */
#waFloat span.animate-pulse {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}