/* Cedar Rapids Nutrition — Custom Styles */

/* Gradient hero */
.hero-gradient {
    background: linear-gradient(135deg, #2c401b 0%, #446628 25%, #5c8237 50%, #7da352 75%, #a3bf7e 100%);
    position: relative;
}

/* Floating blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a3bf7e, transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #c7d9b0, transparent);
    bottom: 10%;
    left: -50px;
    animation-delay: -3s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #e3ecd8, transparent);
    top: 40%;
    right: 10%;
    animation-delay: -5s;
}

.blob-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f2f7f0, transparent);
    bottom: -50px;
    right: 30%;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Mobile menu */
#mobileMenu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Hamburger animation */
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 5rem;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #5c8237;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

/* Selection color */
::selection {
    background: #a3bf7e;
    color: #2c401b;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #5c8237;
    outline-offset: 2px;
}

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