/* Estilos personalizados para responsividade */

/* Controle de exibição do título em diferentes tamanhos de tela */
.site-title {
    display: inline-block;
}

.site-title-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .site-title {
        display: none;
    }
    
    .site-title-mobile {
        display: inline-block;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .site-logo a {
        font-size: 1.2rem !important;
    }
}

/* Melhorias no menu móvel */
.site-mobile-menu {
    width: 85%;
    max-width: 300px;
    overflow-y: auto;
}

.site-mobile-menu .site-nav-wrap .nav-link.pt,
.site-mobile-menu .site-nav-wrap .nav-link.en {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 5px;
}

/* Esconde um idioma baseado na classe ativa no body */
body.lang-pt .site-nav-wrap .nav-link.en,
body.lang-en .site-nav-wrap .nav-link.pt {
    display: none;
}

/* Melhora o botão de toggle do menu */
.site-menu-toggle {
    display: inline-block;
    padding: 5px;
    transition: all 0.3s ease;
}

.site-menu-toggle:hover {
    opacity: 0.8;
}

/* Ajustes para os ícones do menu */
.icon-bars, .icon-times {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.icon-bars:hover, .icon-times:hover {
    background-color: rgba(255, 255, 255, 1) !important;
}

/* Ajustes para o menu quando está fixo no topo */
.sticky-wrapper.is-sticky .site-menu-toggle .icon-bars {
    color: #000 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.sticky-wrapper.is-sticky .site-mobile-menu-close .icon-times {
    color: #000 !important;
    background-color: rgba(240, 240, 240, 0.9) !important;
}

/* Melhorias na transição do menu móvel */
.site-mobile-menu {
    transition: transform 0.4s ease;
}

/* Ajustes para telas pequenas */
@media (max-width: 767.98px) {
    .site-mobile-menu .site-nav-wrap > li > a {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    .site-mobile-menu .site-mobile-menu-header .site-mobile-menu-close {
        margin-top: 0;
        padding: 10px;
    }
    
    .site-mobile-menu .site-mobile-menu-body {
        padding-top: 20px;
    }
    
    .site-mobile-menu .btn-group {
        margin-left: 15px;
    }
}

/* Ajustes para o botão de fechar o menu */
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-close {
    padding: 5px;
}

/* Ajustes para o menu em modo escuro ou sobre imagens */
.site-blocks-cover .site-menu-toggle .icon-bars {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ===== DESIGN ENHANCEMENTS ===== */

/* Hero Section Enhancements */
.hero-enhanced {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 102, 204, 0.6) 50%, rgba(0, 153, 255, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.hero-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Enhancements */
.section-enhanced {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.enhanced-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
}

/* Image Enhancements */
.enhanced-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.enhanced-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.enhanced-image img {
    transition: transform 0.3s ease;
}

.enhanced-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-image:hover .image-overlay {
    opacity: 1;
}

/* Content Cards */
.content-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Services Cards */
.services-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.services-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007bff, #0056b3, #00a8ff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-card:hover .service-icon::after {
    opacity: 1;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-link:hover {
    background: #e9ecef;
    transform: scale(1.05);
    text-decoration: none;
}

.partner-logo {
    max-width: 60px;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.service-link:hover .partner-logo {
    filter: grayscale(0%);
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Background Sections */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-enhanced {
        padding: 60px 0;
    }
    
    .services-card,
    .content-card {
        padding: 1.5rem;
    }
    
    .hero-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .services-card {
        margin-bottom: 2rem;
    }
}

/* Disable AOS animations on service cards for mobile */
@media (max-width: 767px) {
    .service-card-wrapper[data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .service-card-wrapper[data-aos].aos-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ensure all service cards are visible */
.service-card-wrapper {
    opacity: 1;
    visibility: visible;
}
