/* Custom styles for The Grove Do-Nutz & Coffee */

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

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

::-webkit-scrollbar-track {
    background: #0a0f1e;
}

::-webkit-scrollbar-thumb {
    background: #d4900f30;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #d4900f40;
    color: #f9ecb4;
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 144, 15, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gold shimmer effect on hover for cards */
.group:hover .bg-gold-500\/10 {
    background: rgba(212, 144, 15, 0.15);
}

/* Button hover glow */
.bg-gold-500:hover {
    box-shadow: 0 0 30px rgba(212, 144, 15, 0.3);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0d1529 0%, #111d38 100%);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .group:hover .bg-gold-500\/10 {
        transition: none;
    }
    
    .bg-gold-500:hover {
        box-shadow: none;
    }
    
    img {
        transition: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4900f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d1529 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f4d97e 0%, #d4900f 50%, #b5740c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(212, 144, 15, 0.03) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 50%, rgba(212, 144, 15, 0.03) 0%, transparent 50%);
}
