/* Custom styles for Heather Ridge Apartments */

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0.4s;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    text-align: center;
}

.mobile-link:hover {
    transform: scale(1.05);
}

.mobile-link {
    transition: transform 0.2s ease, color 0.3s ease;
}

/* Hero badge animation */
.hero-badge {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Hero text animation */
h1, h1 + p, h1 + p + div {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 {
    animation-delay: 0.3s;
}

h1 + p {
    animation-delay: 0.5s;
}

h1 + p + div {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(138, 40, 40, 0.08);
}

#navbar.scrolled .font-serif {
    color: #6b2020;
}

/* Selection color */
::selection {
    background: #f7d0c4;
    color: #541a1a;
}

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

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

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

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

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

button, a {
    transition: transform 0.1s ease;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5f0eb 0%, #ebe5df 100%);
}

/* Aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* Sticky offset for anchor links */
[id] {
    scroll-margin-top: 80px;
}
