/* Custom styles for Grove Town Nutrition */

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

/* Custom focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #d4890a !important;
    box-shadow: 0 0 0 3px rgba(212, 137, 10, 0.15);
}

/* Navbar transitions */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: #d4890a;
}

/* Light navbar (scroll state) */
nav.light .nav-link {
    color: rgba(16, 42, 67, 0.7);
}

nav.light .nav-link:hover {
    color: #b06a06;
}

nav.light .nav-logo-text {
    color: #102a43;
}

nav.light .nav-logo-sub {
    color: rgba(16, 42, 67, 0.6);
}

nav.light .menu-line {
    background: #102a43;
}

/* Hero state */
nav.dark .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

nav.dark .menu-line {
    background: #ffffff;
}

/* Mobile nav links */
.mobile-nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.mobile-nav-link:hover {
    color: #d4890a;
}

/* Service cards */
.service-card {
    background: #ffffff;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

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

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Menu button active state */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}
