/* Custom styles for Stokes Decorating */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #B9D3BB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fba91;
}

/* Selection color */
::selection {
    background: #B9D3BB;
    color: #1c3a27;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 500px;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-forest-600 {
    background-color: #2D5A3D;
}

/* Ensure all interactive elements have pointer cursor */
a, button, select, input, textarea {
    cursor: pointer;
}
a, button {
    cursor: pointer;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238fba91' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(45, 90, 61, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(8px) rotate(-2deg); }
}

/* Apply float to decorative shapes */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-32.right-\[45\%\] {
        animation: float 4s ease-in-out infinite;
    }
    .absolute.top-48.right-\[42\%\] {
        animation: float-reverse 5s ease-in-out infinite;
    }
    .absolute.bottom-40.left-\[10\%\] {
        animation: float 6s ease-in-out infinite;
    }
    .absolute.top-1\/3.left-\[5\%\] {
        animation: float-reverse 4.5s ease-in-out infinite;
    }
}
