/* --- Definições Globais e Cores --- */
:root {
    --primary-color: #fdfdfd; 
    --text-color: #333333;
    --text-light: #666666;
    --accent-gold: #d4af37; 
    --accent-gold-light: #f3d775;
    --accent-red: #8b0000;  
    --accent-red-hover: #a00000;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius-card: 12px; 
    --font-family-base: 'Montserrat', sans-serif;
    --font-family-title: 'Playfair Display', serif;
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Garante que o padding não aumente o tamanho dos elementos */
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* Impede a rolagem horizontal que encosta elementos na borda */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px; 
}

/* --- Títulos e Efeitos Brilhantes --- */
h2, h3, h4 {
    font-family: var(--font-family-title);
    font-weight: 700;
}

.shimmer-text {
    background: linear-gradient(
        to right, 
        #a67c00 20%, 
        #ffdf00 40%, 
        #ffdf00 60%, 
        #a67c00 80%
    );
    background-size: 200% auto;
    color: var(--accent-gold); 
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2); 
}

@keyframes shine {
    to { background-position: 200% center; }
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px; 
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--accent-gold-light);
}

/* --- Fallback "Aguardando Foto" --- */
.fallback-bg {
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-title);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* --- Cabeçalho Hero --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
}

.image-wrapper {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: brightness(0.6);
}

.hero-text {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    width: 100%;
}

.debutante-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.9));
}

.celebration-title {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 25px;
    color: #fff;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.8));
}

.gold-divider {
    width: 150px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto 40px;
    box-shadow: 0 0 10px var(--accent-gold-light);
}

/* --- Setinha de Continuar --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.scroll-indicator i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- Contagem Regressiva --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap; /* Garante que os contadores não quebrem a tela do celular */
}

.countdown-item {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 15px;
    border-radius: var(--border-radius-card);
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    font-family: var(--font-family-title);
    text-shadow: 0 0 10px rgba(243, 215, 117, 0.5);
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #eee;
    margin-top: 5px;
}

/* --- Espaçamento Padrão de Seções --- */
.details-section, .gallery-section, .gifts-section {
    padding: 70px 0;
}

/* --- Cartão de Convite (Primeiro Card) --- */
.invite-section {
    margin-top: -80px; /* Sobrepõe a foto */
    position: relative;
    z-index: 10;
    padding-bottom: 70px; /* Mantém a distância com a seção debaixo */
}

.invite-card {
    background: var(--primary-color);
    padding: 50px; 
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-heavy); 
    text-align: center;
    border-top: 5px solid var(--accent-gold);
    width: 100%;
}

.invite-card h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.invite-card p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Grid de Detalhes --- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.detail-card {
    background: var(--primary-color);
    padding: 40px 30px; 
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-heavy); 
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.8rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.detail-card h4 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 10px; 
}

.detail-card p {
    line-height: 1.6;
}

.venue-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Botões de Mapas */
.map-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #f4f4f4;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: var(--transition-fast);
}

.btn-map i {
    color: #4285F4; 
}

.btn-map:hover {
    background-color: #eee;
    border-color: #d0d0d0;
    transform: scale(1.02);
}

/* --- Galeria de Fotos (Arrastar) --- */
.gallery-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 30px; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-carousel::-webkit-scrollbar {
    height: 8px;
}
.gallery-carousel::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
.gallery-carousel::-webkit-scrollbar-thumb {
    background: var(--accent-gold); 
    border-radius: 10px;
}

.gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: 320px; 
    height: 420px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-medium);
    border: 4px solid #fff;
    scroll-snap-align: center;
    overflow: hidden;
    transition: var(--transition-fast);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    pointer-events: none; 
}

.gallery-item:hover {
    border-color: var(--accent-gold);
}

/* --- Cartão de Presentes --- */
.gifts-card {
    background: var(--primary-color);
    padding: 50px; 
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-heavy); 
    text-align: center;
    border-bottom: 5px solid var(--accent-red);
    width: 100%;
}

