/* Custom styles for Candy on the Causeway */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d23;
}
::-webkit-scrollbar-thumb {
    background: #3a3f47;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E85D4A;
}

/* Selection color */
::selection {
    background: rgba(232, 93, 74, 0.3);
    color: #f6f6f7;
}

/* Menu tabs */
.menu-tab {
    color: #7c8189;
}
.menu-tab.active {
    background: #E85D4A;
    color: white;
    box-shadow: 0 4px 12px rgba(232, 93, 74, 0.3);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 17, 21, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(58, 63, 71, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8189' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .floating-card {
        display: none;
    }

    section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #E85D4A;
    outline-offset: 2px;
}

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

button:active, a:active {
    transform: scale(0.98);
}
