/* Custom styles for B&B Downtown Abbey */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F0FA;
}
::-webkit-scrollbar-thumb {
    background: #9B4D96;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B3370;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A843;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

#menuToggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuToggle.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}
.mobile-nav-link:hover {
    padding-left: 1rem;
}

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

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

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

/* Scroll-triggered states (applied via JS) */
.reveal-up.is-hidden,
.reveal-left.is-hidden,
.reveal-right.is-hidden {
    opacity: 0;
}
.reveal-up.is-hidden {
    transform: translateY(40px);
}
.reveal-left.is-hidden {
    transform: translateX(-40px);
}
.reveal-right.is-hidden {
    transform: translateX(40px);
}

/* Stagger delays */
.reveal-up:nth-child(1) { transition-delay: 0ms; }
.reveal-up:nth-child(2) { transition-delay: 100ms; }
.reveal-up:nth-child(3) { transition-delay: 200ms; }
.reveal-up:nth-child(4) { transition-delay: 300ms; }

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

/* Button hover lift effect */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #F3E0F5 0%, #E8C0EB 100%);
}

/* Print styles */
@media print {
    #navbar,
    #book,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
