/* Custom styles for Starbucks El Cajon */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll 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:hover img {
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(253, 248, 243, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

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

::-webkit-scrollbar-track {
    background: #fdf8f3;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d64a38;
}

/* Selection color */
::selection {
    background-color: #f9d4cc;
    color: #3d2b1f;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

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

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

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex {
    opacity: 1 !important;
    transform: none !important;
}

/* Subtle hover lift for cards */
.rounded-3xl {
    will-change: transform;
}

/* Ensure text contrast on all backgrounds */
.bg-bark p,
.bg-bark li,
.bg-bark span,
.bg-bark a:not(.bg-terra-600) {
    color: rgba(255, 255, 255, 0.7);
}

.bg-bark h2,
.bg-bark h3,
.bg-bark h4,
.bg-bark .font-semibold {
    color: #ffffff;
}

.bg-bark a:hover {
    color: #f4b3a6;
}
