/* Custom styles for Hilton Bloomington */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .font-serif {
    color: #711731 !important;
}

/* Room card hover effects */
.room-card {
    transform: translateY(0);
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

/* Hamburger animation */
.hamburger-active line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active line:nth-child(2) {
    opacity: 0;
}

.hamburger-active line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #711731;
}

/* Subtle gradient text for special elements */
.gradient-text {
    background: linear-gradient(135deg, #a11636 0%, #db4066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #ec7493;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on form inputs */
input, textarea, select {
    font-size: 16px;
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-burgundy-950 {
        background: #3f0714 !important;
        color: #fff !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #rooms h2, #amenities h2, #location h2, #contact h2 {
        font-size: 2.25rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #hero h1 {
        font-size: 2.25rem;
    }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 6rem 0;
    }

    #hero .grid {
        grid-template-columns: 1fr;
    }

    #hero .lg\\:block {
        display: block !important;
        max-height: 300px;
    }
}
