/* Custom styles for Stone Mountain Hwy SW Hotel */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4a8a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83232;
}

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

/* Hero decorative shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* Room card hover */
.room-card {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
    opacity: 1;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    box-shadow: 0 1px 20px rgba(148, 36, 36, 0.08);
}

#navbar:not(.scrolled) {
    background: transparent;
}

#navbar:not(.scrolled) .font-serif,
#navbar:not(.scrolled) .text-burgundy-900 {
    color: #1a0a0a;
}

/* Amenity card */
.amenity-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(148, 36, 36, 0.1);
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .room-card,
    .testimonial-card,
    .amenity-card {
        transition: none;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(0); }
    }
    .hero-float {
        animation: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b83232;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
