/* Atlantic Vibe Performance Center — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #842033;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e233c;
}

/* Selection */
::selection {
    background: #842033;
    color: #fefcfb;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(254, 252, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-charcoal-950 {
    color: #1a1a1a !important;
}

#navbar.scrolled .text-charcoal-800\/80,
#navbar.scrolled .nav-link {
    color: #2d2d2d !important;
}

#navbar.scrolled .text-charcoal-800\/60 {
    color: #2d2d2d !important;
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu:not(.open) {
    transform: translateX(100%);
}

/* Hamburger animation */
#menu-toggle[aria-expanded="true"] #bar1 {
    transform: translateY(5.5px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] #bar2 {
    opacity: 0;
}
#menu-toggle[aria-expanded="true"] #bar3 {
    transform: translateY(-5.5px) rotate(-45deg);
    width: 1.25rem;
}

/* Selection underline for nav links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #842033;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23842033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #842033;
    outline-offset: 2px;
}

/* Button ripple on focus */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #842033;
    outline-offset: 2px;
}

/* Subtle gradient on hero image */
#hero .absolute img {
    will-change: transform;
}

/* Product card hover */
.group .aspect-\[3\/4\] {
    transition: box-shadow 0.4s ease;
}

/* Map container overlay */
.iframe-container {
    position: relative;
}
.iframe-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(26, 26, 26, 0.05);
    border-radius: 0.25rem;
    pointer-events: none;
}