.gifts-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px; 
}

/* Lista de Presentes - Cards Individuais */
.gifts-list {
    list-style: none;
    text-align: left;
    max-width: 450px;
    margin: 0 auto 40px;
    padding: 0;
}

.gifts-list li {
    font-size: 1.1rem;
    margin-bottom: 18px; 
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background-color: #ffffff; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); 
    border: 1px solid #f4f4f4;
    transition: var(--transition-fast);
}

.gifts-list li:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); 
    border-color: #eee;
}

.gifts-list li strong {
    color: var(--text-color);
    margin-right: 10px;
    font-weight: 600;
}

.gift-icon {
    color: var(--accent-red);
    margin-right: 15px;
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.pix-area {
    border-top: 1px solid #eee;
    margin-top: 40px; 
    padding-top: 40px;
}

.pix-area p {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.pix-box {
    display: inline-flex;
    align-items: center;
    background: #f8f8f8;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
}

.pix-icon {
    color: #00bfa5;
    margin-right: 12px;
    font-size: 1.3rem;
}

#pix-key {
    font-family: monospace;
    font-size: 1.1rem;
    color: #333;
    margin-right: 20px;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Rodapé com Botão RSVP e Ajuda --- */
.rsvp-footer {
    padding: 60px 0 30px; 
    text-align: center;
}

.rsvp-instruction {
    color: var(--text-color);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.rsvp-instruction i {
    color: var(--accent-red);
    margin-right: 8px;
}

.footer-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-confirm-rsvp {
    background-color: var(--accent-red);
    color: var(--primary-color);
    font-family: var(--font-family-base);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-confirm-rsvp:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.btn-help-whatsapp {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #ccc;
    font-family: var(--font-family-base);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-help-whatsapp i {
    font-size: 1.2rem;
}

.btn-help-whatsapp:hover {
    color: #25D366; 
    border-color: #25D366;
    background-color: rgba(37, 211, 102, 0.05);
}

/* Créditos Discretos */
.footer-credits {
    border-top: 1px solid #eee;
    padding-top: 25px;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- MEDIA QUERIES (Responsividade) --- */
@media (max-width: 768px) {
    .debutante-name { font-size: 3rem; }
    .details-grid { grid-template-columns: 1fr; gap: 25px; }
    .gallery-item { width: 85%; }
    .countdown-item { min-width: 70px; padding: 12px; }
    .countdown-number { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 24px !important; /* Força o respiro lateral para nunca encostar */
    }
    
    .details-section, .gallery-section, .gifts-section {
        padding: 50px 0; 
    }
    
    .debutante-name { font-size: 2.4rem; }
    .celebration-title { font-size: 1.1rem; letter-spacing: 3px; }
    
    /* Protege o padding interno dos cards */
    .invite-card, .gifts-card { 
        padding: 35px 20px; 
    }
    
    .invite-card h2 {
        font-size: 1.9rem;
    }
    
    .detail-card {
        padding: 30px 20px;
    }
    
    .section-title { font-size: 1.9rem; margin-bottom: 30px; }
    .full-width-mobile { grid-column: span 1; }
    .map-buttons { flex-direction: column; width: 100%; }
    .btn-map { justify-content: center; }
    
    .gifts-list li { padding: 15px; font-size: 1rem; }
    
    /* Ajuste para não forçar a tela no PIX */
    .pix-box { 
        flex-direction: column; 
        border-radius: 12px; 
        padding: 20px; 
        gap: 12px; 
        width: 100%; /* Garante que respeite a largura do card */
    }
    #pix-key { 
        margin-right: 0; 
        font-size: 0.95rem; 
        word-break: break-all; /* Quebra a chave pix se for maior que a tela */
    }
    
    .rsvp-instruction { font-size: 1rem; padding: 0 10px; }
    .btn-confirm-rsvp { width: 100%; max-width: 300px; padding: 15px; font-size: 1.1rem; }
}