/* ============================================
   SEMRAJ — Custom Styles
   Classic & Elegant Retail Website
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #d4ab52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b54020;
}

/* --- Selection --- */
::selection {
    background: #f7c4b0;
    color: #3a130a;
}

/* --- Typography --- */
.font-serif {
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

/* --- Navbar --- */
#navbar {
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 196, 120, 0.15);
}

#navbar.scrolled {
    box-shadow: 0 4px 40px rgba(26, 22, 20, 0.06);
}

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Mobile Menu --- */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: 0 20px 60px rgba(26, 22, 20, 0.15);
}

/* --- Button Interactions --- */
a {
    text-decoration: none;
}

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

/* --- Smooth Focus --- */
:focus-visible {
    outline: 2px solid #B54020;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Loading State --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- Page Transition --- */
body {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Tablet Adjustments --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white !important;
    }
}
