/* Premium Religious-Themed Wedding Design System */
/* Inspired by https://dn-tony-priestly-ordination.vercel.app/ */

:root {
    --bg-color: #FDFBF7; /* Ivory/Cream */
    --maroon: #511A1A;   /* Deep Oxblood/Maroon */
    --gold: #D4AF37;     /* Gold Accent */
    --text-primary: #1A1A1A;
    --text-maroon: #511A1A;
    --accent-font: 'Great Vibes', cursive;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Subtle Noise Texture Overlay */
.noise-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/pinstriped-suit.png");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1000;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #eee;
    border-top: 3px solid var(--maroon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.loader-text {
    margin-top: 20px;
    font-family: var(--heading-font);
    color: var(--maroon);
    letter-spacing: 2px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.wide-container { max-width: 1200px; }

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* Sections Heading */
.heading-with-ornament { margin-bottom: 50px; text-align: center; }

/* Enhanced CSS Divider Ornaments */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.divider-ornament .line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--maroon), transparent);
    width: 60px;
    opacity: 0.3;
}

.divider-ornament i {
    color: var(--maroon);
    font-size: 0.9rem;
    opacity: 0.6;
}

.divider-ornament.small .line { width: 40px; }
.divider-ornament.footer-div .line { width: 30px; }

.section-heading {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--maroon);
    margin-bottom: 20px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--maroon);
    opacity: 0.3;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-portrait-frame {
    width: 280px;
    height: 380px;
    border-radius: 140px 140px 0 0;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    position: relative;
    max-width: 90vw;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-subtitle {
    font-family: var(--accent-font);
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: var(--maroon);
    margin-bottom: 5px;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: capitalize;
}

.hero-bible-verse {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto 20px;
    font-style: italic;
    line-height: 1.6;
    opacity: 0.8;
}

.hero-ornament { margin-bottom: 30px; }

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    min-width: 160px;
}

