/* Custom styles for Goshen Coffee Roasters */

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

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

::-webkit-scrollbar-track {
    background: #FDF8F4;
}

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

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

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #500724;
}

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

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

/* Scroll reveal animations */
.scroll-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);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(157, 23, 77, 0.08);
}

#navbar.scrolled .font-serif {
    color: #500724 !important;
}

#navbar.scrolled a:not(.bg-plum-800):not(.bg-amber-500) {
    color: #500724 !important;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Hero parallax effect */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Button hover effects */
a[href="#visit"].bg-plum-800,
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="#visit"].bg-plum-800::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

a[href="#visit"].bg-plum-800:hover::after,
button[type="submit"]:hover::after {
    width: 300px;
    height: 300px;
}

/* Menu card hover */
.group:hover .group-hover\\:bg-amber-400 {
    background: #fbbf24;
}

/* Map border radius fix */
iframe {
    border-radius: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

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

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .scroll-reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
