/**
 * Estilos personalizados para o site MWM Softwares
 */

/**
 * MWM Softwares - Estilos com Paleta Refinada
 * Nova paleta: Azul #0056b3, Preto #1a1a1a, Cinza #f1f1f1, Verde #1e7e34
 */

:root {
    /* Nova Paleta de Cores */
    --mwm-blue: #0056b3;
    --mwm-blue-dark: #003d7a;
    --mwm-blue-light: #0066cc;
    --mwm-black: #1a1a1a;
    --mwm-white: #ffffff;
    --mwm-gray-light: #f1f1f1;
    --mwm-gray-medium: #6c757d;
    --mwm-gray-dark: #343a40;
    --mwm-success: #1e7e34;
    --mwm-success-light: #28a745;
}

/* Estilos Gerais */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--mwm-black);
    padding-top: 56px; /* Altura da navbar fixa */
    line-height: 1.6;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--mwm-blue), var(--mwm-blue-light));
    border-radius: 2px;
}

.section-sub-title {
    color: var(--mwm-blue);
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.webp') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 150px 0;
    margin-bottom: 30px;
}

/* Serviços Melhorados */
.service-box {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.15);
    border-color: var(--mwm-blue);
}

.service-box .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--mwm-gray-light) 0%, var(--mwm-white) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-box:hover .icon-box {
    background: linear-gradient(135deg, var(--mwm-blue-light) 0%, var(--mwm-blue) 100%);
    transform: scale(1.1);
}

.service-box .icon-box i {
    color: var(--mwm-blue);
    transition: color 0.3s ease;
}

.service-box:hover .icon-box i {
    color: var(--mwm-white);
}

