/*
Theme Name: GESH 154/RS Theme
Author: VizLogik
Description: Tema customizado para o Grupo Escoteiro Saint Hilaire.
Version: 1.0
*/

/* ==========================================================================
   PALETA DE CORES - GRUPO ESCOTEIRO SAINT HILAIRE 154/RS
   ========================================================================== */
:root {
    /* Cores Oficiais */
    --st-brown: #654335;
    /* Textos e Faixas */
    --st-green: #009E49;
    /* Lado Esquerdo */
    --st-yellow: #FFCC00;
    /* Centro */
    --st-red: #E31E24;
    /* Lado Direito */
    --st-black: #000000;
    /* Linha Central */

    /* Aplicação Funcional */
    --primary-color: var(--st-green);
    /* Botões principais e destaques */
    --secondary-color: var(--st-brown);
    /* Títulos e elementos institucionais */
    --accent-color: var(--st-red);
    /* Detalhes de interação */

    --bg-color: #f9f7f4;
    /* Fundo suave (off-white) */
    --nav-bg: #ffffff;
    --text-color: #2d2d2d;
    /* Texto corrido (cinza escuro para leitura) */

    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    --spacing-xl: 4rem;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Utilitários */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 896px;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   COMPONENTES UI
   ========================================================================== */

/* Botões */
.btn {
    display: inline-block;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Botão Principal (Verde com Hover Vermelho - Dinamismo) */
.btn-large {
    background-color: var(--st-green);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-large:hover {
    background-color: var(--st-red);
    /* Troca para vermelho ao passar o mouse */
}

/* Botão Pequeno (Marrom) */
.btn-small {
    background-color: var(--st-brown);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-small:hover {
    background-color: var(--st-green);
}

/* Barra Tricolor Decorativa (Representando a Flor-de-Lis) */
.tricolor-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right,
            var(--st-green) 0%, var(--st-green) 33.3%,
            var(--st-yellow) 33.3%, var(--st-yellow) 66.6%,
            var(--st-red) 66.6%, var(--st-red) 100%);
}

/* ==========================================================================
   NAVEGAÇÃO (Atualizada para Mobile Responsivo)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100; /* Aumentado para garantir que fique sobre tudo */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--st-brown);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 110;
}

/* --- BOTÃO HAMBÚRGUER (MOBILE) --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--st-brown);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Animação do X quando o menu abre */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--st-red); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--st-red); }

/* --- LINKS DE NAVEGAÇÃO --- */
.nav-links {
    display: none; /* Escondido por padrão no Mobile */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 2px solid #f0f0f0;
}

/* Quando o menu está ativo via JS */
.nav-links.active {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
}

.nav-link {
    text-decoration: none;
    color: var(--st-brown);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--st-green);
}

/* --- AJUSTES PARA DESKTOP (768px+) --- */
@media (min-width: 768px) {
    .menu-toggle {
        display: none; /* Esconde o botão hambúrguer no PC */
    }

    .nav-container {
        justify-content: center; /* Centraliza os links no PC */
    }

    .nav-brand {
        position: absolute;
        left: 1.5rem;
    }

    .nav-links {
        display: flex; /* Mostra os links horizontalmente */
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        box-shadow: none;
        border: none;
        gap: 2rem;
        background: transparent;
    }

    .nav-link {
        font-size: 1rem;
    }

    /* Efeito de linha colorida no hover (apenas no PC) */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(to right, var(--st-green), var(--st-yellow), var(--st-red));
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MENU DROPDOWN (RAMOS)
   ========================================================================== */

/* 1. O Container do botão Ramos */
.nav-item-dropdown {
    position: relative;
    /* Importante: segura o menu filho no lugar certo */
    display: inline-block;
    height: 100%;
    /* Garante alinhamento */
}

/* 2. O Menu Escondido (A caixinha que abre) */
.dropdown-menu {
    display: none;
    /* Escondido por padrão */
    position: absolute;
    /* Flutua por cima do site */
    top: 100%;
    /* Cola logo abaixo do link "Ramos" */
    left: 50%;
    transform: translateX(-50%);
    /* Centraliza em relação ao pai */

    background-color: #ffffff;
    min-width: 220px;
    /* Largura mínima para não quebrar texto */
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Sombra elegante */

    /* Detalhe visual no topo (opcional) */
    border-top: 4px solid var(--st-green);
    z-index: 1000;
}

/* 3. A Mágica: Mostrar ao passar o mouse */
.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
    /* Efeito suave de aparecimento */
}

/* 4. Estilo dos Links dentro do Dropdown */
.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--st-brown);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: left;
    /* Garante texto alinhado à esquerda */
    border-bottom: 1px solid #f0f0f0;
    /* Linha separadora suave */
}

