/* Resets básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    background-color: #fdfdfd; /* Um off-white extremamente sutil, melhor que branco puro */
}

/* Classe para travar a rolagem da página */
body.scroll-locked {
    overflow: hidden;
    height: 100vh; /* Força a página a ter exatamente o tamanho da tela */
    height: 100dvh;
}

/* Tela 1: Monograma */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), 
                opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.splash-container.hidden {
    transform: translateY(-100vh);
    transform: translateY(-100dvh);
    opacity: 0;
    pointer-events: none;
}

.monograma{
    width: 100vh;
    height: 50vh;
    background-image: url('../img/mono-qualidade.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Indicador de Rolagem */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2c2c2c;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: #A67C6D;
    animation: growLine 2s infinite ease-in-out;
}

@keyframes growLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Tela 2: A Foto do Casal */
.couple-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

.couple-bg {
    width: 100%;
    height: 100%;
    background-image: url('../img/fundo.webp');
    background-size: 117% auto;
    background-position: 0 25%;
    transform: scale(1.1);
    transition: transform 2s ease-out;
}

@media (max-width: 541px){
    .couple-bg{
        background-size: cover;
        background-position: 35% 25%;
    }
}

/* Efeito ativado via JS */
.couple-bg.revealed {
    transform: scale(1); /* Retorna ao tamanho normal lentamente */
}

/* Película escura sutil sobre a foto para garantir leitura de textos futuros */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

/* Estilos para o Texto Integrado na Foto */
.couple-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza perfeitamente */
    text-align: center;
    color: #ffffff; /* Texto branco para contrastar com a foto/overlay */
    z-index: 10; /* Garante que fique acima da foto e do overlay */
    
    /* Estado Inicial (Invisível) */
    opacity: 0;
    margin-top: 20px; /* Começa um pouco mais abaixo */
    
    /* Transição suave e elegante (combinando com o tempo da splash) */
    transition: opacity 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000), 
                margin-top 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    transition-delay: 0.3s; /* Pequeno atraso para a splash começar a subir antes */
}

/* Estado Ativo (Revelado via JS) */
.couple-text-overlay.revealed {
    opacity: 1;
    margin-top: 0; /* Sobe para a posição original */
}

/* Tipografia do Texto na Foto */
.couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem; /* Tamanho grande, de destaque */
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    /* Sombra sutil para garantir leitura se a foto for clara */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); 
}

.couple-names span {
    font-style: italic;
    color: #fdfdfd; /* Off-white para o '&' */
}

.couple-date {
    font-family: sans-serif; /* Fonte limpa para a data */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1rem;
    opacity: 0.9;
}

/* Ajuste Responsivo para Mobile */
@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
    }
    .couple-date {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }
}

/* Tela 3: Nossa História (Tipografia) */
.story-section {
    padding: 8% 5%;
    background-color: #f9f6f0; /* Tom areia muito suave para contrastar com a foto anterior */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.story-container {
    max-width: 700px; /* Largura menor para o texto não ficar cansativo de ler */
    width: 100%;
}

.section-subtitle {
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: #A67C6D; /* Terracota */
    display: block;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: #2c2c2c;
    margin-bottom: 50px;
    font-weight: 400;
}

.story-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
    text-align-last: center; /* Centraliza a última linha do texto justificado no desktop */
}

.story-content p {
    margin-bottom: 25px;
}

/* Efeito Editorial: Letra Capitular */
.drop-cap::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 8px;
    padding-right: 12px;
    padding-left: 0;
    color: #A67C6D;
    font-family: 'Cormorant Garamond', serif;
}

/* Detalhe decorativo no final do texto */
.story-accent {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vertical-line {
    width: 1px;
    height: 70px;
    background-color: #A67C6D;
    opacity: 0.6;
}

.accent-initials {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    letter-spacing: 0.1em;
}

.accent-initials span {
    font-style: italic;
    color: #A67C6D;
}

/* Ajustes para Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
    .story-content {
        font-size: 1.15rem;
        text-align: left; /* Remove o justificado no mobile para evitar buracos no texto */
        text-align-last: left;
    }
    .drop-cap::first-letter {
        font-size: 3.8rem;
        padding-top: 4px;
        padding-right: 10px;
    }
}

.event-section-hero {
    position: relative;
    padding: 8% 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    
    /* A MÁGICA: Prende o elemento fixo para não vazar pelo resto do site no iPhone */
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
}

.event-section-hero::before {
    content: "";
    position: fixed;
    top: -10vh; 
    left: 0;
    width: 100%;
    height: 120vh;    
    background-image: url('../img/fundo2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none; 
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 16, 16, 0.8); /* Escurecimento elegante */
    z-index: 1;
}

.event-hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Título em Evidência Máxima */
.hero-celebration-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem; /* Imponente e artística */
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Traço minimalista de divisão */
.hero-accent-line {
    width: 50px;
    height: 1px;
    background-color: #A67C6D; /* O tom quente mantendo a identidade */
    margin: 30px 0;
    opacity: 0.7;
}

/* Bloco do Local Harmonioso */
.hero-venue-info {
    margin-bottom: 45px;
}

.hero-venue-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #F4E3D3; /* Champagne luminoso para destacar com requinte */
    letter-spacing: 0.4em; /* Espaçamento largo de marca de luxo */
    margin-bottom: 10px;
}

.hero-venue-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.25em;
    opacity: 0.7;
}

