/* ============================================
   Zgoteverything 2 — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; }

/* Smooth scroll offset for fixed nav */
[id] { scroll-margin-top: 5rem; }

/* Scroll Reveal — progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar shadow on scroll */
#navbar.scrolled {
    box-shadow: 0 1px 12px rgba(30, 69, 30, 0.08);
}

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

/* Selection color */
::selection {
    background-color: #b7dbb7;
    color: #193819;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #b7dbb7;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #86c486;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2d6e2d;
    border-radius: 9999px;
    transition: width 0.2s ease, left 0.2s ease;
}
.nav-link:hover::after {
    width: calc(100% - 16px);
    left: 8px;
}

/* Form input focus ring */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 110, 45, 0.15);
}

/* Image hover zoom container */
.group img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Floating accent card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.floating-card {
    animation: float 3s ease-in-out infinite;
}

/* Dot pattern decoration */
.dot-pattern {
    background-image: radial-gradient(circle, #2d6e2d 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.08;
}
