/* ==========================================================================
   Design System - Exclusive Model (Rústico Chic / Arch Design)
   ========================================================================== */
:root {
    --color-bg: #F9F6F0; /* Soft beige/creme */
    --color-kraft: #EAE3D2; /* Kraft paper tone */
    --color-sage: #8A9A86; /* Verde Sálvia */
    --color-terra: #C17F59; /* Terracota */
    --color-text: #4A4A4A; 
    --color-text-light: #7A7A7A;
    --color-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-text: 'Outfit', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.08);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-sage); font-weight: 400; }
a { text-decoration: none; color: inherit; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 6rem 0; }
.bg-kraft { background-color: var(--color-kraft); }

/* Dividers */
.divider { width: 40px; height: 1px; background-color: var(--color-terra); margin: 1.5rem auto; }
.elegant-hr { border: 0; border-top: 1px solid rgba(90, 106, 85, 0.2); margin: 2rem 0; }

/* Typography */
.section-title { font-size: 2.8rem; letter-spacing: 1px; }
.section-subtitle { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 3rem; font-style: italic; font-family: var(--font-heading); }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--color-sage);
    color: white;
    border: 1px solid var(--color-sage);
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background-color: var(--color-terra); border-color: var(--color-terra); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: transparent;
    color: var(--color-sage);
    border: 1px solid var(--color-sage);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover { background-color: var(--color-sage); color: white; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-text { color: var(--color-terra); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: var(--transition); }
.btn-text:hover { color: var(--color-sage); letter-spacing: 2px; }

/* ==========================================================================
   Hero Arch
   ========================================================================== */
.hero-arch-section { background-color: var(--color-kraft); min-height: 100vh; display: flex; align-items: center; padding: 2rem; }
.hero-content-wrapper { display: flex; max-width: 1200px; margin: 0 auto; width: 100%; gap: 4rem; align-items: center; }

.hero-text-side { flex: 1; text-align: center; padding: 2rem; }
.pre-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px; color: var(--color-text-light); margin-bottom: 2rem; }
.couple-names { font-size: 4.5rem; line-height: 1; color: var(--color-sage); }
.ampersand { font-family: var(--font-script); font-size: 4rem; color: var(--color-terra); font-weight: normal; }

.date-location { margin-top: 2rem; }
.date-location .date { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; color: var(--color-sage); }
.date-location .location { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.5rem; }

.hero-image-side { flex: 1; display: flex; justify-content: center; }
.arch-frame {
    width: 100%;
    max-width: 450px;
    height: 650px;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame::after {
    content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.3); border-radius: 200px 200px 0 0; pointer-events: none; margin: 10px;
}

@media (max-width: 900px) {
    .hero-content-wrapper { flex-direction: column-reverse; text-align: center; gap: 2rem; margin-top: 4rem; }
    .arch-frame { height: 400px; }
    .couple-names { font-size: 3.5rem; }
}

/* ==========================================================================
   Countdown
   ========================================================================== */
.countdown-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 3rem; }
.time-card {
    background: var(--color-kraft);
    padding: 2rem;
    min-width: 120px;
    text-align: center;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}
.time-card span { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-sage); line-height: 1; }
.time-card p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text-light); margin-top: 10px; }

/* ==========================================================================
   Timeline Animada
   ========================================================================== */
.animated-timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0; /* Animado via JS */
    background: linear-gradient(to bottom, var(--color-sage), var(--color-terra));
    transform: translateX(-50%);
    transition: height 1s ease-out;
}
.timeline-event {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.timeline-event.visible { opacity: 1; transform: translateY(0); }
.timeline-event.left { justify-content: flex-start; }
.timeline-event.left .event-card { margin-right: 50%; padding-right: 3rem; text-align: right; }
.timeline-event.right .event-card { margin-left: 50%; padding-left: 3rem; text-align: left; }

.event-card { width: 100%; position: relative; }
.event-card::before {
    content: ''; position: absolute; top: 5px; width: 12px; height: 12px;
    background: var(--color-white); border: 2px solid var(--color-terra); border-radius: 50%;
}
.timeline-event.left .event-card::before { right: -6px; }
.timeline-event.right .event-card::before { left: -6px; }

.event-date { font-family: var(--font-heading); font-size: 1.2rem; font-style: italic; color: var(--color-terra); display: block; margin-bottom: 0.5rem; }
.event-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-event.left, .timeline-event.right { justify-content: flex-end; }
    .timeline-event.left .event-card, .timeline-event.right .event-card { margin: 0 0 0 40px; padding: 0; text-align: left; }
    .timeline-event.left .event-card::before, .timeline-event.right .event-card::before { left: -26px; right: auto; }
}

/* ==========================================================================
   Cerimônia / Split Info
   ========================================================================== */
