/* Custom styles for Freshbin Solutions */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #1A2B4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2C4270;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #0A1628;
}

/* Nav height */
#navbar {
    height: 72px;
}

/* Subtle pattern for hero overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Service card hover lift */
#services .group:hover {
    transform: translateY(-4px);
}
#services .group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gold accent line under section labels */
span[class*="tracking-widest"] {
    position: relative;
}

/* Map hover */
section[class*="h-80"] iframe:hover {
    filter: grayscale(10%);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
