/* Green Thumb Nurseries — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

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

/* Gold shimmer on hover for interactive elements */
a, button { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(6, 14, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
#mobileMenu .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a84c, #dfc06e, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle card hover glow */
.group:hover .group-hover\:shadow-glow {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0ebe0;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060e0f; }
::-webkit-scrollbar-thumb { background: #243844; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1a7a6d; }

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

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