/* Custom styles for Kinship Coffee House */

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

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* About grid animation */
.about-grid {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

@media (prefers-reduced-motion: no-preference) {
    .about-grid,
    .about-content,
    .space-content,
    .space-images {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .about-grid.revealed,
    .about-content.revealed,
    .space-content.revealed,
    .space-images.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .space-content {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .space-images {
        transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Button hover effects */
button:hover, a:hover {
    cursor: pointer;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Subtle card lift */
.bg-white.rounded-2xl,
.bg-white\/5.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover,
.bg-white\/5.rounded-2xl:hover {
    transform: translateY(-2px);
}

/* Hero image float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 4s ease-in-out infinite;
    }
}
