/* ===== Liberty Manor House — Custom Styles ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6eb;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ===== Navbar ===== */
.nav-logo-text {
    color: #064e3b;
}
.nav-logo-sub {
    color: #059669;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.2s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Scrolled navbar state */
.navbar-scrolled {
    background: rgba(253, 252, 248, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}
.navbar-scrolled .nav-logo-text {
    color: #064e3b;
}
.navbar-scrolled .nav-logo-sub {
    color: #059669;
}
.navbar-scrolled .nav-link {
    color: #064e3b;
}
.navbar-scrolled .nav-link:hover {
    color: #059669;
}

/* ===== Hero Stat Cards ===== */
.stat-card {
    animation: floatIn 0.6s ease-out both;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.25s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.55s; }

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

/* ===== Room Cards ===== */
.room-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover {
    transform: translateY(-4px);
}

/* ===== Amenity Cards ===== */
.amenity-card {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.amenity-card:hover {
    transform: translateY(-2px);
}

/* ===== Scroll Reveal (below fold only, progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

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