/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    color: #2c3e50; /* Dark Blue */
}

a {
    text-decoration: none;
    color: #3498db; /* Bright Blue */
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Top Bar */
.top-bar {
    background-color: #f8f9fa; /* Light Grey */
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
    color: #555;
    border-bottom: 1px solid #e7e7e7;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50; /* Dark Blue */
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #555;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db; /* Bright Blue */
}

.whatsapp-button-nav {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.whatsapp-button-nav:hover {
    background-color: #1EAE54; /* Darker WhatsApp Green */
}

/* Hero Section */
#hero {
    background: url('img/background-hero.webp') no-repeat center center/cover;
    color: #3498db;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .container {
    text-align: left;
    max-width: 700px;
    margin-left: 0;
    margin-right: auto;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-button {
    background-color: #3498db; /* Bright Blue */
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #2980b9; /* Darker Bright Blue */
    transform: translateY(-2px);
}

.cta-button-outline {
    background-color: transparent;
    color: #3498db; /* Bright Blue */
    padding: 13px 28px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #3498db; /* Bright Blue */
    display: inline-block;
}

.cta-button-outline:hover {
    background-color: #3498db; /* Bright Blue */
    color: white;
    transform: translateY(-2px);
}


/* Info Sections */
.info-section {
    padding: 80px 0;
    text-align: center;
}

.servico-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-section.alternate-bg {
    background-color: #f8f9fa; /* Light Grey */
}

.info-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-section p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Unidades Section */
.unidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.unidade-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unidade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.unidade-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.unidade-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.unidade-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

.cta-button-card {
    background-color: #2ecc71; /* Emerald Green */
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
}

.cta-button-card:hover {
    background-color: #27ae60; /* Darker Emerald Green */
}


/* Footer */
footer {
    background-color: #2c3e50; /* Dark Blue */
    color: white;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
    color: #bdc3c7; /* Light Greyish Blue */
}

footer a {
    color: #ecf0f1; /* Lighter Greyish Blue */
}

.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 40px;
    right: 20px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover {
    background-color: #1EAE54;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.lightbox-prev, .lightbox-next {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    opacity: 0.7;
}

/* Add hover effect to unit images */
.unidade-card img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.unidade-card img:hover {
    transform: scale(1.05);
}

/* Gallery Button */
.gallery-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-button:hover {
    background-color: #2980b9;
}

.whatsapp-float {
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Simple hide for now, can be replaced with a burger menu */
    }
    .navbar .container {
        justify-content: center; /* Center logo and button if nav links are hidden */
    }
    .whatsapp-button-nav {
        margin-left: 20px; /* Add some space if nav links are hidden */
    }
    #hero h1 {
        font-size: 2.5em;
    }
    #hero p {
        font-size: 1.1em;
    }
    .info-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .logo {
        margin-bottom: 10px;
    }
    .whatsapp-button-nav {
        margin-left: 0;
        margin-top: 10px;
        display: block; /* Make it full width for easier tapping */
        text-align: center;
    }
    #hero {
        padding: 80px 0;
    }
    #hero h1 {
        font-size: 2em;
    }
    .unidades-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
