/* ============================================
   Holiday Harbor Motel — Custom Styles
   Clean Minimalist · Charcoal & Coral
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #ff6b4a;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fa2aa;
}

/* --- Hero Animations --- */
@keyframes heroSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes scrollLineMove {
    0% {
        top: -16px;
    }
    100% {
        top: 48px;
    }
}

.hero-lead {
    animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.hero-title {
    animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
}

.hero-subtitle {
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
}

.scroll-line {
    animation: scrollLineMove 1.5s ease-in-out infinite;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .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; }
}

/* --- Room Cards --- */
.room-card {
    transition: background-color 0.4s ease;
}

/* --- Mobile Menu --- */
.mobile-menu-open {
    overflow: hidden;
}

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

#menu-line-1.menu-active {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-line-2.menu-active {
    opacity: 0;
}

#menu-line-3.menu-active {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* --- Navbar --- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-light {
    color: white;
}

.navbar-light .navbar-scrolled {
    color: #1a1b1e;
}

.navbar-light .text-charcoal-600 {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-light .navbar-scrolled .text-charcoal-600 {
    color: #4a4d54;
}

/* --- Focus Styles --- */
input:focus, textarea:focus {
    outline: none;
}

/* --- Image Aspect Ratio --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Smooth Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
