/* Custom styles for Casa Chocolate SD */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d4920b;
}

/* Selection color */
::selection {
    background: #d4920b;
    color: #102a43;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4920b;
    outline-offset: 2px;
}

/* Prevent flash of unstyled content */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

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

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #e2ac36 0%, #d4920b 50%, #b07409 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle glow effect */
.glow-gold {
    box-shadow: 0 0 40px rgba(212, 146, 11, 0.15);
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    button,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-navy-950,
    .bg-navy-900 {
        background: white !important;
    }
    
    .text-white,
    .text-navy-100,
    .text-navy-200,
    .text-navy-300 {
        color: black !important;
    }
    
    .text-gold-400,
    .text-gold-500 {
        color: #b07409 !important;
    }
}
