/* ========================================
   Flowers Bakery Outlet — Custom Styles
   Classic & Elegant Design System
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

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

/* --- Selection --- */
::selection {
    background: #d4952a;
    color: #102a43;
}

/* --- Navbar Transition States --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4952a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu Animation --- */
#mobile-menu.opacity-100 {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.opacity-0 {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Reveal Animations --- */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        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-up {
        transform: translateY(40px);
    }

    .reveal-left {
        transform: translateX(-40px);
    }

    .reveal-right {
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* --- Gold Line Accents --- */
.border-gold-accent {
    border-image: linear-gradient(to right, transparent, #d4952a, transparent) 1;
}

/* --- Card Hover Effects --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4952a;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Image Loading Placeholder --- */
img {
    background: linear-gradient(135deg, #1a3a5c 0%, #243b53 50%, #1a3a5c 100%);
    background-size: 400% 400%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* --- Print Styles --- */
@media print {
    nav, #mobile-menu, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
