/* Custom styles for Fine Bakery City Inc */

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

/* Custom selection color */
::selection {
    background-color: rgba(20, 184, 166, 0.2);
    color: #1e293b;
}

/* Navbar transition states */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-scrolled .nav-logo-text {
    color: #1e293b !important;
}

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

.nav-scrolled .nav-link:hover {
    color: #14b8a6 !important;
}

/* Hero text color when scrolled (not needed as hero has its own bg) */

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

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

/* Base reveal state (visible by default, JS enhances with animation) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle hover effects */
a {
    transition: color 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    background-color: #fff !important;
}

/* Image hover containers */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    .mobile-link {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }
}
