/* Custom styles for Freedom Brew */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f7f9;
}
::-webkit-scrollbar-thumb {
    background: #c5c9d3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a8b7;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-slow {
    animation-delay: 0s;
}

.card-medium {
    animation-delay: -2s;
}

.card-fast {
    animation-delay: -4s;
}

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

/* Reveal on scroll - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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: always show content if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #242932 !important;
}

.navbar-scrolled .nav-link {
    color: #5c6678 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #ff6b2e !important;
    background: #fff5f0 !important;
}

/* Hero text color for light background */
.hero-light-text {
    color: #ffffff;
}

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

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

/* Product card hover lift */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff6b2e;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Ensure proper contrast for all text elements */
.text-charcoal-900 { color: #242932; }
.text-charcoal-800 { color: #2c323c; }
.text-charcoal-700 { color: #373f4c; }
.text-charcoal-600 { color: #475060; }
.text-charcoal-500 { color: #5c6678; }
.text-charcoal-400 { color: #7a8499; }
.text-charcoal-300 { color: #a1a8b7; }
.text-charcoal-200 { color: #c5c9d3; }
.text-charcoal-100 { color: #e2e4e9; }
.text-charcoal-50 { color: #f6f7f9; }

/* Coral text colors */
.text-coral-950 { color: #4a0f00; }
.text-coral-900 { color: #832100; }
.text-coral-800 { color: #a82700; }
.text-coral-700 { color: #d43700; }
.text-coral-600 { color: #f54e10; }
.text-coral-500 { color: #ff6b2e; }
.text-coral-400 { color: #ff8a4d; }
.text-coral-300 { color: #ffb080; }
.text-coral-200 { color: #ffd0b3; }
.text-coral-100 { color: #ffe8da; }
.text-coral-50 { color: #fff5f0; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .floating-card, iframe {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
