/* ========================================
   DUSTY ROSE CAKES — Custom Styles
   Classic & Elegant Bakery Website
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

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

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

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

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

/* Selection */
::selection {
    background: #f9d0df;
    color: #5c2d40;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 63, 91, 0.08);
}

#navbar.scrolled .font-serif {
    color: #7B3F5B !important;
}

/* Hero image subtle float */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll reveal base — progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Image hover effects */
img {
    display: block;
    max-width: 100%;
}

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

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Decorative elements */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, #d4943a, transparent);
}

/* Card hover lift */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Print styles */
@media print {
    #navbar,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