.split-info-card {
    display: flex; background: var(--color-kraft); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 3rem;
}
.info-text { flex: 1; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.info-text .datetime { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; color: var(--color-terra); }
.info-text .address { font-size: 1.1rem; margin-top: 1rem; }
.schedule p { margin-bottom: 0.8rem; color: var(--color-text-light); }
.schedule strong { color: var(--color-sage); font-family: var(--font-heading); font-size: 1.2rem; }
.info-map { flex: 1; min-height: 400px; }

@media (max-width: 768px) { .split-info-card { flex-direction: column; } .info-text { padding: 2rem; } }

/* ==========================================================================
   Dicas de Viagem
   ========================================================================== */
.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.travel-card { background: var(--color-white); padding: 3rem; text-align: center; border-radius: 8px; box-shadow: var(--shadow-soft); transition: var(--transition); }
.travel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.icon-circle { width: 60px; height: 60px; background: var(--color-kraft); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem; }
.travel-card h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.travel-card p { margin-bottom: 0.8rem; color: var(--color-text-light); }

/* ==========================================================================
   Carrossel de Polaroids
   ========================================================================== */
.carousel-wrapper { width: 100%; overflow: hidden; padding: 2rem 0; margin-top: 2rem; }
.carousel-track {
    display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem;
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    min-width: 300px; height: 400px; scroll-snap-align: center;
    background: white; padding: 10px 10px 40px 10px; box-shadow: var(--shadow-soft);
    transform: rotate(-2deg); transition: var(--transition);
}
.carousel-slide:nth-child(even) { transform: rotate(2deg); }
.carousel-slide:hover { transform: scale(1.05) rotate(0); z-index: 2; box-shadow: var(--shadow-hover); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Pix & Presentes
   ========================================================================== */
.gifts-container { display: flex; gap: 2rem; margin-top: 3rem; align-items: stretch; }
.gift-card { background: var(--color-white); padding: 3rem; border-radius: 8px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.main-gift { flex: 2; border-top: 4px solid var(--color-sage); }
.alt-gift { flex: 1; border-top: 4px solid var(--color-terra); justify-content: center; }

.gift-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.gift-card p { margin-bottom: 2rem; color: var(--color-text-light); }

.pix-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; background: var(--color-kraft); padding: 2rem; border-radius: 8px; margin-top: auto; }
.qr-code { width: 150px; height: 150px; }
.pix-key-box { background: white; padding: 10px; border: 1px dashed var(--color-terra); width: 100%; word-break: break-all; font-family: monospace; font-size: 0.9rem; margin-bottom: 1rem; }

@media (max-width: 768px) { .gifts-container { flex-direction: column; } }

/* ==========================================================================
   Novas Seções (Quiz, Missões, Dresscode, RSVP)
   ========================================================================== */
.quiz-container, .mission-card, .dresscode-box, .rsvp-card { 
    background: var(--color-white); 
    padding: 3.5rem; 
    border-radius: 12px; 
    box-shadow: var(--shadow-soft); 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
    transition: var(--transition);
}

.mission-card:hover, .rsvp-card:hover, .quiz-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mission-card, .rsvp-card {
    border: 1px dashed var(--color-sage);
}

.quiz-options-flex { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.btn-quiz { 
    background: transparent; 
    border: 1px solid var(--color-terra); 
    padding: 1rem 2rem; 
    border-radius: 50px; /* Pílula Orgânica */
    font-family: var(--font-text); 
    font-size: 1rem; 
    color: var(--color-text); 
    cursor: pointer; 
    transition: var(--transition); 
    width: 100%; 
    max-width: 200px; 
}
.btn-quiz:hover:not(:disabled) { background: var(--color-kraft); border-color: var(--color-sage); }
.btn-quiz.correct { background: var(--color-sage); color: white; border-color: var(--color-sage); }
.btn-quiz.wrong { background: var(--color-terra); color: white; border-color: var(--color-terra); }
.btn-quiz:disabled { cursor: not-allowed; opacity: 0.8; }
.quiz-feedback { margin-top: 1.5rem; font-size: 1.1rem; }

#mission-text { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-sage); min-height: 80px; display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   Citação Bíblica
   ========================================================================== */
.quote-container {
    max-width: 800px;
    margin: 0 auto;
}
.bible-verse {
    font-family: var(--font-script);
    font-size: 3.5rem;
    line-height: 1.3;
    color: var(--color-sage);
    margin-bottom: 1rem;
}
.bible-ref {
    font-family: var(--font-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--color-terra);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-rustic { background-color: var(--color-sage); color: white; padding: 4rem 0; margin-top: 0; }
.footer-names { font-size: 2.5rem; color: white; margin-bottom: 0.5rem; }
.footer-rustic p { font-family: var(--font-heading); font-style: italic; opacity: 0.8; }

/* ==========================================================================
   Animações Base
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.fade-in-up { animation: fadeInUp 1s ease forwards; }
.fade-in-scale { animation: fadeInScale 1.2s ease forwards; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
