/* Shortline Lounge — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F6;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1f38;
}

/* Selection color */
::selection {
    background: #7B2D3B;
    color: #FDF8F6;
}

/* ============ NAVBAR SCROLL STATE ============ */
#navbar.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08), 0 4px 20px rgba(123, 45, 59, 0.06);
}

#navbar.scrolled .logo-text {
    color: #3d1319;
}

/* ============ MOBILE MENU ============ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ============ REVEAL ANIMATIONS ============ */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS is enabled and prefers-reduced-motion is off, add staggered delays */
@media (prefers-reduced-motion: no-preference) {
    .reveal.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ HERO ============ */
#hero {
    position: relative;
}

/* ============ BUTTON HOVER EFFECTS ============ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============ FORM STYLES ============ */
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='%237B2D3B' 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 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* ============ IMAGE HOVER ============ */
img {
    -webkit-user-drag: none;
}

/* ============ FOCUS STYLES ============ */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 768px) {
    .reveal {
        opacity: 1;
        transform: translateY(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;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============ UTILITY ============ */
.no-select {
    -webkit-user-select: none;
    user-select: none;
}
