/* ========================================
   Ellsworth Suites — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #d4a84b;
    color: #0a0f1e;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* Smooth Scroll Offset for Fixed Nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar Transition */
#navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

/* Hero Image */
#hero img {
    will-change: transform;
}

/* Room Card Hover */
.group:hover img {
    transform: scale(1.05);
}

/* Gold Button Hover */
a.bg-gold-500:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(212, 168, 75, 0.3);
}

/* Amenity Card Hover */
#amenities .group:hover {
    transform: translateY(-4px);
}

/* Map Container */
#location iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

#location .rounded-2xl:hover iframe {
    filter: saturate(1) contrast(1);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* 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;
        transform: none;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

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

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

.absolute.-top-4.-right-4 {
    animation: float 4s ease-in-out infinite 0.5s;
}

/* Grid Pattern Overlay */
.bg-navy-800::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3d5a8a;
}
