/* ========================================
   Swirll Frozen Yogurt — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #7B2D3B;
    color: #fefdfb;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* --- Navbar --- */
#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: #7B2D3B;
}

#navbar.scrolled .font-serif {
    color: #7B2D3B;
}

#navbar.scrolled .w-8.h-8 {
    color: #7B2D3B;
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 1px;
    background-color: #7B2D3B;
    transition: transform 0.3s ease;
}

.mobile-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- Flavor Cards --- */
.group:hover .aspect-\[4\/5\] img {
    transform: scale(1.05);
}

/* --- Buttons --- */
button, a {
    cursor: pointer;
}

/* --- Smooth image loading --- */
img {
    image-rendering: auto;
}

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

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

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

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

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

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
