/* Beck's Bakery — Custom Styles */

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

/* Prevent scroll-reveal on load for above-the-fold content */
@media (prefers-reduced-motion: no-preference) {
    .specialty-card {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-item {
        opacity: 1;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5a9068;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-scrolled #nav-logo-text {
    color: white !important;
}

/* Hero animations — only for below-fold content enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-text {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specialty cards */
.specialty-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-card:hover {
    transform: translateY(-4px);
}

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

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

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

/* Contact form focus styles */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Section reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pattern overlay for dark sections */
.bg-pattern-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Print styles */
@media print {
    nav, #contact, .gallery-item {
        display: none;
    }
    
    body {
        color: #0A1628;
        background: white;
    }
}
