/* Custom styles for Charis Coffeehouse */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar styles */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e55430, #f3a088);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.mobile-link {
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* Hero image hover effects */
#hero .rounded-3xl img,
#hero .rounded-2xl img {
    transition: transform 0.6s ease;
}

#hero .rounded-3xl:hover img,
#hero .rounded-2xl:hover img {
    transform: scale(1.02);
}

/* Floating card animation */
.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Image gallery hover */
.grid-cols-2 .rounded-2xl img {
    transition: transform 0.7s ease;
}

/* Section divider gradient */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e55430, transparent);
    border-radius: 2px;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #e55430;
    outline-offset: 2px;
    border-radius: 9999px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.-bottom-6.-left-6 {
        animation: none;
    }
    
    .rounded-3xl img,
    .rounded-2xl img {
        transition: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #f8c4b5;
    color: #732314;
}
