/* Custom styles for Layered Whitluv Bakery Cafe */

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

/* Selection color */
::selection {
    background-color: #b8618c;
    color: #faf5f7;
}

/* Navbar transition states */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(103, 49, 76, 0.08);
    backdrop-filter: blur(12px);
}

.nav-transparent {
    background-color: transparent !important;
}

/* Hero image gradient overlay for readability */
.hero-img-overlay {
    position: relative;
}

.hero-img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 20, 33, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Subtle pattern for background sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(184, 97, 140, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #b8618c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Image lazy loading fade-in */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    nav, #gallery, .cta-banner { display: none; }
    body { color: #000; background: #fff; }
}
