/* Custom styles that complement Tailwind */

/* Thin line accent */
.thin-line {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, #548a42, transparent);
}

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

/* Selection color */
::selection {
    background: rgba(84, 138, 66, 0.2);
    color: #1e1e1b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
    background: #cfcfc6;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8e8e85;
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}
#mobile-menu:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.97) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.04);
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Link underline */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #548a42;
    transition: width 0.3s ease;
}
.link-underline:hover::after {
    width: 100%;
}

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