/* Custom styles for Grand Brew and Sweets */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

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

.reveal[data-reveal="delay-1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal="delay-2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal="delay-3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal="delay-4"] {
    transition-delay: 0.4s;
}

.reveal[data-reveal="delay-5"] {
    transition-delay: 0.5s;
}

.reveal[data-reveal="delay-6"] {
    transition-delay: 0.6s;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

/* Mobile menu animation */
.mobile-menu-open #menu-icon #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open #menu-icon #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open #menu-icon #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-marquee {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.3);
    color: #064e3b;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* Image aspect ratios */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4/3;
}
