/* Custom styles beyond Tailwind */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: rgba(6, 78, 59, 0.7) !important;
}

.nav-scrolled .font-display {
    color: #064E3B !important;
}

/* Mobile menu animations */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.25rem;
}

/* Scroll reveal base - content always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply animation styles when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .js-enabled .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

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

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064E3B;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #F2DDB8;
}
