/* Custom styles for Chipper Chick Coffee Company */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a2e;
}
::-webkit-scrollbar-thumb {
    background: #432652;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #653877;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f5f0f7;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(13, 5, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67, 38, 82, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0c060, #d4a843, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer on gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a843, #b8860b);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Image hover zoom container */
.group:hover img {
    transform: scale(1.05);
}

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Input focus ring */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group:hover img,
    img {
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .reveal {
        transform: translateY(40px);
    }
}

/* Ensure map looks good in dark theme */
iframe {
    border-radius: 0 0 20px 20px;
}
