/* River Haven Cabins — Custom Styles */

/* === Custom Gold Button === */
.gold-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
    background-size: 200% 200%;
    color: #0f172a;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gold-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(245, 158, 11, 0.2);
    background-position: right center;
}

.gold-button:hover::before {
    opacity: 1;
}

.gold-button span {
    position: relative;
    z-index: 1;
}

/* === Scroll Reveal (Progressive Enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for reduced motion or no-JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* === Navbar Transition === */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* === Selection Color === */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

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

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

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

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

/* === Mobile Menu Animation === */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* === Image Loading Placeholder === */
img {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .gold-button {
        padding: 14px 24px;
        font-size: 0.8rem;
    }
}
