/* Comfort Suites Hotel — Custom Styles */

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

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
    background: #a11e38;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841c33;
}

/* Selection */
::selection {
    background: #a11e38;
    color: #fff;
}

/* Stat Cards Animation */
.stat-card {
    animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -1.5s; }
.stat-card:nth-child(3) { animation-delay: -3s; }
.stat-card:nth-child(4) { animation-delay: -4.5s; }

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

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* 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;
    }
    .stat-card {
        animation: none;
    }
}

/* Navbar Transition */
.nav-scrolled {
    background: rgba(10, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-transparent {
    background: transparent !important;
}

/* Mobile Menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Focus States */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 30, 56, 0.1);
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print Styles */
@media print {
    nav, #contact, footer, .stat-card {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
