/* Custom styles for Cocoa House Lounge */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Subtle grain texture overlay on hero */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-gradient > * {
    position: relative;
    z-index: 2;
}

/* Selection color */
::selection {
    background: rgba(212, 154, 30, 0.25);
    color: #1a2b50;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #d5dbee;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #abb9df;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #d49a1e;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* Subtle parallax on hero image */
@media (prefers-reduced-motion: no-preference) {
    .card-hover {
        will-change: transform;
    }
}
