/*==================================
  Configurações Globais e Variáveis
==================================*/
:root {
    --cor-fundo-claro: #F8F5F2; /* Bege claro e neutro */
    --cor-card: #FFFFFF; /* Branco dos cards */
    --cor-texto-principal: #3E2C1C; /* Marrom escuro elegante */
    --cor-texto-secundario: #4A4A4A; /* Cinza grafite */
    --cor-destaque: #C17F3F; /* Dourado amadeirado */
    --cor-hover: #A6652E; /* Tom de destaque ao passar o mouse */
    --sombra-leve: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/*==================================
  Estilos Gerais
==================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {
    line-height: 1.6;
    background-color: var(--cor-fundo-claro);
    color: var(--cor-texto-secundario);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}

/*==================================
  Estilo do Cabeçalho e Navegação
==================================*/
header {
    background-color: var(--cor-card);
    box-shadow: var(--sombra-leve);
    padding: 10px 0;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

header img {
    height: 50px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

header nav a {
    text-decoration: none;
    color: var(--cor-texto-secundario);
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

header nav a:hover {
    color: var(--cor-destaque);
}

/*==================================
  Estilo das Seções Principais
==================================*/
section {
    padding: 60px 20px;
    text-align: center;
}

#hero {
    padding: 100px 20px;
    background-image: url(assets/fundo.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--cor-texto-principal);
}

#hero h1 {
    font-size: 3em;
    line-height: 1.1;
    color: var(--cor-card);
    font-weight: 700;
}

h2 {
    font-size: 2em;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-left {
    flex: 1;
    text-align: left;
}

.hero-text-right {
    flex: 1;
    background-color: var(--cor-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.hero-text-right:hover {
    transform: translateY(-5px);
}

#hero p {
    margin-bottom: 20px;
    font-size: 1em;
}

.cta-button {
    display: inline-block;
    background-color: var(--cor-destaque);
    color: var(--cor-card);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--cor-hover);
    transform: translateY(-2px);
}

/* Seção Sobre Nós */
#sobre-nos {
    padding: 50px 20px;
    text-align: center;
}

#sobre-nos h2 {
    margin-bottom: 30px;
}

.sobre-content-cards {
    display: flex;
    justify-content: center;
    gap: 20px; /* Reduzido para 20px */
    flex-wrap: wrap;
    align-items: stretch;
}

.sobre-card {
    background-color: var(--cor-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--sombra-leve);
    flex: 1 1 300px; /* Reduzido para 300px */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-left: 5px solid var(--cor-destaque);
    transition: transform 0.3s ease;
}

.sobre-card:hover {
    transform: translateY(-5px);
}

.sobre-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--cor-texto-principal);
}

.sobre-card p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--cor-texto-secundario);
    flex-grow: 1;
}

.sobre-valores {
    flex: 1 1 300px; /* Reduzido para 300px */
    text-align: left;
    display: flex;
    flex-direction: column;
}

.sobre-valores h3 {
    margin-bottom: 20px;
    color: var(--cor-texto-principal);
}

.sobre-valores ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;
}

.sobre-valores li {
    background-color: var(--cor-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--sombra-leve);
    margin-bottom: 15px;
    border-left: 5px solid var(--cor-destaque);
    flex-grow: 1;
}

.sobre-valores li:last-child {
    margin-bottom: 0;
}

.sobre-valores h4 {
    color: var(--cor-texto-principal);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.sobre-valores p {
    font-size: 0.9em;
}

/* Seção Serviços */
#servicos {
    padding: 50px 20px;
}

#servicos h2 {
    margin-bottom: 30px;
}

#servicos ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: stretch;
}

#servicos li {
    background-color: var(--cor-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--sombra-leve);
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-left: 5px solid var(--cor-destaque);
    transition: transform 0.3s ease;
}

#servicos li:hover {
    transform: translateY(-5px);
}

#servicos h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/*==================================
  Estilo da Seção de Projetos
==================================*/
#projetos {
    padding: 60px 20px;
    background-color: var(--cor-fundo-claro);
}

.galeria-projetos {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.projeto-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra-leve);
    transition: transform 0.3s ease;
}

.projeto-card:hover {
    transform: scale(1.03);
}

.projeto-card img {
    width: 100%;
    display: block;
}

.projeto-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(62, 44, 28, 0.8);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.projeto-card:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.overlay p {
    color: #fff;
    font-size: 0.85em;
}

/*==================================
  Estilo da Seção de Depoimentos
==================================*/
#depoimentos {
    padding: 50px 20px;
    text-align: center;
}

#depoimentos h2 {
    margin-bottom: 30px;
}

/* Novo layout para os depoimentos */
#depoimentos .depoimentos-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Aumenta o tamanho das fotos dos clientes */
#depoimentos img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--cor-destaque);
    box-shadow: var(--sombra-leve);
}

/* Estilo de cada bloco de depoimento */
#depoimentos blockquote {
    background-color: var(--cor-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--sombra-leve);
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-style: italic;
    color: var(--cor-texto-secundario);
    border-left: 5px solid var(--cor-destaque);
    margin: 0;
    transition: transform 0.3s ease;
}

#depoimentos blockquote:hover {
    transform: translateY(-5px);
}

#depoimentos blockquote p {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

#depoimentos blockquote footer {
    text-align: center;
    font-style: normal;
    font-weight: bold;
    color: var(--cor-texto-principal);
    margin-top: auto;
}

/*==================================
  Estilo do Rodapé Compacto
==================================*/
.compact-footer {
    background-color: var(--cor-texto-principal);
    color: var(--cor-card);
    padding: 20px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85em;
}

.footer-content p {
    margin: 0;
}

.footer-social-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social-contact a {
    text-decoration: none;
    color: var(--cor-card);
    transition: color 0.3s ease;
}

.footer-social-contact a:hover {
    color: var(--cor-destaque);
}

.footer-social-contact i {
    font-size: 1.1em;
    color: var(--cor-destaque);
}

/*==================================
  Responsividade
==================================*/
@media (max-width: 900px) {
    .hero-content,
    .sobre-content-cards,
    #depoimentos .depoimentos-grid {
        flex-direction: column;
        gap: 25px;
    }

    .hero-text-left,
    .hero-text-right,
    .sobre-card,
    .sobre-valores,
    #depoimentos blockquote {
        text-align: center;
    }

    .sobre-card p,
    .sobre-valores p {
        font-size: 0.95em;
    }

    #hero h1 {
        font-size: 2em;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-section {
        flex: 1 1 100%;
    }

    .footer-section h3 {
        margin-bottom: 10px;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-section.social {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .container-header {
        flex-direction: column;
    }

    header nav {
        margin-top: 15px;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .projeto-card .overlay {
        opacity: 1;
        position: static;
        background-color: transparent;
        color: var(--cor-texto-secundario);
        padding: 15px;
        transform: translateY(0);
    }
    
    .projeto-card .overlay h3,
    .projeto-card .overlay p {
        color: var(--cor-texto-principal);
    }
}
