/* --- ESTILOS GERAIS --- */
:root {
    --gold: #BCAAA4;        
    --gold-hover: #a6958f;
    --gold-dark: #8D7B76;
    --dark: #2A2A2A;        
    --bg: #FAFAF9;          
    --white: #FFFFFF;
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a, button, input, textarea { outline: none; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; }
p { font-weight: 300; color: #555; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- HERO --- */
.hero {
    height: 100vh; min-height: 550px;
    /* CORRIGIDO O CAMINHO DA IMAGEM AQUI */
    background: url('../img/foto01.jpeg') no-repeat center center; 
    background-size: cover; background-attachment: fixed;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%); z-index: 1;
}
.hero-content { width: 100%; color: var(--white); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: 5.5rem; letter-spacing: 2px; line-height: 1; margin-bottom: 10px; font-style: italic; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero h2 { font-size: 1.1rem; font-family: var(--sans); letter-spacing: 6px; margin-bottom: 25px; font-weight: 400; text-transform: uppercase; text-shadow: 0 2px 5px rgba(0,0,0,0.3); opacity: 0.95; }
.hero-date { font-size: 1.5rem; font-family: var(--serif); margin-bottom: 30px; display: flex; align-items: center; gap: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.hero-date::before, .hero-date::after { content: ''; display: block; width: 40px; height: 1px; background: rgba(255,255,255,0.7); }
.hero-tagline { color: var(--white); font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px); padding: 15px 35px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 4px 15px rgba(0,0,0,0.2); margin-top: 10px; transition: transform 0.3s; }
.hero-tagline:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.02); }

/* --- CONTADOR --- */
.countdown-section { background: var(--white); padding: 50px 0; border-bottom: 1px solid #eee; }
.timer-wrapper { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.time-block span { font-size: 3rem; font-family: var(--serif); color: var(--gold); line-height: 1; display: block; }
.time-block small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--dark); margin-top: 8px; display: block; }

/* --- VÍDEO TRIGGER --- */
#video-trigger-area {
    height: 60vh; min-height: 400px;
    /* CORRIGIDO O CAMINHO DA IMAGEM AQUI TAMBÉM */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/foto02.jpeg') no-repeat center center/cover;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-attachment: fixed; text-align: center; padding: 20px;
}
#video-trigger-area h2 { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.7); font-size: 2rem; margin-bottom: 30px; width: 100%; }
.btn-play-manual {
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px);
    border: 1px solid white; color: white; padding: 15px 40px;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px;
    cursor: pointer; transition: 0.3s; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto; 
}
.btn-play-manual:hover { background: white; color: var(--dark); transform: scale(1.05); }

/* --- MODAIS GERAIS --- */
.modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center; justify-content: center; flex-direction: column;
    opacity: 0; transition: opacity 0.5s ease; padding: 20px;
}
.modal.show { opacity: 1; }

