:root {
    --primary-color: #27ae60;
    --dark-bg: #111;
    --light-text: #fff;
    --dark-text: #333;
    --body-bg: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--body-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background: transparent;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: var(--dark-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--light-text);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    top: 100%; /* Ajusta o menu para ficar diretamente abaixo do nav */
}

.menu li {
    margin: 0; /* Remove qualquer margem entre os itens do menu */
}

.menu li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.menu li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(1.jpg) center/cover no-repeat;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2ecc71;
}

/* Sections */
section {
    padding: 120px 40px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

#construcoes {
    background: #fff;
}

#contato {
    background-color: #fff; /* Altere a cor de fundo para branco */
    padding: 40px;
    text-align: center;
    border-top: none; /* Remove a linha de separação */
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #ffffff;
    text-align: center;
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: var(--dark-bg);
        padding: 20px;
        text-align: center;
    }

    .menu.active {
        display: flex;
        top: 100%; /* Ajusta o menu para ficar exatamente abaixo do nav */
    }

    .menu li {
        margin-bottom: 15px;
    }
    
    .menu li a {
        color: var(--light-text);
    }

    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
