/* Custom styles for True Directional Services */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

/* Nav link hover underline animation */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Custom selection color */
::selection {
    background: rgba(27, 67, 50, 0.2);
    color: inherit;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

/* Button hover lift */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Subtle gradient for service cards on hover */
.group:hover .bg-forest-50 {
    background: #1B4332 !important;
}

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
