/* Custom styles for Clean Cut Tree & Stump */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #0fb88a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #99f6de;
    color: #0d4d3a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover tilt effect (subtle) */
.group:hover .group-hover\\:bg-teal-500 {
    transition: background-color 0.3s ease;
}

/* Ensure hero image doesn't shift */
#hero img {
    will-change: transform;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Gallery image hover overlay */
.rounded-3xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 77, 58, 0.1) 0%, transparent 50%);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rounded-3xl.overflow-hidden:hover::after {
    opacity: 1;
}

.rounded-3xl.overflow-hidden {
    position: relative;
}
