/* =====================================================
   destinos.css – Página de Empresas/Viações
   ===================================================== */

/* Hero interno da página */
.page-hero {
    background-color: #f5f5f5;
    padding: 70px 20px 60px;
    text-align: center;
}

.page-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.page-hero-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.page-hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

/* Seção do grid de empresas */
.empresas-section {
    background-color: var(--white);
    padding: 70px 20px 80px;
}

.empresas-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid responsivo */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 36px;
}

/* Card de cada empresa */
.empresa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.empresa-card:hover {
    transform: translateY(-4px);
}

/* Área da imagem/logo */
.empresa-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
    transition: box-shadow 0.3s ease;
}

.empresa-card:hover .empresa-card-img {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.empresa-card-img img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.empresa-card:hover .empresa-card-img img {
    transform: scale(1.04);
}

/* Placeholder quando não há logo */
.empresa-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.empresa-placeholder span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
}

/* Informações da empresa */
.empresa-card-body {
    width: 100%;
}

.empresa-nome {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.empresa-guiche {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.empresa-expediente {
    font-size: 0.82rem;
    color: #888;
    margin-top: 4px;
    line-height: 1.5;
    white-space: pre-line;
}

.empresa-telefone {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.empresa-telefone a {
    color: var(--text-muted);
    text-decoration: none;
}

.empresa-telefone a:hover {
    color: var(--primary-color);
}

/* Estado vazio */
.empresas-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empresas-empty-icon svg {
    width: 60px;
    height: 60px;
    stroke: #ccc;
    margin-bottom: 20px;
}

.empresas-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #aaa;
    margin-bottom: 10px;
}

.empresas-empty p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2rem;
    }

    .empresas-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .empresas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .page-hero-title {
        font-size: 1.7rem;
    }
}
