html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #FFD700;
}

header {
    display: flex;
    justify-content: space-between; /* Distribui o espaço entre a logo e o menu */
    align-items: center;
    padding: 10px 20px;
    background-color: black;
    border-bottom: 1px solid black;
    position: relative;
    z-index: 1000;
}

/* Estilo para a logo */
.logo {
    flex: 0 1 auto; /* Faz com que a logo ocupe apenas o espaço necessário */
    margin-left: 20px; /* Ajusta a margem esquerda */
}


.logo img {
    max-height: 100px; /* Ajusta a altura máxima da logo */
    display: block;
}

/* Estilo do menu de navegação */
nav {
    flex: 1; /* Faz com que o menu ocupe o espaço restante disponível */
    display: flex;
    justify-content: center; /* Centraliza os itens do menu */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
nav ul li a {
    font-size: 18px;
    text-decoration: none;
    color: #FFD700;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
    padding: 10px;
    margin: 0 10px;
    display: inline-block;
    cursor: pointer;
}

nav ul li a:hover {
    color: black;
    background-color: #FFD700;
}

/* Estilo do menu de sobreposição */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fundo semi-transparente */
    z-index: 1000;
    padding: 50px;
    box-sizing: border-box;
}

.menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-overlay ul li {
    margin: 20px 0;
}

.menu-overlay ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    display: block;
}

.menu-overlay .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Estilo do menu hamburguer */
.menu-toggle {
    display: none; /* Inicialmente escondido */
    font-size: 40px;
    cursor: pointer;
}

/* Seção hero */
.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    overflow: hidden;
    text-align: center;
    background-color: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Camada preta com opacidade */
    z-index: 2; /* Garante que a sobreposição esteja acima do slider */
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
    z-index: 1; /* Mantém o slider abaixo da camada de sobreposição */
}

.slide {
    width: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
    z-index: 3; /* Garante que os pontos estejam acima do slider e da camada preta */
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff; /* Garante que o texto seja visível */
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff; /* Garante que o texto seja visível */
}

.cta-button, .cta-button-whatsapp {
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
    z-index: 4; /* Garante que os botões estejam acima de todos os outros elementos */
}

.cta-button {
    background-color: #FFD700;
    color: #000000;
}

.cta-button-whatsapp {
    background-color: #34a718;
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

/* Seções de conteúdo */
.services-section, .about-section, .contact-section, .obras-section {
    padding: 30px 10%;
    text-align: center;
}

.services-container, .obras-container {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.service-item {
    width: 100%;
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    color: #FFD700;
}

footer {
    background-color: #111111;
    color: #FFD700;
    text-align: center;
    padding: 20px;
}

/* Seções específicas */
.fachada-section, .porta-section, .janela-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
}

.fachada-section {
    background-color: #1c1c1c;
}

.porta-section {
    background-color: #f0f0f0;
}

.janela-section {
    background-color: #1c1c1c;
}

.fachada-content, .porta-content, .janela-content, .about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fachada-text, .porta-text, .janela-text, .about-text {
    flex: 1;
    max-width: 50%;
}

.fachada-text h2, .porta-text h2, .janela-text h2, .about-text h1 {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 20px;
}

.fachada-text p, .janela-text p, .about-text p {
    font-size: 20px;
    color: #f0f0f0;
}
.porta-text p{
    font-size: 20px;
    color: #333;
}
.fachada-image, .porta-image, .janela-image, .about-image {
    flex: 1;
    max-width: 50%;
}

.fachada-image img, .porta-image img, .janela-image img, .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Seção de contato */
.contact-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.contact-section {
    background-color: #f0f0f0;
}

.contact-text {
    color: #333;
    text-align: left;
}

.contact-image {
    color: #333;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .cta-button, .cta-button-whatsapp {
        padding: 8px 16px;
        font-size: 16px;
    }

    .services-container, .fachada-content, .porta-content, .janela-content, .about-content {
        flex-direction: column;
    }

    .logo {
        margin-left: 0; /* Remove a margem esquerda */
        text-align: left; /* Alinha a logo à esquerda */
    }

    .menu-toggle {
        display: block; /* Exibe o menu hamburguer */
    }

    nav {
        display: none; /* Oculta o menu padrão */
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    iframe {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta-button, .cta-button-whatsapp {
        padding: 6px 12px;
        font-size: 14px;
    }

    .about-text h1, .fachada-text h2, .porta-text h2, .janela-text h2 {
        font-size: 28px;
    }

    .about-text p, .fachada-text p, .porta-text p, .janela-text p {
        font-size: 16px;
    }
}
