/* Custom styles for Coleman Manor Apartments */

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

/* Custom selection color */
::selection {
    background-color: #B8654A;
    color: #FBF8F4;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(251, 248, 244, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-transparent {
    background-color: transparent !important;
}

/* Hero animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal-delay-1 { animation-delay: 0.1s; }
.hero-reveal-delay-2 { animation-delay: 0.2s; }
.hero-reveal-delay-3 { animation-delay: 0.3s; }
.hero-reveal-delay-4 { animation-delay: 0.4s; }
.hero-reveal-delay-5 { animation-delay: 0.5s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Residence card hover */
.residence-card {
    opacity: 0;
    transform: translateY(20px);
}

.residence-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Amenity item hover */
.amenity-item {
    opacity: 0;
    transform: translateY(20px);
}

.amenity-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Intersection observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image lazy load placeholder */
img {
    background-color: #F5E6CC;
}

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

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

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #B8654A;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contactForm, #successMessage {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
