/* ========================================
   Southern Hospitality Inn — Custom Styles
   Premium Dark Luxury Theme
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-dark: #0D0B09;
    --color-charcoal: #1A1613;
    --color-espresso: #2C2420;
    --color-terracotta: #B85C3C;
    --color-terracotta-light: #D4845E;
    --color-sand: #D4B896;
    --color-sand-light: #E8D5BC;
    --color-cream: #F5EDE3;
    --color-gold: #C9A84C;
    --color-gold-light: #E0C878;
    --color-warm-gray: #8A7B6B;
    --color-light-gray: #B8A99A;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background: rgba(184, 92, 60, 0.3);
    color: var(--color-cream);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

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

.nav.scrolled {
    background: rgba(13, 11, 9, 0.95) !important;
    backdrop-blur: 12px !important;
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* Mobile Menu */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger Animation */
#menu-icon.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-icon.active #line2 {
    opacity: 0;
}

#menu-icon.active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-charcoal) 50%, var(--color-espresso) 100%);
}

.hero-content {
    opacity: 1;
}

.hero-image {
    opacity: 1;
}

/* ========================================
   Room Cards
   ======================================== */
.room-card {
    transform: translateY(0);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* ========================================
   Experience Section
   ======================================== */
.experience-images img {
    transition: transform 0.6s ease;
}

.experience-images img:hover {
    transform: scale(1.02);
}

/* ========================================
   Amenity Cards
   ======================================== */
.amenity-card {
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Scroll Animations (Progressive Enhancement)
   Only apply when prefers-reduced-motion is not set
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Reduced motion fallback */
@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;
    }
}