.dropdown-link:last-child {
    border-bottom: none;
    /* Remove linha do último item */
}

/* Hover nos itens do menu */
.dropdown-link:hover {
    background-color: #f9f9f9;
    color: var(--st-green);
    padding-left: 25px;
    /* Pequeno movimento para a direita */
}

/* Pequena animação para o menu surgir suavemente */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


/* ==========================================================================
   HERO SECTION (Correção da Imagem de Fundo)
   ========================================================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    /* Importante para a imagem não vazar */
}

/* Configuração da Imagem de Fundo (A classe .hero-bg que criamos) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Faz a imagem cobrir tudo sem esticar */
    opacity: 0.4;
    /* Transparência (40%) */
    z-index: 1;
    /* Camada 1 (Fundo) */
    pointer-events: none;
    /* Garante que não dê para clicar/arrastar a foto de fundo */
}

/* Garante que o conteúdo (Texto e Logo) fique SOBRE a imagem */
.hero-content {
    position: relative;
    z-index: 2;
    top: -70px;
    /* Camada 2 (Frente) */
}

/* Estilos mantidos... */
.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 3rem;
    margin-bottom: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #1a1a1a;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
/* ==========================================================================
   ABOUT SECTION (Configurado conforme imagem de referência)
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--st-brown);
}

.about-card {
    background-color: #ffffff;
    /* Fundo Branco Puro */
    border-radius: 24px;
    /* Bordas bem arredondadas */
    /* Sombra suave e difusa igual ao anexo */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 4rem 3rem;
    /* Espaçamento interno generoso */
    margin-top: 2rem;
    text-align: center;
    /* Centraliza todo o conteúdo */
    border: none;
    /* Removemos bordas coloridas para ficar clean */
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
    /* Cinza escuro para leitura confortável */
    margin-bottom: 1.5rem;
    /* Espaço entre o texto e os ícones */
    max-width: 900px;
    /* Limita a largura para não esticar demais */
    margin-left: auto;
    margin-right: auto;
}

.about-text:last-of-type {
    margin-bottom: 4rem;
}

/* Grade dos Ícones (Valores) */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 coluna */
    gap: 3rem;
}

/* Responsividade para Desktop */
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: 4 colunas lado a lado */
        gap: 1.5rem;
    }
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilo dos Emojis para parecerem ícones grandes */
.value-icon {
    font-size: 4rem;
    /* Ícones grandes */
    margin-bottom: 1rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Leve sombra no emoji para dar profundidade 3D */
    transition: transform 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    /* Pequeno movimento ao passar o mouse */
}

/* Títulos dos Valores (Aventura, Fraternidade...) */
.value-item h3 {
    color: var(--st-brown);
    font-size: 1.5rem;
    /* Fonte maior e robusta */
    font-weight: 800;
    /* Extra negrito */
    margin-bottom: 0.5rem;
}

/* Descrição dos Valores (Atividades ao ar livre...) */
.value-item p {
    color: #666;
    /* Cinza médio */
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   SEÇÃO INSTITUCIONAL (Layout Texto Esq | Fotos Dir)
   ========================================================================== */

.inst-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

/* Tag pequena acima do título (Estilo "NOSSA HISTÓRIA" do anexo) */
.section-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--st-yellow);
    /* Amarelo destaque */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.inst-text-col p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --- Área da Colagem de Fotos --- */
.inst-gallery-col {
    position: relative;
    padding: 2rem 0;
    /* Espaço para as imagens não cortarem */
}

.inst-collage {
    position: relative;
    width: 100%;
    max-width: 550px;
    /* Largura máxima do bloco de fotos */
    height: 500px;
    /* Altura fixa para montar o layout */
    margin: 0 auto;
}

/* Estilo Geral das Imagens */
.inst-img {
    position: absolute;
    object-fit: cover;
    border-radius: 1rem;
    /* Bordas arredondadas (padrão do seu site) */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, z-index 0s;
}

.inst-img:hover {
    transform: scale(1.03);
    z-index: 10;
    /* Traz para frente ao passar o mouse */
}

/* POSICIONAMENTO DAS 3 FOTOS (Baseado na referência) */

/* Imagem 1: Pequena (Topo Esquerda) */
.img-1 {
    top: 0;
    left: 0;
    width: 50%;
    height: auto;
    aspect-ratio: 1/1;
    /* Quadrada */
    border: 4px solid var(--st-green);
    /* Borda Verde */
    z-index: 2;
}

