:root {
    --primary-color: #1a1a1a; /* Preto (suave) */
    --accent-color: #b71c1c; /* Vermelho institucional */
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-radius: 8px;
    --spacing-unit: 1rem;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* Header */
.main-header {
    background-color: #000000; /* Fundo preto para destacar logo branca */
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centralizado sempre */
}

.logo {
    height: 100px; /* Aumentado de 60px para 100px */
    width: auto;
    display: block;
}

.church-name {
    display: none; /* Removido texto visualmente */
}

/* Sections General */
section {
    padding: 2.5rem 0;
    background-color: var(--white);
    margin-bottom: 2px;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* Hero Section */
.hero {
    background-color: var(--white); /* Mudando para fundo branco para suavizar transição */
    color: var(--text-color);
    text-align: left; /* Alinhamento melhor para layout lado a lado */
    padding: 4rem 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse; /* Imagem em cima no mobile */
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        gap: 3rem;
    }
    
    .hero-content {
        flex: 1;
    }

    .hero-image {
        flex: 1;
    }
}

.hero h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 1;
}

.welcome-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
    max-width: none;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-hero {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px; /* Botão arredondado */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.3);
}

.btn-hero:hover {
    background-color: #900a0a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(183, 28, 28, 0.4);
}

/* Feature Sections (Zig-Zag) */
.feature-section {
    padding: 4rem 0;
}

.feature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .feature-container {
        flex-direction: row;
        gap: 4rem;
    }

    /* Inverte a ordem apenas se tiver a classe .reverse e for desktop */
    .feature-container.reverse {
        flex-direction: row-reverse;
    }

    .feature-text, .feature-image {
        flex: 1;
    }
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.feature-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 5px;
}

.feature-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Ajustes na Galeria Restante */
.church-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Mais responsivo */
    margin-top: 3rem;
}

/* Sobrepõe estilo antigo */
.about-us, .history {
    text-align: left;
}

.about-us p, .feature-section p {
    max-width: none;
}

/* About & History */
.about-us, .history {
    text-align: center;
}

.about-us p, .history p {
    max-width: 800px;
    margin: 0 auto;
}

/* Galeria de Fotos */
.church-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .church-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .church-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.church-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.church-gallery img:hover {
    transform: scale(1.02);
}

/* Mission, Vision, Values */
.mission-vision-values {
    text-align: center;
}

.mvv-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .mvv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mvv-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mvv-item h4 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.mvv-item ul {
    list-style: none;
    padding: 0;
}

.mvv-item ul li {
    margin-bottom: 0.3rem;
}

/* Form Section */
.visitor-form-section {
    background-color: #fff;
    border-top: 4px solid var(--accent-color);
}

.visitor-form-section h3 {
    text-align: center;
}

.visitor-form {
    max-width: 500px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.radio-group .radio-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.3rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

button[type="submit"] {
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #900a0a; /* Tom mais escuro do vermelho */
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-feedback {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    min-height: 1.5em; 
}

.form-feedback.success {
    color: #27ae60;
}

.form-feedback.error {
    color: #c0392b;
}

/* Honeypot invisível para bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.main-footer p {
    margin-bottom: 0.5rem;
}

/* Animações de Entrada (Scroll) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Atraso sequencial para itens de grade se desejar */
.mvv-item:nth-child(1) { transition-delay: 0.1s; }
.mvv-item:nth-child(2) { transition-delay: 0.2s; }
.mvv-item:nth-child(3) { transition-delay: 0.3s; }
