/* CSS Reset & Variáveis */
:root {
    --primary-color: #5a141b;      /* Burgundy/Vinho elegante */
    --primary-light: #8b2635;
    --accent-color: #c5a059;       /* Ouro envelhecido */
    --accent-light: #edd8a7;
    --bg-color: #fcf9f2;           /* Creme/Papiro suave */
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #3d332a;         /* Marrom escuro quase preto */
    --text-muted: #706357;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --box-shadow: 0 15px 35px rgba(90, 20, 27, 0.08);
    --font-heading: 'Cormorant Garamond', serif;
    --font-fancy: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(247, 241, 229, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(234, 226, 207, 0.5) 0%, transparent 50%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

/* Decorações Florais de Fundo (Aesthetic) */
.flower-bg {
    position: fixed;
    width: 250px;
    height: 250px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

@media (min-width: 1024px) {
    .flower-bg {
        opacity: 0.35;
        width: 350px;
        height: 350px;
    }
}

/* Criando silhuetas florais em SVG embutido para background */
.flower-top-left {
    top: -20px;
    left: -20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%235a141b'><path d='M30,10 C20,10 10,20 10,30 C10,50 30,70 50,90 C70,70 90,50 90,30 C90,20 80,10 70,10 C60,10 50,20 50,20 C50,20 40,10 30,10 Z' opacity='0.15'/><path d='M10,10 Q30,5 40,30 T10,50 Z' fill='%23c5a059' opacity='0.2'/><circle cx='30' cy='30' r='15' fill='%235a141b' opacity='0.1'/></svg>");
}

.flower-bottom-right {
    bottom: -20px;
    right: -20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%235a141b'><path d='M30,10 C20,10 10,20 10,30 C10,50 30,70 50,90 C70,70 90,50 90,30 C90,20 80,10 70,10 C60,10 50,20 50,20 C50,20 40,10 30,10 Z' opacity='0.15'/><path d='M90,90 Q70,95 60,70 T90,50 Z' fill='%23c5a059' opacity='0.2'/><circle cx='70' cy='70' r='15' fill='%235a141b' opacity='0.1'/></svg>");
    transform: rotate(180deg);
}

/* Container Principal */
.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Cabeçalho */
.header {
    text-align: center;
    padding: 20px 10px;
}

.initials {
    font-family: var(--font-fancy);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: -10px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.wedding-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Divisor Elegante */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.divider .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.divider .dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Indicador de Rolagem */
.scroll-hint {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-top: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: pulse 2s infinite ease-in-out;
}

.scroll-hint::after {
    content: '↓';
    font-size: 1rem;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

/* Imagem Central do Convite */
.invitation-section {
    width: 100%;
}

.invitation-card-wrapper {
    perspective: 1000px;
}

.invitation-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(90, 20, 27, 0.12);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
}

.invitation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(90, 20, 27, 0.18);
}

.invitation-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 20, 27, 0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.invitation-card:hover .card-overlay {
    opacity: 1;
}

.btn-zoom {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-zoom:hover {
    background: #fff;
    transform: scale(1.05);
}

.icon-svg {
    width: 16px;
    height: 16px;
}

/* Seção de Contagem Regressiva */
.countdown-section {
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--box-shadow);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    width: 75px;
    padding: 12px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(90, 20, 27, 0.03);
    transition: var(--transition);
}

.countdown-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.countdown-box .number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.1;
}

.countdown-box .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.event-details {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Cards Interativos */
.interaction-center {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.interactive-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(90, 20, 27, 0.12);
}

.interactive-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    transition: var(--transition);
}

.interactive-card:hover .card-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.card-icon .icon {
    width: 28px;
    height: 28px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Botões Customizados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
}

/* Botão Dourado (Lista de Presentes) */
.btn-gold {
    background: linear-gradient(135deg, var(--accent-color), #b08947);
    color: #fff;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d3b772, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

/* Botão Mapa (Como chegar) */
.btn-map {
    background: #4a5d4e; /* Verde oliva/folha sutil */
    color: #fff;
    box-shadow: 0 6px 20px rgba(74, 93, 78, 0.2);
}

.btn-map:hover {
    background: #39483c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 93, 78, 0.3);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Formulário RSVP Interativo */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(112, 99, 87, 0.25);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.input-group input.error {
    border-color: #e07a5f;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Efeito flutuante do label ao focar ou ter conteúdo */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    background: #fff;
    padding: 0 6px;
    border-radius: 4px;
    color: var(--accent-color);
    transform: translateY(-50%) scale(0.9);
}

/* Ocultar placeholder do browser padrão para não chocar */
.input-group input::placeholder {
    color: transparent;
}

.rsvp-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

@media (min-width: 480px) {
    .rsvp-actions {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(90, 20, 27, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background-color: rgba(112, 99, 87, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Mensagem de Confirmação Final */
.final-rsvp-note {
    text-align: center;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.final-rsvp-note .deadline-highlight {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 30px 10px;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
    margin-top: 20px;
}

.footer-love {
    font-family: var(--font-fancy);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.footer-contact {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 2px rgba(197, 160, 89, 0.1);
}

/* Modal de Visualização (Zoom) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 37, 32, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Animações */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Delays para animação sequencial */
.header.animate-fade-in {
    animation-delay: 0.1s;
}

.invitation-section.animate-slide-up {
    animation-delay: 0.3s;
}

.countdown-section.animate-slide-up {
    animation-delay: 0.5s;
}

.interaction-center.animate-slide-up {
    animation-delay: 0.7s;
}

.footer.animate-fade-in {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Suporte a Acessibilidade / Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-slide-up,
    .invitation-card,
    .btn,
    .countdown-box {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
}
