/* Definições Gerais e Paleta com Tema Azul e Rosa */
:root {
    --primary-color: #3f51b5; /* Azul Índigo Principal */
    --secondary-color: #2196f3; /* Azul Claro de Destaque */
    --accent-color: #ff4081; /* Rosa Vibrante (Acento/Detalhes) */
    --success-color: #4CAF50; /* Novo verde para o botão RSVP */
    --text-color: #333;
    --light-text: #555;
    --bg-color: #f4f7f9; /* Fundo mais claro e moderno */
    --card-bg: #fff;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra mais suave */
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; 
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    text-align: center;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--primary-color);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 50px; 
}

.section-title {
    font-size: 2.5em; /* Título maior */
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 4px solid var(--accent-color); /* Borda mais grossa */
    display: inline-block;
    padding-bottom: 8px;
    font-weight: 700;
}

/* --- ESTILOS DO NOVO CABEÇALHO (Foto 2 fixa e Nome Abaixo) --- */
.hero { 
    display: none; 
} 

.fixed-hero-header {
    width: 100%;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
}

.hero-image-container {
    max-height: 650px; /* Altura máxima para desktop */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 65vh; /* Altura responsiva maior para desktop */
}

.hero-fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    object-position: right center; 
}

.hero-name-bar {
    padding: 25px 10px;
    background-color: var(--primary-color); 
    color: white;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.hero-name-bar h1 {
    color: white;
    font-family: 'Great Vibes', cursive;
    font-size: 5.5em; 
    margin-bottom: 5px;
    line-height: 1.1;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); 
}

.hero-name-bar p {
    font-size: 1.4em;
    color: #eee;
    font-style: normal; 
    margin-top: 10px;
    font-weight: 300;
}

/* --- CORREÇÃO DA ANIMAÇÃO DO NOME (Garante visibilidade) --- */
.hero-name-bar .kaboom-effect {
    animation: kaboom 1.5s forwards; 
}

@keyframes kaboom {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1; 
        transform: scale(1);
    }
}

.age-badge {
    background-color: var(--accent-color); 
    color: white;
    padding: 5px 12px;
    border-radius: 50%;
    font-size: 0.6em;
    vertical-align: top;
    margin-left: 5px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* --- CRONÔMETRO --- */
.timer-section {
    margin: 40px 0;
}

.timer-section h2 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 15px;
    border-radius: 12px;
    min-width: 90px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.countdown-item span {
    display: block;
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}

.countdown-item p {
    font-size: 0.9em;
    margin-top: 8px;
    font-weight: 400;
}

/* --- SEÇÃO DE MENSAGENS BONITAS --- */
.quote-section {
    margin: 50px 0;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle); 
}

.quote-text {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.25em; 
    line-height: 1.7;
    color: var(--light-text);
    font-style: italic;
    padding: 0 10px;
}

.author {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 20px;
    font-size: 1.1em;
}

/* --- Cards de Detalhes (Alinhamento de Largura) --- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px; 
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.icon-large {
    font-size: 2.8em;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.detail-value {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.location address {
    font-style: normal;
    font-size: 1em;
    color: var(--light-text);
    margin: 8px 0;
}

.map-link a {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px; 
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.map-link a:hover {
    background-color: var(--primary-color);
}


/* --- GALERIA DE FOTOS --- */
.photo-gallery {
    margin-top: 50px;
}

.carousel-container {
    position: relative;
    max-width: 95%; 
    margin: 0 auto;
    overflow: hidden; 
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    background-color: var(--card-bg); 
    padding: 15px; 
}

.carousel-track {
    display: flex; 
    transition: transform 0.6s ease-in-out; 
    width: 100%;
}

.carousel-item {
    min-width: 100%; 
    flex-shrink: 0; 
    height: 600px; 
    position: relative;
    overflow: hidden;
    border-radius: 10px; 
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(63, 81, 181, 0.85); 
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%; 
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.dot {
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid white;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}


/* --- Seção Sugestões de Presente --- */
.dress-code {
    margin-top: 50px;
}

.wide-card {
    border-left: 5px solid var(--secondary-color);
    text-align: left;
}

.gift-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gift-item {
    /* SUAS ALTERAÇÕES APLICADAS AQUI */
    padding: 20px;
    width: 80%;
    max-width: 250px; 
    background-color: var(--bg-color); 
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    margin: 10px; 
}

.gift-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gift-icon {
    font-size: 2.2em;
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.gift-item:hover .gift-icon {
    color: var(--primary-color);
}

.final-note {
    font-weight: 600;
    color: var(--primary-color);
    border-top: 2px solid var(--secondary-color);
    padding-top: 20px;
    font-style: normal;
}

/* --- Card de Confirmação Final (RSVP) --- */
.rsvp-final-card {
    background-color: var(--primary-color); 
    color: white;
    padding: 50px; /* Padding mantido */
    border-radius: 15px; 
    margin: 50px auto; 
    max-width: 900px; 
    box-shadow: var(--shadow-medium);
    border-left: none; 
    border-top: none; 
    text-align: center;
}

.rsvp-final-card h2 {
    color: white;
    margin-bottom: 20px; 
    font-size: 2.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rsvp-final-card h2 i {
    color: white; 
    font-size: 1.2em;
}

.rsvp-final-card p {
    color: #fff;
    margin-bottom: 30px; 
    font-size: 1.1em;
}

.rsvp-final-button {
    /* CORREÇÃO: Garante que o ícone e o texto fiquem na mesma linha */
    white-space: nowrap; 
    background-color: var(--success-color); /* Verde Vibrante */
    color: white;
    /* CORREÇÃO PRINCIPAL: Padding ajustado para ser mais discreto */
    padding: 10px 30px; 
    font-size: 1.1em; /* Fonte ajustada para o padding menor */
    border-radius: 30px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.rsvp-final-button:hover {
    background-color: #43A047; /* Tom mais escuro de verde */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */
footer {
    background-color: #333; 
    color: #ccc;
    padding: 30px 0;
    margin-top: 50px;
}


/* --- Responsividade --- */
@media (max-width: 768px) {
    
    /* SUAS ALTERAÇÕES MANUAIS NO CABEÇALHO (Altura e Padding) */
    .hero-image-container {
        /* Altura da foto no celular */
        max-height: 420px;
        min-height: 420px;
        height: 500px;
    }
    
    .hero-fixed-image {
        height: 100%;
        object-fit: cover; 
        object-position: right center;
    }

    .hero-name-bar {
        /* Seus valores para padding e border-radius */
        padding: 50px 10px 50px 10px;
        border-radius: 0px 0px 10px 10px;
    }

    .hero-name-bar h1 {
        font-size: 3.5em;
    }

    .hero-name-bar p {
        font-size: 1.1em;
    }
    
    /* CARDS */
    .card, .rsvp-final-card, .quote-section {
        max-width: none; 
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px;
    }
    
    .countdown-grid {
        gap: 10px;
    }

    .countdown-item span {
        font-size: 2.5em;
    }

    /* Presentes em celular usam largura total */
    .gift-item {
        width: 100%;
        margin: 10px 0;
    }

    .carousel-item {
        height: 400px; 
    }

    .carousel-btn {
        padding: 10px 15px;
    }
    
    /* Ajuste de padding do botão RSVP para celular */
    .rsvp-final-button {
        padding: 8px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-name-bar h1 {
        font-size: 3em;
    }
    .hero-name-bar p {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .carousel-item {
        height: 300px;
    }
}