:root {
    --bg-base: #F7F4EB;       
    --bg-base-dark: #EFECE0;  
    --card-bg: rgba(255, 255, 255, 0.85); 
    --sage-green: #415A48;    
    --accent-gold: #C5A059;   
    --text-main: #2C3530;     
    --text-muted: #626F67;   
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
    overflow: hidden; 
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--sage-green);
    line-height: 1.2;
    font-weight: 700;
}

a { text-decoration: none; color: var(--sage-green); transition: color 0.3s; }
a:hover { color: var(--accent-gold); }

/* Gold Flourish Divider */
.flourish-divider {
    display: flex; align-items: center; justify-content: center; gap: 15px; margin: 1.5rem 0; width: 100%;
}
.flourish-divider::before, .flourish-divider::after {
    content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}
.flourish-divider span { color: var(--accent-gold); font-size: 1.2rem; line-height: 1; }

/* Fixed Navigation */
header {
    position: fixed; top: 0; width: 100%; padding: 1.2rem 5%; display: flex; justify-content: space-between;
    align-items: center; z-index: 1000; background: rgba(247, 244, 235, 0.9); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}
.logo { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.4rem; font-weight: 700; color: var(--sage-green); }
.nav-menu ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
.nav-menu ul li a { color: var(--text-main); font-weight: 700; font-size: 0.95rem; }
.nav-menu ul li a:hover { color: var(--sage-green); }

