/* ========================================= */
/* 1. RESET & VARS                           */
/* ========================================= */
:root {
    --primary: #C55A37;      /* Rust Orange */
    --primary-dark: #9E4327;
    --gold: #D4AF37;         /* Classic Gold */
    --bg-light: #FFFBF7;     /* Cream */
    --text-dark: #2C2C2C;
    --text-grey: #666666;
    --font-head: 'Great Vibes', cursive;
    --font-sub: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: var(--font-body); 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

/* ========================================= */
/* 2. HERO SECTION                           */
/* ========================================= */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1606800052052-a08af7148866?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    position: relative;
    display: flex; flex-direction: column; 
    align-items: center; justify-content: center; text-align: center; color: white;
}
.overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)); 
}
.content { position: relative; z-index: 2; padding: 0 20px; }

.ornament-divider { font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; opacity: 0.8; }
h1 { 
    font-family: var(--font-head); font-size: 4.5rem; margin: 5px 0 15px; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.4); line-height: 1.1; 
}
.tagline { 
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; 
    font-family: var(--font-sub); color: #EEE; 
}
.date { 
    font-size: 1.3rem; margin-bottom: 30px; font-weight: 300; letter-spacing: 1px;
}

/* Countdown */
.countdown { 
    display: flex; gap: 15px; justify-content: center; align-items: center;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px);
    padding: 15px 30px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2);
}
.time-box { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.time-box span { font-size: 1.8rem; font-weight: 700; font-family: var(--font-sub); line-height: 1; }
.time-box .label { font-size: 0.6rem; text-transform: uppercase; opacity: 0.8; margin-top: 5px; font-family: var(--font-body); letter-spacing: 1px; }
.colon { font-size: 1.5rem; padding-bottom: 15px; opacity: 0.7; }

/* Scroll Arrow */
.scroll-indicator { 
    position: absolute; bottom: 30px; 
    animation: bounce 2s infinite; color: white; font-size: 1.2rem; opacity: 0.7; 
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ========================================= */
/* 3. PATTERN BG & CARD                      */
/* ========================================= */
.pattern-bg {
    /* Linking to the Wedding Hub pattern. If this breaks, it falls back to a nice gradient */
    background-image: linear-gradient(rgba(255, 251, 247, 0.95), rgba(255, 251, 247, 0.95)), url('images/img1.png');
    background-size: 300px auto;
    background-repeat: repeat;
    padding-bottom: 0;
}

.card-section { padding: 80px 20px; display: flex; justify-content: center; }

.invite-card {
    background: white; 
    padding: 15px; /* Outer padding for double border effect */
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(197, 90, 55, 0.15); 
    text-align: center;
    max-width: 400px; width: 100%; 
    position: relative;
    transform: translateY(20px); transition: 0.6s ease; opacity: 0;
}
.invite-card.visible { transform: translateY(0); opacity: 1; }

/* The "Inner Frame" gives it the wedding card look */
.inner-frame {
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 40px 20px;
    position: relative;
}
/* Corner Ornaments using CSS borders */
.inner-frame::before, .inner-frame::after {
    content: ''; position: absolute; width: 15px; height: 15px;
    border-color: var(--gold); border-style: solid; transition: 0.3s;
}
.inner-frame::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.inner-frame::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.ornament-img { 
    font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; 
    opacity: 0.9; 
}

h2 { 
    font-family: var(--font-head); color: var(--primary); 
    font-size: 3rem; margin-bottom: 5px; line-height: 1.2; 
}

.divider-small { 
    width: 50px; height: 2px; background: var(--gold); 
    margin: 10px auto 25px; opacity: 0.5; 
}

.event-time { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 5px; font-weight: 600; }
.event-loc { font-size: 1rem; color: var(--text-grey); margin-bottom: 30px; }

/* ========================================= */
/* 4. BUTTONS                                */
/* ========================================= */
.actions { display: flex; flex-direction: column; gap: 15px; }

.btn {
    text-decoration: none; padding: 14px; border-radius: 50px; 
    font-weight: 700; font-size: 0.9rem; display: flex; 
    align-items: center; justify-content: center; gap: 10px; 
    transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px;
}

.btn.primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; border: none; 
    box-shadow: 0 5px 15px rgba(197, 90, 55, 0.3);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(197, 90, 55, 0.4); }

.btn.outline { 
    border: 1px solid var(--primary); color: var(--primary); background: transparent; 
}
.btn.outline:hover { background: #FFF0E8; }

/* ========================================= */
/* 5. FOOTER                                 */
/* ========================================= */
.main-footer { 
    background-color: #221B17; /* Dark Chocolate */
    color: #999; 
    padding: 50px 20px; 
    text-align: center;
    border-top: 4px solid var(--primary);
}

.hashtag { 
    font-family: var(--font-sub); color: var(--gold); 
    font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 20px; 
}

.footer-divider { 
    width: 30px; height: 1px; background: #555; margin: 0 auto 20px; 
}

.credit { font-size: 0.85rem; margin-bottom: 8px; }
.copyright { font-size: 0.75rem; opacity: 0.5; }

/* Mobile Adjustments */
@media (max-width: 600px) { 
    h1 { font-size: 3.5rem; } 
    .countdown { padding: 10px 20px; }
    .invite-card { margin: 0 10px; }
}