/* Portfólio */
.portfolio-filters {
    margin-bottom: 30px;
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-item .card {
    transition: all 0.3s ease;
}

.portfolio-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.technologies .badge {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Testemunhos */
.testimonial {
    position: relative;
    padding: 20px;
    margin: 15px;
}

/* Página de Contato */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Proporção 16:9 */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Página Sobre */
.tech-icons i {
    color: var(--mwm-blue);
    margin: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
}

/* Animações */
.animate__animated {
    animation-duration: 1.5s;
}

/* Formulários */
.form-control:focus {
    border-color: var(--mwm-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Botões Melhorados */
.btn {
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mwm-blue) 0%, var(--mwm-blue-light) 100%);
    color: var(--mwm-white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    background: linear-gradient(135deg, var(--mwm-blue-dark) 0%, var(--mwm-blue) 100%);
    color: var(--mwm-white);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Corrigir contraste do botão outline-primary */
.btn-outline-primary {
    color: var(--mwm-blue);
    border: 2px solid var(--mwm-blue);
    background-color: transparent;
    padding: 12px 28px;
}

.btn-outline-primary:hover {
    background-color: var(--mwm-blue);
    color: var(--mwm-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* Melhorar contraste para textos secundários */
.text-secondary {
    color: #495057 !important;
}

/* Melhorar contraste do rodapé */
footer .text-secondary {
    color: var(--mwm-black) !important;
}

.btn-success {
    background-color: var(--mwm-success);
    color: #ffffff;
}

.btn-success:hover {
    background-color: #1e7e34;
    color: #ffffff;
}

/* Breadcrumbs mais visíveis */
.breadcrumb {
    padding: 8px 0;
    margin-top: 76px;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 0;
    font-size: 14px;
}

.breadcrumb-item.active {
    color: #495057;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
    color: #495057;
}

/* Melhorias na navegação */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
}

.nav-link.active {
    font-weight: 700;
    color: #fff !important;
    border-bottom: 2px solid #fff;
}

.navbar-brand {
    font-weight: 700;
}

/* Rodapé mais organizado com melhor contraste */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    text-align: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0056b3;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Nav categories no rodapé com melhor contraste */
.nav-category h6 {
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 8px;
    color: var(--mwm-black);
}

.nav-category ul li {
    padding: 3px 0;
}

.nav-category ul li a {
    transition: all 0.2s ease;
    color: #495057 !important;
}

.nav-category ul li a:hover {
    padding-left: 5px;
    color: #0056b3 !important;
}

/* Melhorar contraste na seção CTA */
.bg-primary.text-white {
    background: linear-gradient(135deg, var(--mwm-blue) 0%, var(--mwm-blue-light) 100%) !important;
}

.bg-primary.text-white .btn-light {
    color: #0056b3 !important;
    font-weight: 600;
}

/* Melhorar contraste nos cards */
.card {
    border-color: #dee2e6;
}

.card-title {
    color: var(--mwm-black);
}

.card-text {
    color: #343a40;
}

/* Garantir contraste adequado em cards de serviços */
.service-box h3, .service-card h3 {
    color: var(--mwm-black);
}

/* Melhorar visibilidade dos ícones */
.fa-4x, .fa-3x, .fa-2x {
    color: #0056b3;
}

/* VER PORTFÓLIO COMPLETO button */
a.btn-outline-primary.VER.PORTFÓLIO.COMPLETO {
    color: #0056b3;
    border: 2px solid #0056b3;
    background-color: #ffffff;
    font-weight: 600;
}

a.btn-outline-primary.VER.PORTFÓLIO.COMPLETO:hover {
    color: #ffffff;
    background-color: #0056b3;
}

/* SAIBA MAIS buttons */
a.btn.btn-outline-primary.mt-3.SAIBA.MAIS {
    color: #0056b3;
    border: 2px solid #0056b3;
    background-color: #ffffff;
    font-weight: 600;
}

a.btn.btn-outline-primary.mt-3.SAIBA.MAIS:hover {
    color: #ffffff;
    background-color: #0056b3;
}

/* ===== MELHORIAS DE USABILIDADE E NAVEGAÇÃO ===== */
 
/* Feedback visual para elementos clicáveis */
.card, .clickable, .btn, .nav-link {
    transition: all 0.3s ease;
}

.card:hover, .clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:active, .nav-link:active {
    transform: translateY(1px);
}

/* Destaque para elementos clicáveis próximos */
.highlight-clickable {
    animation: pulse-highlight 1.5s;
    outline: 3px solid rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
    z-index: 9;
    position: relative;
}

@keyframes pulse-highlight {
    0% { outline-color: rgba(0, 123, 255, 0.7); box-shadow: 0 0 0 rgba(0, 123, 255, 0.7); }
    50% { outline-color: rgba(0, 123, 255, 0.9); box-shadow: 0 0 20px rgba(0, 123, 255, 0.9); }
    100% { outline-color: rgba(0, 123, 255, 0.7); box-shadow: 0 0 0 rgba(0, 123, 255, 0.7); }
}

/* Destaque para seções alvo de rolagem */
.highlight-section {
    animation: section-highlight 1.5s;
}

@keyframes section-highlight {
    0% { background-color: transparent; }
    30% { background-color: rgba(0, 123, 255, 0.1); }
    100% { background-color: transparent; }
}

/* Melhorar espaçamento */
section {
    padding: 60px 0;
}

/* Animação para carregamento lazy */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ===== ANIMAÇÕES E EFEITOS ===== */

/* Efeito de pulsação para call-to-actions */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Efeito de entrada para elementos */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* Tornar cards e elementos interativos mais claros */
.card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    cursor: pointer;
}

.card-title {
    font-weight: 600;
}

.clickable {
    cursor: pointer;
}

/* Cores e contrastes melhores para links */
a {
    color: #0056b3;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d7a;
    text-decoration: none;
}

/* Botões mais visíveis com contraste adequado */
.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background-color: #0056b3;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #003d7a;
    color: #ffffff;
}

/* Corrigir contraste do botão outline-primary */
.btn-outline-primary {
    color: #0056b3;
    border: 2px solid #0056b3;
    background-color: #ffffff;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
    color: #ffffff;
}

/* Melhorar contraste para textos secundários */
.text-secondary {
    color: #495057 !important;
}

/* Melhorar contraste do rodapé */
footer .text-secondary {
    color: var(--mwm-black) !important;
}

.btn-success {
    background-color: var(--mwm-success);
    color: #ffffff;
}

.btn-success:hover {
    background-color: #1e7e34;
    color: #ffffff;
}

/* Breadcrumbs mais visíveis */
.breadcrumb {
    padding: 8px 0;
    margin-top: 76px;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 0;
    font-size: 14px;
}

.breadcrumb-item.active {
    color: #495057;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
    color: #495057;
}

/* Melhorias na navegação */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
}

.nav-link.active {
    font-weight: 700;
    color: #fff !important;
    border-bottom: 2px solid #fff;
}

.navbar-brand {
    font-weight: 700;
}

/* Rodapé mais organizado com melhor contraste */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    text-align: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0056b3;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Nav categories no rodapé com melhor contraste */
.nav-category h6 {
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 8px;
    color: var(--mwm-black);
}

.nav-category ul li {
    padding: 3px 0;
}

.nav-category ul li a {
    transition: all 0.2s ease;
    color: #495057 !important;
}

.nav-category ul li a:hover {
    padding-left: 5px;
    color: #0056b3 !important;
}

/* Melhorar contraste na seção CTA */
.bg-primary.text-white {
    background: linear-gradient(135deg, var(--mwm-blue) 0%, var(--mwm-blue-light) 100%) !important;
}

.bg-primary.text-white .btn-light {
    color: #0056b3 !important;
    font-weight: 600;
}

/* Melhorar contraste nos cards */
.card {
    border-color: #dee2e6;
}

.card-title {
    color: var(--mwm-black);
}

.card-text {
    color: #343a40;
}

/* Garantir contraste adequado em cards de serviços */
.service-box h3, .service-card h3 {
    color: var(--mwm-black);
}

/* Melhorar visibilidade dos ícones */
.fa-4x, .fa-3x, .fa-2x {
    color: #0056b3;
}

/* VER PORTFÓLIO COMPLETO button */
a.btn-outline-primary.VER.PORTFÓLIO.COMPLETO {
    color: #0056b3;
    border: 2px solid #0056b3;
    background-color: #ffffff;
    font-weight: 600;
}

a.btn-outline-primary.VER.PORTFÓLIO.COMPLETO:hover {
    color: #ffffff;
    background-color: #0056b3;
}

/* SAIBA MAIS buttons */
a.btn.btn-outline-primary.mt-3.SAIBA.MAIS {
    color: #0056b3;
    border: 2px solid #0056b3;
    background-color: #ffffff;
    font-weight: 600;
}

a.btn.btn-outline-primary.mt-3.SAIBA.MAIS:hover {
    color: #ffffff;
    background-color: #0056b3;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 2, 2, 0.60);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Botão WhatsApp Flutuante Melhorado */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--mwm-success) 0%, #25d366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 126, 52, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    color: var(--mwm-white);
    font-size: 1.5rem;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 126, 52, 0.6);
    color: var(--mwm-white);
    text-decoration: none;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(30, 126, 52, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(30, 126, 52, 0.6);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}
