/* ===== Custom Styles for San Diego Blenders ===== */

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

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

/* Scroll reveal base — content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal — animated state (applied via JS for progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate-in {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .scroll-reveal.animate-in.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(254, 252, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.scrolled .font-display {
    color: #102a43;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcf3;
}
::-webkit-scrollbar-thumb {
    background: #d9e2ec;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bcccdc;
}

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

/* Selection color */
::selection {
    background: #ffc000;
    color: #102a43;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* Subtle pattern overlay for sections */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(16, 42, 67, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #ffc000 0%, #e6a800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
}

/* Pulse animation for hero dot */
@keyframes softPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}
.animate-pulse {
    animation: softPulse 2s ease-in-out infinite;
}
