/* Reset e Variáveis */
:root {
    --primary-color: #d4af37; /* Dourado */
    --text-light: #ffffff;
    --text-dark: #333333;
    --font-script: 'Great Vibes', cursive;
    --font-title: 'Quattrocento', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

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

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('hero desktop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Overlay Escuro para melhorar leitura */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    padding: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.pre-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.main-title {
    font-family: var(--font-title);
    font-size: 5rem;
    margin: 10px 0;
    line-height: 1.2;
    font-weight: 400;
}

.date {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
}

.date-detail {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Welcome Section */
.welcome-section {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 80px 0;
    text-align: center;
}

.welcome-section h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 400; /* Menos negrito */
    white-space: nowrap; /* Força uma linha no desktop */
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto; /* Centralizado e com margem inferior */
}

/* Grid de Fotos */
.photos-grid {
    display: flex;
    justify-content: center;
    gap: 0; /* Remove espaço entre as fotos */
    margin-top: 60px;
    width: 100%; /* Ocupa toda a largura */
}

.photos-grid img {
    width: 33.333%; /* Divide igualmente */
    height: 500px; /* Altura fixa para alinhar */
    object-fit: cover;
    border-radius: 0; /* Remove bordas arredondadas */
    transition: transform 0.3s ease;
}

.photos-grid img:hover {
    transform: scale(1.02);
    z-index: 1; /* Garante que a imagem com zoom fique por cima */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Timeline Section */
.timeline-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.timeline-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 80px;
    color: #555;
    line-height: 1.8;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start; /* Alinha ao topo caso o texto seja longo */
    margin-bottom: 60px;
    gap: 50px;
}

.timeline-img {
    flex: 1;
    max-width: 50%;
}

.timeline-img img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.timeline-content {
    flex: 1;
    padding-top: 10px; /* Leve ajuste para alinhar visualmente com o topo da imagem se necessário */
}

.timeline-content h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.timeline-footer {
    text-align: center;
    margin-top: 80px;
    max-width: 1000px; /* Aumentado para tentar caber em 2 linhas */
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6; /* Reduzido levemente o espaçamento entre linhas */
}

/* Map Section */
.map-section {
    background-color: #ffffff;
    padding: 0;
    text-align: center;
    width: 100%;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block; /* Remove espaço extra em baixo do iframe */
    box-shadow: none; /* Remove sombra para integrar melhor */
    border-radius: 0; /* Remove bordas arredondadas para full width */
}

/* Dress Code Section */
.dress-code-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
}

.dress-code-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.dress-code-text {
    flex: 1;
    text-align: left;
}

.dress-code-subtitle {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
}

.dress-code-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.dress-code-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dress-code-img img {
    max-width: 100%;
    height: auto;
    /* Ajuste de tamanho para ficar harmonioso com o texto */
    max-height: 500px; 
}

/* RSVP Section */
.rsvp-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
}

.rsvp-content {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap; /* Permite quebra em telas menores se necessário, embora media query cuide disso */
}

.rsvp-img {
    flex: 1; /* Ocupa espaço flexível igual */
    min-width: 0; /* Evita overflow em flex items */
    position: relative;
}

.rsvp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute; /* Adicionado para garantir que preencha o container relativo */
    top: 0;
    left: 0;
}

.rsvp-text-container {
    flex: 1; /* Ocupa espaço flexível igual */
    min-width: 0; /* Evita overflow em flex items */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px; /* Reduz padding para diminuir altura total */
}

.rsvp-text {
    max-width: 550px; /* Leve ajuste na largura máxima */
    text-align: left;
    width: 100%; /* Garante que o texto use a largura disponível até o max-width */
}

.rsvp-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

/* Gift List Section */
.gift-list-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
}

.gift-list-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.gift-list-text {
    flex: 1;
    text-align: left;
}

.gift-list-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.gift-list-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-list-img img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.btn-gift {
    display: inline-block;
    background-color: #f2f2f2;
    color: #333;
    padding: 18px 50px;
    text-decoration: none;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 30px;
    transition: all 0.3s ease;
    border-radius: 0;
    font-size: 0.9rem;
}

.btn-gift:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Accommodation Section */
.accommodation-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
}

.accommodation-content {
    display: flex;
    align-items: center; /* Centraliza verticalmente para evitar espaços vazios desiguais */
    gap: 60px;
}

.accommodation-text {
    flex: 1;
    text-align: left;
}

.accommodation-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.hotel-info {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
}

.hotel-info p {
    margin-bottom: 0;
}

.accommodation-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accommodation-img img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Beauty Section */
.beauty-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
}

.beauty-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.beauty-text {
    flex: 1;
    text-align: left;
}

.beauty-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.beauty-contact {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
}

.beauty-contact p {
    margin-bottom: 0;
}

.beauty-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.beauty-img img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Mantém um pouco menor como pedido, mas sem moldura extra */
    object-fit: contain;
}

/* Countdown Section */
.countdown-section {
    position: relative;
    background-image: url('final.webp'); /* Imagem atualizada para desktop */
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 56.25vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: 40px;
}

