/* ============================================
   DAY OLD CHICKENS — Custom Styles
   Clean Minimalist • Burgundy & Blush
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #faf9f7;
    color: #2d2d2d;
}

::selection {
    background-color: #841641;
    color: #fff;
}

/* ---- Smooth Scroll Offset for Fixed Nav ---- */
section[id] {
    scroll-margin-top: 80px;
}

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

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

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

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

/* ---- Navbar Transition ---- */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(132, 22, 65, 0.06);
}

/* ---- Mobile Menu ---- */
#mobileMenu {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

.mobile-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    transform: translateY(-2px);
}

/* ---- Button Focus States ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #841641;
    outline-offset: 2px;
}

/* ---- Image Loading ---- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* ---- Subtle Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

/* ---- Scroll Reveal (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .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; }
}

/* ---- 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;
    }
}

/* ---- Product Card Hover ---- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ---- Form Styling ---- */
input::placeholder,
textarea::placeholder {
    color: rgba(45, 45, 45, 0.3);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf9f7 inset !important;
}
