/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #ffd166;
    font-size: 2.8rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 400;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.description {
    font-size: 1.1rem;
    max-width: 800px;
    opacity: 0.95;
}

/* Filtros */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #4a6491;
    color: white;
    box-shadow: 0 6px 12px rgba(74, 100, 145, 0.3);
}

/* Grade de Negócios */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.business-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.business-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.business-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Cores diferentes para os ícones */
.icon-color-1 { background-color: #ef476f; }
.icon-color-2 { background-color: #ffd166; }
.icon-color-3 { background-color: #06d6a0; }
.icon-color-4 { background-color: #118ab2; }
.icon-color-5 { background-color: #7209b7; }
.icon-color-6 { background-color: #f3722c; }
.icon-color-7 { background-color: #43aa8b; }
.icon-color-8 { background-color: #277da1; }
.icon-color-9 { background-color: #90be6d; }
.icon-color-10 { background-color: #577590; }

.business-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.business-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

.category-produto {
    background-color: rgba(6, 214, 160, 0.15);
    color: #06a17e;
}

.category-servico {
    background-color: rgba(17, 138, 178, 0.15);
    color: #118ab2;
}

.business-body {
    padding: 20px;
}

.business-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.business-address {
    color: #6c757d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-address i {
    color: #4a6491;
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 15px;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-note {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffd166;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffd166;
    transform: translateY(-3px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #ef476f;
    transform: scale(1.1);
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #4a6491 0%, #2c3e50 100%);
    color: white;
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
    margin-right: 20px;
    background-color: #ef476f;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-category {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.modal-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-info i {
    color: #4a6491;
    margin-top: 3px;
}

.modal-actions {
    display: flex;
    padding: 0 25px 25px;
    gap: 15px;
}

.modal-actions button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

.btn-directions {
    background-color: #4a6491;
    color: white;
}

.btn-directions:hover {
    background-color: #3a537a;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(74, 100, 145, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .businesses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}