/* ── Custom Styles for Dedrick's Cheese ── */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ── Floating animation for hero cards ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ── Navbar scroll state ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

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

#navbar.scrolled .font-serif,
#navbar.scrolled a:not(.bg-plum-700):not(.bg-amber-400) {
    color: #3D1D4B;
}

/* ── Mobile menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F3EBF7;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Selection section cards stagger ── */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Focus styles for accessibility ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

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

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

/* ── Print styles ── */
@media print {
    #navbar,
    #contact-form,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
}
