/* ========================================
   Jamar Café & Bar — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #D4A84B;
    color: #1d0819;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(74, 25, 66, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A84B;
    transition: width 0.3s ease;
}

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

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

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
    position: relative;
}

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

/* ========================================
   Scroll Reveal Animations
   Only applies when user prefers motion
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) {
        transition-delay: 0.1s;
    }

    .reveal:nth-child(3) {
        transition-delay: 0.2s;
    }
}

/* Default state: always visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
}

/* ========================================
   Buttons & Interactive Elements
   ======================================== */
button, a {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ========================================
   Form Styles
   ======================================== */
input::placeholder, textarea::placeholder {
    color: #c4b5cd;
}

/* ========================================
   Image hover effects
   ======================================== */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* ========================================
   Custom scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fafaf5;
}

::-webkit-scrollbar-thumb {
    background: #d6bdd9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #be90c0;
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
