/* Custom styles for Ecko Express Concrete */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf9f0;
}

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ensure all text is readable */
.text-white {
    color: #ffffff;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-emerald-800 {
    color: #064e3b;
}

/* Button focus states for accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Mobile menu animation */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.15);
}

/* Service icon animation */
.service-icon {
    transition: transform 0.3s ease;
}

.card-hover:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Ensure proper contrast for all interactive elements */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    border: 2px solid #059669;
    color: #059669;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary:hover.text-white {
    color: #ffffff;
}

.btn-secondary:hover.border-white {
    border-color: #ffffff;
    background: #ffffff;
    color: #059669;
}

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

/* Print styles */
@media print {
    .mobile-menu, .btn-primary, .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
    }
}
