/* ===== VARIÁVEIS DE DESIGN ===== */
:root {
    --bg-serenity: #456280; /* Azul escuro novo fundo principal */
    --bg-serenity-light: #567494; /* Tom mais claro para nuances */
    --panel-ivory: #fcfbfa; /* Branco marfim */
    --gold: #c5a059; /* Dourado elegante */
    --gold-light: #d4b87e;
    --text-dark: #ffffff; /* Branco para legibilidade no fundo escuro */
    --text-light: #e0e6ed; /* Cinza bem claro */
    --btn-blue: #2a3b4f; /* Azul mais profundo para botões */
    
    --font-names: 'Cinzel', serif;
    --font-elegant: 'Cormorant Garamond', serif;
    --font-small: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.5s ease-out;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-serenity);
    color: var(--text-dark);
    font-family: var(--font-elegant);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft textured effect with CSS */
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.invitation-container {
    max-width: 480px; /* Mantém a proporção de celular no desktop */
    margin: 0 auto;
    background-color: var(--bg-serenity);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* ===== SECTIONS GERAIS ===== */
.section {
    position: relative;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: auto;
}

/* Flores simuladas por background/pseudo-elementos (Placeholder elegante) */
.floral-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    /* Simulate floral using pure CSS radial gradients for now since we couldn't generate transparent PNGs */
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, transparent 60%), radial-gradient(circle at 30% 60%, rgba(197, 160, 89, 0.2) 0%, transparent 40%);
    filter: blur(1px);
}

.top-left { top: -20px; left: -20px; }
.top-right { top: -20px; right: -20px; }
.bottom-left { bottom: -20px; left: -20px; }
.bottom-right { bottom: -20px; right: -20px; }

/* Animações Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SEÇÃO 1: CAPA ===== */
.capa {
    min-height: 100vh;
    padding: 0;
    /* Soft top gradient */
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 20%);
}

.video-capa {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.frame-ogival {
    background-color: var(--panel-ivory);
    width: 100%;
    height: 100%;
    min-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    
    /* Ogival shape approximation */
    border-top-left-radius: 50% 20%;
    border-top-right-radius: 50% 20%;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
    border: 1px solid var(--gold);
    
    /* Inner border */
    outline: 1px solid rgba(197, 160, 89, 0.3);
    outline-offset: -8px;
}

.intro-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
    max-width: 80%;
}

.names {
    font-family: var(--font-names);
    font-size: 2.2rem;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: 2px;
    margin: 20px 0;
}

.ampersand {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.separator-ornament {
    margin: 15px 0;
}

.sub-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 20px;
    max-width: 70%;
}

.seal {
    position: absolute;
    bottom: 30px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--btn-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: var(--font-names);
    font-size: 0.9rem;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== SEÇÃO 2: CARTA ===== */
.carta {
    padding-top: 20px;
}

.panel-carta {
    background-color: var(--panel-ivory);
    width: 90%;
    padding: 40px 30px;
    position: relative;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.panel-carta h2 {
    font-family: var(--font-names);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin: 15px 0 25px;
}

.panel-carta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    text-align-last: center;
}

/* ===== SEÇÃO 3: DATA ===== */
.data {
    padding-top: 40px;
}

.data .frame-ogival {
    min-height: auto;
    padding: 40px 20px 50px;
    width: 90%;
    border-top-left-radius: 50% 30%;
    border-top-right-radius: 50% 30%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.data-title {
    font-family: var(--font-small);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--gold);
    margin: 15px 0 10px;
}

.data-highlight {
    font-family: var(--font-names);
    font-size: 2rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.calendar {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 30px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    font-family: var(--font-small);
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 0;
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: var(--text-light);
}

.highlight-day {
    position: relative;
    color: var(--text-dark);
    font-weight: 600;
}

.heart {
    position: absolute;
    top: -5px;
    right: -10px;
    width: 12px;
    height: 12px;
    fill: var(--bg-serenity);
}

.data-footer {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ===== SEÇÃO 4: CONTAGEM + FOTO ===== */
.contagem {
    padding: 60px 0 0;
}

.contagem-wrapper {
    padding: 0 30px 40px;
}

.contagem h2 {
    font-family: var(--font-names);
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: 3px;
    margin: 20px 0 10px;
}

.separator-line {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 30px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-family: var(--font-names);
    font-size: 2rem;
    color: var(--text-dark);
    line-height: 1;
}

.time-box small {
    font-family: var(--font-small);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-top: 5px;
}

.divider {
    font-family: var(--font-names);
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
    margin-top: -15px;
}

.photo-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, var(--bg-serenity) 0%, rgba(197, 212, 227, 0) 100%);
}

/* ===== SEÇÃO 5: PROGRAMAÇÃO ===== */
.programacao h2 {
    font-family: var(--font-names);
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

.timeline-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timeline-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-serenity); /* to overlap line slightly */
    padding: 10px;
}

.timeline-item .time {
    font-family: var(--font-names);
    font-size: 1.2rem;
    color: var(--gold);
}

.timeline-item .event {
    font-family: var(--font-small);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-top: 5px;
}

/* ===== SEÇÃO 6: LOCALIZAÇÃO ===== */
.localizacao {
    padding-top: 20px;
}

.localizacao h2 {
    font-family: var(--font-names);
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: 3px;
    margin: 20px 0 30px;
}

.local-photo {
    width: 90%;
    max-width: 300px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.local-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-name {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.local-address {
    font-family: var(--font-small);
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 25px;
}

/* ===== BOTÕES ===== */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-blue);
    color: #fff;
    font-family: var(--font-small);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    box-shadow: 0 8px 15px rgba(54, 79, 107, 0.2);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 280px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(54, 79, 107, 0.3);
    background-color: #2a3e54;
}

/* ===== SEÇÃO 7: CONFIRMAÇÃO ===== */
.confirmacao {
    padding-bottom: 80px;
}

.confirm-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding: 0 20px;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    margin-top: 20px;
}

/* ===== SEÇÃO 0: INTRO OVERLAY ===== */
.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-serenity);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(42, 59, 79, 0.85);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: var(--font-elegant);
    letter-spacing: 2px;
    transition: opacity 0.3s;
    z-index: 10000;
}

.intro-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}
