@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Roboto:wght@300;400&display=swap');

:root {
    /* Cores Principais da Marca (Marçala) */
    --primary-color: #550404; /* Marçala principal para o header, rodapé e títulos */
    --secondary-color: #6e1f1d; /* Marçala vibrante para botões/destaque */

    /* Cores de Fundo e Texto */
    --background-color: #f4f7f6; /* Fundo geral suave da página (quase branco) */
    --text-content-color: #333; /* Cor do texto principal para conteúdo (preto suave) */
    --light-text-color: #555; /* Cor do texto secundário ou parágrafos mais leves (cinza) */
    --card-bg: #ffffff; /* Fundo dos cards/elementos com conteúdo (branco puro) */

    /* Propriedades Comuns de UI */
    --border-radius: 8px;
    --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Cores de Elementos Específicos */
    --button-text-color: #f4f7f6; /* Cor do texto dentro dos botões (quase branco) */
    --button-hover-bg: #4a0303; /* Tom mais escuro do primário para hover dos botões */

    /* Cores dos Ícones Sociais (para Imagens SVG) */
    --social-icon-color-svg: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Filtro para tornar SVG branco (assume SVG original preto) */
    --social-icon-hover-color-svg: invert(86%) sepia(74%) saturate(849%) hue-rotate(345deg) brightness(101%) contrast(101%); /* Filtro para tornar SVG dourado (#FFCC00) */
    
    /* Cor do texto dos links sociais (o <span> abaixo do SVG) */
    --social-link-text-color: #ffffff; 
    --social-link-text-hover-color: #ffcc00;

    /* Cores do Botão Flutuante do WhatsApp (Assumindo que este AINDA usa Font Awesome) */
    --whatsapp-button-bg: #25d366; /* Verde oficial do WhatsApp para o fundo */
    --whatsapp-button-hover-bg: #1da851; /* Verde mais escuro para o hover do botão WhatsApp */
    --whatsapp-icon-color: #ffffff; /* Cor do ícone do WhatsApp (branco) */
}

/* --- Reset Básico e Fontes --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-content-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Header --- */
.header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    box-shadow: var(--box-shadow-light);
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2.8em;
    letter-spacing: -1px;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* --- Seções de Conteúdo Principal --- */
.main-content {
    padding: 40px 0;
}

.catalog-section,
.gallery-section {
    margin-bottom: 60px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
}

.catalog-section h2,
.gallery-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
}

.catalog-section p,
.gallery-section p {
    font-size: 1.1em;
    color: var(--light-text-color);
    text-align: center;
    margin-bottom: 30px;
}

/* --- Card de Catálogo PDF --- */
.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
}

.catalog-cover {
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    transition: transform 0.3s ease;
}

.catalog-cover:hover {
    transform: scale(1.03);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--button-text-color);
    border: 2px solid var(--secondary-color);
}

.primary-btn:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-3px);
}

.catalog-note {
    font-size: 0.9em;
    color: #888;
    margin-top: 25px;
    text-align: center;
}

/* --- Grade da Galeria --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* --- ESTILOS PARA O RODAPÉ (social-media.php) --- */
.redes-sociais-secao {
    background-color: var(--primary-color);
    color: var(--social-link-text-color); /* Cor do texto geral no rodapé (branco) */
    text-align: center;
    padding: 2rem 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.redes-sociais-secao h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
    color: inherit; /* Herda a cor do texto da seção (branco) */
}

.redes-sociais-secao p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    color: inherit; /* Herda a cor do texto da seção (branco) */
}

.icones-sociais-grandes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px; /* Espaço abaixo dos ícones */
}

.social-link {
    display: flex;
    flex-direction: column; /* Ícone em cima, texto em baixo */
    align-items: center;
    text-decoration: none;
    color: var(--social-link-text-color); /* Cor do texto do link (branco) */
    font-weight: bold;
    font-size: 0.9em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--social-link-text-hover-color); /* Cor do texto ao passar o mouse (dourado) */
}

.social-link .social-icon { /* Estilo para a IMAGEM SVG */
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: filter 0.3s ease, transform 0.3s ease;

    /* FILTRO PARA TORNAR O SVG BRANCO - ASSUME QUE O SVG ORIGINAL É PRETO */
    filter: var(--social-icon-color-svg); 
}

.social-link:hover .social-icon {
    /* FILTRO PARA TORNAR O SVG DOURADO AO HOVER */
    filter: var(--social-icon-hover-color-svg);
    transform: scale(1.1);
}


/* --- Modal de Ampliação de Imagem (Galeria) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

#image-caption {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
    font-size: 17px;
    padding: 10px 0;
    max-width: 80%;
    word-wrap: break-word;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

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

/* --- Botão Flutuante do WhatsApp (Assumindo que este usa Font Awesome) --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-button-bg);
    color: var(--whatsapp-icon-color); /* Cor do ícone do WhatsApp (branco) */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    font-size: 2em;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-button-hover-bg);
    transform: scale(1.1);
}

/* --- Responsividade da Página --- */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }

    .catalog-section,
    .gallery-section {
        padding: 25px;
    }

    .catalog-section h2,
    .gallery-section h2 {
        font-size: 1.8em;
    }

    .catalog-section p,
    .gallery-section p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .close-button {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    #image-caption {
        font-size: 15px;
    }

    /* Rodapé responsivo para telas menores */
    .redes-sociais-secao {
        padding: 1.5rem 15px; /* Ajusta padding para telas menores */
    }

    .redes-sociais-secao h3 {
        font-size: 1.8em;
    }

    .redes-sociais-secao p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .icones-sociais-grandes {
        gap: 20px; /* Ajusta espaçamento entre ícones para mobile */
    }
}

/* Para telas maiores, a flex-direction padrão de .icones-sociais-grandes (row)
   já vai manter os ícones lado a lado, então não precisa de media query específica
   para isso, a menos que você queira outra reorganização. */