/* ===== CUSTOM STYLES ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(254, 252, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(237, 193, 142, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(116, 79, 44, 0.08);
}

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

.menu-line {
    display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
    will-change: transform;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.shape-circle-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    animation: float-medium 6s ease-in-out infinite;
}

.shape-rect-1 {
    animation: float-fast 5s ease-in-out infinite;
}

.shape-rect-2 {
    animation: float-medium 7s ease-in-out infinite;
}

.shape-dot {
    animation: float-fast 4s ease-in-out infinite;
}

/* ===== ROOM CARDS ===== */
.room-card {
    will-change: transform;
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
    will-change: transform;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }
}

/* Fallback: content always visible if JS is disabled */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e05228;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: #f9c4b0;
    color: #6c2314;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e0a466;
    border-radius: 4px;
}

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

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.05;
    }
    
    .room-card {
        margin: 0 -0.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}
