/* Custom styles for Red Bay Coffee Company */

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

/* Base link reset */
a {
    text-decoration: none;
}

/* Selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* Stat card hover animation */
.stat-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .stat-card {
        transition: none;
    }
    .stat-card:hover {
        transform: none;
    }
}

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

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

/* Subtle line accent */
.section-line {
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #0d9488;
}

/* Image aspect ratio fallback */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hero floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation: float 4s ease-in-out infinite 0.5s;
}

.stat-card:nth-child(3) {
    animation: float 4s ease-in-out infinite 1s;
}

@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none;
    }
}
