/* =============================================
   Spolem Deli — Custom Styles
   ============================================= */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 168, 76, 0.25);
    color: #3D253B;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F7F3F8;
}
::-webkit-scrollbar-thumb {
    background: #BB94C8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9E66B0;
}

/* =============================================
   Navigation
   ============================================= */

#nav {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93, 58, 92, 0.08);
    box-shadow: 0 1px 0 rgba(93, 58, 92, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #5D3A5C !important;
}

/* Mobile menu button */
.menu-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* =============================================
   Scroll Reveal
   ============================================= */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* =============================================
   Menu hover effects
   ============================================= */

.group:hover .font-serif {
    /* handled via Tailwind group-hover */
}

/* =============================================
   Form focus states
   ============================================= */

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

/* =============================================
   Image loading
   ============================================= */

img {
    display: block;
    max-width: 100%;
}

/* =============================================
   Print
   ============================================= */

@media print {
    #nav,
    #contact-form,
    .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
