/* Custom styles for L & S Electric */

html {
    scroll-behavior: smooth;
}

/* Subtle pattern for cream backgrounds */
.bg-cream-50 {
    background-color: #fdfcf8;
    background-image: radial-gradient(circle at 20% 20%, rgba(245, 240, 227, 0.4) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(227, 236, 229, 0.3) 0%, transparent 50%);
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcf8;
}
::-webkit-scrollbar-thumb {
    background: #c5d9c7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #96bc9a;
}

/* Selection color */
::selection {
    background-color: #c5d9c7;
    color: #1c3821;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #46784f;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Service card hover effect */
.group:hover .group-hover\:bg-forest-200 {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.group .w-14 {
    transition: transform 0.3s ease;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(28, 56, 33, 0.08);
}

/* Form input focus animation */
input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

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