/* Custom styles for Keating Capezio */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c1f2b;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(123, 45, 59, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Hero text animation - only for below-fold progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: fadeSlideUp 0.8s ease forwards;
    }
    .hero-title {
        animation: fadeSlideUp 0.8s ease 0.15s forwards;
        opacity: 0;
    }
    .hero-description {
        animation: fadeSlideUp 0.8s ease 0.3s forwards;
        opacity: 0;
    }
    .hero-cta {
        animation: fadeSlideUp 0.8s ease 0.45s forwards;
        opacity: 0;
    }
}

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

/* Scroll reveal animations - only below fold, progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Card hover effects */
.group:hover .group-hover\:bg-burgundy-700 {
    background-color: #7B2D3B;
}

/* Map container */
.rounded-2xl.overflow-hidden iframe {
    filter: saturate(0.8) contrast(1.05);
}

/* Ensure all interactive elements are accessible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

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

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

/* Reduce motion preference */
@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;
    }
}
