/* Importação da fonte Melinda original */
@font-face {
    font-family: 'Melinda';
    src: url('Melinda.woff2') format('woff2'),
         url('Melinda.woff') format('woff'),
         url('Melinda.ttf') format('truetype'),
         url('Melinda.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Allura:wght@400&family=Dancing+Script:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #4a4a4a;
}

/* Estrutura principal */
.invitation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.page {
    background: linear-gradient(145deg, #faf8f4 0%, #f5f1eb 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(139, 115, 85, 0.15),
        0 10px 20px rgba(139, 115, 85, 0.1);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    border: 2px solid rgba(139, 115, 85, 0.1);
    page-break-after: always;
}

.page:last-child {
    margin-bottom: 0;
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 115, 85, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Estilos específicos para cada página */
.page-1 {
    text-align: center;
}

.page-2 {
    /* Estilos específicos da página 2 se necessário */
}

.page-3 {
    text-align: center;
}

/* Ornamentos decorativos */
.ornament-top, .ornament-bottom {
    text-align: center;
    margin: 20px 0;
}

.decorative-flourish {
    width: 200px;
    height: 40px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(139, 115, 85, 0.2));
}

/* Conteúdo principal */
.main-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Imagem da capela */
.chapel-image {
    position: relative;
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(139, 115, 85, 0.2);
}

.watercolor-chapel {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.chapel-image:hover .watercolor-chapel {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(139, 115, 85, 0.05) 100%
    );
    border-radius: 15px;
}

/* Tipografia dos nomes - Fonte Allura */
.couple-names {
    font-family: 'Allura', 'Great Vibes', cursive; /* Fonte Allura elegante */
    font-size: 4rem;
    font-weight: 400;
    color: #8B7355;
    margin: 30px 0 20px;
    text-shadow: 0 2px 4px rgba(139, 115, 85, 0.1);
    letter-spacing: 3px;
    position: relative;
    line-height: 1.2;
}

.couple-names::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8B7355, transparent);
}

/* Frase do convite */
.invitation-phrase {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #6B5B47;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Detalhes do casamento */
.wedding-details {
    margin: 40px 0;
    padding: 35px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    backdrop-filter: blur(10px);
}

.detail-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B7355;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.detail-value {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.detail-time, .detail-address {
    font-size: 1.1rem;
    color: #6B5B47;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Seção RSVP */
.rsvp-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.05) 0%, rgba(139, 115, 85, 0.1) 100%);
    border-radius: 15px;
    border: 1px solid rgba(139, 115, 85, 0.15);
}

.rsvp-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Botão WhatsApp */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #25D366 0%, #20B358 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #20B358 0%, #25D366 100%);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Citação de amor */
.love-quote {
    margin-top: 40px;
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border-left: 4px solid #8B7355;
}

.love-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #6B5B47;
    margin-bottom: 10px;
    line-height: 1.6;
}

.quote-author {
    font-size: 0.9rem;
    color: #8B7355;
    font-weight: 500;
}

/* Estilos da seção de informações (Landing Page) */
.info-content {
    text-align: center;
}

.info-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #8B7355;
    margin-bottom: 40px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.2);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #8B7355;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #6B5B47;
    line-height: 1.6;
}

.hashtag-section {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
    border-radius: 12px;
}

.final-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #8B7355;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

/* Seção de contato no verso */
.contact-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.contact-text {
    font-size: 1rem;
    color: #6B5B47;
    margin-bottom: 15px;
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-whatsapp:hover {
    background: #20B358;
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .invitation-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .page {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .couple-names {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .invitation-phrase {
        font-size: 1.2rem;
        line-height: 1.4;
        margin: 20px 0;
    }
    
    .chapel-image {
        margin-bottom: 25px;
    }
    
    .watercolor-chapel {
        max-height: 220px;
        width: 100%;
        object-fit: contain;
    }
    
    .wedding-details {
        gap: 20px;
    }
    
    .detail-item {
        padding: 15px;
    }
    
    .detail-label {
        font-size: 1rem;
    }
    
    .detail-value {
        font-size: 1.2rem;
    }
    
    .detail-address, .detail-time {
        font-size: 0.95rem;
    }
    
    .info-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .rsvp-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .whatsapp-button {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
    
    .whatsapp-container {
        gap: 15px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
    
    .wedding-quote {
        font-size: 1.1rem;
        line-height: 1.4;
        padding: 15px;
    }
    
    .quote-author {
        font-size: 0.9rem;
    }
    
    .final-message {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .invitation-container {
        padding: 8px;
    }
    
    .page {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .couple-names {
        font-size: 2.2rem;
    }
    
    .invitation-phrase {
        font-size: 1.1rem;
    }
    
    .watercolor-chapel {
        max-height: 180px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .detail-value {
        font-size: 1.1rem;
    }
    
    .detail-address, .detail-time {
        font-size: 0.9rem;
    }
    
    .info-title {
        font-size: 1.6rem;
    }
    
    .rsvp-text {
        font-size: 1rem;
    }
    
    .whatsapp-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .qr-code {
        width: 140px;
        height: 140px;
    }
    
    .wedding-quote {
        font-size: 1rem;
        padding: 12px;
    }
    
    .quote-author {
        font-size: 0.85rem;
    }
    
    .final-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .couple-names {
        font-size: 2rem;
    }
    
    .invitation-phrase {
        font-size: 1rem;
    }
    
    .watercolor-chapel {
        max-height: 160px;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    .whatsapp-button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* Estilos para impressão */
@media print {
    body {
        background: white;
        padding: 0;
    }
    

    
    .invitation-container {
        max-width: none;
        width: 100%;
    }
    
    .page {
        box-shadow: none;
        border: 2px solid #8B7355;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .whatsapp-button, .contact-whatsapp {
        background: #8B7355 !important;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invitation-front > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.invitation-front > *:nth-child(2) {
    animation-delay: 0.2s;
}

.invitation-front > *:nth-child(3) {
    animation-delay: 0.4s;
}

.invitation-front > *:nth-child(4) {
    animation-delay: 0.6s;
}

/* Efeitos especiais para a fonte Melinda */
.couple-names {
    background: linear-gradient(45deg, #8B7355, #A0896B, #8B7355);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Container do WhatsApp com QR Code */
.whatsapp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(139, 115, 85, 0.1);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.1);
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.qr-code:hover {
    transform: scale(1.05);
}

/* Responsividade para WhatsApp container */
@media (max-width: 768px) {
    .whatsapp-container {
        gap: 15px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .qr-code {
        width: 140px;
        height: 140px;
    }
}
