:root {
    --cor-fundo-logo: rgb(111, 105, 89);
    --cor-fundo-claro: #FDFDFD;
    --cor-texto-principal: #333333;
    --cor-texto-claro: #FFFFFF;
    --cor-destaque: #8B8378;
    --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo-claro);
    color: var(--cor-texto-principal);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

nav {
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    display: none;
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--cor-fundo-logo);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger .fa-times {
    display: none;
}

.hamburger.active .fa-bars {
    display: none;
}

.hamburger.active .fa-times {
    display: block;
}

.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(111, 105, 89, 0.6), rgba(111, 105, 89, 0.6)), url('imagens/casa_frente.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-text {
    color: var(--cor-texto-claro);
    text-align: left;
}

.logo-text h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.logo-text p {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 5px 0 0 0;
    letter-spacing: 1px;
    margin-left: 5px;
}

main {
    width: 100%;
    position: relative;
    background-color: var(--cor-fundo-claro);
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--cor-fundo-logo);
    margin: 10px auto 0;
}

#projetos .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--cor-texto-claro);
    padding: 40px 20px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

#servicos ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}

#servicos li {
    background-color: var(--cor-fundo-claro);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicos li:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#depoimentos {
    background-color: #f9f9f9;
    display: none; 
}

.testimonial-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--cor-fundo-logo);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

#contato h2 {
    text-align: left;
    margin-bottom: 15px;
}

#contato h2::after {
    margin: 10px 0 0 0;
}

#contato > .container > p {
    text-align: center;
}

.contact-info-form p {
    margin-bottom: 30px;
}

.contact-info-form h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.contact-info-form .contact-info p {
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.contact-form button {
    padding: 12px 20px;
    background-color: var(--cor-fundo-logo);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #5d574a;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    background-color: #333;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.modal-content {
    position: relative;
    padding: 20px;
    width: auto;
    max-width: 800px;
    max-height: 90vh;
    background: #111;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 5px;
}

.modal-content h3 {
    color: var(--cor-texto-claro);
    margin-top: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

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

.whatsapp-button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .logo-text {
        text-align: center;
    }
    .logo-text h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    .logo-text p {
        font-size: 0.9rem;
        margin-left: 0;
        letter-spacing: 0.5px;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-logo {
        display: block;
    }

    nav .container {
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease-in-out;
        gap: 30px;
    }
    
    .nav-links.active {
        display: flex;
        left: 0;
    }
    
    nav .nav-links a {
        font-size: 22px;
    }
    
    #servicos ul {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
        padding: 10px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

#transformacoes {
    background-color: #f9f9f9;
}

#transformacoes .subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.image-compare-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.image-compare-viewer {
    --viewer-border-color: var(--cor-fundo-logo);
    --viewer-handle-background: var(--cor-fundo-logo);
}

.label-antes, .label-depois {
    position: absolute;
    top: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.1s linear;
}

.label-antes {
    left: 15px;
}

.label-depois {
    right: 15px;
}