@charset "UTF-8";

/* CSS LOGISTAS EXTERNA GCL - MODERNIZED */
:root {
    /* Paleta de Cores */
    --cor-azul: #0066cc;
    --cor-roxo: #8a2be2;
    --cor-laranja: #ff6600;
    --cor-amarelo: #ffcc00;

    --cor-fundo: #f8f9fa;
    --cor-texto: #2d3436;
    --cor-texto-light: #636e72;
    --cor-borda: #e0e0e0;
    --bg-header: #ffffff;
    --bg-footer: #2d3436;
    --texto-footer: #dfe6e9;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Header Styling --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.capa-empresa-anuncios {
    display: flex;
    max-width: 1280px;
    height: 100px;
    margin: 10px auto;
    background: linear-gradient(135deg, var(--cor-azul), var(--cor-roxo));
    border-radius: var(--border-radius);
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.logo-gcl-empresas {
    flex: 0 0 180px;
}

.logo-gcl-empresas img {
    max-height: 100px;
    width: auto;
    filter: brightness(1.1);
}

.banner-rotativo-large {
    flex: 0 0 728px;
    height: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-rotativo-large .carousel {
    width: 728px;
}

.banner-rotativo-large img {
    width: 728px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-cadastre {
    flex: 0 0 160px;
    display: flex;
    justify-content: flex-end;
}

.btn-cadastre button {
    background-color: var(--cor-laranja) !important;
    color: white !important;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    line-height: 1.2;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
}

.btn-cadastre button a {
    color: white !important;
    text-decoration: none;
    display: block;
}

.btn-cadastre button:hover {
    background-color: #e65c00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    cursor: pointer;
}

/* --- Main Layout --- */
.container-custom {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Sidebar */
.sidebar-categorias {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.sidebar-title {
    border-bottom: 2px solid var(--cor-laranja);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.sidebar-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--cor-texto);
}

.categoria-list-ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.categoria-list-ul li:last-child {
    border-bottom: none;
}

.categoria-list-ul a {
    color: var(--cor-texto-light);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.categoria-list-ul a:hover {
    color: var(--cor-laranja);
    padding-left: 5px;
}

/* Recent Mini Cards */
.mini-card-recente {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.mini-card-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card-texto h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--cor-texto);
}

.mini-card-texto p {
    font-size: 0.8rem;
    color: var(--cor-texto-light);
    margin: 0;
}

/* Main Content */
.content-header h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content-header h3 span {
    color: var(--cor-laranja);
    font-weight: 800;
}

.empresas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.empresa-card {
    background: #fff;
    border-radius: var(--border-radius);
    display: flex;
    min-height: 280px;
    height: auto;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.empresa-card-img {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.empresa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empresa-card-texto {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    /* Prevents flex items from overflowing */
}

.empresa-card-texto p {
    color: var(--cor-texto-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empresa-card-texto h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--cor-azul);
    line-height: 1.2;
}


.btn-ver-mais {
    display: inline-block;
    padding: 12px 28px;
    background: var(--cor-azul);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
    align-self: flex-start;
    width: fit-content;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.btn-ver-mais:hover {
    background: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

/* --- Footer Styling --- */
.empresas-principal-footer-gr {
    background-color: var(--bg-footer);
    color: var(--texto-footer);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-radius: 20px 20px 0 0;
}

.empresas-principal-footer {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    align-items: center;
    padding: 0 15px;
}

.empresas-principal-redes {
    text-align: center;
}

.empresas-principal-redes h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.empresas-principal-redes a {
    display: inline-block;
    margin: 0 8px;
    transition: transform 0.3s;
}

.empresas-principal-redes a:hover {
    transform: scale(1.1);
}

.empresas-principal-redes img {
    width: 32px;
}

.empresas-principal-footer-banner {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.empresas-principal-footer-contato {
    text-align: right;
}

.empresas-principal-footer-contato h4 {
    color: var(--cor-laranja);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.empresas-principal-footer-contato p {
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .container-custom {
        grid-template-columns: 1fr;
    }

    .sidebar-categorias {
        display: none;
        /* Hide sidebar on smaller screens as requested */
    }

    .empresas-principal-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .empresas-principal-footer-contato {
        text-align: center;
    }

    .empresa-card {
        flex-direction: column;
        height: auto;
    }

    .empresa-card-img {
        width: 100%;
        height: 200px;
    }

    .capa-empresa-anuncios {
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .logo-gcl-empresas {
        flex: 0 0 auto;
        margin-bottom: 10px;
    }

    .banner-rotativo-large {
        display: none;
        /* Hide large banner */
    }

    .btn-cadastre {
        flex: 0 0 auto;
        width: 100%;
    }

    .empresas-principal-footer-banner {
        display: none;
        /* Hide footer banner if it breaks layout */
    }
}

@media (max-width: 768px) {
    .empresa-card-texto h3 {
        font-size: 1.1rem;
    }

    .empresa-card-texto p {
        font-size: 0.85rem;
    }

    .content-header h3 {
        font-size: 1.4rem;
    }

    .btn-cadastre {
        width: 100%;
        justify-content: center;
    }

    .btn-cadastre>a {
        width: 100%;
        display: block;
        text-align: center;
    }

    .btn-cadastre button {
        width: 100%;
        margin-top: 10px;
    }

    .empresas-principal-footer {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .empresas-principal-footer-contato {
        text-align: center;
        margin-top: 20px;
    }
}