/* Custom styles for Royal Roman Motel */

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

/* Selection color */
::selection {
    background-color: rgba(249, 115, 22, 0.2);
    color: #1f2937;
}

/* Base reveal animation - hidden by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Only apply reveal animations when JS is enabled and user prefers motion */
@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);
    }
}

/* Navbar styles */
.nav-logo-text {
    color: #1f2937;
}

/* Ensure navbar text is visible on light background */
.nav-scrolled .nav-logo-text {
    color: #1f2937;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
    background: #c4c6cb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a5aa;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle image hover effect */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Ensure hero content is always visible */
#top h1,
#top p,
#top a,
#top span {
    opacity: 1 !important;
    transform: none !important;
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
