/* --- style.css --- */

/* 1. GENERAL STYLES */
* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Cormorant Garamond', serif;
    color: #777777;
    overflow-x: hidden;
}

/* 2. BACKGROUND IMAGE */
body {
    background-image: url('background.png');
    background-color: #EEE7EE; 
    background-size: 100% auto;       
    background-position: center top; 
    background-attachment: fixed; 
    background-repeat: no-repeat;
}

/* 3. MAIN CONTAINER (UPDATED SPACING) */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    min-height: 100vh; 
    text-align: center;
    
    /* CHANGED: Increased to 220px to push title below the leaves */
    padding-top: 370px; 
    
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 85px; 
    font-weight: 500;
    margin: 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #000000;
}

.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 50px;
    color: #444;
}

/* 4. COUNTDOWN TIMER */
#countdown {
    display: flex;
    justify-content: center;
    gap: 50px; 
    margin-top: 20px;
    margin-bottom: 80px; 
    color: #000000;
}

.time-box {
    text-align: center;
    min-width: 80px;
}

.number {
    font-size: 60px;
    font-weight: 600;
    display: block;
    line-height: 1;
}

.label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
    display: block;
}

/* 5. NAVIGATION */
nav {
    width: 100%;
    max-width: 900px; 
    padding-top: 20px;
}

.nav-links {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 10px;
    margin: 0;
    gap: 15px; 
}

nav a {
    text-decoration: none;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px; 
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    font-weight: 500;
    white-space: nowrap; 
}

nav a:hover {
    border-bottom: 2px solid #333;
    opacity: 0.8;
}

nav a.active {
    border-bottom: 2px solid #333;
    color: #000;
}

/* --- MISSING EVENTS SECTION (Add this) --- */
.events-container {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.event-box {
    margin-bottom: 30px;
}

.event-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #000;
}

.event-time {
    font-style: italic;
    font-size: 20px;
    margin-bottom: 10px;
    color: #555;
}

.event-location {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.event-divider {
    width: 2px;
    height: 30px;
    background-color: #ccc;
    margin: 20px auto; /* Creates a vertical line between events */
}

/* 6. MAIN PHOTO STYLING (CROPPED VERSION) */
.main-photo-container {
    margin-top: 60px; 
    width: 100%;
    max-width: 500px; 
    padding-bottom: 50px; 
    
    /* Center the container so the cropped image stays in the middle */
    margin-left: auto;
    margin-right: auto;
}

.main-photo-container img {
    width: 100%;       
    
    /* CROPPING MAGIC STARTS HERE */
    height: 400px;        /* Force the image to be shorter (Adjust this number to crop more/less) */
    object-fit: cover;    /* This cuts off the bottom instead of squishing the image */
    object-position: top; /* Ensures we see the faces at the top, not the middle */
    /* CROPPING MAGIC ENDS HERE */

    display: block;    
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    border-radius: 2px; 
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    h1 { font-size: 42px; }
    
    /* On mobile, 220px might be too much, so we reduce it slightly */
    .container { padding-top: 120px; }
    
    #countdown { gap: 20px; margin-bottom: 40px; }
    .number { font-size: 32px; }
    
    .nav-links {
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 15px 20px; 
    }
    
    .main-photo-container {
        margin-top: 40px;
    }
}
/* --- ADD THIS TO THE BOTTOM OF STYLE.CSS --- */

/* 7. CONTENT PAGE STYLES */

.content-wrapper {
    width: 100%;
    max-width: 800px; /* Keeps text readable, not too wide */
    margin-top: 40px;
    text-align: left; /* Text reads better aligned left */
    padding-bottom: 80px;
}

.intro-text {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
}

.divider-line {
    width: 100px;
    height: 1px;
    background-color: #ccc;
    margin: 40px auto; /* Centers the line */
}

/* Section Headers */
.section-title {
    font-size: 32px;
    color: #000;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 500;
}

.section-subtitle {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 30px;
    color: #555;
}

/* Two Column Grid for Him/Her */
.attire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    margin-bottom: 20px;
}

.attire-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #000;
}

.attire-col ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
}

.attire-col li {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

/* Custom Bullet Point (Small Dash) */
.attire-col li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

/* Tips Box */
.tips-box {
    background-color: rgba(255, 255, 255, 0.6); /* Slight white background */
    padding: 30px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    margin-top: 20px;
}

.tips-box h3 {
    font-size: 22px;
    margin-top: 0;
    text-align: center;
    color: #000;
}

.tips-box p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Mobile Adjustments for Content */
@media (max-width: 700px) {
    .attire-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 20px;
    }
    
    .content-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* --- GIFTS PAGE STYLES --- */

/* The Bible Verse */
.scripture-box {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-style: italic;
    text-align: center;
    color: #444;
    margin-bottom: 20px;
    padding: 0 20px;
}

.verse-ref {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #888;
}

/* Text Styling */
.gift-intro {
    font-size: 22px; /* Slightly larger for the first paragraph */
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #222;
}

.gift-text {
    font-size: 18px;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bank Details Box */
.bank-details-box {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 40px;
    margin: 40px auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* Very subtle shadow */
}

.bank-details-box h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
}

/* Rows for Bank Info */
.details-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 18px;
}

.details-row:last-of-type {
    border-bottom: none;
}

.details-row .label {
    font-weight: 600;
    color: #555;
}

.details-row .value {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #000;
}

/* Closing Blessing */
.closing-blessing {
    text-align: center;
    font-style: italic;
    margin-top: 50px;
    color: #666;
}

/* Mobile Tweak for Bank Box */
@media (max-width: 500px) {
    .bank-details-box {
        padding: 20px;
    }
    .details-row {
        flex-direction: column; /* Stack label and value on small phones */
        gap: 5px;
        text-align: center;
    }
}

/* --- VENUE MAPS & DIRECTIONS --- */

.venues-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.venue-card {
    flex: 1; /* Makes them equal width */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.venue-card h4 {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #000;
}

.small-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* The Small Map Iframe */
.map-frame {
    width: 100%;
    height: 200px; /* Controls the height of the "small image" */
    border: 0;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #eee;
}

/* The Directions Button */
.btn-directions {
    display: inline-block;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-directions:hover {
    background-color: #555;
}

/* Mobile Tweak: Stack the venue cards */
@media (max-width: 600px) {
    .venues-grid {
        flex-direction: column;
    }
}