/* Custom styles for Barclay Square Apartments */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f7;
}
::-webkit-scrollbar-thumb {
    background: #d4c4b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e8070;
}

/* Selection color */
::selection {
    background: #fce7e7;
    color: #701c1c;
}

/* Hero parallax-like effect */
#hero {
    background-attachment: fixed;
}

/* Navigation transition */
#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s 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.2s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Button hover lift effect */
a[href="#residences"],
a[href="#contact"],
button[type="submit"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a[href="#residences"]:hover,
a[href="#contact"]:hover {
    transform: translateY(-2px);
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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