.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 1002; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--sage-green); border-radius: 3px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 2rem; border-radius: 50px;
    font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.05rem; cursor: pointer;
    transition: all 0.3s ease; border: none;
}
.btn-primary { background-color: var(--sage-green); color: #FFFFFF; box-shadow: 0 10px 20px rgba(65, 90, 72, 0.15); }
.btn-primary:hover { background-color: var(--accent-gold); color: #FFFFFF; transform: scale(1.03); }

/* Maps */
.map-container {
    position: relative; width: 100%; height: 160px; margin: 1.2rem 0 0.8rem 0; border-radius: 16px;
    overflow: hidden; border: 1px solid rgba(197, 160, 89, 0.3);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }
.btn-directions { background-color: var(--accent-gold); color: #FFFFFF; box-shadow: 0 6px 15px rgba(197, 160, 89, 0.2); font-size: 0.9rem; padding: 0.5rem 1.2rem; }
.btn-directions:hover { background-color: var(--sage-green); transform: scale(1.03); }

/* Immersive Scroller */
.scroller { height: 100vh; width: 100vw; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.panel { min-height: 100vh; width: 100vw; scroll-snap-align: start; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }

#home { background: radial-gradient(circle at center, var(--bg-base) 0%, var(--bg-base-dark) 100%); }
.home-content { display: flex; align-items: center; justify-content: space-between; width: 90%; max-width: 1200px; z-index: 2; }
.home-text { flex: 1.2; padding-right: 2rem; text-align: center; width: 100%; margin: 0 auto; max-width: 750px; }
.home-text h4 { font-family: 'Playfair Display', serif; font-style: italic; color: var(--accent-gold); text-transform: none; letter-spacing: 0; font-size: 1.2rem; margin-bottom: 1rem; }
.home-text h1 { font-size: 3.8rem; font-weight: 700; margin-bottom: 1rem; }

/* Event Panels & Cards */
.event-panel { background-color: var(--bg-base-dark); }
.event-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle, transparent 20%, var(--bg-base-dark) 90%); z-index: 1; }

.glass-box { 
    position: relative; z-index: 2; width: 90%; max-width: 850px; background: var(--card-bg); 
    border: 1px solid rgba(197, 160, 89, 0.25); padding: 2.5rem 3rem; border-radius: 24px; box-shadow: 0 15px 35px rgba(44, 53, 48, 0.08); 
}
.text-center { text-align: center; }
.tag-badge { font-family: 'Playfair Display', serif; font-style: italic; display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.2rem; }
.glass-box h2 { font-size: 2.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.glass-box p { font-size: 1.1rem; margin-bottom: 1.2rem; color: var(--text-main); line-height: 1.7; }

/* Bio Layout */
.bio-wrapper { display: flex; align-items: flex-start; gap: 3rem; }
.bio-headshot { width: 240px; height: 340px; border-radius: 24px; object-fit: cover; object-position: top center; border: 3px solid var(--accent-gold); box-shadow: 0 15px 35px rgba(44, 53, 48, 0.15); flex-shrink: 0; }

/* --- Optimized Responsive Countdown Elements --- */
.countdown-timer { 
    display: flex; 
    justify-content: center; 
    gap: 1rem;          /* Reduced from 1.5rem for better base fitting */
    margin: 1.5rem 0; 
    width: 100%;
}

.time-block { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.7); 
    border: 1px solid rgba(197, 160, 89, 0.2); 
    padding: 1rem;       /* Clean, uniform base padding */
    border-radius: 12px; 
    min-width: 80px;     /* Safer baseline width for larger screens */
    flex: 1;
    max-width: 100px;
}

.time-block span { 
    font-family: 'Playfair Display', serif; 
    font-style: italic; 
    font-size: 2.4rem;   /* Balanced, sharp desktop font size */
    font-weight: 700; 
    color: var(--sage-green); 
    line-height: 1; 
}

.time-block label { 
    font-family: 'Nunito', sans-serif; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--text-muted); 
    margin-top: 5px; 
    font-weight: 700; 
}

/* Side Dot Menu & Indicators */
.scroll-down { font-family: 'Playfair Display', serif; font-style: italic; position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; color: var(--text-muted); font-size: 0.9rem; text-align: center; font-weight: 600; }
.scroll-down span { display: block; width: 2px; height: 30px; background: linear-gradient(to bottom, var(--accent-gold), transparent); margin: 5px auto 0 auto; }
.dot-nav { position: fixed; right: 25px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.dot { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(65, 90, 72, 0.15); border: 2px solid transparent; cursor: pointer; transition: all 0.3s; padding: 0; }
.dot.active { background-color: var(--bg-base); border-color: var(--accent-gold); transform: scale(1.4); }

/* Schedule Matrix */
.schedule-matrix { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 500px; margin: 1.5rem auto 0 auto; }
.matrix-row { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.5); padding: 1rem 1.5rem; border-radius: 14px; border: 1px solid rgba(197, 160, 89, 0.2); text-align: left; }
.matrix-details strong { display: block; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; color: var(--sage-green); }
.matrix-details span { font-size: 0.85rem; color: var(--text-muted); }
.btn-matrix-go { padding: 0.5rem 1.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; background-color: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); border-radius: 50px; font-weight: 700; }
.btn-matrix-go:hover { background-color: var(--accent-gold); color: #FFF; }
.matrix-row.current-page { border-color: rgba(197, 160, 89, 0.6); background: rgba(197, 160, 89, 0.1); }
.matrix-row.current-page .btn-matrix-go { background-color: rgba(197, 160, 89, 0.2); border-color: transparent; color: var(--text-muted); cursor: default; pointer-events: none; }

/* Footer */
.footer-panel { background-color: var(--bg-base); flex-direction: column; padding: 6rem 5% 2rem 5%; justify-content: flex-start; overflow-y: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; width: 100%; max-width: 1200px; margin-top: 2rem; margin-bottom: 3rem; z-index: 2; }
.footer-card { background: var(--card-bg); padding: 2rem; border-radius: 20px; border: 1px solid rgba(197, 160, 89, 0.2); box-shadow: 0 10px 25px rgba(44, 53, 48, 0.05); }
.footer-card h3 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--sage-green); }
.footer-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-card a { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.95rem; font-weight: 700; color: var(--accent-gold); }
.footer-bottom { width: 100%; max-width: 1200px; text-align: center; border-top: 1px solid rgba(197, 160, 89, 0.2); padding-top: 1.5rem; z-index: 2; }
.footer-bottom .one-liner { color: var(--text-muted); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.5px; line-height: 1.4; }
.footer-bottom .av-team { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.6rem; font-weight: 400; letter-spacing: 0.5px; }
.footer-bottom .av-team a { color: var(--sage-green); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.footer-bottom .av-team a:hover { color: var(--accent-gold); text-decoration: underline; }

/* Mailchimp */
#mc_embed_signup { width: 100%; max-width: 420px; margin: 0 auto; text-align: left; }
.indicates-required { font-size: 0.8rem; color: var(--text-muted); text-align: right; margin-bottom: 1rem; }
.asterisk { color: var(--accent-coral); font-weight: bold; }
.mc-field-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.mc-field-group label { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.95rem; font-weight: 700; color: var(--sage-green); }
.mc-field-group input { width: 100%; padding: 0.9rem 1.2rem; border: 1px solid rgba(197, 160, 89, 0.3); background: #FFFFFF; color: var(--text-main); border-radius: 12px; font-family: 'Nunito', sans-serif; font-size: 1rem; transition: all 0.3s ease; }
.mc-field-group input:focus { outline: none; border-color: var(--sage-green); box-shadow: 0 0 12px rgba(65, 90, 72, 0.1); }
#mc_embed_signup .clear { margin-top: 1.5rem; }
#mc-embedded-subscribe { width: 100%; padding: 1rem; border-radius: 50px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.1rem; cursor: pointer; border: none; background-color: var(--sage-green); color: #FFFFFF; box-shadow: 0 10px 20px rgba(65, 90, 72, 0.15); transition: all 0.3s ease; }
#mc-embedded-subscribe:hover { background-color: var(--accent-gold); transform: scale(1.03); }
#mce-responses { margin: 1rem 0; }
.response { padding: 0.8rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; text-align: center; }
#mce-error-response { background: rgba(255, 107, 107, 0.1); color: var(--accent-coral); border: 1px solid rgba(255, 107, 107, 0.2); }
#mce-success-response { background: rgba(65, 90, 72, 0.1); color: var(--sage-green); border: 1px solid rgba(65, 90, 72, 0.2); }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; background: rgba(247, 244, 235, 0.98); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: right 0.4s ease; }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 2rem; }
    .nav-menu ul li a { font-size: 1.5rem; }
    .home-content { flex-direction: column; text-align: center; margin-top: 60px; justify-content: center; }
    .home-text { padding-right: 0; }
    .home-text h1 { font-size: 2.5rem; }
    .glass-box h2 { font-size: 2rem; }
    .glass-box { padding: 2rem 1.5rem; }
    .bio-wrapper { flex-direction: column; text-align: center; gap: 1.5rem; }
    .bio-headshot { width: 200px; height: 260px; }
    .dot-nav { display: none; }
    .footer-panel { justify-content: center; padding-top: 5rem; }
    .footer-grid { margin-bottom: 1.5rem; gap: 1rem; }
}

/* 📱 TARGET SMALL MOBILE DISPLAYS (Saves layout from cutting off) */
@media (max-width: 450px) {
    .countdown-timer {
        gap: 0.5rem;       /* Tighter gaps on narrow screens */
    }
    
    .time-block {
        min-width: 68px;   /* Safely fits 4 blocks side-by-side even on tiny phone viewports */
        padding: 0.6rem 0.3rem;
        border-radius: 8px;
    }
    
    .time-block span {
        font-size: 1.6rem; /* Tones font scale down cleanly inside smaller blocks */
    }
    
    .time-block label {
        font-size: 0.58rem;
        letter-spacing: 0.5px;
        margin-top: 3px;
    }
}