/* Custom styles for Silver Bridge Coffee Company */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

/* Floating card animations */
.absolute.top-0.right-0 {
    animation: float 4s ease-in-out infinite;
}

.absolute.top-32.left-0 {
    animation: float-reverse 4.5s ease-in-out infinite;
}

.absolute.bottom-0.right-12 {
    animation: float 5s ease-in-out infinite 0.5s;
}

/* Hover effects */
.hover\\:scale-105:hover {
    transform: scale(1.05);
}

/* Gradient text (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #942838;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a2433;
}

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

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

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
    max-height: 500px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure proper contrast */
.text-stone-600 {
    color: #44403c;
}

.text-plum-200 {
    color: #f5d0d7;
}
