/* Tombstone Boarding House Inn — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2faf5;
}
::-webkit-scrollbar-thumb {
    background: #95d5ad;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5bbf85;
}

/* Selection */
::selection {
    background: #c3eacf;
    color: #125030;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

.navbar-scrolled .nav-title {
    color: #1e3a5f !important;
}

.navbar-scrolled .nav-link {
    color: #1e3a5f !important;
}

/* Hero Animations */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section */
.about-images {
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.about-content {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Rooms Section */
.rooms-header {
    animation: fadeInUp 1s ease-out forwards;
}

.room-card {
    opacity: 0;
    transform: translateY(30px);
}

.room-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.room-card:nth-child(2) { transition-delay: 0.1s; }
.room-card:nth-child(3) { transition-delay: 0.2s; }

/* Experience Section */
.experience-header {
    animation: fadeInUp 1s ease-out forwards;
}

.experience-card {
    opacity: 0;
    transform: translateY(20px);
}

.experience-card.visible {
    animation: fadeInUp 0.5s ease-out forwards;
}

.experience-card:nth-child(2) { transition-delay: 0.1s; }
.experience-card:nth-child(3) { transition-delay: 0.2s; }
.experience-card:nth-child(4) { transition-delay: 0.3s; }

/* Location Section */
.location-content {
    animation: fadeInUp 1s ease-out forwards;
}

.location-map {
    animation: fadeInRight 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Contact Section */
.contact-content {
    animation: fadeInUp 1s ease-out forwards;
}

.contact-form-card {
    animation: fadeInRight 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Utility */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.12);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #5bbf85;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image lazy loading shimmer */
img {
    background: linear-gradient(135deg, #e1f5e9 0%, #f2faf5 100%);
}
