/* ========================================
   Riverview Hotel & Conf Center Ph I
   Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6e3;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection */
::selection {
    background: #166534;
    color: #fffcf5;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 252, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 46, 22, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled #nav-logo-text {
    color: #14532d !important;
}

#navbar.scrolled #nav-sub-text {
    color: #166534 !important;
}

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

#navbar.scrolled .nav-link:hover {
    color: #15803d !important;
}

/* ========================================
   Hero
   ======================================== */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 46, 22, 0.6) 0%,
        rgba(5, 46, 22, 0.3) 40%,
        rgba(5, 46, 22, 0.5) 70%,
        rgba(5, 46, 22, 0.85) 100%
    );
    z-index: 1;
}

#hero > .absolute {
    position: relative;
    z-index: 0;
}

/* ========================================
   Room Cards
   ======================================== */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(5, 46, 22, 0.15);
}

/* ========================================
   Mobile Navigation
   ======================================== */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #d4a853;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 60%;
}

/* ========================================
   Decorative Dividers
   ======================================== */
.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   Form Styles
   ======================================== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========================================
   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;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .room-card {
        max-width: 480px;
        margin: 0 auto;
    }
}
