/* Custom styles for Rainbow Ice Cream and Novelty */

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

/* Selection color */
::selection {
    background-color: #166534;
    color: #fdf9f0;
}

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

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Decorative divider */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #166534, transparent);
}

/* Ice cream card hover */
.ice-cream-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ice-cream-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20, 83, 45, 0.15);
}

/* Emerald button */
.btn-emerald {
    background: linear-gradient(135deg, #166534, #14532d);
    transition: all 0.3s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 83, 45, 0.3);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(253, 249, 240, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.navbar-scrolled .nav-logo {
    color: #14532d !important;
}

.navbar-scrolled .nav-logo svg {
    color: #14532d !important;
}

/* Scroll reveal for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #e5e7eb;
}

/* Print styles */
@media print {
    .fixed,
    .animate-bounce {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
