/* Custom styles for San Jose Bakery */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .menu-line {
    background: white;
}

/* Feature strip hover */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* Menu card hover */
.menu-card {
    will-change: transform, box-shadow;
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
}

/* Mobile menu */
.mobile-link {
    transition: padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* Mobile menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop:not(.visible) {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Scroll reveal (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@supports not (animation-timeline: view()) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 4px;
    border-radius: 4px;
}
