/* ===== Custom Styles for Bridgestreet 316 East 63rd ===== */

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

/* Selection color */
::selection {
    background-color: rgba(28, 58, 46, 0.15);
    color: #1C3A2E;
}

/* ===== Header Transparency ===== */
#site-header {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(245, 242, 235, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 58, 46, 0.08);
}

/* ===== Scroll Indicator Animation ===== */
@keyframes scroll-indicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ===== Floating Card Animations ===== */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

.float-card-1 {
    animation: float-1 5s ease-in-out infinite;
}

.float-card-2 {
    animation: float-2 6s ease-in-out infinite 0.5s;
}

.float-card-3 {
    animation: float-3 4.5s ease-in-out infinite 1s;
}

.float-card-4 {
    animation: float-4 5.5s ease-in-out infinite 0.3s;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Scroll-triggered reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== Suite Card Hover ===== */
.suite-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.suite-card:hover {
    transform: translateY(-4px);
}

/* ===== Amenity Card Hover ===== */
.amenity-card {
    transition: transform 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-2px);
}

/* ===== Gallery Item Hover ===== */
.gallery-item {
    cursor: pointer;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

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

/* Mobile link underline animation */
.mobile-link {
    position: relative;
}

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

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

/* ===== Menu Button Animation ===== */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* ===== Input Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Date Input Styling ===== */
input[type="date"] {
    color-scheme: light;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(28, 58, 46, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 58, 46, 0.4);
}

/* ===== 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;
    }

    .float-card-1,
    .float-card-2,
    .float-card-3,
    .float-card-4 {
        animation: none;
    }

    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
}

/* ===== Print Styles ===== */
@media print {
    #site-header,
    #mobile-menu,
    .stat-card,
    .animate-scroll-indicator {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }
}
