/* Custom styles for The Sweet Country Life */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6fc786;
}

/* Selection color */
::selection {
    background: #a5dbb0;
    color: #0a1a2e;
}

/* Fade-in animations for scroll-reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(10, 26, 46, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

#mobileMenu.hidden {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6fc786;
    outline-offset: 2px;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(165, 219, 176, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(10, 26, 46, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    nav a,
    nav button,
    footer a {
        min-height: 44px;
        min-width: 44px;
    }
}
