/* ============================================
   Janice's Bohemian Delights — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #6B1D3A;
    color: #FAF5F0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF5F0;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B1D3A;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible by default,
   JS adds the animated state for reduced-motion users.
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Navbar transitions
   ============================================ */

#navbar.scrolled {
    background: rgba(250, 245, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 29, 58, 0.08);
}

#navbar.scrolled .nav-text,
#navbar.scrolled .mobile-link {
    color: #6B1D3A !important;
}

#navbar.scrolled .nav-subtext {
    color: #9a253c !important;
}

#navbar.scrolled .menu-line {
    background-color: #6B1D3A !important;
}

#navbar.scrolled .nav-logo-fill {
    fill: #6B1D3A !important;
}

/* ============================================
   Mobile menu animations
   ============================================ */

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* Mobile menu button active state */
#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuToggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ============================================
   Hero parallax-like subtle movement
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    #hero img {
        transition: transform 0.3s ease-out;
    }
}

/* ============================================
   Image hover effects
   ============================================ */

.group:hover img {
    transform: scale(1.05);
}

/* ============================================
   Menu item hover
   ============================================ */

#menu .border-b {
    transition: border-color 0.3s ease;
}

#menu .border-b:hover {
    border-color: #f5a8b8;
}

#menu h4 {
    transition: color 0.3s ease;
}

#menu .group:hover h4 {
    color: #9a253c;
}

/* ============================================
   Button focus states for accessibility
   ============================================ */

a:focus-visible, button:focus-visible {
    outline: 2px solid #6B1D3A;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   Smooth image loading
   ============================================ */

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

@media print {
    #navbar, #hero, #atmosphere, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
