/* Grass Valley Gifts — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #d9542b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c1411e;
}

/* Selection color */
::selection {
    background: #d9542b;
    color: #fff;
}

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-logo-text {
    color: #3d2b1f !important;
}

.nav-scrolled .nav-logo-sub {
    color: #8b7355 !important;
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hamburger animation */
.menu-active #bar1 {
    transform: translateY(6px) rotate(45deg);
}
.menu-active #bar2 {
    opacity: 0;
}
.menu-active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Image lazy-load placeholder */
img {
    background: linear-gradient(135deg, #f5d9a0 0%, #fce4da 50%, #f5d9a0 100%);
    background-size: 200% 200%;
    animation: shimmer 2s ease-in-out infinite;
}

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

img[loading="lazy"].loaded {
    animation: none;
    background: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    img {
        animation: none;
    }
}

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