/* Custom styles for Fraga's Bakery */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1024;
}
::-webkit-scrollbar-thumb {
    background: #3d2444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #523058;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0f7;
}

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

/* Base transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 150ms;
    transition-timing-function: ease;
}

a, button {
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2d1f3d 0%, #3d2444 100%);
}

/* Gold shimmer effect for accent elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for decorative elements */
@keyframes softPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(26, 16, 36, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.08), 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* Image hover container */
.group:hover img {
    transform: scale(1.05);
}

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

/* Button hover lift */
a[href^="tel:"], 
a[href^="#"] {
    text-decoration: none;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Map dark mode override */
iframe[title*="map"] {
    border-radius: 0 0 1rem 1rem;
}
