/* Custom styles for Refresquería Alba */

:root {
    --green-950: #052e16;
    --green-900: #166534;
    --green-800: #15803d;
    --green-700: #16a34a;
    --green-600: #22c55e;
    --green-500: #4ade80;
    --green-200: #86efac;
    --green-100: #bbf7d0;
    --green-50: #f0fdf4;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #9ca3af;
    --stone-500: #6b7280;
    --stone-600: #4b5563;
    --stone-800: #1c1917;
    --stone-900: #0c0a09;
}

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

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--green-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-800);
}

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

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--green-700);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animations */
#mobile-menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #bar2 {
    opacity: 0;
}

#mobile-menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Reduced motion support */
@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 {
    nav,
    .floating-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-green-900 {
        background-color: ButtonText;
    }
    
    .text-green-900 {
        color: ButtonText;
    }
}

/* Custom selection color */
::selection {
    background-color: var(--green-200);
    color: var(--green-950);
}