/* Contagem Regressiva Linear e Fluida */
.hero-countdown {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 50px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-unit span {
    font-family: 'Montserrat';
    font-size: 2rem;
    color: #ffffff;
    font-weight: 300;
    line-height: 1;
}

.countdown-unit p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #A67C6D;
    margin-top: 5px;
}

/* Botão Integrado */
.hero-map-btn {
    display: inline-block;
    padding: 14px 45px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-map-btn:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    color: #121010;
}

/* Ajustes finos para telas menores (Mobile) */
@media (max-width: 768px) {
    .hero-celebration-title {
        font-size: 3.5rem;
    }
    .hero-venue-name {
        font-size: 1.1rem;
        letter-spacing: 0.3em;
    }
    .hero-countdown {
        gap: 20px;
    }
    .countdown-unit span {
        font-size: 2.2rem;
    }
}

/* Tela 5: RSVP (Confirmação de Presença) */
.rsvp-section {
    padding: 5% 5%;
    background-color: #fdfdfd; /* Fundo off-white para contraste com a tela anterior */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.rsvp-container {
    max-width: 600px; /* Formulário mais estreito para manter a elegância */
    width: 100%;
}

.rsvp-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Estilo do Formulário Editorial */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 35px; /* Espaço generoso para respirar */
    text-align: left;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        gap: 30px;
    }
    .half-width {
        flex: 1;
    }
}

.form-group {
    position: relative;
    width: 100%;
}

/* Inputs de texto, select e textarea */
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(166, 124, 109, 0.3); /* Linha fina e translúcida */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #2c2c2c;
    outline: none;
    transition: border-color 0.4s ease;
    resize: none; /* Impede que o usuário "puxe" o canto do textarea */
}

/* Remove a aparência padrão do select no Safari/Chrome */
.rsvp-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* O estado de foco (quando o usuário clica para digitar) */
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-bottom: 1px solid #A67C6D; /* A linha acende na cor da paleta */
}

/* Esconde o placeholder padrão ou deixa sutil */
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color: #999;
    font-weight: 400;
}

/* Botão de Envio */
.rsvp-submit-btn {
    margin-top: 20px;
    padding: 18px 0;
    background-color: #A67C6D;
    color: #ffffff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.4s ease;
    width: 100%; /* Botão ocupando toda a largura */
}

.rsvp-submit-btn:hover {
    background-color: #8c6657; /* Um tom levemente mais escuro do terracota */
}

/* Tela 6: Lista de Presentes */
.gifts-section {
    padding: 5% 5%;
    background-color: #f9f6f0; /* Retornamos ao tom areia para dividir bem a seção anterior */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.gifts-container {
    max-width: 1000px;
    width: 100%;
}

.gifts-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sistema de Grid para os Cards */
.gifts-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no celular */
    gap: 30px;
}

@media (min-width: 600px) {
    .gifts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
}

@media (min-width: 900px) {
    .gifts-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas no desktop */
        gap: 20px;
    }
}

/* O Card Interativo */
.gift-card {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-10px); /* O card flutua para cima */
    box-shadow: 0 15px 40px rgba(166, 124, 109, 0.15);
}

/* Área da Imagem */
.gift-image {
    width: 100%;
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

/* Efeito de zoom na imagem ao passar o mouse no card */
.gift-card:hover .gift-image {
    transform: scale(1.05);
}

/* Informações e Botão */
.gift-info {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    background-color: #ffffff;
    position: relative;
    z-index: 2; /* Garante que cubra a parte de baixo da imagem no zoom */
}

.gift-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: 400;
}

.gift-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #A67C6D;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

/* Botão de Pagamento */
.gift-btn,
.gift-btn-qr {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #2c2c2c;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid #2c2c2c;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.gift-card:hover .gift-btn,
.gift-card:hover .gift-btn-qr {
    background-color: #A67C6D;
    color: #ffffff;
    border-color: #A67C6D;
}

/* --- ESTILOS DO MODAL PIX --- */
.pix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: rgba(18, 16, 16, 0.85); /* Fundo escuro requintado */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique acima de tudo no site */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pix-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pix-modal-content {
    background-color: #fdfdfd;
    padding: 40px 30px;
    border-radius: 4px; /* Bordas retas e elegantes */
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.pix-modal-overlay.hidden .pix-modal-content {
    transform: translateY(30px); /* Efeito suave de descida ao fechar */
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: #A67C6D;
}

.pix-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 400;
}

.pix-modal-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pix-qr-container {
    margin-bottom: 25px;
}

.pix-qr-image {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(166, 124, 109, 0.3); /* Borda na cor do tema */
    padding: 10px;
    border-radius: 4px;
}

.pix-modal-key-label {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 10px;
}

.pix-copy-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pix-copy-container input {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    padding: 12px;
    border: 1px solid #e0d5d0;
    border-radius: 2px;
    width: 65%;
    color: #2c2c2c;
    text-align: center;
    background-color: #f9f6f0; /* Tom de areia */
    outline: none;
}

.copy-pix-btn {
    background-color: #A67C6D;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-pix-btn:hover {
    background-color: #8c6657;
}

/* --- Mensagem de Sucesso RSVP --- */
.rsvp-form {
    transition: opacity 0.4s ease; /* Permite que o form suma suavemente */
}

.rsvp-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeInSuave 0.8s ease forwards;
}

.rsvp-success.hidden {
    display: none;
}

.success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #A67C6D;
    margin-bottom: 15px;
    font-weight: 400;
}

.success-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

@keyframes fadeInSuave {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}