.btn-maroon { background: var(--maroon); color: #fff; gap: 10px; }
.btn-maroon:hover { background: #3a1212; transform: translateY(-3px); }

.btn-outline-maroon { background: transparent; border: 1px solid var(--maroon); color: var(--maroon); gap: 10px; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }

.btn-maroon-lg { background: var(--maroon); color: #fff; padding: 15px 40px; border-radius: 30px; }
.btn-maroon-full { background: var(--maroon); color: #fff; width: 100%; padding: 15px; border-radius: 5px; font-size: 1rem; }

/* Details Cards */
.details-cards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: left;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: #F8F1F1;
    color: var(--maroon);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-body { flex: 1; }
.card-title { font-family: var(--heading-font); font-size: 1.6rem; color: var(--maroon); margin-bottom: 10px; }
.card-content { margin-bottom: 5px; }
.card-content p { color: #555; margin-bottom: 2px; }
.card-date { font-weight: 700; color: var(--maroon) !important; font-size: 1rem; }

.card-action-btn {
    display: inline-block;
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--maroon);
    margin-top: 10px;
}

/* Digital Card Frame */
.invitation-section {
    background: linear-gradient(135deg, #fdfbf7 0%, #f5efde 100%);
    position: relative;
}

.digital-card-frame {
    background: #fff;
    padding: 80px 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
    border-radius: 4px;
}

.digital-card-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.card-ornament.top { margin-bottom: 30px; }
.card-ornament.bottom { margin-top: 30px; }

.invitation-heading { 
    font-family: var(--heading-font); 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    color: var(--gold); 
    margin-bottom: 25px; 
    font-weight: 400;
}

.invitation-script { 
    font-family: var(--body-font);
    font-size: 1rem;
    color: #777; 
    margin-bottom: 30px; 
    line-height: 1.8;
}

.invitation-names {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
}

.invitation-names .name { 
    font-family: var(--accent-font); 
    font-size: 3.5rem; 
    color: var(--maroon); 
    line-height: 1; 
    text-transform: capitalize;
}

.invitation-names .and { 
    font-family: var(--heading-font); 
    font-size: 1.5rem; 
    color: var(--gold);
    margin: 10px 0; 
}

.main-invite-date {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--gold);
    margin-top: 10px;
    letter-spacing: 2px;
    font-weight: 400;
}


.divider { 
    width: 100px; 
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 30px auto; 
    position: relative;
}

.divider i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 10px;
    font-size: 0.8rem;
}


.invitation-text { 
    margin-bottom: 40px; 
    color: #555; 
    font-size: 1rem; 
    line-height: 1.8;
}

/* Countdown */
.countdown-container {
    margin: 40px 0;
}

.countdown-badge {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: nowrap; /* Prevent wrapping on most devices */
}

.time-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 80px;
    padding: 12px 5px;
    background: #fdfbf7;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.time-part span { 
    font-family: var(--heading-font); 
    font-size: 1.8rem; 
    font-weight: 400; 
    color: var(--maroon); 
    line-height: 1;
    margin-bottom: 5px;
}

.time-part small { 
    font-size: 0.55rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #999; 
}


/* Venue Section */
.map-container-wrapper {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    width: 100%;
}

.google-map { width: 100%; height: 100%; border: 0; }

/* Contacts Grid */
.contacts-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card-v2 {
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.contact-info-text { flex: 1; }
.contact-card-v2 h4 { font-family: var(--heading-font); color: var(--maroon); font-size: 1.3rem; margin-bottom: 5px; text-transform: capitalize; }
.contact-card-v2 p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 0; }

.contact-link {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #F8F1F1;
    border-radius: 50%;
    transition: 0.3s;
}
.contact-link i { margin: 0; }
.contact-link span { display: none; }
.contact-link:hover { background: var(--maroon); color: #fff; }

/* RSVP Section */
.rsvp-box {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.rsvp-title { font-family: var(--heading-font); text-align: center; color: var(--maroon); font-size: 2rem; margin-bottom: 10px; }
.rsvp-subtitle { text-align: center; color: #888; margin-bottom: 30px; font-size: 0.9rem; }

.modern-form .input-group { margin-bottom: 15px; }
.modern-form input, .modern-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #F9F9F9;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.modern-form input:focus { border-color: var(--maroon); background: #fff; }

/* Footer */
.site-footer {
    padding: 60px 0 40px;
    background: #F8F1F1;
    text-align: center;
    border-top: 1px solid #eee;
    width: 100%;
}

.footer-inner { 
    max-width: 600px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-names { font-family: var(--heading-font); color: var(--maroon); font-size: 2rem; margin-bottom: 15px; text-transform: capitalize; }
.floral-divider-small { margin: 15px 0; width: 100%; display: flex; justify-content: center; }
.footer-date { letter-spacing: 3px; font-weight: 700; margin-bottom: 25px; color: #888; font-size: 1.1rem; }

.footer-social { margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; }
.footer-social a { color: var(--maroon); font-size: 1.4rem; transition: 0.3s; }
.footer-social a:hover { transform: translateY(-3px); }

.footer-quote { font-family: var(--accent-font); font-size: 1.8rem; color: var(--maroon); opacity: 0.7; }

/* Bottom Navigation */
.bottom-navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 450px;
    height: 70px;
    border-radius: 35px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 5000;
    border: 1px solid rgba(255,255,255,0.5);
}

.nav-btn {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
    flex: 1;
}

.nav-btn i { font-size: 1.2rem; margin-bottom: 4px; transition: 0.2s; }

.nav-btn.active { color: var(--maroon); }
.nav-btn.active i { transform: translateY(-3px); color: var(--maroon); }

.bottom-nav-spacer { height: 120px; }



@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
}

.status-modal {
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 100%;
}

.success-check {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

/* Global Media Queries */
@media (max-width: 768px) {
    .hero-title { font-size: 2.6rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 2.2rem; }
    .hero-portrait-frame { width: 220px; height: 320px; border-width: 6px; }
    .hero-section { padding: 40px 20px; }
    
    .section-padding { padding: 60px 0; }
    .section-heading { font-size: 1.8rem; margin-bottom: 40px; }
    
    .digital-card-frame { padding: 40px 15px; }
    .invitation-heading { font-size: 0.9rem; letter-spacing: 2px; }
    .invitation-names .name { font-size: 2.2rem; }
    .invitation-names .and { font-size: 1rem; }
    .invitation-text { font-size: 0.85rem; margin-bottom: 25px; }
    .time-part { padding: 8px 2px; }
    .time-part span { font-size: 1.4rem; }
    .countdown-badge { gap: 8px; }

    
    .bottom-navigation { width: 92%; height: 70px; bottom: 15px; }
    
    .hero-cta-group { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; gap: 10px; }
    .btn { min-width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 2.2rem; }
    .digital-card-frame { padding: 30px 15px; }
    .info-card { padding: 30px 20px; }
    .countdown-badge { gap: 10px; }
    .time-part { min-width: 50px; }
    .info-card { flex-direction: column; text-align: center; }
    .icon-circle { margin: 0 auto 15px; }
    .contact-card-v2 { flex-direction: row; text-align: left; }
    .contact-link { width: 40px; height: 40px; }
}
