/* La Conchita Bakery — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A2540;
}
::-webkit-scrollbar-thumb {
    background: #A8D5BA;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6FB88A;
}

/* Selection color */
::selection {
    background: #A8D5BA;
    color: #0A2540;
}

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(240, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled .text-midnight-900,
#navbar.scrolled a:not(.bg-mint-200) {
    color: #0A2540 !important;
}

#navbar.scrolled .tracking-widest {
    color: #4A9E6C !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #A8D5BA;
    transition: width 0.3s ease;
}

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

/* Floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

.floating-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .floating-slow,
    .floating-medium,
    .floating-fast {
        animation: none;
    }
    img:hover {
        transform: none;
    }
}

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

/* Image loading placeholder */
img {
    background-color: #DCF5E8;
}
