/* Custom styles for Welcome Inn */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), pointer-events 0.4s;
}

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

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* Hamburger animation */
#bar1 {
    transform-origin: center;
}
#bar2 {
    transform-origin: center;
}
#bar3 {
    transform-origin: center;
}

.menu-active #bar1 {
    transform: translateY(8px) rotate(45deg);
}
.menu-active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
.menu-active #bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navbar scroll state */
.nav-scrolled #navbar {
    background: rgba(6, 15, 34, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1a38;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5291;
}

/* Selection color */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #0a1a38;
}

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

/* Input autofill override for dark sections */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.08) inset !important;
    -webkit-text-fill-color: white !important;
}

/* Card hover glow */
.rounded-2xl:hover {
    box-shadow: 0 20px 60px -15px rgba(10, 26, 56, 0.12);
}

/* Gallery images */
.grid-cols-2 .group img,
.grid-cols-2 .rounded-2xl {
    cursor: pointer;
}

/* Button ripple-like effect */
button, a[href^="tel"] {
    position: relative;
    overflow: hidden;
}

/* Mobile responsiveness tweaks */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}

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