/* GERAL E FONTES */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&family=Inter:wght@400;500&display=swap');

:root {
    --primary-olive: #6B7A47;
    --secondary-sage: #8FA068;
    --accent-gold: #B8C77A;
    --neutral-cream: #F5F3F0;
    --text-charcoal: #2C3E1F;
    --text-muted: #5A6B47;
    --white-pure: #FFFFFF;
    --shadow-soft: rgba(44, 62, 31, 0.08);
    --shadow-medium: rgba(44, 62, 31, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background: var(--neutral-cream);
    color: var(--text-charcoal);
    padding-top: 80px;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-olive), var(--secondary-sage));
    border-radius: 2px;
}
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* NAVEGAÇÃO */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 30px var(--shadow-soft);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(107, 122, 71, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-olive);
    text-decoration: none;
}

/* SEÇÕES */
section {
    margin: 0 auto 5rem auto;
    max-width: 1200px;
    padding: 4rem 2rem;
    background: var(--white-pure);
    border-radius: 32px;
    box-shadow: 0 8px 40px var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
section:not(.hero)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-olive), var(--secondary-sage));
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--secondary-sage) 100%);
    border-radius: 0;
    margin-bottom: 3rem;
    padding: 2rem;
}
.hero-content { flex: 1; z-index: 2; max-width: 600px; }
.hero-content h1 { color: var(--text-charcoal); margin-bottom: 2rem; }
.hero-content p { font-size: 1.3rem; color: var(--text-charcoal); font-style: italic; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 20px 60px var(--shadow-medium);
    border: 4px solid var(--white-pure);
    transition: transform 0.3s ease;
}
.hero-image img:hover { transform: scale(1.02) rotate(1deg); }

/* BOTÕES */
.btn-confirmar, .btn-historia, .btn-enviar, .btn-instagram, .btn-adicionar {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px var(--shadow-soft);
}
.btn-confirmar, .btn-enviar, .btn-instagram, .btn-adicionar {
    background: linear-gradient(135deg, var(--primary-olive), var(--secondary-sage));
    color: var(--white-pure);
}
.btn-historia {
    background: var(--white-pure);
    color: var(--text-charcoal);
    border: 2px solid var(--primary-olive);
}
.btn-confirmar:hover, .btn-enviar:hover, .btn-instagram:hover, .btn-adicionar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}
.btn-historia:hover {
    transform: translateY(-3px);
    background: var(--primary-olive);
    color: var(--white-pure);
}
.presenca { text-align: center; margin: 3rem auto; padding: 2rem; }

/* LOCAL DA CELEBRAÇÃO */
.local-celebracao { background: var(--neutral-cream); }
.evento-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.mapas-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.mapa-endereco{
    color: white;   
}

.mapa-horario{
    color: white;
}
.evento-card {
    background: var(--white-pure);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 12px 40px var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 122, 71, 0.1);
}
.evento-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px var(--shadow-medium); }
.card-icon { margin-bottom: 1.5rem; }
.card-icon .icon { font-size: 3rem; }
.card-content h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.data-principal { font-size: 2rem; font-weight: 700; color: var(--primary-olive); margin-bottom: 0.5rem; }
.ano { font-size: 1.5rem; color: var(--text-charcoal); margin-bottom: 0.8rem; }
.local-nome { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.8rem; }
.endereco { font-size: 1.1rem; margin-bottom: 1rem; }
.horario {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white-pure);
    background: linear-gradient(135deg, var(--primary-olive), var(--secondary-sage));
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
}

/* MAPAS */
.mapas-locais { background: var(--neutral-cream); align-items: center; }
.mapas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.mapa-card {
    background: var(--white-pure);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-soft);
    transition: all 0.3s ease;
}
.mapa-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px var(--shadow-medium); }
.mapa-info {
    padding: 1.5rem;
    background: var(--primary-olive);
    color: var(--white-pure);
    text-align: center;
}
.mapa-info h3 {
    color: var(--white-pure);
    margin-bottom: 0.5rem;
}
.mapa-iframe iframe { width: 100%; height: 300px; border: none; }