/* Imagem 2: Grande Vertical (Direita) */
.img-2 {
    top: 10%;
    right: -10px;
    width: 50%;
    height: 70%;
    /* Vertical */
    border: 4px solid var(--st-brown);
    /* Borda Marrom */
    z-index: 1;
}

/* Imagem 3: Paisagem (Baixo Centro/Esquerda) */
.img-3 {
    bottom: -40px;
    left: 3%;
    width: 60%;
    height: auto;
    aspect-ratio: 4/3;
    border: 4px solid var(--st-yellow);
    /* Borda Amarela */
    z-index: 3;
    /* Fica por cima de todas */
}

/* RESPONSIVIDADE */
@media (min-width: 992px) {
    .inst-wrapper {
        grid-template-columns: 1fr 1fr;
        /* 2 Colunas no Desktop */
    }
}

/* Ajuste para Celular: Desmonta a colagem complexa para não quebrar */
@media (max-width: 768px) {
    .inst-collage {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .inst-img {
        position: relative;
        width: 100%;
        height: 250px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

/* ==========================================================================
   RAMOS E CARDS 3D (Correção Definitiva para Grade 2x2)
   ========================================================================== */
.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* ==========================================================================
   RAMOS (Layout Retornado para 4 Colunas)
   ========================================================================== */
.branches-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 coluna (um embaixo do outro) */
    gap: 2rem;
    max-width: 1400px;
    /* Aumentei a largura permitida para caber os 4 lado a lado */
    margin: 0 auto;
}

/* Tablet: 2 colunas (para não ficar muito apertado em telas médias) */
@media (min-width: 768px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 colunas (O layout 4x1 que você deseja) */
@media (min-width: 1024px) {
    .branches-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.card-3d {
    background-color: var(--nav-bg);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.card-3d:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(101, 67, 53, 0.2);
    border-bottom-color: var(--st-yellow);
}

/* Configuração das novas imagens dos Ramos */
.branch-icon-img {
    width: 90px;
    /* Largura da imagem */
    height: 90px;
    /* Altura da imagem (quadrado) */
    object-fit: contain;
    /* Garante que a imagem inteira apareça sem cortar */
    margin-bottom: 1.5rem;
    /* Espaço abaixo da imagem */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Sombra suave para destacar */
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse sobre o card */
.card-3d:hover .branch-icon-img {
    transform: scale(1.1);
    /* Aumenta ligeiramente a imagem */
}

.branch-card h3 {
    color: var(--st-brown);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.branch-age {
    color: var(--st-green);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SEÇÃO RADIOESCOTISMO (Layout Esquerda Img | Direita Grade)
   ========================================================================== */

/* Wrapper que segura os dois lados */
.radio-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Configuração para Desktop (2 Colunas) */
@media (min-width: 992px) {
    .radio-wrapper {
        grid-template-columns: 1fr 1.2fr;
        /* Imagem (45%) | Conteúdo (55%) */
        gap: 4rem;
    }
}

/* --- Lado Esquerdo: Imagem --- */
.radio-main-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
    /* Moldura branca elegante */
}

/* --- Lado Direito: Conteúdo --- */
.text-left {
    text-align: left;
    /* Alinha o título à esquerda */
    margin-bottom: 1rem;
}

.radio-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* A Grade dos Cards (Direita) */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 por linha */
    gap: 1.5rem;
}

/* Tablet e Desktop: Grade 2x2 */
@media (min-width: 600px) {
    .radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilo dos Cards (Miniatura do estilo Ramos) */
.radio-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--st-green);
    /* Detalhe verde ao passar o mouse */
}

.radio-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.radio-card h3 {
    color: var(--st-brown);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.radio-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ==========================================================================
   SEÇÃO QUEM FAZ ACONTECER (Equipe)
   ========================================================================== */

/* Espaçamento entre os grupos (Diretoria / Lobinho / etc) */
.team-group {
    margin-bottom: 4rem;
    text-align: center;
}

/* Título de cada categoria */
.team-category-title {
    font-size: 1.5rem;
    color: var(--st-brown);
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cabeçalho com Ícone (para os Ramos) */
.team-category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    width: 40px;
    /* Tamanho do ícone do ramo */
    height: auto;
}

.team-category-header h3 {
    font-size: 1.5rem;
    color: var(--st-brown);
    font-weight: 700;
    margin: 0;
}

/* O GRID FLEXÍVEL */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    /* Permite quebrar linha se não couber */
    justify-content: center;
    /* Centraliza os itens na tela */
    gap: 3rem;
    /* Espaço entre as pessoas */
}

/* Cartão do Membro Individual */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    /* Largura fixa para alinhar bonitinho */
}

/* Foto do Membro (Redonda) */
/* Foto do Membro (Estilo 3x4 Vertical) */
.member-avatar {
    /* MUDANÇA 1: Dimensões para ficar retangular vertical */
    width: 130px;
    height: 180px;
    /* Altura maior que a largura dá o formato retrato */

    /* MUDANÇA 2: Arredondamento leve nos cantos (em vez de 50% que deixava redondo) */
    border-radius: 8px;

    /* MANTIDO: Garante que a foto não fique esticada, ela se adapta ao retângulo */
    object-fit: cover;

    margin-bottom: 1rem;
    border: 3px solid var(--st-green);
    /* Mantém a borda verde da identidade */
    background-color: #f0f0f0;
    transition: all 0.3s ease;

    /* OPCIONAL: Uma sombra suave para parecer um cartão */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Efeito ao passar o mouse (ajustado para o novo formato) */
.team-member:hover .member-avatar {
    transform: translateY(-5px);
    /* Sobe um pouquinho em vez de dar zoom */
    border-color: var(--st-yellow);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Nome */
.member-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--st-brown);
    margin-bottom: 0.25rem;
}

/* Cargo */
.member-role {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* ==========================================================================
   GALERIA E FAQ
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background-color: #fff;
    transition: transform 0.3s ease;
    border: 2px solid #eee;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--st-yellow);
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    height: 100%;
}

/* FAQ */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 2px solid rgba(101, 67, 53, 0.2);
    /* Linha divisória marrom claro */
}

.faq-question {
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--st-brown);
}

.faq-question:hover {
    color: var(--st-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-icon {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--st-red);
    /* Ícone vermelho para destaque */
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(45deg);
    color: var(--st-green);
}

/* ==========================================================================
   CONTATO (Layout Atualizado: Títulos na Esquerda)
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 coluna */
    gap: 3rem;
    margin-bottom: 4rem;
    /* align-items: center; -> Removido para o título ficar no topo corretamente */
}

/* Layout Desktop: 2 Colunas */
@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        /* Esquerda (Texto+Lista) | Direita (Mapa) */
        gap: 5rem;
    }
}

