/* Resetando margin e padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background-color: #fff;
    color: white;
    padding: 10px 20px;
    position: relative;
    z-index: 10; /* Garante que o cabeçalho fique acima do conteúdo */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo a {
    display: block;
}

.logo-img {
    width: 120px; /* Ajuste o tamanho conforme necessário */
    height: auto;
    margin-left: 100px;
}

.menu {
    display: flex;
    list-style: none;
    z-index: 10;
    margin-right: 160px;
}

.menu li {
    margin: 0 20px;
}

.menu a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #ddd;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 20; /* Garante que fique acima do conteúdo */
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: #000;
    margin: 5px 0;
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 135px;
        right: 0;
        background-color: #fff;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        z-index: 10; /* Garante que o menu fique acima do conteúdo */
        
    }

    .menu.active {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .menu li {
        margin: 10px 0;
        margin-left: 80px;
    }

    .menu a {
        font-size: 22px;
    }
}

/* Seção home */
.home-section {
    position: relative;
    background: url('/img/reforma.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out;

}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Efeito de transparência escurecida */
    z-index: 1; /* Certifique-se de que o efeito fique atrás do conteúdo */
}

.home-content {
    position: relative;
    color: white;
    text-align: right;
    max-width: 50%;
    z-index: 2; /* Garante que o texto fique acima do fundo */
    animation: slideIn 1.5s ease-out;
}

.home-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    margin-right: 140px;
}

.btn-whatsapp {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 30px; /* Botão oval */
    transition: background-color 0.3s, color 0.3s;
    margin-right: 140px;
}

.btn-whatsapp:hover {
    background-color: white;
    color: #333;
}

/* Animações */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    0% { transform: translateX(50%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Responsividade para telas pequenas na seção Home */
@media screen and (max-width: 768px) {
    .home-section {
        height: 100vh; /* Manter altura em dispositivos pequenos */
        justify-content: center; /* Centralizar o conteúdo */
        padding: 30px 20px; /* Aumentar o espaçamento */
        background-size: cover; /* Garantir que a imagem cubra a tela */
    }

    .home-content {
        max-width: 90%; /* Tornar o conteúdo mais flexível */
        text-align: center; /* Centralizar o texto */
    }

    .home-content h1 {
        font-size: 28px; /* Reduzir o tamanho do texto */
        margin-bottom: 15px; /* Ajustar a margem inferior */
    }

    .btn-whatsapp {
        padding: 12px 25px; /* Ajustar tamanho do botão */
        font-size: 16px; /* Ajustar o tamanho da fonte */
    }
}

/* Seção Dual */
.dual-section {
    display: flex;
    flex-wrap: wrap;
    height: 40vh;
    overflow: hidden;
}

/* Estilos para a esquerda */
/* Estilos para o lado esquerdo */
.content.left {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center; /* Alinha horizontalmente */
    align-items: center;     /* Alinha verticalmente */
    height: 100%;
    background: url('/img/casa.jpg') no-repeat center center/cover;
    animation: fadeInLeft 1.5s ease-out;
    overflow: hidden;
}

/* Sombra vermelha sobre a imagem (overlay) */
.content.left .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1000px rgba(255, 0, 0, 0.5); /* Sombra vermelha */
    z-index: 1; /* Garantir que a sombra fique abaixo do texto */
}

/* Texto e conteúdo centralizado */
.content.left .text {
    position: relative;
    z-index: 2; /* Coloca o texto acima do overlay */
    display: flex;           
    flex-direction: column; 
    align-items: center;    
    justify-content: center; 
    text-align: center;     
    color: white;
    padding: 20px;
}

/* Estilos do título */
.content.left h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Estilos do subtítulo */
.content.left p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Estilos para o lado direito */
.content.right {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center; /* Alinha horizontalmente */
    align-items: center;     /* Alinha verticalmente */
    height: 100%;
    background: url('/img/empresa.jpg') no-repeat center center/cover;
    animation: fadeInRight 1.5s ease-out;
    overflow: hidden;
    text-align: center;
}

/* Sombra cinza sobre a imagem (overlay) */
.content.right .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.5); /* Sombra cinza */
    z-index: 1; /* Garantir que a sombra fique abaixo do texto */
}

/* Texto e conteúdo centralizado */
.content.right .text {
    position: relative;
    z-index: 2; /* Coloca o texto acima do overlay */
    display: flex;           
    flex-direction: column; 
    align-items: center;    
    justify-content: center; 
    text-align: center;     
    color: white;
    padding: 20px;
}

/* Estilos do título */
.content.right h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Estilos do subtítulo */
.content.right p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Botão WhatsApp */
.btn-whatsapp {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 30px; /* Botão oval */
    transition: background-color 0.3s, color 0.3s;
    align-items: center;
    margin-left: 130px;
}

/* Efeito do botão quando hover */
.btn-whatsapp:hover {
    background-color: white;
    color: #333;
}

