/* Estilos Gerais */
header {
    padding: 10px 0; /* Reduz o padding superior e inferior do header */
}
:root {
    --primary-color: #001f3f; /* Azul Escuro */
    --secondary-color: #FFD700; /* Dourado */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; /* Mantém o padding padrão do container */
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Carrossel */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2); /* Ainda mais transparente */
    color: var(--white);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.3em;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


.carousel-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.4); /* Ainda mais transparente no hover */
    transform: translateY(-50%) scale(1.05); /* Zoom mais sutil */
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0; /* Adiciona um padding para o carrossel, se necessário */
}

.carousel-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Evita que a sombra do card seja cortada */
    margin-bottom: -20px; /* Compensa o padding-bottom */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* Esconde a scrollbar no Webkit */
}

.service-card {
    flex: 0 0 auto;
    width: calc(33.333% - 20px); /* 3 cards visíveis no desktop */
    margin: 0 10px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.service-card .card-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    min-height: 3em; /* Garante altura mínima para títulos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .card-summary {
    color: #555;
    font-size: 1em;
    min-height: 4.5em; /* Garante altura mínima para resumos */
}

/* Destaque para o CARD 4 */
.highlight-card {
    background: linear-gradient(45deg, var(--primary-color), #003366);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(20deg);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-card .card-title,
.highlight-card .card-summary {
    color: var(--white);
}

/* Indicadores do Carrossel */






/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* 45% escurecido */
    backdrop-filter: blur(5px); /* Backdrop blur */
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95); /* Caixa branca translúcida */
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px var(--shadow-medium);
    position: relative;
    z-index: 1001;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.is-visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.modal-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-details ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #444;
}

.modal-details ul li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.modal-cta {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-cta:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Responsividade */
/* Tablet: 2 cards visíveis */
@media (max-width: 1024px) {
    .service-card {
        width: calc(50% - 20px); /* 2 cards visíveis */
    }
}

/* Mobile: 1 card visível */
@media (max-width: 768px) {
    .service-card {
        width: calc(100% - 20px); /* 1 card visível */
    }

    .section-title {
        font-size: 2em;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5em;
    }
}
