:root {
    --navy-blue: #001F3F; 
    --navy-light: #003366; 
    --gold-accent: #C5A059; 
    --bg-color: #F9F9F9;
    --text-color: #333333;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
}

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

.banner-content {
    width: 100% !important;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(230, 230, 230, 0.8)), 
                url('../img/carmo.jpg') center/cover no-repeat;
    max-width: 2000px !important; 
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 35px !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center !important;
    margin: 0 auto !important;
}

.hero {
    height: 70vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('../img/casal.jpg') center/cover no-repeat;
    border-bottom: 5px solid var(--gold-accent); 
    color: var(--white);
}

.hero h1, .hero p {
    color: var(--white); 
}

.hero .intro {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 10px;
}

.couple-names {
    font-size: 4rem;
    line-height: 55px;
    margin-bottom: 10px;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Botões */
.btn-cta, .btn-gift {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--navy-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.btn-cta:hover, .btn-gift:hover {
    background-color: var(--navy-light);
}

/* Seções Gerais */
section {
    padding: 30px 0;
}

.welcome {
    background-color: var(--white);
    margin-top: 0px;
}

.subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
}

/* Grid de Presentes */
.gifts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 30px !important;
    padding: 40px 20px !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gift-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    background: var(--white);
    padding: 25px !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--navy-blue);
    transition: transform 0.3s;
    width: 100% !important;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gift-icon {
    width: 150px !important; 
    height: 150px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px !important;
}

.gift-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1;
    wrap: nowrap;
}

.gift-card .price {
    font-size: 1.2rem;
    color: var(--gold-accent);
    font-weight: bold;
    margin-bottom: 20px;
}

footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid var(--gold-accent);
    background: var(--white);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.gift-card.hidden {
    display: none !important;
}

.gift-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gold-accent);
    color: var(--white);
}

/* Formulário de RSVP */
.rsvp-section {
    background-color: var(--white);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rsvp-form input, .rsvp-form select {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-color);
}

.rsvp-form input:focus, .rsvp-form select:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 5px rgba(0, 31, 63, 0.3);
}

/* Estilo das Abas */
.tabs-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--navy-blue);
    background: none;
    color: var(--navy-blue);
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

/* Esconder conteúdo inativo */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media screen and (max-width: 768px) {
    .gifts-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        gap: 10px !important; 
        padding: 10px !important;
        width: 100% !important;
        overflow: hidden !important; 
    }

    .gift-card {
    display: flex !important;
    flex-direction: column !important; 
    height: 100%; 
    justify-content: flex-start; 
    padding: 20px !important;
}

    .gift-icon {
        width: 100px !important; 
        height: 100px !important;
        margin-bottom: 5px !important;
    }

    .gift-card h3 {
    min-height: 3em; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px !important;
}

    .gift-card .price {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .btn-gift {
        padding: 8px 5px !important;
        font-size: 0.75rem !important;
        width: 90% !important; 
    }
}@media screen and (max-width: 600px) {
    .gifts-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .gift-card {
        padding: 5px 5px !important;
        min-width: 0 !important;
    }
}

/* Toast  */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 5px solid var(--gold-accent);
    opacity: 0;
    transform: translateX(100%); 
    animation: slideInRight 0.3s forwards, fadeOutRight 0.3s forwards 3s;
}

.toast.error {
    border-left-color: #ff4444; 
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOutRight {
    to { opacity: 0; transform: translateX(100%); }
}

/* --- CARROSSEL DE FOTOS POLAROID --- */

.photo-scroll {
    width: 100%;
    overflow: hidden; 
    background-color: var(--bg-color);
    padding: 60px 0;
    position: relative;
    display: block; 
}

.photo-track {
    display: flex !important; 
    width: max-content !important; 
    animation: scrollLateral 100s linear infinite;
    align-items: center;
}

.photo-track img {
    flex-shrink: 0 !important;
    width: 240px;
    height: 300px;
    object-fit: cover;
    background-color: #ffffff;
    padding: 12px 12px 50px 12px; 
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    margin: 0 30px; 
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* Inclinação das Polaroids */
.photo-track img:nth-child(odd) { transform: rotate(-3deg); }
.photo-track img:nth-child(even) { transform: rotate(3deg); }

.photo-track img:hover {
    transform: rotate(0deg) scale(1.1) !important;
    z-index: 10;
}

/* Pausa ao passar o mouse */
.photo-scroll:hover .photo-track {
    animation-play-state: paused;
}

/* ANIMAÇÃO */
@keyframes scrollLateral {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-3240px); 
    }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-gift {
  animation: pulse 2s infinite;
}

/* --- PLAYER DE MÚSICA --- */
.btn-musica-elegante {
    background-color: #2c3e50; 
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px; 
    font-size: 16px;
    font-family: 'Playfair Display', serif; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-musica-elegante:hover {
    transform: scale(1.05); 
    background-color: #1a252f;
}

.secao-regressiva {
    background-color: #001F3F;
    padding: 0px 15px 15px;
    text-align: center;
    color: white;
    border-bottom: 2px solid #C5A059;
    border-top: 2px solid #C5A059;
}

#contagem-regressiva {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0px;
}

.countdown-item {
    background: white;
    color: #4a4a4a;
    width: 70px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.number { font-size: 1.8rem; font-weight: bold; line-height: 1; }
.label { font-size: 0.6rem; text-transform: uppercase; color: #888; font-weight: bold; }

#texto-recado::-webkit-input-placeholder{
    color:#1C1C1C;
    background-color: #ffffff;
    font-style: normal;
    font-size:15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* --- EFEITO DE CLIQUE E TELA DE FOTO AMPLIADA --- */

.photo-track img {
    cursor: pointer; /* Muda a setinha para mãozinha */
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    /* Centraliza a foto exatamente no meio da tela */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* O Segredo: Limita a foto para caber no monitor */
    max-width: 90vw; 
    max-height: 90vh; /* Nunca passa de 90% da altura da tela */
    width: auto;
    height: auto;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}