:root {
    --branco: #FFFFFF;
    --aveia: #F8F7F2;
    --tijolo: #904C2E;
    --preto: #000000;
    --cinza: #8B8B8B;
}

body {
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-color: var(--branco);
    color: var(--preto);
    line-height: 1.6;
}

h1 {
    color: var(--tijolo);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header {
    background-color: var(--aveia);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Estilo do Logo */
.logo {
    background-image: url('../img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 30vw;
    height: 7vw;
    max-width: 30rem;
    max-height: 7rem;
    ;
}


/* Responsivo */
@media (max-width: 768px) {
    .logo {
        width: 57vw;
        height: 12vw;
    }
}


/* Navbar Estilo */
nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: var(--cinza);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--tijolo);
}

/* Linha inferior no hover */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--tijolo);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Item ativo */
nav a.active {
    color: var(--tijolo);
    font-weight: 600;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2.1px;
    background-color: var(--branco);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-button {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .mobile-menu-button {
        display: block;
    }

    /* Menu aberto */
    .mobile-menu-button.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-button.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--aveia);
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    nav a::after {
        display: none;
    }

    nav a.active {
        background-color: rgba(226, 114, 91, 0.1);
        border-left: 3px solid var(--tijolo);
    }
}

@media (max-width: 767px) {
    nav {
        display: none;
    }

    nav.active {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 30%;
        min-width: 11rem;
        height: 100vh;
        background-color: var(--aveia);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-menu-button {
        display: block;
        z-index: 1000;
    }

    .mobile-menu-button.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-button.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    body.menu-open {
        overflow: hidden;
    }
}



body.menu-open {
    overflow: hidden;
}


section {
    padding: 3rem 10%;
    margin: 0 auto;
    max-width: 1200px;
}

section:nth-child(even) {
    background-color: var(--branco);
}

section:nth-child(odd) {
    background-color: var(--aveia);
}
  

.section-title {
    color: var(--tijolo);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 1px solid var(--preto);
    padding-bottom: 0.5rem;
}

.section-contato {
    text-align: center;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.projetos-item {
    background-color: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projetos-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.projetos-item-content {
    padding: 1rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--branco);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--tijolo);
}

.service-card h3 {
    text-align: center;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}


/* Responsivo */
@media (max-width: 768px) {

    .testimonials,
    .projetos-grid,
    .services-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.testimonial {
    background-color: var(--aveia);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 4rem;
    color: var(--tijolo);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 10px;
}

.client-name {
    font-weight: bold;
    color: var(--tijolo);
    margin-top: 1rem;
    text-align: right;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--preto);
}

input,
textarea {
    width: 90%;
    padding: 0.8rem;
    border: 1px solid var(--preto);
    border-radius: 4px;
    font-family: inherit;
}

button {
    background-color: var(--tijolo);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--preto);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--tijolo);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    background-color: var(--tijolo);
    color: var(--aveia);
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background-color: var(--tijolo);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--preto);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cover.jpg) center / cover no-repeat;
    justify-content: flex-end;
    max-width: initial;
    color: white;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: end;
}

.hero-content {
    width: 100%;
    margin: 3vw;
    grid-column: 1;
    grid-row: 1;
}

.hero-text {
    max-width: 500px;
    text-align: justify;
    margin-left: auto;
    padding: 2rem;
    background-color: rgba(94, 58, 41, 0.7);
    /* Fundo semi-transparente */
    backdrop-filter: blur(5px);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--terracota);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--terracota);
}

.hero-button:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-section {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        grid-column: 1;
        grid-row: 1;
    }

    .hero-text {
        text-align: center;
        margin: 0;
        width: 90%;
        background-color: rgba(94, 58, 41, 0.85);
        padding: 5%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.scroll-down svg {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Container principal */
.quem-somos-container {
    padding: 4rem 0;
    background-color: var(--bege-claro);
}

.quem-somos-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Imagem */
.quem-somos-imagem {
    flex: 1 1 300px;
    min-width: 250px;
}

.quem-somos-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 1/1;
    /* Mantém proporção quadrada */
}

/* Texto */
.quem-somos-texto {
    flex: 2 1 500px;
}

.quem-somos-texto .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.quem-somos-texto p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--marrom-escuro);
}

/* Responsivo */
@media (max-width: 768px) {
    .quem-somos-content {
        flex-direction: column;
        gap: 2rem;
    }

    .quem-somos-imagem {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .quem-somos-texto .section-title {
        text-align: center;
    }

    .scroll-down {
        width: 100%;
    }
}


/* Estilos do carrossel */
.projetosSwiper {
    width: 100%;
    height: 300px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navegação */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.projetos-item:hover .swiper-button-next,
.projetos-item:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

/* Paginação */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--tijolo);
    opacity: 1;
}

/* Adicione feedback visual para estado ativo */
.swiper--interacted {
    box-shadow: 0 0 0 2px var(--tijolo);
}

@media (max-width: 768px) {
    .portfolio-item {
        transition: transform 0.3s;
    }

    .portfolio-item:active {
        transform: scale(0.98);
    }

    .projetos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.logo-footer {
    width: clamp(15rem, 15vw, 100%);
}

.instagram-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    /* Proporção inicial (ajuste conforme necessidade) */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fafafa;
    /* Cor de fundo similar ao Instagram */
}

.instagram-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ajuste para desktop */
@media (min-width: 768px) {
    .instagram-embed-container {
        padding-bottom: 60%;
        /* Proporção mais larga */
    }
}

@media (min-width: 1200px) {
    .instagram-embed-container {
        padding-bottom: 45%;
    }
}

/* Efeito hover sutil */
.instagram-embed-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}


.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 30px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

.whatsapp-float.hidden {
    opacity: 0;
    pointer-events: none;
}

.whatsapp-float.bounce {
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% {
        transform: scale(0.5) translateY(30px);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.whatsapp-cta-btn {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}