:root {
    --primary: #3370AA;
    --secondary: #438DC1;
    --accent: #5EB5C4;
    --dark: #2c3e50;
    --light: #F4F4F4;
    --positive: #27ae60;
    --negative: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.cta-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1628158145409-9e222b56cc0b?q=80&w=1243&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta {
    background-color: var(--primary);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-cta:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsividade para os botões */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Services Section */
.services {
    padding: 80px 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    font-size: 2.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 30px 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* About Section */
.about {
    padding: 80px 5%;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clients {
    padding: 80px 5%;
    background-color: white;
}

.clients-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.client-regions {
    margin-bottom: 40px;
}

.region-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.client-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.client-item {
    background-color: var(--light);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-item::before {
    content: "•";
    color: var(--primary);
    font-size: 24px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Estilos para o mapa */
.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

#region-map {
    height: 100%;
    width: 100%;
}

/* Badge para região */
.region-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
}

/* Responsividade */
@media (max-width: 768px) {
    .client-list {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}

/* Contact Section */
.contact {
    padding: 80px 5%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    flex: 1;
    max-width: 700px; 
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Logo */
.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

/* Company Info */
.company-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Contact Info no Footer */
.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    font-size: 1.2rem;
    width: 20px;
    color: var(--accent);
    flex-shrink: 0;
    text-align: center;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

/* Address */
.address {
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Footer Map Container */
.footer-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.footer-map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

/* Copyright */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 5%;
    text-align: center;
    margin-top: 30px;
}

.copyright p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design - Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
        margin-bottom: 40px;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav ul li {
        margin: 15px 0;
    }
}

.dev {
    color: var(--accent);
    text-decoration: none;
}

.client-logo-grid {
    display: grid;
    /* Cria um grid que se ajusta automaticamente:
       - 'auto-fit' cria o máximo de colunas que couberem no espaço.
       - 'minmax(180px, 1fr)' define que cada coluna terá no mínimo 180px e no máximo 1 fração do espaço total (distribuindo igualmente).
    */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px; /* Espaçamento entre os logos */
    align-items: center; /* Alinha os itens verticalmente */
}

.client-logo-item {
    background-color: white;
    height: 140px; /* Altura fixa para todos os cards, criando uniformidade */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); /* Sombra suave para efeito de profundidade */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transição suave para o hover */
    display: flex; /* Usamos flexbox para centralizar a logo dentro do card */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Garante que nada saia dos limites do card */
}

.client-logo-item:hover {
    transform: translateY(-8px); /* Efeito de "flutuar" ao passar o mouse */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Sombra mais pronunciada */
}

.client-logo-item img {
    max-width: 90%; /* Largura máxima da imagem dentro do card */
    max-height: 90px; /* Altura máxima da imagem, para logos verticais */
    object-fit: contain; /* Garante que a imagem inteira apareça, sem distorcer */
    -webkit-filter: grayscale(100%); /* Deixa a logo em escala de cinza */
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    -webkit-filter: grayscale(0%); /* Remove o filtro ao passar o mouse */
    filter: grayscale(0%);
    opacity: 1;
}

/* Estilo específico para os condomínios que não são links */
.client-condo-item {
    text-align: center;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.client-condo-item img {
    height: 60px; /* Tamanho específico para a bandeira */
    margin-bottom: 10px;
    filter: none; /* Remove os filtros de escala de cinza da bandeira */
    opacity: 1;
}

.clients-p {
    text-align: center; 
    margin-top: 50px; 
    font-size: 1.1rem; 
    font-weight: 500; 
    color: var(--dark);
}

.client-logo-item.logo-invert img {
    filter: grayscale(100%) invert(100%);
    opacity: 0.7;
}

.client-logo-item.logo-invert:hover img {
    filter: grayscale(0%) invert(100%);
    opacity: 1;
}

/* Estilos para o Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Responsividade para o botão do WhatsApp em telas menores */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}