/* Custom styles for NaRin's Bakery & Takeout */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Custom selection color */
::selection {
    background-color: #1B4332;
    color: #F5F0E8;
}

/* Navbar transition */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-subtext {
    transition: color 0.4s ease;
}

/* Hero image hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
    .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
    .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
    .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
    .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
    .reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }
}

/* Card hover lift */
.hover\:shadow-lg:hover {
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

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

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

/* Subtle pattern overlay for hero */
.bg-pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(245, 240, 232, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

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

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

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

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