/* Custom styles for Blue Hill Avenue Place */

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

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

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 107, 82, 0.3);
    color: #fff;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 82, 0.08);
}

.service-card:hover .w-14 {
    box-shadow: 0 0 20px currentColor;
}

/* Testimonial hover */
.bg-charcoal-800:hover {
    border-color: rgba(255, 107, 82, 0.3);
    transition: all 0.4s ease;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(255, 107, 82, 0.3);
}

/* Gold shimmer animation for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.font-serif {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .group img,
    a,
    button {
        transition: none;
    }
    
    @keyframes shimmer {
        to { background-position: 200% center; }
    }
}

/* Fade-in animation for scroll reveals */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b52, #d4a84b);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}
