/* Custom styles for Carolina Creamery */

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

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

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
}

.navbar-scrolled .nav-link {
    color: #102a43 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #1e8f5c !important;
}

.navbar-scrolled .logo-text {
    color: #102a43 !important;
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    a:hover, button:hover {
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #5ec99b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #c8f0e0;
    color: #102a43;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #d9e2ec 0%, #bcccdc 100%);
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
