/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
    --bg:           #FAFAF7;
    --bg-alt:       #EFF4EE;
    --bg-dark:      #2D3B30;
    --primary:      #5C7A62;
    --primary-dark: #3E5442;
    --accent:       #C4A46B;
    --accent-light: #E8D9BC;
    --text:         #2C2C2C;
    --text-light:   #6B6B6B;
    --white:        #FFFFFF;
    --serif:        'Playfair Display', Georgia, serif;
    --sans:         'Lato', system-ui, sans-serif;
    --radius:       4px;
    --transition:   0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 3.5rem;
    font-size: 1rem;
}

/* ============================================================
   FLOATING BUTTON
   ============================================================ */
#fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

#fab:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

/* Subtle botanical border decoration via pseudo-elements */
#hero::before,
#hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(196, 164, 107, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

#hero::before {
    top: -80px;
    left: -80px;
}

#hero::after {
    bottom: -80px;
    right: -80px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-intro {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-names {
    font-family: var(--serif);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.hero-names .amp {
    font-style: italic;
    color: var(--accent);
    font-size: 0.85em;
}

.hero-date {
    font-family: var(--sans);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.hero-date sup {
    font-size: 0.6em;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Gold divider line used between sections */
.divider {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown {
    padding: 5rem 2rem;
    background: var(--bg-alt);
    text-align: center;
}

#countdown .section-title {
    margin-bottom: 0.5rem;
}

#countdown::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 3rem;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-box {
    background: var(--white);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    min-width: 110px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.countdown-box span {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-box label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.countdown-married {
    font-family: var(--serif);
    font-size: 2rem;
    font-style: italic;
    color: var(--primary);
}

/* ============================================================
   SCHEDULE / TIMELINE
   ============================================================ */
#schedule {
    padding: 5rem 2rem;
    background: var(--bg);
}

#schedule .section-title {
    margin-bottom: 0.5rem;
}

#schedule::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 3rem;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--accent-light);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: start;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-time {
    text-align: right;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding-top: 0.15rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: 50%;
    margin: 0.2rem auto 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================
   VENUE
   ============================================================ */
#venue {
    padding: 5rem 2rem;
    background: var(--bg-alt);
}

#venue .section-title {
    margin-bottom: 0.5rem;
}

#venue::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 3rem;
}

.venue-details {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.venue-info-block h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.venue-info-block p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.venue-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 350px;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ============================================================
   PHOTOS
   ============================================================ */
#photos {
    padding: 6rem 2rem;
    background: var(--bg);
    text-align: center;
}

#photos .section-title {
    margin-bottom: 0.5rem;
}

#photos::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 1.5rem;
}

#photos .section-subtitle {
    margin-bottom: 1rem;
}

.photos-note {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* ============================================================
   RSVP
   ============================================================ */
#rsvp {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    text-align: center;
}

#rsvp .section-title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

#rsvp::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 1.5rem;
}

#rsvp .section-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.rsvp-note {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #1E2820;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.footer-heart {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* ============================================================
   PASSWORD LOCK SCREEN
   ============================================================ */
#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#lock-screen::before,
#lock-screen::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(196, 164, 107, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

#lock-screen::before {
    top: -80px;
    left: -80px;
}

#lock-screen::after {
    bottom: -80px;
    right: -80px;
}

.lock-container {
    text-align: center;
    padding: 3rem;
    max-width: 420px;
    position: relative;
}

/* Decorative corner flourishes */
.lock-container::before,
.lock-container::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(196, 164, 107, 0.5);
}

.lock-container::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.lock-container::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

.lock-title {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.lock-subtitle {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.lock-heart-lock {
    margin: 1.5rem auto 0;
    color: var(--accent);
    opacity: 0.75;
    font-size: 3rem;
}

.lock-divider {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
    opacity: 0.6;
}

.password-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.password-input {
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-family: var(--sans);
    width: 220px;
}

.password-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

.error-message {
    color: #e74c3c;
    font-family: var(--sans);
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 1.2em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
    /* Timeline: stack everything left-aligned */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
    }

    .timeline-time {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        font-size: 0.8rem;
    }

    .timeline-dot {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0.2rem auto 0 auto;
    }

    .timeline-content {
        grid-column: 2;
        grid-row: 2;
    }

    /* Venue: stack vertically */
    .venue-details {
        grid-template-columns: 1fr;
    }

    .venue-map {
        height: 280px;
    }

    /* Countdown boxes */
    .countdown-box {
        min-width: 80px;
        padding: 1.5rem 1rem;
    }

    /* Lock screen responsive adjustments */
    .lock-container {
        padding: 2rem;
    }

    .lock-title {
        font-size: 2rem;
    }

    .password-form {
        flex-direction: column;
    }

    .password-input {
        width: 100%;
    }
}