/* Overlay para garantir legibilidade */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.countdown-section .container {
    position: relative;
    z-index: 2;
    width: 100%; /* Garante que o container ocupe a largura disponível */
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Centraliza verticalmente */
    gap: 40px; /* Espaço entre os números */
    margin-top: 40px;
    font-family: var(--font-body);
    color: #ffffff; /* Texto branco */
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-item .number {
    font-family: var(--font-body);
    font-size: 4rem; /* Números maiores */
    color: #ffffff; /* Branco */
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 300; /* Mais leve/minimalista */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra para leitura */
}

.countdown-item .label {
    font-size: 1rem;
    text-transform: lowercase;
    color: #e0e0e0; /* Cinza bem claro */
    letter-spacing: 1px;
}

.separator {
    width: 1px;
    height: 80px; /* Altura da linha separadora */
    background-color: rgba(255, 255, 255, 0.5); /* Branco semitransparente */
    margin-top: -20px; /* Ajuste fino para alinhar visualmente com os números */
}

/* Animação simples de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero {
        background-image: url('hero mobile.webp');
    }

    .main-title {
        font-size: 3.5rem;
    }
    
    .pre-title {
        font-size: 1rem;
    }

    .welcome-section {
        padding: 60px 0;
    }

    .welcome-section h2 {
        font-size: 1.8rem;
        white-space: normal; /* Quebra linha no mobile */
    }

    .photos-grid {
        flex-direction: column;
        align-items: center;
    }

    .photos-grid img {
        width: 100%;
        height: auto;
        margin-bottom: 0;
    }

    /* Timeline Responsivo */
    .timeline-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .timeline-img {
        max-width: 100%;
        width: 100%;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Map Responsivo */
    .map-section iframe {
        height: 300px;
    }

    /* Dress Code Responsivo */
    .dress-code-section {
        padding: 60px 0;
    }

    .dress-code-content {
        flex-direction: column;
        gap: 40px;
    }

    .dress-code-img {
        width: 100%;
    }

    .dress-code-img img {
        max-height: 300px;
    }

    /* RSVP Responsivo */
    .rsvp-section {
        padding: 60px 0;
    }

    .rsvp-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    
    .rsvp-img {
        width: 100%;
        flex: auto; /* Reseta o flex 50% do desktop */
        min-height: auto; /* Reseta altura mínima */
    }

    .rsvp-text-container {
        width: 100%;
        flex: auto;
        padding: 40px 20px 60px 20px; /* Aumenta padding inferior para dar respiro entre botão e imagem */
    }

    .rsvp-text {
        text-align: center;
        max-width: 100%;
    }

    .rsvp-text .section-title {
        text-align: center !important;
    }

    .rsvp-img img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        position: static; /* Reseta para fluxo normal no mobile */
        margin-bottom: 0; /* Garante que não tenha margem extra embaixo */
    }

    /* Gift List Responsivo */
    .gift-list-section {
        padding: 60px 0;
    }

    .gift-list-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    
    .gift-list-text {
        text-align: center;
    }

    .gift-list-text .section-title {
        text-align: center !important; /* Força centralização no mobile */
    }

    .gift-list-img img {
        max-height: 300px;
        max-width: 100%;
    }

    .btn-gift {
        width: 100%;
        text-align: center;
    }

    /* Accommodation Responsivo */
    .accommodation-section {
        padding: 60px 0;
    }

    .accommodation-content {
        flex-direction: column-reverse;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    
    .accommodation-text {
        text-align: center;
    }

    .accommodation-text .section-title {
        text-align: center !important;
    }

    .hotel-info {
        text-align: left; /* Mantém alinhamento à esquerda para facilitar leitura dos dados */
    }

    .accommodation-img img {
        max-height: 300px;
        max-width: 100%;
        margin-top: 20px; /* Adiciona um pequeno espaço entre o texto final e a imagem */
    }

    /* Beauty Responsivo */
    .beauty-section {
        padding: 60px 0;
    }

    .beauty-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    
    .beauty-text {
        text-align: center;
    }

    .beauty-text .section-title {
        text-align: center !important;
    }

    .beauty-contact {
        text-align: left; /* Mantém contato alinhado à esquerda para leitura */
    }

    .beauty-img {
        display: none; /* Esconde a imagem no mobile conforme solicitado */
    }

    /* Countdown Responsivo */
    .countdown-section {
        background-image: url('secao final mobile.webp');
        background-size: cover; /* Mobile mantém cover */
        background-position: center top; /* Foca no topo */
        min-height: 100vh;
        align-items: flex-start; /* Alinha conteúdo ao topo no mobile também */
        padding-top: 80px; /* Mais espaço no topo para o mobile */
    }

    .countdown-container {
        gap: 15px;
    }

    .countdown-item .number {
        font-size: 2rem;
    }

    .separator {
        height: 40px;
        margin-top: -10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 3rem;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 50px;
    }

    .countdown-item .number {
        font-size: 1.5rem;
    }
}