/* CONFIRMAÇÃO E FORMULÁRIO */
.confirmacao-intro, .confirmacao-final { text-align: center; font-size: 1.2rem; }
.contador-container {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-olive), var(--secondary-sage));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(107, 122, 71, 0.3);
    color: var(--white-pure);
}
.contador-titulo { color: var(--white-pure); font-size: 1.5rem; margin-bottom: 2rem; }
.contador-regressivo { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.contador-item { background: var(--white-pure); padding: 1.5rem 1rem; border-radius: 16px; min-width: 100px; }
.contador-numero { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary-olive); }
.contador-label { display: block; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; }
.contador-urgencia { color: var(--white-pure); font-weight: 600; }

.form-confirmacao {
    max-width: 500px;
    margin: 3rem auto 0;
    background: var(--white-pure);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 12px 40px var(--shadow-soft);
}
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(107, 122, 71, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    background: var(--neutral-cream);
    transition: all 0.3s ease;
}
.form-group input:focus { outline: none; border-color: var(--primary-olive); background: var(--white-pure); }
.input-group { display: flex; gap: 1rem; }
.btn-adicionar { padding: 1rem 1.5rem; font-size: 0.9rem; }
.lista-convidados { min-height: 60px; padding: 1rem; background: var(--neutral-cream); border-radius: 16px; margin-top: 0.5rem; }
.lista-vazia { color: var(--text-muted); font-style: italic; text-align: center; margin: 0; }
.item-convidado { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--white-pure); 
    padding: 0.8rem 1.2rem; 
    margin-bottom: 0.5rem; 
    border-radius: 12px; 
    flex-wrap: wrap;
}
.convidado-nome {
    flex: 1;
    min-width: 150px;
    margin-right: 1rem;
}
.btn-remover { 
    background: rgba(220, 53, 69, 0.1); 
    color: #dc3545; 
    border: none; 
    border-radius: 50%; 
    width: 28px; 
    height: 28px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    flex-shrink: 0;
}
.btn-remover:hover { background: #dc3545; color: var(--white-pure); }
.campo-ajuda { display: block; font-size: 0.85rem; color: #6c757d; margin-top: 0.5rem; }

/* GALERIA */
.galeria-intro { text-align: center; font-size: 1.2rem; }
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.galeria-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 40px var(--shadow-soft);
    transition: all 0.3s ease;
}
.galeria-grid img:hover { transform: scale(1.05) rotate(2deg); box-shadow: 0 20px 60px var(--shadow-medium); }
.galeria-img-top {
    object-fit: cover;
    object-position: top !important;
}

/* SEÇÃO DE PRESENTES */
.presentes {
    background: var(--white-pure);
    padding: 4rem 2rem;
}

.presentes-intro, 
.presentes-final {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.presentes-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.presentes-erro {
    text-align: center;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 16px;
    color: #dc3545;
    margin: 2rem auto;
    max-width: 600px;
}

.presentes-lista {
    max-width: 900px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.presente-item {
    display: flex;
    align-items: center;
    background: var(--white-pure);
    border: 2px solid rgba(107, 122, 71, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    gap: 2rem;
    min-height: 150px;
}

.presente-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-medium);
    border-color: var(--primary-olive);
}

.presente-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--neutral-cream);
    padding: 10px;
    flex-shrink: 0;
}

.presente-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.presente-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-charcoal);
    margin: 0;
    line-height: 1.2;
}

.presente-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.sem-presentes {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--neutral-cream);
    border-radius: 16px;
}

/* DICAS */
.dicas-header { display: flex; align-items: center; justify-content: center; gap: 40px; margin-bottom: 40px; }
.dicas-foto { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid var(--primary-olive); }
.dicas-content { flex: 1; }
.dicas-intro { font-size: 1.2rem; }
.dicas-lista { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; }
.dicas-lista li { background: var(--white-pure); margin-bottom: 1.5rem; padding: 2rem; border-radius: 16px; border-left: 4px solid var(--primary-olive); }

