/* --- CONFIGURAÇÕES DE CORES E FONTES --- */
:root {
    --gold: #B38B4D;          /* Dourado sofisticado */
    --gold-light: #D4B882;
    --dark: #232323;          /* Cinza quase preto para textos */
    --light-bg: #FAF9F6;      /* Off-white para o fundo */
    --white: #FFFFFF;
    --gray: #777777;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- RESET BÁSICO --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-body); 
    background-color: var(--light-bg); 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* --- TELA DE BLOQUEIO (SITE-PASS) --- */
#lock-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--light-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.8s ease;
}
.lock-box {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    max-width: 450px;
    width: 90%;
}
.input-group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.input-group input {
    padding: 15px;
    border: 1px solid #e0e0e0;
    outline: none;
    font-family: var(--font-body);
    text-align: center;
}
.input-group button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
}
.input-group button:hover { background: var(--gold); }

/* --- TIPOGRAFIA PREMIUM --- */
.brand-title { 
    font-family: var(--font-heading); 
    font-size: 3.5rem; 
    font-weight: 300; 
    color: var(--dark);
}
.text-light { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.section-title { 
    font-family: var(--font-heading); 
    font-size: 2.8rem; 
    color: var(--gold); 
    margin-bottom: 15px;
}
.section-desc { 
    font-weight: 300; 
    color: var(--gray); 
    max-width: 600px; 
    margin: 0 auto 40px;
}
.subtitle { 
    font-size: 0.8rem; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    display: block; 
}

/* --- HERO (INTRODUÇÃO) --- */
.hero { 
    height: 100vh; 
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
}
.countdown-box { 
    margin: 30px auto 0 auto; /* O 'auto' é a mágica que centraliza a caixa na tela */
    font-size: 1.1rem; 
    border-top: 1px solid rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding: 15px 0;
    width: 300px;
    text-align: center; /* Garante que o texto dentro também fique no meio */
}

/* --- SEÇÕES E CONTAINERS --- */
.section { padding: 100px 0; }
.white-bg { background-color: var(--white); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.text-center { text-align: center; }

/* --- BOTÕES --- */
.btn-primary { 
    display: inline-block; 
    background: var(--gold); 
    color: var(--white); 
    padding: 18px 40px; 
    text-decoration: none; 
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
}
.btn-primary:hover { background: var(--dark); }

.btn-secondary { background: #f0f0f0; border: none; padding: 10px 20px; cursor: pointer; margin-bottom: 10px; }

.btn-outline { 
    background: transparent; 
    border: 1px solid var(--gold); 
    color: var(--gold); 
    padding: 12px; 
    width: 100%; 
    cursor: pointer;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .brand-title { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .hero { background-attachment: scroll; } 
} /* <--- ESTA CHAVE ESTAVA FALTANDO E CONSERTA TUDO! */

/* --- GALERIA DE FOTOS --- */
.galeria-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.foto-principal {
    position: relative;
    display: block;
    width: 100%;
    height: 550px; /* Aumentei um pouquinho para dar mais destaque */
    overflow: hidden;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: var(--light-bg); /* Fundo clarinho para preencher as bordas */
}

.foto-principal img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <-- Essa é a palavra mágica que impede os cortes! */
}

.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.anterior { left: 20px; }
.proxima { right: 20px; }

.miniaturas {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.miniaturas img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
}

/* --- FAXINA GERAL DE ORGANIZAÇÃO (PARA TUDO FICAR UM EMBAIXO DO OUTRO) --- */

main, #main-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0;
    margin: 0;
}

/* Força cada seção a ser uma "linha" única e centralizada */
section, .section, .galeria-container, .upload-widget, .container {
    display: block !important;
    position: relative !important;
    width: 90% !important;
    max-width: 1000px !important;
    margin: 40px auto !important;
    float: none !important; /* Remove qualquer flutuação lateral */
    clear: both !important;
}

/* Ajuste das caixas brancas (Cerimônia, Presentes, etc) */
.upload-widget, .gift-card, .lock-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 20px auto !important;
}

.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* --- CERIMÔNIA E MAPA --- */
.cerimonia-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.cerimonia-img {
    width: 100%;
    max-width: 500px; /* Mantém a foto em um tamanho bom */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.mapa-container {
    width: 100%;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* --- ESTILOS DA LISTA DE PRESENTES --- */

/* Container que organiza os cards lado a lado */
.gift-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    margin-top: 40px;
}

/* O formato individual de cada card */
.gift-card {
    background-color: #ffffff;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Sombra suave */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Efeito ao passar o mouse por cima do card */
.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Área da imagem (com background-image) */
.gift-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* Área do texto dentro do card */
.gift-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif; /* Fonte mais limpa para o título do presente */
}

.gift-info .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

/* Botão de presentear */
.gift-info .btn-outline {
    background-color: #3a4750; /* Cor carvão/cinza escuro */
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.gift-info .btn-outline:hover {
    background-color: #2d363d;
}