/* Custom styles for Belmont Place AFH */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f2;
}
::-webkit-scrollbar-thumb {
    background: #d9cdb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4b49a;
}

/* Selection */
::selection {
    background: #7B2D3B;
    color: white;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered fade-in delays */
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }
.fade-in.delay-6 { transition-delay: 0.6s; }

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.float-medium {
    animation: float 4.5s ease-in-out infinite;
}

.float-delayed {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Hero parallax */
.hero-bg {
    will-change: transform;
}

/* Nav scroll state */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

nav.scrolled .font-serif {
    color: #7B2D3B !important;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Subtle hover lift for service cards */
.group:hover {
    transform: translateY(-2px);
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

/* Reduce motion for accessibility */
@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;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
}
