/* El Cortez Hotel & Apartments — Custom Styles */

/* Base reset and smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(43, 196, 154, 0.3);
    color: #F0FFF8;
}

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

::-webkit-scrollbar-track {
    background: #040B16;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2BC49A;
}

/* Scroll reveal animations — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(4, 11, 22, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-scrolled .menu-line {
    background: #fff;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hero card float animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-card-float {
        animation: float 6s ease-in-out infinite;
    }

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

    .hero-card-float-slow {
        animation: float 8s ease-in-out 1s infinite;
    }
}

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

/* Button hover effects */
a[href^="tel"] {
    text-decoration: none;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #2BC49A;
    outline-offset: 2px;
}

/* Form focus states */
input:focus, textarea:focus {
    background-color: rgba(10, 22, 40, 0.8) !important;
}

/* Image aspect ratios to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #contact-form, button {
        display: none !important;
    }

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

    a {
        color: black !important;
    }
}
