/* Custom Styles for MALTETEC */

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

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease-in-out;
}

img:not([src]) {
    opacity: 0;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Button hover effects */
button,
a[class*="bg-"] {
    transition: all 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a,
button {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

/* Hover lift effect for cards */
.hover\:shadow-xl:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.active {
    max-height: 500px;
}

/* Success message styles */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

/* Tamanho da logo */
.logo-img {
  max-width: 300px;
  height: auto;
  display: block;
}

/* Tamanho do mascote */
.hero-img {
    max-width: 180px !important;
    width: 180px !important;
    cursor: pointer;    
}

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

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

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

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

/* Print styles */
@media print {
    header,
    footer,
    #mobileMenuBtn {
        display: none;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Responsive iframe */
iframe {
    max-width: 100%;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #10b981;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation delay */
.animate-pulse:nth-child(2) {
    animation-delay: 0.5s;
}
