/* =========================================
   1. VARIÁVEIS E CORES (NATUREZA)
========================================= */
:root {
    --green-dark: #2c4c3b;
    --green-medium: #4a7c59;
    --lavender: #967bb6;
    --lavender-soft: #f4effa;
    --white: #ffffff;
    --bg-page: #fdfdfb;
    --gold: #ffd700;
}

/* =========================================
   2. RESET E CONFIGURAÇÕES BÁSICAS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-page);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--green-dark);
    font-weight: 700;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%;
}

/* =========================================
   3. EFEITO PARALLAX (UNIVERSAL)
========================================= */
.parallax {
    position: relative;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    width: 100%;
    z-index: 1;
}

/* Fallback para Safari/iOS (se o Parallax falhar em alguns iPhones) */
@supports (-webkit-touch-callout: none) {
    .parallax {
        background-attachment: scroll !important;
    }
}

/* =========================================
   4. SEÇÕES PARALLAX ESPECÍFICAS
========================================= */
/* Imagem 1 - Capa (Hero) */
.hero {
    height: 100vh;
    background-image: url('2.jpeg'); /* Mobile Inicial */
}

/* Imagem 2 - Meio da página */
.mid-image-section {
    height: 500px;
    background-image: url('9.jpeg'); /* Mobile Inicial */
    margin: 40px 0;
}

/* Troca de imagens para Desktop */
@media (min-width: 1025px) {
    .hero { 
        background-image: url('1.jpeg'); 
    }
    .mid-image-section { 
        background-image: url('10.jpeg'); 
        height: 650px; 
    }
}

/* =========================================
   5. ALINHAMENTO DO TÍTULO (HERO)
========================================= */
.hero-overlay {
    height: 100%;
    width: 100%;
    background: rgba(44, 76, 59, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-content {
    background: rgba(255, 255, 255, 0.92);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center; /* Alinha o texto interno */
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza elementos filhos */
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid var(--lavender-soft);
}

.pre-title {
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    width: 100%;
    display: block;
}

.subtitle {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--green-medium);
    font-weight: 600;
}

@media (min-width: 1025px) {
    .hero-content h1 { font-size: 5rem; }
    .hero-content { padding: 80px; }
}

/* =========================================
   6. ANIMAÇÕES DE REVEAL
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   7. WHATSAPP BOTÃO FLUTUANTE
========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-weight: 600;
    transition: 0.3s;
}

.whatsapp-btn:hover { transform: scale(1.05); }

/* =========================================
   8. CRONÔMETRO
========================================= */
.countdown-section { 
    padding: 80px 0; 
    text-align: center; 
    background: var(--lavender-soft); 
}

.countdown-section h2 { margin-bottom: 30px; }

#countdown { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.time-block { 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    min-width: 95px; 
    border-bottom: 4px solid var(--green-medium); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

.time-block span { 
    font-size: 2.2rem; 
    font-weight: 700; 
    color: var(--green-dark); 
    display: block; 
}

.time-block label { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: var(--lavender); 
    font-weight: 600; 
}

/* =========================================
   9. DETALHES E CONVITE
========================================= */
.details { padding: 100px 0; text-align: center; }
.deco-icon { font-size: 2.5rem; color: var(--green-medium); margin-bottom: 20px; }
.invite-text { max-width: 700px; margin: 0 auto 50px; font-size: 1.1rem; color: #555; }
.info-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.info-card { background: white; padding: 40px; border-radius: 20px; width: 320px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.icon-style { font-size: 2.5rem; color: var(--lavender); margin-bottom: 20px; display: block; }

/* =========================================
   10. LOCALIZAÇÃO E RSVP
========================================= */
.location-rsvp { padding: 100px 0; background: white; }
.grid-container { display: flex; flex-direction: column; gap: 40px; }
.card { background: var(--bg-page); padding: 50px 30px; border-radius: 20px; flex: 1; border: 1px solid var(--lavender-soft); text-align: center; }
.iframe-wrapper { margin: 30px 0; border-radius: 15px; overflow: hidden; border: 5px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.deadline { margin-top: 15px; font-weight: 700; color: #8b3a3a; font-size: 0.95rem; }

/* BOTÕES */
.btn { display: inline-block; padding: 16px 35px; border-radius: 50px; text-decoration: none; font-weight: 600; margin-top: 25px; transition: 0.3s; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.btn-map { border: 2px solid var(--green-dark); color: var(--green-dark); }
.btn-map:hover { background: var(--green-dark); color: white; }
.btn-rsvp { background: var(--lavender); color: white; box-shadow: 0 5px 15px rgba(150, 123, 182, 0.4); }

/* =========================================
   11. CARROSSEL DE FOTOS
========================================= */
.carousel-section { padding: 100px 0; text-align: center; }
.hint { font-size: 0.8rem; color: var(--lavender); margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase; }
.carousel-container { overflow-x: auto; padding: 20px 0; scrollbar-width: none; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 20px; padding: 0 10px; }
.gallery-img { height: 350px; width: auto; border-radius: 15px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: 0.4s; }
.gallery-img:hover { transform: scale(1.03); }

@media (min-width: 1025px) {
    .grid-container { flex-direction: row; }
    .gallery-img { height: 500px; }
}

/* =========================================
   12. LIGHTBOX (TELA CHEIA)
========================================= */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: none; justify-content: center; align-items: center; z-index: 10000; }
.lightbox img { max-width: 90%; max-height: 85%; border: 5px solid white; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; }

/* =========================================
   13. PÉTALAS / NATUREZA CAINDO
========================================= */
#leaves-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }
.leaf { position: absolute; top: -50px; opacity: 0.7; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(360deg); } }

/* =========================================
   14. RODAPÉ (BARCELETE BUFFET)
========================================= */
footer {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-top: 6px solid var(--lavender);
}

.footer-names { 
    font-family: 'Playfair Display', serif;
    color: white; 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
    width: 100%;
}

.buffet-info { 
    font-size: 0.85rem; 
    opacity: 0.9; 
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stars { 
    color: var(--gold); 
    font-size: 1rem; 
    margin: 12px 0; 
}

.footer-link {
    color: var(--lavender-soft);
    text-decoration: underline;
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.footer-link:hover { color: white; }

/* FIM DO ARQUIVO COMPLETO */