/* AGRADECIMENTO */
.agradecimento {
    position: relative;
    background-image: url('foto_fim.jpeg');
    opacity: 0.5;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.agradecimento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.agradecimento h2 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.agradecimento h2::after {
    background: var(--white-pure);
}

.agradecimento-msg {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: white;
}

.btn-instagram {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-olive), var(--secondary-sage));
    color: white;
}

/* Animação de entrada para presentes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presente-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Delay progressivo para cada item */
.presente-item:nth-child(1) { animation-delay: 0.1s; }
.presente-item:nth-child(2) { animation-delay: 0.2s; }
.presente-item:nth-child(3) { animation-delay: 0.3s; }
.presente-item:nth-child(4) { animation-delay: 0.4s; }
.presente-item:nth-child(5) { animation-delay: 0.5s; }
.presente-item:nth-child(6) { animation-delay: 0.6s; }
.presente-item:nth-child(7) { animation-delay: 0.7s; }
.presente-item:nth-child(8) { animation-delay: 0.8s; }

/* =================================== */
/*          REGRAS PARA MOBILE         */
/* =================================== */

@media (max-width: 768px) {
    /* --- AJUSTE GERAL --- */
    body {
        padding-top: 70px;
    }
    
    section {
        padding: 3rem 1.5rem;
        margin-bottom: 3rem;
        border-radius: 24px;
    }
    
    h2 {
        margin-bottom: 2.5rem;
        font-size: 2rem;
    }
    
    /* --- NAVBAR --- */
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    /* --- HERO SECTION --- */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image img {
        max-width: 100%;
        height: 400px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* --- FORMULÁRIO DE CONFIRMAÇÃO --- */
    .form-confirmacao {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Grupo de adição de convidados */
    .input-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    #nomeConvidado {
        width: 100%;
    }
    
    #btnAdicionarConvidado {
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Lista de convidados */
    .lista-convidados {
        padding: 1rem;
    }
    
    .item-convidado {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem 1rem;
    }
    
    .convidado-nome {
        min-width: auto;
        margin-right: 0.5rem;
    }
    
    /* Contador regressivo */
    .contador-container {
        padding: 2rem 1rem;
        margin: 2rem auto;
    }
    
    .contador-regressivo {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .contador-item {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .contador-numero {
        font-size: 2rem;
    }
    
    .contador-label {
        font-size: 0.8rem;
    }
    
    /* EVENTO CARDS */
    .evento-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .evento-card {
        padding: 2rem;
    }
    
    /* MAPAS */
    .mapas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mapa-info {
        padding: 1.5rem;
    }
    
    .mapa-iframe iframe {
        height: 250px;
    }
    
    /* GALERIA */
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* PRESENTES */
    .presentes-lista {
        padding: 0 1rem;
    }
    
    .presente-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .presente-item img {
        width: 100px;
        height: 100px;
    }
    
    /* DICAS */
    .dicas-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .dicas-foto {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    /* --- AJUSTES PARA TELAS MUITO PEQUENAS --- */
    section {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* FORMULÁRIO */
    .form-confirmacao {
        padding: 1.5rem 1rem;
    }
    
    /* CONTADOR */
    .contador-container {
        padding: 1.5rem 1rem;
    }
    
    .contador-item {
        min-width: 70px;
        padding: 0.8rem 0.3rem;
    }
    
    .contador-numero {
        font-size: 1.8rem;
    }
    
    /* BOTÕES */
    .btn-confirmar, 
    .btn-historia, 
    .btn-enviar, 
    .btn-instagram, 
    .btn-adicionar {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* EVENTO CARDS */
    .evento-card {
        padding: 1.5rem;
    }
    
    .data-principal {
        font-size: 1.8rem;
    }
    
    /* GALERIA */
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    /* PRESENTES */
    .presente-item {
        padding: 1.2rem;
    }
    
    .presente-info h4 {
        font-size: 1.4rem;
    }
}