/* ==========================================================================
   CONFIGURAÇÕES GERAIS
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Open Sans', sans-serif; 
    background: #f8f9fa; 
    color: #333; 
    overflow-x: hidden; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================================================
   HEADER (Topo Azul e Menu)
   ========================================================================== */
.header-top-full { 
    background: #1c2d3f; 
    width: 100%; 
}

.header-top-content { 
    color: white; 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 20px; 
    font-size: 13px; 
}

.header-container { 
    background: #d0c080; 
    padding: 15px 0; 
    border-bottom: 2px solid #bba65a; 
}

.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-list { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
}

.nav-list a { 
    text-decoration: none; 
    color: #1c2d3f; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px; 
}

/* SUBMENU (DROPDOWN) */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    top: 100%;
    border-radius: 0 0 4px 4px;
}
.dropdown-content li a {
    color: #1c2d3f !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none;
    border-bottom: 1px solid #eee;
}
.dropdown-content li a:hover { background-color: #f1f1f1; }
.dropdown:hover .dropdown-content { display: block; }

/* Espaçamento padrão para o conteúdo das páginas internas */
.main-content {
    padding-top: 80px;    /* Espaço em relação ao cabeçalho */
    padding-bottom: 80px; /* Espaço em relação ao mapa/rodapé */
    min-height: 50vh;     /* Garante que o rodapé não suba se houver pouco texto */
}

/* ==========================================================================
   POP-UP (MODAL) - COM FONTES MAIORES
   ========================================================================== */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 99999; /* Z-index altíssimo para ficar na frente de tudo */
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.8); 
    align-items: center; 
    justify-content: center; 
}

.modal-content { 
    background: white; 
    padding: 50px; 
    border-radius: 15px; 
    max-width: 650px; 
    text-align: center; 
    position: relative; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content h2 { 
    font-size: 36px; /* Título bem grande */
    color: #1c2d3f;
    margin-bottom: 25px;
    font-weight: 800;
}

.modal-content p { 
    font-size: 24px; /* Texto do aviso bem legível */
    line-height: 1.4;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.close-button { 
    position: absolute; 
    right: 20px; top: 15px; 
    font-size: 35px; 
    cursor: pointer;
    color: #999;
}

/* ==========================================================================
   SEÇÕES COM ESPAÇAMENTO 
   ========================================================================== */

/* ESPAÇO NA SEÇÃO DE CONSULTAS */
.avisos-consultas-grid { 
    margin: 60px 0; /* 60px de espaço em cima e embaixo */
}

/* ESPAÇO NA SEÇÃO DE LINKS ÚTEIS */
.useful-links { 
    margin: 80px 0; /* Espaço maior para separar bem as seções */
}

/* ESPAÇO NA SEÇÃO DE MAPA E INFO */
.location-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    margin: 60px 0 100px 0; /* 60px em cima e 100px embaixo para não colar no footer */
    background: white; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

/* ==========================================================================
   DETALHES DOS BLOCOS (Cards, Botões e Carrossel)
   ========================================================================== */
.card-consultas { 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    border-top: 6px solid #1c2d3f; 
    text-align: center; 
}

.btn-group { display: flex; gap: 15px; margin: 25px 0; }

.btn-main { 
    flex: 1; 
    padding: 15px; 
    background: #1c2d3f; 
    color: white; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px; 
    font-weight: bold; 
    transition: 0.3s; 
}

.btn-main:hover { background: #d0c080; color: #1c2d3f; }

.carousel-container { 
    width: 100%; 
    overflow: hidden; 
    background: #fff; 
    padding: 30px 0; 
}

.links-scroll { display: flex; gap: 40px; overflow-x: hidden; }

.link-box { 
    min-width: 200px; 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
    text-decoration: none; 
    color: #333; 
    border: 1px solid #eee; 
}

.link-box img { height: 50px; margin-bottom: 10px; }

.info-box { background: #1c2d3f; color: white; padding: 40px; }
.info-box h3 { color: #d0c080; margin-bottom: 20px; }
.info-box hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 20px 0; }

.title-center { text-align: center; margin-bottom: 40px; color: #1c2d3f; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-dark { 
    background: #111; 
    color: #777; 
    padding: 40px 0; 
    text-align: center; 
}

/* ==========================================================================
   RESPONSIVIDADE (Celulares)
   ========================================================================== */
@media (max-width: 900px) {
    .header-top-content { flex-direction: column; text-align: center; gap: 5px; }
    .nav-wrapper { flex-direction: column; gap: 15px; }
    .location-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .avisos-consultas-grid, .useful-links { margin: 40px 0; }
}


/* ==========================================================================
   NOVA GRADE DE SERVIÇOS 
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0; /* Um pouco mais de espaço */
}

.service-item {
    text-align: center; /* Centraliza tudo como na foto de referência */
    padding: 20px;
    background: #fff; /* Fundo branco para destacar */
    transition: 0.3s;
}

.service-item img {
    width: 100%;
    height: 200px; /* Altura fixa para ficarem iguais */
    object-fit: cover; /* Corta a imagem para preencher o espaço sem esticar */
    margin-bottom: 20px;
    filter: grayscale(100%); /* Deixa preto e branco */
    transition: 0.5s;
    border-radius: 4px;
}

.service-item:hover img {
    filter: grayscale(0%); /* Cor ao passar o mouse */
}

.service-item h4 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #1c2d3f;
}

.service-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
}

.btn-service {
    display: inline-block;
    background: #1c2d3f; /* Azul dos botões de consulta */
    color: white !important;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-service:hover {
    background: #d0c080; /* Dourado do cabeçalho */
    color: #1c2d3f !important; /* Texto volta para o azul escuro para dar contraste */
    transform: translateY(-3px); /* Leve pulinho para cima */
}

/* TÍTULO: Também pode mudar de cor para interagir com o usuário */
.service-item h4 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #1c2d3f;
    transition: 0.3s;
}

.service-item:hover h4 {
    color: #d0c080; /* O título também brilha em dourado no hover */
}

/* Responsividade para celular */
@media (max-width: 850px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Estilização da Tabela de Procedimentos */
.tabela-procedimentos {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

.tabela-procedimentos thead tr {
    background-color: #1c2d3f;
    color: #ffffff;
    font-weight: bold;
}

.tabela-procedimentos th, 
.tabela-procedimentos td {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.tabela-procedimentos tbody tr:hover {
    background-color: #f9f6e8; /* Leve dourado ao passar o mouse */
}

.tabela-procedimentos td strong {
    color: #1c2d3f;
}

/* Responsividade para a tabela no celular */
@media (max-width: 600px) {
    .tabela-procedimentos {
        font-size: 14px;
    }
    .tabela-procedimentos th, .tabela-procedimentos td {
        padding: 10px;
    }
}