/* Estilização global */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}

/* Cabeçalho */
header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
    width: 250px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

/* Título */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    text-align: center;
    margin: 40px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabela de produtos e serviços */
.table-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

table {
    background-color: #ffffff;
    color: #1f2937;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 1.1rem;
    width: 80%; /* Aumentado de 60% para 80% */
    min-width: 600px; /* Largura mínima para evitar colunas muito estreitas */
    table-layout: fixed; /* Distribui a largura igualmente */
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

caption {
    caption-side: top;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    padding: 15px;
    text-align: center;
}

th {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 150px; /* Largura mínima para cabeçalhos */
}

td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
    min-width: 150px; /* Largura mínima para células */
}

th:hover, td:hover {
    background-color: #f1f5f9;
}

tr:last-child td {
    border-bottom: none;
}

/* Rodapé */
footer {
    display: flex;
    justify-content: space-around; /* Melhor distribuição do espaço */
    align-items: stretch; /* Alinha os itens pela altura total */
    padding: 30px;
    background-color: #1e40af;
    color: #ffffff;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 200px; /* Garante altura mínima para consistência */
}

.footer-info {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center; /* Centraliza verticalmente o texto */
    justify-content: center; /* Centraliza horizontalmente */
    text-align: center;
    min-width: 200px; /* Evita que o texto fique muito comprimido */
}

.footer-mapa {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o mapa */
    justify-content: center; /* Centraliza verticalmente */
    min-width: 200px;
}

.footer-mapa h2 {
    margin: 0 0 15px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.footer-mapa iframe {
    width: 100%;
    max-width: 300px; /* Reduzido para melhor equilíbrio */
    height: 180px;
    border-radius: 10px;
    border: 0;
}

.footer-social {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Centraliza verticalmente os ícones */
    gap: 20px;
    min-width: 200px;
}

.footer-social a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a img:hover,
.footer-social a img:focus {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 30px;
    }
    .footer-info {
        margin-bottom: 20px;
    }
    .footer-mapa {
        margin: 0;
    }
    .footer-social {
        margin-top: 10px;
    }
    .footer-mapa iframe {
        max-width: 100%;
    }
    table {
        width: 90%;
        min-width: 300px;
    }
    th, td {
        min-width: 100px;
        padding: 10px;
    }
}

@media screen and (min-width: 1024px) {
    .footer-info,
    .footer-mapa,
    .footer-social {
        flex: 1;
        max-width: 33%; /* Ajustado para melhor proporção */
    }
}