/* Custom styles for Marriott Intl */

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

/* Base transitions */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll effect */
#main-nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#main-nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 1px 0 rgba(140, 48, 48, 0.3);
    backdrop-filter: blur(20px);
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.menu-open {
    max-height: 500px;
    opacity: 1;
}

#mobile-menu-btn.active svg {
    transform: rotate(90deg);
}

/* Reveal animations - progressive enhancement */
.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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold gradient text utility */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Room card hover */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
    background: #360f0f;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5d77a;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* Button focus visible */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Subtle pattern overlay for dark sections */
.bg-dark-900::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(140, 48, 48, 0.05) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 50%, rgba(212, 160, 23, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Gold shimmer on hover for buttons */
.bg-gradient-to-r.from-burgundy-700.to-burgundy-900:hover {
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reduced motion support */
@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;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .font-serif, h1, h2, h3 {
        color: black !important;
    }
}
