/* ============================================
   Whitfield Extended Stay — Custom Styles
   ============================================ */

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #eabd55;
}

/* --- Selection --- */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #f5d88a;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(3, 13, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- Menu Button --- */
.menu-line {
    display: block;
    height: 2px;
    width: 24px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
.js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
.js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
.js-enabled .reveal-delay-4 { transition-delay: 0.4s; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
}

/* --- Gold shimmer on CTA buttons --- */
button[type="submit"],
a[href="tel:+17063831130"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before,
a[href="tel:+17063831130"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

button[type="submit"]:hover::before,
a[href="tel:+17063831130"]:hover::before {
    left: 100%;
}

/* --- Input focus glow --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* --- Back to top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Gallery hover overlay --- */
.group.relative .absolute {
    transition: opacity 0.5s ease;
}

/* --- Map dark mode override --- */
iframe[title*="Map"] {
    border-radius: 0 0 1rem 1rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}
