/* Custom styles for Sunday Teahouse */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF6EC;
}
::-webkit-scrollbar-thumb {
    background: #C06C44;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85535;
}

/* Selection color */
::selection {
    background: #C06C44;
    color: white;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(253, 246, 236, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(192, 108, 68, 0.08);
}

/* Nav links underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C06C44;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

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

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .hero-image-float {
        animation: float 6s ease-in-out infinite;
    }
}

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

/* Button hover lift effect */
button a, a.bg-terracotta-500 {
    position: relative;
    overflow: hidden;
}
button a::before, a.bg-terracotta-500::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
button a:hover::before, a.bg-terracotta-500:hover::before {
    left: 100%;
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Menu item hover */
.group.bg-white\/10 {
    transition: all 0.4s ease;
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
    .geometric-float-1 {
        animation: float1 8s ease-in-out infinite;
    }
    .geometric-float-2 {
        animation: float2 10s ease-in-out infinite;
    }
    .geometric-float-3 {
        animation: float3 7s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: rotate(12deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-15px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes float3 {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(48deg) translateY(-10px); }
}

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

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

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