/* --- Ajustes de Título Específicos para o Contato --- */
.contact-title-left {
    text-align: left;
    /* Força alinhamento à esquerda */
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-subtitle-left {
    text-align: left;
    /* Força alinhamento à esquerda */
    margin-left: 0;
    /* Remove margem automática que centralizava */
    margin-right: 0;
    margin-bottom: 3rem;
    /* Espaço antes da lista de ícones */
    max-width: 100%;
}

/* --- Estilo da Lista (Lado Esquerdo) --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon-box {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border: 2px solid var(--st-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--st-brown);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-box {
    background-color: var(--st-brown);
    color: var(--st-yellow);
    transform: scale(1.05);
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--st-green);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

/* --- Estilo do Mapa (Lado Direito) --- */
.map-container {
    width: 100%;
    height: 100%;
    /* Ocupa toda a altura disponível do grid */
    min-height: 450px;
    /* Altura mínima garantida */
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

/* --- CTA Final --- */
.contact-cta {
    background-color: #fff;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--st-green);
    max-width: 800px;
    /* Limita a largura para ficar bonito */
    margin: 0 auto;
    /* Centraliza */
    text-align: left;
    /* Alinha os textos dos labels à esquerda */
}

.contact-cta h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--st-brown);
}

.form-scout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Estilo dos Rótulos (Labels) */
.form-group label {
    font-weight: 700;
    color: var(--st-brown);
    font-size: 0.95rem;
}

/* Estilo dos Campos (Inputs) */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    /* Borda cinza suave */
    border-radius: 0.75rem;
    /* Bordas arredondadas */
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

/* Efeito ao clicar no campo (Foco) */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--st-green);
    /* Fica verde ao digitar */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 158, 73, 0.1);
}

/* Ajuste do Botão para ocupar toda a largura */
.btn-full {
    width: 100%;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    background-color: var(--st-yellow);
    /* Amarelo (conforme referência do anexo) */
    color: var(--st-brown);
    /* Texto Marrom para contraste */
}

.btn-full:hover {
    background-color: var(--st-green);
    /* Verde ao passar o mouse */
    color: #fff;
}