.modal > div { transform: translateY(50px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.modal.show > div { transform: translateY(0); }

.close-btn { 
    position: absolute; top: -50px; right: 0; 
    color: white; font-size: 1rem; cursor: pointer;
    font-family: var(--sans); text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid white; padding: 5px 20px; border-radius: 30px; transition: 0.3s;
    z-index: 30; 
}
.close-btn:hover { background: white; color: black; }

.close-btn-dark {
    position: absolute; top: 15px; right: 20px;
    color: var(--dark); font-size: 1.5rem; cursor: pointer; font-weight: bold;
    padding: 5px; z-index: 100; background: #ffffff;
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.modal-content-video { position: relative; width: 100%; max-width: 1000px; aspect-ratio: 16/9; }
video { width: 100%; height: 100%; box-shadow: 0 0 50px rgba(0,0,0,0.8); border-radius: 4px; outline: none; background: #000; }
#videoCover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; z-index: 10; }

#customPlayBtn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90px; height: 90px; background: #FFFFFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--gold-dark); padding-left: 8px;
    cursor: pointer; z-index: 20; transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(0,0,0,0.5); animation: pulseBtn 2s infinite;
}
#customPlayBtn:hover { transform: translate(-50%, -50%) scale(1.1); }
@keyframes pulseBtn { 
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 
}

/* --- TOAST (MENSAGEM FLUTUANTE) --- */
#toast {
    visibility: hidden; min-width: 250px; background-color: #333; color: #fff;
    text-align: center; border-radius: 50px; padding: 15px 25px; position: fixed;
    z-index: 10000; left: 50%; bottom: 20px; font-size: 0.95rem; font-weight: 500;
    transform: translateX(-50%); opacity: 0; transition: opacity 0.3s, bottom 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#toast.show { visibility: visible; opacity: 1; bottom: 40px; }

/* --- ESTILO PIX PREMIUM --- */
.modal-content-pix { 
    background: var(--white); padding: 50px 30px; 
    border-radius: 12px; text-align: center; 
    max-width: 480px; width: 95%; position: relative;
    border-top: 5px solid var(--gold);
}
.pix-icon-large { font-size: 3.5rem; color: var(--gold); margin-bottom: 15px; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pix-phrase { font-size: 0.95rem; color: #666; font-style: italic; margin-bottom: 25px; line-height: 1.6; }
.bank-box { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #eee; }
.bank-box p { margin: 0; color: #444; font-size: 0.9rem; }
.bank-box strong { color: var(--gold-dark); font-weight: 600; font-size: 1rem; }
.pix-key-box {
    background: #fff; border: 2px dashed var(--gold); padding: 15px; margin: 10px 0 25px 0;
    font-family: monospace; word-break: break-all; color: #333; font-size: 1.1rem; border-radius: 8px; font-weight: bold;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-copy {
    background: var(--gold); color: white; border: none; padding: 16px 20px;
    text-transform: uppercase; cursor: pointer; width: 100%; border-radius: 50px; font-weight: 700; letter-spacing: 1px;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-copy:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-copy.copied { background: #4CAF50; pointer-events: none; }

/* Modal Recados */
.modal-content-msg { background: var(--white); padding: 40px; border-radius: 8px; width: 90%; max-width: 500px; text-align: center; position: relative; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--gold-dark); font-weight: bold; margin-bottom: 5px; }
.form-input, .form-textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--sans); }
.btn-submit { background: var(--gold); color: white; border: none; padding: 15px 40px; text-transform: uppercase; border-radius: 50px; cursor: pointer; width: 100%; font-weight: 600; transition: 0.3s; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }
.success-msg { display: none; color: var(--gold-dark); font-size: 1.2rem; padding: 30px; }

/* --- LISTA DE PRESENTES --- */
.gifts-section { background: var(--bg); border-top: 1px solid #eee; }
.gifts-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 40px; gap: 15px; }

/* Grid base (PC) */
.gifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

.gift-card { 
    background: var(--white); border-radius: 16px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: 0.4s ease; 
    display: flex; flex-direction: column; text-align: center; border: none; position: relative; 
}
.gift-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.gift-img-container { width: 100%; height: 240px; overflow: hidden; position: relative; border-bottom: 4px solid var(--gold); }
.gift-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gift-card:hover img { transform: scale(1.08); }

.gift-info { padding: 25px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.gift-title { font-family: var(--serif); font-size: 1.4rem; color: var(--dark); margin-bottom: 15px; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: normal; }

.gift-price { font-size: 1.3rem; color: var(--gold-dark); font-weight: bold; margin: 0 auto 25px auto; background: #fafaf9; padding: 8px 20px; border-radius: 50px; border: 1px solid #eee; display: inline-block; }

.btn-presentear { 
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: white; border: none; padding: 16px; width: 100%; 
    border-radius: 50px; cursor: pointer; text-transform: uppercase; font-weight: bold; transition: 0.3s; margin-top: auto; 
    letter-spacing: 1.5px; box-shadow: 0 4px 15px rgba(188, 170, 164, 0.4); display: flex; align-items: center; justify-content: center; gap: 8px; 
}
.btn-presentear:hover { background: linear-gradient(135deg, var(--gold-dark), #7a6a66); box-shadow: 0 6px 20px rgba(188, 170, 164, 0.6); transform: scale(1.02); }

/* --- MODAL PRESENTE (AJUSTADO PARA O PC) --- */
.modal-content-gift { 
    background: var(--white); padding: 25px 20px; 
    border-radius: 20px; width: 95%; max-width: 440px; 
    text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
    max-height: 90vh; overflow-y: auto; 
}

.modal-content-gift::-webkit-scrollbar { width: 6px; }
.modal-content-gift::-webkit-scrollbar-track { background: transparent; }
.modal-content-gift::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

.gift-modal-icon { font-size: 2.5rem; margin-bottom: 0px; display: block; animation: floatIcon 3s ease-in-out infinite; }
.modal-content-gift h3 { color: var(--gold-dark); margin-bottom: 5px; font-family: var(--serif); font-size: 1.6rem; }
.gift-modal-details { background: #fafaf9; border-radius: 12px; padding: 12px; margin-bottom: 15px; font-size: 1rem; color: #555; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
.gift-modal-details span { display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--dark); line-height: 1.2; }
.gift-modal-details strong { display: block; color: var(--gold-dark); font-size: 1.4rem; margin-top: 5px; }
.pix-actions { display: grid; gap: 8px; margin-top: 5px; }
.btn-outline { border: 2px solid var(--gold); background: transparent; color: var(--gold-dark); padding: 10px; border-radius: 50px; cursor: pointer; font-weight: bold; text-transform: uppercase; transition: 0.3s; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; }
.btn-outline:hover { background: var(--gold); color: white; }

.form-group-gift { margin-bottom: 12px; text-align: left; }
.form-group-gift label { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--gold-dark); font-weight: bold; margin-bottom: 5px; padding-left: 5px; }
.form-group-gift input { width: 100%; border: 2px solid #eee; border-radius: 8px; padding: 10px 12px; font-size: 0.95rem; transition: 0.3s; font-family: var(--sans); }
.form-group-gift input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px rgba(188, 170, 164, 0.1); }

/* MODAL PRESENÇA */
.modal-content-presence { background: var(--white); padding: 40px; border-radius: 12px; width: 95%; max-width: 600px; text-align: center; position: relative; max-height: 85vh; overflow-y: auto; }
.modal-content-presence h3 { font-family: var(--serif); font-size: 2rem; color: var(--gold-dark); margin-bottom: 10px; text-transform: uppercase; }
.presence-list { list-style: none; padding: 0; margin-top: 25px; text-align: left; }
.presence-item { padding: 20px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; gap: 5px; background: #fafaf9; border-radius: 8px; margin-bottom: 10px; }
.presence-name { font-weight: bold; color: var(--gold-dark); font-size: 1.2rem; }
.presence-gift { color: #666; font-size: 0.95rem; }
.presence-value { font-weight: bold; color: var(--dark); font-size: 1.1rem; margin-top: 5px; }

/* --- MURAL DE MENSAGENS --- */
.mural-section { background: #fff; border-top: 1px solid #eee; }
.messages-grid { 
    display: flex; gap: 20px; margin-top: 40px; overflow-x: auto; padding-bottom: 20px; 
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-left: 5px; padding-right: 5px;
    scroll-behavior: smooth;
}
.messages-grid::-webkit-scrollbar { height: 6px; }
.messages-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.messages-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.message-card {
    background: #fafaf9; padding: 25px; border-radius: 8px; border: 1px solid #eee;
    text-align: left; position: relative; min-width: 280px; max-width: 280px;
    flex: 0 0 auto; scroll-snap-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.message-card h4 { color: var(--gold-dark); margin-bottom: 10px; font-family: var(--serif); font-size: 1.2rem; }
.message-card p { font-size: 0.95rem; color: #555; line-height: 1.6; font-style: italic; white-space: normal; }
.message-date { font-size: 0.7rem; color: #999; display: block; margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; }
.empty-msg { text-align: center; width: 100%; color: #999; font-style: italic; margin-top: 20px; min-width: 100%; }

/* --- HISTORIA & INFO --- */
.story-section { background: var(--white); }
.story-content { max-width: 800px; margin: 0 auto; text-align: justify; position: relative; }
.story-section h2 { text-align: center; color: var(--gold-dark); margin-bottom: 30px; font-size: 2.2rem; }
.story-content p { text-indent: 20px; margin-bottom: 20px; font-size: 1.1rem; color: #666; }

.info-section { background: var(--bg); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.info-card { background: var(--white); padding: 40px 30px; text-align: center; border-radius: 6px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.card-img-large { width: 100%; height: 250px; object-fit: cover; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-map { display: inline-block; margin-top: 20px; font-size: 0.75rem; text-transform: uppercase; color: var(--dark); border-bottom: 1px solid var(--gold); text-decoration: none; }

/* --- AÇÕES --- */
.actions-section { background: var(--white); padding: 80px 0; border-top: 1px solid #e0e0e0; }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 40px auto 0; }
.action-card {
    background: var(--white); padding: 30px 20px; border-radius: 12px; text-align: center; text-decoration: none; color: var(--dark);
    border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: all 0.3s ease; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.action-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.action-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--gold-dark); }
.action-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; text-transform: uppercase; }
.action-desc { font-size: 0.8rem; color: #777; text-transform: uppercase; letter-spacing: 1px; }

footer { background: var(--bg); padding: 50px 0; border-top: 1px solid #ddd; }

/* --- RESPONSIVIDADE & AJUSTE DOS PRESENTES NO CELULAR --- */
@media (max-width: 768px) {
    .hero, #video-trigger-area { background-attachment: scroll; background-position: center; }
    .hero h1 { font-size: 3.8rem; }
    .info-grid { grid-template-columns: 1fr; }
    .modal-content-video { width: 100%; }
    .close-btn { top: -45px; right: 0; }
    
    /* --- GRID DE AÇÕES 2x2 NO CELULAR --- */
    .action-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .action-card { padding: 20px 10px; }
    .action-icon { font-size: 2rem; margin-bottom: 10px; }
    .action-title { font-size: 0.9rem; line-height: 1.2; margin-bottom: 5px; }
    .action-desc { font-size: 0.65rem; }

    /* --- FORÇA 2 PRESENTES POR LINHA NO CELULAR --- */
    .gifts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gift-img-container { height: 120px; }
    .gift-info { padding: 12px 8px; }
    .gift-title { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.1; }
    .gift-price { font-size: 0.9rem; margin-bottom: 12px; padding: 4px 8px; }
    .btn-presentear { font-size: 0.7rem; padding: 10px 4px; gap: 4px; }
}