:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #495057;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

h2, h3 {
    color: var(--dark-color);
    font-weight: 600;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

.main-header .logo img {
    height: 60px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 960px; /* Limiting banner width */
    margin: 0 auto; /* Centering the banner */
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.carousel:hover .carousel-inner {
    animation-play-state: paused;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-banner {
  flex: 0 0 100%;
  height: 250px; /* Altere aqui para o valor desejado */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

}

.carousel-banner img {
  width: 100%;
  height: 100%; /* Preenche a altura do container */
  object-fit: cover; /* Mantém proporção cortando se precisar */
  display: block;
}

@keyframes slide {
    /* This will be generated by JS now */
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Search and Filters */
.search-filters {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

#search-input, #city-filter {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.segment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background-color: var(--white-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-btn.active, .tag-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.partner-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.partner-card-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-card h3 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
}

.partner-card .segment {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.partner-card .discount {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact Info */
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white-color);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-color);
}

.modal-body .map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 20px 0;
}

.modal-segment {
    font-style: italic;
    color: var(--secondary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    text-decoration: none;
    color: var(--white-color);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    transition: opacity 0.3s ease;
}
.btn:hover {
    opacity: 0.85;
}

.btn-primary { background-color: var(--primary-color); }
.btn-secondary { background-color: #25D366; } /* WhatsApp Green */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 10px;
        position: static; /* No longer fixed on mobile */
    }
    body {
        padding-top: 0;
    }
    .main-header .logo {
        margin-bottom: 10px;
    }
    .main-nav ul {
        gap: 15px;
    }
    .section-container {
        padding: 20px 15px;
    }
}
@media (max-width: 768px) {
  .carousel-banner {
    height: 180px;
  }
}