/* Custom styles for Anita Cup Of Coffee */

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

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

#navbar.scrolled {
    background-color: rgba(254, 252, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(154, 24, 40, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .nav-title {
    color: #9a1828;
}

#navbar.scrolled .nav-link {
    color: #4b5563;
}

#navbar.scrolled .nav-link:hover {
    color: #9a1828;
}

/* Hero section - ensure full height on all devices */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Custom selection color */
::selection {
    background-color: #f9d4d8;
    color: #7c1420;
}

/* Subtle fade-in animation for sections */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeUp 0.8s ease forwards;
}

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

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

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

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

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

/* Mobile menu button active state */
#menuBtn:active {
    transform: scale(0.95);
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(154, 24, 40, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

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

/* Ensure responsive image sizing */
img {
    max-width: 100%;
    height: auto;
}