/* Responsividade Título Mobile */
@media (max-width: 768px) {

    .contact-title-left,
    .contact-subtitle-left {
        text-align: center;
        /* No celular fica mais bonito centralizado */
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   FOOTER (Layout 3 Colunas: Logos | Texto | Sociais)
   ========================================================================== */
.main-footer {
    background-color: var(--st-brown);
    /* Marrom Oficial */
    color: #fff;
    width: 100%;
    position: relative;
    margin-top: 3rem;
}

/* Faixa Tricolor (Usando sua técnica de ::before que é ótima) */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right,
            var(--st-green) 0%, var(--st-green) 33.3%,
            var(--st-yellow) 33.3%, var(--st-yellow) 66.6%,
            var(--st-red) 66.6%, var(--st-red) 100%);
    z-index: 10;
}

/* Container do Conteúdo (Controla as 3 colunas) */
.footer-content {
    display: flex;
    justify-content: space-between;
    /* Espalha: Esq | Meio | Dir */
    align-items: center;
    padding: 2rem 1.5rem;
    /* Espaçamento interno */
    max-width: 1400px;
    /* Limite para não ficar muito esticado em telas grandes */
    margin: 0 auto;
    /* Centraliza o container na tela */
    width: 100%;
    gap: 2rem;
}

/* --- 1. Lado Esquerdo: LOGOS --- */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    /* Ocupa 1 parte do espaço */
}

.partner-logo {
    height: 45px;
    /* Ajuste conforme necessário */
    width: auto;
    object-fit: contain;
    /* Se seus logos forem escuros, use o filter abaixo para deixá-los brancos */
    /* filter: brightness(0) invert(1); */
}

/* --- 2. Centro: TEXTOS --- */
.footer-text {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 2;
    /* Ocupa 2 partes (mais espaço para o texto não quebrar) */
    color: #e0e0e0;
}

.dev-highlight {
    font-weight: 700;
    color: var(--st-yellow);
    /* Amarelo VizLogik */
}

/* --- 3. Lado Direito: REDES SOCIAIS --- */
.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Alinha tudo para a direita */
    gap: 1rem;
    flex: 1;
    /* Ocupa 1 parte do espaço */
}

/* Estilo dos Botões de Ícone */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    /* Fundo transparente leve */
    color: #fff;
    border-radius: 50%;
    /* Bolinha */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--st-yellow);
    color: var(--st-brown);
    transform: translateY(-3px);
}

/* --- RESPONSIVIDADE (Celular e Tablets) --- */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        /* Empilha um embaixo do outro */
        text-align: center;
        gap: 1.5rem;
    }

    /* No celular, precisamos centralizar tudo o que antes era Esq ou Dir */
    .footer-logos {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-text {
        order: 2;
        /* Opcional: Garante que o texto fique no meio ou no fim */
    }
}

/* Responsividade Geral */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .branches-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

/* ==========================================================================
   FAIXA DIVISÓRIA (Apenas Tricolor)
   ========================================================================== */
.section-divider {
    width: 100%;
    height: 6px;
    /* Altura da faixa colorida (ajuste se quiser mais fina/grossa) */
    border: none;
    display: block;
    /* Garante que ocupe a linha toda */

    /* O gradiente tricolor é aplicado diretamente aqui agora */
    background: linear-gradient(to right,
            var(--st-green) 0%, var(--st-green) 33.3%,
            var(--st-yellow) 33.3%, var(--st-yellow) 66.6%,
            var(--st-red) 66.6%, var(--st-red) 100%);
}

/* =========================================
   LOGOTIPO MARCA D'ÁGUA (CANTO ESQUERDO)
   ========================================= */

/* 1. Prepara a seção */
#equipe {
    position: relative;
    overflow: hidden; 
    background-color: #fff;
    /* Adiciona um padding extra no topo para o logo não bater no texto se a tela for pequena */
    padding-top: 6rem; 
}

/* 2. Posiciona a Marca D'água */
#equipe::before {
    content: "";
    position: absolute;
    
    /* POSIÇÃO: Topo Esquerdo (onde está o círculo vermelho) */
    top: 100px;    /* 20px de distância do topo da seção */
    left: 100px;  /* Puxa um pouco para a esquerda para dar um charme de "corte" ou deixe 0 para alinhar */
    
    width: 200px; /* Tamanho do logotipo */
    height: 200px; /* Garante a proporção */
    
    /* A IMAGEM */
    background-image: url('img/logo-saint-hilaire.png'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Ajusta a imagem para caber na caixa de 400px */
    
    /* TRANSPARÊNCIA */
    opacity: 1; /* Bem suave. Aumente para 0.1 ou 0.2 se quiser mais forte */
    
    z-index: 0;
    pointer-events: none;
    
    /* ROTAÇÃO (Opcional): Deixa o logo levemente inclinado para estilo */
    transform: rotate(0deg); 
}

/* Garante que o texto fique por cima */
#equipe .container {
    position: relative;
    z-index: 1;
}