/* Dentro de static/css/servicos.css */

.servicos-section {
    padding: 50px 0;
    position: relative;
    color: var(--cor-branca);
    text-align: center;
}

.servicos-container {
    width: 90%;
    max-width: 80vw;
    margin: 0 auto;
}


/* Camada de fundo com imagem e overlay escuro */
.servicos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(23, 56, 107, 0.6), rgba(23, 56, 107, 0.6)), url('../images/servicos_background.jpg'); /* Reutilizando a imagem do hero */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Coloca o fundo atrás do conteúdo */
}

.servicos-section .divider {
    width: 50px;
    height: 4px;
    background-color: var(--cor-branca); /* Branco, para contrastar com o fundo escuro */
    margin: 0 auto 25px auto; /* Centraliza o divider */
    border-radius: 2px;
}

.servicos-section h2 {
    font-size: 2.5rem; /* No design o título "Serviços" é menor */
    font-weight: 500;
    text-transform: uppercase; /* Coloca o texto em maiúsculas */
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.servicos-section h3 {
    font-size: 2.8rem; /* Este é o título principal no design */
    font-weight: 700;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.servicos-section .section-subtitle {
    font-size: 1.1rem;
    max-width: 28vw;
    margin: 0 auto 60px auto; /* Aumenta a margem inferior para dar espaço ao grid */
    opacity: 0.9;
}

.servicos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: left;
}

.service-card {
    flex: 0 1 31%;
    max-width: 17vw;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--cor-texto);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card img { /* Estilo para o ícone */
    height: 40px;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.3rem;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}


/* Estilos para o ícone dentro do card */
.service-card i {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 20px;
    color: var(--cor-primaria);
    display: block;
}

/* === Estilos do Popup === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--cor-branca);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

#popup-titulo {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-top: 0;
    margin-bottom: 20px;
}
#popup-descricao p {
    line-height: 1.7;
    color: #555;
}
#popup-icone {
    font-size: 3rem;
    color: var(--cor-primaria);
    margin-bottom: 15px;
}