/* ============================================
   Mediterranean Hookah Cafe — Custom Styles
   ============================================ */

/* Base & Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #C0603A;
    color: #FDF9F3;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 249, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(192, 96, 58, 0.08), 0 4px 24px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-display,
#navbar.scrolled .text-ink-900 {
    color: #1A1410 !important;
}

#navbar.scrolled .nav-link {
    color: #3D3025 !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu.open {
    max-height: 400px;
}

#menu-btn.active #menu-icon-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #menu-icon-2 {
    opacity: 0;
    transform: translateX(-8px);
}

#menu-btn.active #menu-icon-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

.mobile-nav-link {
    border-radius: 0.75rem;
}

/* ============================================
   Nav Links
   ============================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #C0603A;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* JS-enhanced hidden state for below-fold elements */
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion: no animations */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* ============================================
   Smooth Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ============================================
   Map Container
   ============================================ */
iframe {
    filter: saturate(0.6) contrast(1.05);
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* ============================================
   Utility: Subtle Pattern Backgrounds
   ============================================ */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(192, 96, 58, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

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

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

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

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, #menu-btn, .reveal-hidden {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
