/* Custom Styles for Mando's Pool Sales and Services */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background-color: rgba(16, 185, 129, 0.3);
    color: #fefdf8;
}

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

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

/* Service card hover effect */
.group:hover .group-hover\\:bg-emerald-800\\/50 {
    background-color: rgba(4, 120, 87, 0.5);
}

/* Gallery image hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Button press effect */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, a:active {
    transform: scale(0.98);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-serif {
        font-size: clamp(2.5rem, 3.5vw, 4rem);
    }
}

@media (min-width: 1025px) {
    .font-serif {
        font-size: clamp(3rem, 4vw, 5rem);
    }
}

/* Loading state for form submission */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #fefdf8;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Print styles */
@media print {
    nav, button, .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-dark-900, .bg-dark-800, .bg-dark-700 {
        background: white !important;
        color: black !important;
    }
}