/* Animações */
@keyframes fadeInLeft {
    0% {
        transform: translateX(-50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    0% {
        transform: translateX(50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .content {
        height: auto; /* Ajuste a altura para telas menores */
    }

    .content h2 {
        font-size: 28px;
    }

    .content p {
        font-size: 16px;
    }

    .btn-whatsapp {
        font-size: 16px;
        padding: 12px 25px;
    }
}


/* Animações */
@keyframes fadeInLeft {
    0% {
        transform: translateX(-50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    0% {
        transform: translateX(50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .dual-section {
        flex-direction: column;
        height: auto;
    }

    .content.left, .content.right {
        height: 50vh; /* Ajusta a altura para dispositivos menores */
    }

    .content.left h2, .content.right h2 {
        font-size: 28px;
    }

    .content.left p, .content.right p {
        font-size: 16px;
    }

    .btn-whatsapp {
        font-size: 16px;
        padding: 12px 25px;
    }
}


/* Seção Serviços */
#servicos {
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

#servicos h1 {
    font-size: 36px;
    font-weight: bold;
    color: black;
    margin-bottom: 40px;
}

/* Grade de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

/* Cartões de Serviço */
.service-card {
    width: 150px;
    height: 150px;
    border: 2px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card i {
    font-size: 36px;
    color: black;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 16px;
    color: black;
    font-weight: bold;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Botão Solicite Agora */
.btn-servicos {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid black;
    color: black;
    text-decoration: none;
    font-size: 18px;
    border-radius: 30px;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 40px;
}

.btn-servicos:hover {
    background-color: black;
    color: white;
}


/* Animação de entrada */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .service-card {
        width: 120px;
        height: 120px;
    }

    .service-card i {
        font-size: 28px;
    }

    .service-card h3 {
        font-size: 14px;
    }

    #servicos h1 {
        font-size: 28px;
    }

    .btn-whatsapp {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* Estilo geral da seção */
.section-container {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.regions-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    animation: fadeInUp 1s ease-in-out;
}

.regions-list li {
    background: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.regions-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .regions-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Seção Quem Somos */
#quemsomos {
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
    align-items: center;
}

#quemsomos h1 {
    font-size: 36px;
    font-weight: bold;
    color: black;
    margin-bottom: 20px;
}

/* Layout com texto à esquerda e imagem à direita */
.quemsomos-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    animation: slideIn 1.5s ease-out;
}

/* Texto à esquerda */
.text-left {
    flex: 1;
    text-align: left;
    color: black;
    margin-left: 90px;
}

.text-left h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.text-left p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Imagem à direita */
.image-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-right img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* Animação de entrada */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .quemsomos-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .text-left {
        margin-bottom: 20px;
        margin-right: 60px;
    }

    .image-right img {
        max-width: 100%;
    }

    #quemsomos h1 {
        font-size: 28px;
    }

    .text-left p {
        font-size: 16px;
    }
}

/* Seção Serviços Realizados */
#servicos-realizados {
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

/* Título */
#servicos-realizados h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: black;
}

/* Subtítulo */
#servicos-realizados .subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #333;
}

/* Grid de Projetos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
    animation: gridAnimation 1.5s ease-out;
}

/* Card de cada projeto */
.project-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
}

/* Imagem dentro do card */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Overlay com efeito hover */
.project-card:hover .overlay {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 0, 0.7); /* Vinho */
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.overlay h3 {
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
}

/* Animação de fade-in para a seção */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de grid entrando */
@keyframes gridAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media screen and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 20px;
    }
}

/* Estilos Gerais da Seção Contato */
#contato {
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

#contato h1 {
    font-size: 36px;
    font-weight: bold;
    color: black;
    margin-bottom: 20px;
}

/* Contêiner do Contato */
.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Lado Esquerdo: Logo e Contatos */
.contact-left {
    flex: 1;
    max-width: 300px;
    text-align: left;
}

.contact-left .logo {
    width: 100%;
    max-width: 150px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info .contact-item {
    color: black;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-info .contact-item:hover {
    color: red;
}

/* Estilos Gerais da Seção Contato */
#contato {
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

#contato h1 {
    font-size: 36px;
    font-weight: bold;
    color: black;
    margin-bottom: 20px;
}

/* Contêiner do Contato */
.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Lado Esquerdo: Logo e Contatos */
.contact-left {
    flex: 1;
    max-width: 300px;
    text-align: left;
}

.contact-left .logo {
    width: 100%;
    max-width: 150px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info .contact-item {
    color: black;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-info .contact-item:hover {
    color: red;
}

/* Central: Redes Sociais */
.contact-center {
    flex: 2;
    max-width: 500px;
    text-align: center;
}

.contact-center h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: black;
    font-weight: bold;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-item {
    text-decoration: none;
    color: black;
    font-size: 20px;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px; /* Ajuste o tamanho conforme necessário */
}

.social-item:hover {
    color: red;
}

.social-img {
    width: 50px; /* Ajuste o tamanho da imagem conforme necessário */
    height: 50px;
    margin-bottom: 10px;
}

.social-item p {
    font-size: 14px;
}

/* Direitos Autorais */
.copyright {
    margin-top: 50px;
    font-size: 14px;
    color: black;
}

.copyright p {
    margin-bottom: 0;
}

/* Animações */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media screen and (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-left,
    .contact-center {
        text-align: center;
        margin-bottom: 30px;
    }

    .contact-info .contact-item {
        font-size: 16px;
    }

    .social-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    #contato h1 {
        font-size: 28px;
    }

    .contact-info .contact-item {
        font-size: 14px;
    }

    .social-img {
        width: 40px;
        height: 40px;
    }

    .social-item p {
        font-size: 16px;
    }
}
