/* =========================================
   1. RESET BÁSICO E TIPOGRAFIA
   ========================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a;
    background-color: #faf9f8;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Ou Baskervville, se preferir */
    font-weight: normal;
}

/* =========================================
   2. NAVEGAÇÃO
   ========================================= */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

nav a:hover {
    opacity: 0.7;
}

/* =========================================
   3. BANNER PRINCIPAL (HERO)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    background-color: #a3b1a8;
    background-image: url('../img/img_casal.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    margin-top: 50px;
}

.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-weight: normal;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    padding: 12px 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #a9a8a8;
    border: 1px solid #949494;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.btn:hover {
    background-color: #17a604a9;
    color: #333;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #4a4a4a;
    border: 1px solid #4a4a4a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-outline:hover {
    background-color: #4a4a4a;
    color: #fff;
}

/* =========================================
   4. SEÇÕES GENÉRICAS
   ========================================= */
.section {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.section p {
    line-height: 1.9;
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 20px;
}

.divisor {
    max-width: 150px;
    margin-top: 20px;
}

/* =========================================
   5. EVENTOS (LOCAL E DATA)
   ========================================= */
.event-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-top: 30px;
}

.event-card {
    flex: 1;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card:first-child {
    border-right: 1px solid #d3d3d3;
}

.event-icon {
    width: 50px;
    height: auto;
    margin-bottom: 25px;
    opacity: 0.8;
}

.event-card h3 {
    font-size: 1.6rem;
    color: #4a4a4a;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.4;
}

.event-card h4 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #666;
}

.event-date {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 15px !important;
}

.event-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px !important;
    line-height: 1.6;
    max-width: 250px;
}

/* =========================================
   6. LISTA DE PRESENTES E PIX MODAL
   ========================================= */
#lista {
    max-width: 950px; 
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.gift-card {
    background: #fff;
    border: 1px solid #e0dcd3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.gift-card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
    object-fit: cover;
}

.gift-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.gift-price {
    font-weight: bold;
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn-gift {
    width: 100%;
    padding: 14px; /* Mais preenchimento para um botão mais alto */
    font-size: 1.1rem; /* Fonte maior para melhor legibilidade */
    background-color: #fcfcfc; /* Uma cor amarela vibrante e atraente */
    color: #1c1616; /* Texto branco para um bom contraste */
    border: none; /* Remova a borda antiga */
    border-radius: 18px; /* Cantos arredondados e modernos */
    border: 0.5px solid #413d3d61; /* Borda escura para destacar o botão */
    cursor: pointer; /* Ponteiro do mouse para indicar clicabilidade */
    transition: background-color 0.3s ease; /* Transição suave na cor de fundo */
    margin-top: auto; /* Alinhamento ao fundo do cartão */
}

.btn-gift:hover {
    background-color: #f4f1ea; /* Uma cor um pouco mais escura ao passar o mouse */
}
/* Classe para esconder itens excedentes da grade */
.hidden-item {
    display: none !important;
}
/* Modal do PIX */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.pix-key-box {
    background: #f4f1ea;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px dashed #4a4a4a;
    font-size: 1.1rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* =========================================
   7. FOMULÁRIO DE PRESENÇA (RSVP)
   ========================================= */
#rsvp {
    background-color: #f9f9f9;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
}

#rsvp h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.rsvp-form .form-group {
    margin-bottom: 20px;
}

.rsvp-form label {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.rsvp-form input:focus {
    border-color: #6c63ff;
    outline: none;
}

.rsvp-form .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.rsvp-form .radio-group label {
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rsvp-form .btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rsvp-form .btn:hover {
    background-color: #574dcf;
}

/* =========================================
   8. CONTAGEM REGRESSIVA
   ========================================= */
#countdown {
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
}

#countdown h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

#countdown p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100px;
}

.time-box span {
    font-size: 2rem;
    font-weight: bold;
    color: #6c63ff;
    display: block;
}

.time-box p {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}

/* =========================================
   9. MONOGRAMA E RODAPÉ (FOOTER)
   ========================================= */
.c-monogram {
    width: 100%;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content_footer h1 {
    font-family: 'Great Vibes';
    font-size: 3rem;
    margin-top: 20px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-weight: normal;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.site-footer {
    background-color: #f4f1ea;
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #e0dcd3;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-floral {
    max-width: 180px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.footer-msg {
    font-size: 0.9rem !important;
    color: #666 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px !important;
}

.footer-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: #8c9b91;
    letter-spacing: 1px;
}
/* Crédito de Autoria */
.site-credit {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0dcd3;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.site-credit p {
    font-size: 0.75rem;
    color: #999 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* =========================================
   10. RESPONSIVIDADE (CELULARES E TABLETS)
   ========================================= */
@media (max-width: 768px) {

    nav ul {
        display: none;
    }

    .hero {
        height: 80vh;
        background-position: center top;
    }

    .hero-content {
        padding: 10px;
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section {
        padding: 60px 15px;
    }

    .section h2 {
        font-size: 2rem;
    }

    .event-container {
        flex-direction: column;
        gap: 60px;
    }

    .event-card:first-child {
        border-right: none;
        border-bottom: 1px solid #d3d3d3;
        padding-bottom: 40px;
    }

    .event-card {
        padding: 0 10px;
    }

    .gifts-grid {
        grid-template-columns: 1fr; /* Coluna única no celular */
        gap: 15px;
    }

    #rsvp {
        padding: 40px 15px;
    }

    .rsvp-form .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    #countdown {
        padding: 40px 15px;
    }

    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .time-box {
        width: calc(50% - 10px);
        padding: 15px 10px;
    }

    .time-box span {
        font-size: 1.5rem;
    }
}