/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 100px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e7ff;
    margin-bottom: 2rem;
    font-weight: 500;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1e40af;
}

/* Filtros */
.filters {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filters .container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Empresas */
.empresas {
    padding: 3rem 0;
}

.empresas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.empresas-header h2 {
    font-size: 2rem;
    color: #333;
}

.empresas-count {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.empresa-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

.empresa-card-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empresa-logo-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.empresa-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém proporção e mostra imagem completa */
    border-radius: 10px;
    background: #fff;
}

.empresa-info-header {
    flex: 1;
    width: 100%;
}

.empresa-info-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.empresa-categoria {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.empresa-card-body {
    margin-bottom: 1.5rem;
}

.empresa-bairro,
.empresa-segmento {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.empresa-bairro i,
.empresa-segmento i {
    color: #3b82f6;
    width: 16px;
}

.btn-ver-detalhes {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-ver-detalhes:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Paginação */
.paginacao {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.paginacao-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.paginacao-controles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.btn-paginacao {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-paginacao:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
}

.btn-paginacao:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.paginas-numeros {
    display: flex;
    gap: 0.5rem;
}

.btn-pagina {
    background: #fff;
    color: #333;
    border: 2px solid #e9ecef;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
}

.btn-pagina:hover {
    border-color: #3b82f6;
    background: #f8f9fa;
}

.btn-pagina.ativa {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    border-color: #3b82f6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.empresa-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    width: 20px;
}

.info-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.2rem;
}

.info-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-ver-mapa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-ver-mapa:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-ver-mapa i {
    font-size: 1rem;
}

.empresa-redes h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.redes-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 10px 0;
}

.btn-rede {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    width: 100%;
    text-align: center;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.btn-whatsapp {
    background: #25d366;
}

.btn-facebook {
    background: #1877f2;
}

.btn-site {
    background: #3b82f6;
}

.btn-rede:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-rede.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-rede.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Estilos para o botão expandir */
.btn-expandir {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.btn-expandir:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.quem-somos-texto {
    margin-top: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    line-height: 1.6;
    color: #333;
}

.quem-somos-texto h1,
.quem-somos-texto h2,
.quem-somos-texto h3,
.quem-somos-texto h4,
.quem-somos-texto h5,
.quem-somos-texto h6 {
    margin: 0 0 0.8rem 0;
    color: #2563eb;
    font-weight: 600;
}

.quem-somos-texto h2 {
    font-size: 1.2rem;
}

.quem-somos-texto p {
    margin: 0 0 0.8rem 0;
}

.quem-somos-texto p:last-child {
    margin-bottom: 0;
}

.quem-somos-texto strong {
    font-weight: 600;
    color: #1e40af;
}

.quem-somos-texto ul,
.quem-somos-texto ol {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.quem-somos-texto li {
    margin: 0.4rem 0;
}

/* Modal overlay - controlado pelo Alpine.js */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}



/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .filters .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .empresas-grid {
        grid-template-columns: 1fr;
    }
    
    .empresas-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .redes-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-rede {
        justify-content: center;
    }
    
    .paginacao-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .paginacao-controles {
        flex-direction: column;
        gap: 1rem;
    }
    
    .paginas-numeros {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input,
    .search-btn {
        border-radius: 0;
    }
    
    .modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}

/* Modal de Contato */
.modal-contato-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-contato {
    background: #fff;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-contato-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-contato-header h2 {
    color: white;
    font-size: 1.5rem;
}

.modal-contato-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-contato-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.modal-contato-body {
    padding: 1.5rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contato-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0f172a;
}

.contato-info-item i {
    color: #0f172a;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contato-info-item strong {
    color: #333;
    font-weight: 600;
}

.contato-info-item span {
    color: #666;
}

.contato-redes {
    margin-top: 1rem;
}

.contato-redes h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.redes-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-rede.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-rede.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: white;
}

.btn-rede.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Responsividade do Modal de Contato */
@media (max-width: 768px) {
    .modal-contato {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .contato-redes h4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .redes-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-rede.btn-whatsapp {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}