/* Custom styles for Gladys café website */

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

/* Custom selection color */
::selection {
    background-color: #4fd1c5;
    color: #0a2540;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

.nav-scrolled .nav-link {
    color: #0a2540 !important;
}

.nav-scrolled .nav-link:hover {
    color: #4fd1c5 !important;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu tabs */
.menu-tab {
    color: #0a2540;
    background: transparent;
    cursor: pointer;
}

.menu-tab.active {
    background: #0a2540;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.menu-tab:not(.active):hover {
    background: #e0f5ef;
}

/* Menu content transitions */
.menu-content {
    animation: fadeIn 0.4s ease-out;
}

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Hover effects for cards */
.bg-white.rounded-3xl:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease-out;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7f9dc0;
}

/* Mobile navigation links */
.mobile-nav-link {
    padding: 8px 0;
    border-bottom: 1px solid #e0f5ef;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

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

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

/* Large screen adjustments */
@media (min-width: 1280px) {
    .font-display.text-5xl {
        font-size: 4rem;
        line-height: 1;
    }
}

/* Touch device adjustments */
@media (hover: none) {
    .group:hover img {
        transform: none;
    }
    
    .bg-white.rounded-3xl:hover {
        transform: none;
    }
}
