/* Custom styles for Tasty Bubbles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #98D4C8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5FB8A8;
}

/* Selection color */
::selection {
    background: #98D4C8;
    color: #0A2540;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.reveal.active {
    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; }

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

.nav-scrolled .font-serif {
    color: #0A2540 !important;
}

.nav-scrolled a:not(.bg-midnight-800) {
    color: #0A2540 !important;
}

/* Button hover effects */
a[href^="tel"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a[href^="tel"]:hover {
    transform: translateY(-1px);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F2D9C0 0%, #D5F5E9 100%);
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #98D4C8;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

/* Grid gap adjustments */
@media (max-width: 767px) {
    .grid-cols-2 > * + * {
        margin-top: 0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
