/* =========================================
   Variáveis e Configurações Gerais
========================================= */
:root {
    --primary-color: #BB9370;
    --primary-dark: #A8B488;
    --text-dark: #3E4B27; /*#333333;*/
    --text-light: #3E4B27;
    --bg-main: #F7EFDB;
    --bg-header: #3E4B27;
    --bg-footer: #66754C;
    --bg-alt: #F7EFDB; /* Fundo alternado para separar as seções */
    --header-height: 80px;
    
    --font-heading: 'Montserrat', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: var(--header-height); /* Espaço para o cabeçalho fixo */

}

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

/* =========================================
   1) Cabeçalho Fixo Estreito
========================================= */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-header);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 200px; 
    height: 100%; /* Ocupa até o máximo permitido */
    width: auto;  /* Mantém a proporção original da imagem (não achata) */
/*    max-width: 200px; */ /* Limite de segurança para logos muito horizontais */
    object-fit: contain; /* Garante que a imagem caiba inteira dentro do limite */
    display: block;
}

.header-container {
    display: flex;
    justify-content: center; /* Centraliza a marca no topo */
    align-items: center;
    width: 100%;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   2.1) Barra de Título
========================================= */
.title-bar {
    background-color: var(--primary-color);
    color: #3E4B27; /*white;*/
    text-align: center;
    padding: 40px 0;
}

.title-bar h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-bar p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* =========================================
   Módulos de Produtos (Estrutura Base)
========================================= */
.whoami-module {
    padding: 40px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid #eeeeee;
    text-align: justify;
}

.product-module {
    padding: 80px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid #eeeeee;
    text-align: justify;
}

/* Fundo alternado para melhorar a leitura entre módulos */
.product-module.alt-bg {
    background-color: var(--bg-alt);
}

.whoami-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.module-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Divisão 50/50 rigorosa */
.module-text, .module-media {
    flex: 1; /* Faz com que ambos ocupem 50% do espaço disponível */
    width: 50%;
    text-align: justify;
}

.module-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.module-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #3E4B27; /*white;*/
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Configurações de Mídia (Imagens e Vídeos) */
.module-media img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    object-fit: cover;
}

/* 2.4) Configuração específica para a Pequena Figura */
.module-media.small-figure {
    display: flex;
    justify-content: center;
}

.module-media.small-figure img {
    max-width: 200px;
    box-shadow: none;
    border-radius: 0;
}

/* Container Responsivo para YouTube Iframe */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-link {
    display: block;
    text-align: center;
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-decoration: underline;
    font-weight: 600;
}

/* =========================================
   2.7 e 2.8) Áreas de Espera (Placeholders)
========================================= */
.placeholder-module {
    text-align: center;
}

.placeholder-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border: 2px dashed #cccccc;
    border-radius: 15px;
    color: var(--text-light);
}

.placeholder-content i {
    font-size: 3rem;
    color: #cccccc;
    margin-bottom: 15px;
}

.placeholder-content h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* =========================================
   2.9) Rodapé
========================================= */
footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 50px 0 30px 0;
}

footer h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-weight: 500;
}

.social-links {
    margin-bottom: 30px;

}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-footer);/* rgba(255,255,255,0.1); */
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

footer p {
    font-size: 0.85rem;
    color: #aaaaaa;
    border-top: 1px solid rgba(62, 75, 39, 1.0);
    padding-top: 20px;
    margin-top: 20px;
}

/* =========================================
   Responsividade (Telas Menores / Celulares)
========================================= */
@media (max-width: 768px) {
    /* Transforma a linha de 50/50 em 100% empilhada verticalmente */
    .whoami-content {
        flex-direction: column;
        /*gap: 30px;*/
    }

    .module-content {
        flex-direction: column;
/*        gap: 30px;*/
    }

    /* Força os elementos a ocuparem 100% no celular */
    .module-text, .module-media {
        width: 100%;
        text-align: center;
    }

    /* Inverte a ordem apenas visualmente para os módulos que têm a mídia na esquerda,
       para que no celular o Título/Texto sempre apareça antes do vídeo/foto */
    .product-module:nth-child(even) .module-content {
        flex-direction: column-reverse;
    }
}
