/* ============================================
   Salon Suites at Glen Laurel — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(110, 43, 55, 0.15);
    color: #1A1414;
}

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

#navbar.scrolled {
    background-color: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(110, 43, 55, 0.08);
}

.nav-text {
    color: #1A1414;
}

.nav-text-sub {
    color: #6E2B37;
}

#navbar.scrolled .nav-text {
    color: #1A1414;
}

#navbar.scrolled .nav-text-sub {
    color: #6E2B37;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6E2B37;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu {
    background-color: rgba(253, 248, 245, 0.98);
    backdrop-filter: blur(20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu .mobile-link:nth-child(6) { animation-delay: 0.3s; }

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

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

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-tagline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   REVEAL ANIMATIONS (below fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ============================================
   SUITE CARDS
   ============================================ */
.suite-card {
    transition: transform 0.4s ease;
}

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

.suite-card::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #6E2B37;
    transition: width 0.4s ease;
}

.suite-card:hover::after {
    width: 100%;
}

/* ============================================
   AMENITY ITEMS
   ============================================ */
.amenity-item {
    transition: padding-left 0.3s ease;
}

.amenity-item:hover {
    padding-left: 8px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 20, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(26, 20, 20, 0.1);
}

/* ============================================
   FORM STYLES
   ============================================ */
select option {
    background: #330f17;
    color: white;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #f4d0da;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e8a0b8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem !important;
    }
    
    .hero-headline {
        font-size: 3rem !important;
    }
    
    @media (min-width: 768px) {
        .hero-headline {
            font-size: 4rem !important;
        }
    }
    
    @media (min-width: 1024px) {
        .hero-headline {
            font-size: 5rem !important;
        }
    }
}

/* ============================================
   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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
