/* --- FUNDALURI (Căi relative corecte pentru folderul /css/) --- */
.header {
    background-image: url('../imgs/bg-1.webp');
    background-size: cover;
    background-position: center center;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

@media (max-width:560px){
    .header {
    background-image: url('../imgs/bg-1-mob.webp');
    background-size: cover;
    background-position: 50% 100%;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh !important;
    background: rgba(0, 0, 0, 0.25);
}

#rsvp-section {
    position: relative;
    /* Înlocuiește cu numele real al fișierului de fundal (flori uscate) */
    background-image: url('../imgs/112-desk.jpeg'); 
    background-size: cover;
    background-position: 80% 100% !important;
    background-attachment: fixed; /* Efect subtil de parallax */
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

#countdown {
    background-image: url('../imgs/1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position:42% 100% !important;
}

}


/* --- Stilizare Secțiune Story --- */
.story-section {
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

/* Containerul complex pentru imagine */
.story-img-wrapper {
    position: relative;
    padding: 40px; /* Creează spațiu pentru decorul din spate */
    display: inline-block;
    width: 100%;
}

/* Background-ul cu puncte (Dots) */
.dots-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background-image: radial-gradient(#d1b48c 1.5px, transparent 1.5px);
    background-size: 15px 15px; /* Spațierea punctelor */
    opacity: 0.4;
    z-index: 1;
}

/* Chenarul auriu/maro din spatele imaginii */
.gold-frame {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 85%;
    height: 85%;
    border: 8px solid #bd945a; /* Culoarea aurie din captură */
    z-index: 2;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
}

/* Holder-ul imaginii cu bordura albă */
.main-img-holder {
    position: relative;
    z-index: 3;
    background: #fff;
    padding: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.main-img-holder img {
    width: 100%;
    display: block;
}

/* --- Text și Tipografie --- */
.main-invite-text {
    font-family: "Sorts Mill Goudy", serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2f2f2f;
    margin-bottom: 20px;
}

.family-label {
    font-family: "Sorts Mill Goudy", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

/* Fontul cursiv Arizonia pentru nume */
.names-cursive {
    font-family: 'Arizonia', cursive !important;
    font-size: 2.8rem;
    color: #bd945a;
    line-height: 1.2;
}

.ampersand-divider {
    font-size: 1.5rem;
    margin: 5px 0;
    color: #bd945a;
}

@media (max-width: 991px) {
        .bg-fixed, 
        .bg-img, 
        .parallaxie, 
        #countdown, 
        #rsvp-section {
            background-attachment: scroll !important;
            background-size: cover !important;
            background-position: center center !important;
        }
    }

/* Ajustări pentru ecrane mici (Mobil) */
@media (max-width: 767px) {
    .story-img-wrapper {
        padding: 20px;
    }
    .dots-bg {
        width: 150px;
        height: 150px;
    }
    .names-cursive {
        font-size: 2.2rem;
    }
    .gold-frame {
        border-width: 5px;
    }
}



/* --- UNDE SI CAND SECTION --- */
.events-section {
    padding: 80px 20px;
    background-color: #fcfcfc;
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #444;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: #fff;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.event-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.event-info {
    padding: 30px;
    background-color: #fbfbfb;
}

.event-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: 1px;
}

.event-info p {
    font-size: 0.88rem;
    color: #555;
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.event-info i {
    width: 25px;
    color: #bd945a; /* Culoarea aurie din screenshot */
    font-size: 0.95rem;
}

/* --- BUTOANE LOCATIE --- */
.button-group {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-location {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #444;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px;
    border: 1px solid #bd945a;
    background-color: #fffbf6;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background-color: #bd945a;
    color: #fff;
}

/* Responsivitate pentru ecrane foarte mici */
@media (max-width: 768px) {
    .event-card {
        max-width: 100%;
    }
}





/* --- RSVP SECTION STYLE --- */
#rsvp-section {
    position: relative;
    /* Înlocuiește cu numele real al fișierului de fundal (flori uscate) */
    background-image: url('../imgs/112-desk.jpeg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efect subtil de parallax */
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 400px;
}

/* Cardul alb din mijloc */
.rsvp-card {
    background: rgba(255, 255, 255, 1);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 2px;
}

/* Titlul cursiv auriu */
.gift-title {
    font-family: 'Arizonia', cursive !important;
    color: #bd945a;
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.rsvp-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    color: #3c3c3c;
    margin-bottom: 5px;
}

.confirm-deadline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: #3c3c3c;
    margin-top: 25px;
    margin-bottom: 30px;
}

/* Butonul maro mat */
.btn-confirm-main {
    background-color: #bd945a;
    color: #ffffff !important;
    border: none;
    padding: 15px 40px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.btn-confirm-main:hover {
    background-color: #a6814d;
}

.dialog-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7); z-index: 10000; justify-content: center; align-items: center;
        }
        .dialog-box { background: #fff; width: 90%; max-width: 450px; padding: 30px; position: relative; border-radius: 10px; }
        .close-button { position: absolute; top: 10px; right: 20px; font-size: 25px; cursor: pointer; }

        input, select, textarea { width: 100%; padding: 12px; margin: 10px 0; border: none; border-bottom: 1px solid #ddd; outline: none; }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-10px);}
            60% {transform: translateY(-5px);}
        }

        @media (max-width: 600px) {
            .bride-firstname-groom-firstname { font-size: 60px; }
        }




/* Responsivitate mobil */
@media (max-width: 767px) {
    .gift-title {
        font-size: 2.5rem;
    }
    .rsvp-card {
        padding: 40px 20px;
    }
    .btn-confirm-main {
        width: 100%;
        padding: 12px 20px;
    }
}




#countdown {
    background-image: url('../imgs/1.jpg');
    background-size: cover;
    background-attachment: fixed;
}

#rsvp {
    background-image: url('../imgs/112-desk.jpeg');
    background-size: cover;
    background-attachment: fixed;
}

/* --- STIL IDENTIC ARIZONIA --- */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.caption { position: relative; z-index: 5; color: #fff; }

.bride-firstname-groom-firstname {
    font-family: 'Arizonia', cursive !important;
    font-size: 108px;
    line-height: 110px;
    color: #fff;
    text-shadow: -1px -1px 1px rgba(165,159,159,0.22), 1px 1px 1px rgba(0,0,0,0.58) !important;
    margin: 0;
}

#and-h { font-family: 'Arizonia'; font-size: 25px; margin: 10px 0; color: #fff; }

#event-name, #event-date-id-header {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px #000;
}

/* --- STORY & BORDERS --- */
.section-padding { padding: 80px 0; }
.img-frame {
    position: relative;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    display: inline-block;
}
.img-frame::after {
    content: ""; position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dotted #bd945a;
}

.msg { font-family: "Sorts Mill Goudy", serif; font-style: italic; font-size: 1.25rem; color: #2f2f2f; line-height: 1.8; }
.msg-label { font-family: "Sorts Mill Goudy", serif; font-style: italic; color: #888; font-size: 1.1rem; }
.parents-container, .godparents-container { font-family: 'Arizonia', cursive; font-size: 2.5rem; color: #bd945a; line-height: 1; }

/* --- COUNTDOWN --- */
#vi-cd-message { font-family: 'Arizonia'; font-size: 3.5rem; color: #fff; margin-bottom: 20px; }
#countdown-wrapper { display: flex; justify-content: center; list-style: none; padding: 0; color: #fff; }
#countdown-wrapper li { margin: 0 15px; font-size: 16px; text-shadow: 1px 1px 2px #000; }
#countdown-wrapper span { display: block; font-size: 40px; font-weight: bold; }

/* --- RSVP & MODAL --- */
#cadou { font-family: 'Arizonia'; font-size: 2.5rem; color: #bd945a; }
.button-confirm { background-color: rgb(189, 148, 90); color: white; padding: 12px 30px; border: none; border-radius: 3px; font-weight: bold; text-transform: uppercase; }
.dialog-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 10000; align-items: center; justify-content: center; }
.dialog-box { background: #fff; padding: 30px; border-radius: 8px; width: 90%; max-width: 500px; position: relative; }
#confirmare-label { font-family: 'Arizonia'; font-size: 3.5rem; color: #bd945a; }
.custom-input { width: 100%; margin-bottom: 15px; padding: 10px; border: none; border-bottom: 1px solid #ccc; outline: none; }

/* --- ANIMATION --- */
.bounce { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* MOBILE FIX */
@media (max-width: 767px) {
    .bride-firstname-groom-firstname { font-size: 65px; line-height: 1.1; }
    .header { background-position: 80% 100%; }
    #countdown-wrapper span { font-size: 30px; }
}