/* Miss M's Tea Room — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c1f2b;
}

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

/* Focus styles */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(255, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.1);
}

.nav-scrolled .font-serif {
    color: #7B2D3B !important;
}

.nav-scrolled .text-burgundy-600 {
    color: #7B2D3B !important;
}

.nav-scrolled .menu-line {
    background: #7B2D3B !important;
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Scroll reveal base (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }

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

/* Image hover containers */
.rounded-2xl.overflow-hidden,
.rounded-3xl.overflow-hidden {
    will-change: transform;
}

/* Form inputs */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Print styles */
@media print {
    nav, #gallery, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
