/* Custom styles for Hines Coffees, Teas, Wines and Fine Things */

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

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

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content is always visible if JS is disabled */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* Floating card animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float1 4s ease-in-out infinite;
    }
    .floating-card-2 {
        animation: float2 3.5s ease-in-out infinite;
        animation-delay: 0.5s;
    }
    .floating-card-3 {
        animation: float3 3s ease-in-out infinite;
        animation-delay: 1s;
    }
}

/* Subtle gradient text */
.text-gradient-gold {
    background: linear-gradient(135deg, #f2c54e, #d4940f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d5787;
}

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

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

/* Selection color */
::selection {
    background-color: rgba(212, 148, 15, 0.3);
    color: #f0f4f9;
}
