/* Custom styles for Green Frog Nursery */

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

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(42, 84, 42, 0.08);
}

.navbar-scrolled .nav-text {
    color: #1f3e1f;
}

.navbar-scrolled .nav-link {
    color: #356b35;
}

.navbar-scrolled .nav-link:hover {
    color: #4a8f4a;
}

.navbar-scrolled .menu-line {
    background: #1f3e1f;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle line animations */
.border-t {
    border-top-color: rgba(153, 199, 153, 0.3);
}

/* Custom selection color */
::selection {
    background: rgba(74, 143, 74, 0.2);
    color: #1f3e1f;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

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

/* Image aspect ratio helpers */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
