/* Custom styles for Royal Inn website */

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

/* Custom font families */
.font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-sans {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(74, 13, 28, 0.7) 0%,
        rgba(74, 13, 28, 0.4) 50%,
        rgba(74, 13, 28, 0.8) 100%
    );
}

/* Scroll reveal animations - progressive enhancement */
/* Default state: visible (works without JS) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animated state only when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu - always visible by default, JS adds open class */
.mobile-menu {
    transform: translateX(0);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: #faf8f5;
    z-index: 50;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.mobile-menu.hidden {
    transform: translateX(100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #841a34;
}

/* Button styles */
.btn-primary {
    background-color: #9f1d38;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #841a34;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(159, 29, 56, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #9f1d38;
    border: 2px solid #9f1d38;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #9f1d38;
    color: white;
}

/* Card hover effects */
.room-card {
    transition: all 0.4s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 13, 28, 0.15);
}

/* Decorative ornament */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #9f1d38, #f9d0d9);
}

/* Image zoom effect */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s ease;
}

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

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .mobile-menu {
        display: none;
    }
}
