/* Estilos adicionais para o serviço modal */
.service-modal-content {
    max-width: 800px;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-description {
    line-height: 1.6;
}

/* Placeholder para imagens */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #004b7a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animações adicionais */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ajustes para toque em dispositivos móveis */
@media (hover: none) {
    .service-item:hover .service-hover-effect {
        width: 0;
    }
    
    .service-item:active .service-hover-effect {
        width: 100%;
    }
    
    .btn-entrar:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-entrar:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px var(--shadow-color);
    }
}

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Melhorias para impressão */
@media print {
    .background-animation,
    .auth-buttons,
    .modal,
    .service-hover-effect {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    header, footer, main {
        color: black;
    }
    
    .logo img, .animated-logo {
        filter: brightness(0);
    }
}
