/* ==========================================
   304 Boerum — Custom Styles
   ========================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #C8A45E;
    color: #0A1F44;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7196C4;
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 31, 68, 0.08);
}

#navbar.scrolled .font-display {
    color: #0A1F44 !important;
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #1A2A44 !important;
}

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

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

.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button Hover Glow */
button[type="submit"],
a[href="tel:+17183811496"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before,
a[href="tel:+1718381496"]::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:+17183811496"]:hover::before {
    left: 100%;
}

/* Scroll Reveal Animations (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

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

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C8A45E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image Aspect Ratio Utilities */
.aspect-card {
    aspect-ratio: 4 / 3;
}

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

/* Subtle pattern overlay for dark sections */
.bg-pattern-dark {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(200, 164, 94, 0.05) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(200, 164, 94, 0.03) 0%, transparent 50%);
}

/* Card hover lift */
.lift-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lift-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.12);
}

/* Gold accent line animation */
.gold-line {
    position: relative;
    display: inline-block;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C8A45E, #EDD582);
    transition: width 0.3s ease;
}

.gold-line:hover::after {
    width: 100%;
}
