@charset "UTF-8";

/* CSS EXTERNA MODERNIZED - GCL */
:root {
    --cor-azul: #0066cc;
    --cor-roxo: #8a2be2;
    --cor-laranja: #ff6600;
    --cor-fundo: #f0f2f5;
    --cor-texto: #2c3e50;
    --cor-texto-light: #7f8c8d;
    --bg-header: #fff;
    --bg-footer: #2d3436;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
}

/* --- Header & Layout --- */
.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);
}

.logo-gcl-empresas {
    flex: 0 0 180px;
}

.logo-gcl-empresas img {
    max-height: 100px;
    width: auto;
}

.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);
}

header h2,
header p {
    text-align: center;
    max-width: 800px;
    margin: 10px auto;
}

/* --- Hero Section --- */
.company-hero {
    max-width: 1280px;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 30px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.company-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 0;
    color: white;
    text-align: center;
}

.company-title-overlay h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* --- Main Layout --- */
.container-custom {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

/* Cards */
.card-section {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.card-header {
    border-bottom: 2px solid var(--cor-laranja);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Bio */
.card-body p {
    color: var(--cor-texto-light) !important;
    text-align: left !important;
    font-size: 1.05rem;
}

/* Working Hours */
.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.hours-list li:last-child {
    border-bottom: none;
}

.order-info {
    margin-top: 15px;
    background: #e8f5e9;
    padding: 15px !important;
    border-radius: 8px;
    color: #2e7d32;
    display: block !important;
    text-align: center;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sidebar --- */
.sidebar-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    border-left: 4px solid var(--cor-azul);
    padding-left: 10px;
    margin-bottom: 15px;
}

/* Social */
.social-icons {
    display: flex;
    justify-content: space-around;
}

.social-icons img {
    width: 35px;
    transition: 0.2s;
}

.social-icons img:hover {
    transform: translateY(-3px);
}

/* Categories List */
.cat-list {
    list-style: none;
    padding: 0;
}

.cat-list a {
    display: block;
    padding: 8px 0;
    color: var(--cor-texto-light);
    text-decoration: none;
    transition: 0.2s;
}

.cat-list a:hover {
    color: var(--cor-azul);
    padding-left: 5px;
}

/* Recent Items Sidebar */
.recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-item h5 {
    font-size: 0.95rem;
    margin: 0;
}

.recent-item p {
    font-size: 0.8rem;
    color: var(--cor-texto-light);
    margin: 0;
}

/* --- Footer --- */
.empresas-principal-footer-gr {
    max-width: 1280px;
    background-color: var(--bg-footer);
    color: #fff;
    padding: 50px 0 20px;
    border-radius: 30px 30px 0 0;
    margin: 50px auto 10px auto;
}

.empresas-principal-footer {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 40px;
    align-items: center;
    padding: 0 15px;
}

.empresas-principal-redes {
    text-align: center;
}

.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-banner img {
    border-radius: 8px;
    width: 100%;
}

.empresas-principal-footer-contato {
    text-align: right;
}

.empresas-principal-footer-contato h4 {
    color: var(--cor-laranja);
    margin-bottom: 5px;
}

.empresas-principal-footer-contato p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- Responsive --- */
/* --- Responsive --- */
@media (max-width: 992px) {
    .container-custom {
        grid-template-columns: 1fr;
    }

    .company-title-overlay h1 {
        font-size: 2rem;
    }

    .empresas-principal-footer {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-bottom: 30px;
    }

    .empresas-principal-footer>div {
        width: 100%;
        max-width: 100%;
    }

    .empresas-principal-footer-contato {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container-custom {
        display: block;
        /* Switch from grid to block for simpler stacking */
        padding: 0 15px;
    }

    .capa-empresa-anuncios {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .logo-gcl-empresas {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .logo-gcl-empresas img {
        max-height: 80px;
        margin: 0 auto;
    }

    .banner-rotativo-large {
        display: none;
    }

    .btn-cadastre {
        width: 100%;
        text-align: center;
    }

    .btn-cadastre button {
        max-width: 100%;
        margin: 0 auto;
    }

    .company-hero {
        height: 200px;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .company-title-overlay {
        padding: 20px 10px;
    }

    .company-title-overlay h1 {
        font-size: 1.5rem;
    }

    .content-col {
        width: 100%;
        margin-bottom: 30px;
    }

    .sidebar-col {
        width: 100%;
    }

    /* Gallery Fix */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 10px;
        width: 100%;
    }

    .gallery-item {
        height: auto;
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    /* Hours Fix */
    .hours-list li {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 12px 0;
    }

    .hours-list li span {
        margin-bottom: 0;
        color: #666;
    }

    .hours-list li strong {
        font-size: 1.0rem;
        color: #333;
        text-align: right;
    }

    .empresas-principal-footer-banner {
        display: none;
    }
}

/* Sidebar Banners Fix */
.sidebar-banners {
    margin-bottom: 25px;
}

.banner-rotativo-sidebar {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background: #fff;
    margin-bottom: 20px;
}

.banner-rotativo-sidebar img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* General Reset to prevent overflows */
img {
    max-width: 100%;
    height: auto;
}