/* ========================================
   LibertyX Bitcoin ATM — Custom Styles
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4873A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B5651D;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(44, 36, 32, 0.08);
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-buy {
    animation-delay: 0s;
}

.card-sell {
    animation-delay: -2s;
}

.card-loc {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Reveal on scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* FAQ toggle */
.faq-toggle {
    cursor: pointer;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}

.faq-content.open {
    max-height: 300px;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(44, 36, 32, 0.06);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B5651D;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background: #B5651D;
    color: #FDF8F0;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #B5651D;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Map container border radius fix */
iframe {
    border-radius: 0 0 0 0;
}

/* Ensure map has rounded corners via parent */
#location .rounded-2xl {
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, .floating-card, #hero .absolute.bottom-8 {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
