/* ===== CUSTOM STYLES ===== */

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

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

/* ===== SCROLL REVEAL ANIMATIONS ===== */
/* Default state: visible (progressive enhancement — works without JS) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only apply hidden state when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== NAVBAR SCROLL EFFECT ===== */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ===== CARD HOVER EFFECTS ===== */
/* Subtle lift on collection cards handled by Tailwind group-hover */

/* ===== BUTTON FOCUS STATES ===== */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #C0603A;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== INPUT FOCUS STATES ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.15);
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== GEOMETRIC DECORATION SHAPES ===== */
.geo-square {
    position: absolute;
    border-radius: 1rem;
    opacity: 0.1;
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}

/* ===== IMAGE LAZY LOAD POLYFILL (optional enhancement) ===== */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}
