/* ── RESET & BASE ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #570013;
    --primary-dark: #800020;
    --accent: #ff828a;
    --bg: #f9f9f9;
    --surface: #ffffff;
    --text: #1a1c1c;
    --text-secondary: #5e5e5e;
    --border: rgba(224, 191, 191, 0.35);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ── HEADER ── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    transition: background 0.4s, backdrop-filter 0.4s;
}

#site-header.scrolled {
    background: rgba(87, 0, 19, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.est-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--primary-dark);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── MOBILE NAV ── */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    text-decoration: none;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    align-self: flex-end;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 150;
}

.nav-overlay.show {
    display: block;
}

/* ── HERO ── */
.hero {
    position: relative;
    height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #f9f9f9 0%, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 1.5rem 2.5rem;
    text-align: center;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-card {
    display: inline-block;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    padding: 2rem 2.5rem;
    border: 1px solid rgba(224, 191, 191, 0.25);
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.hero-date {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--primary-dark);
}

/* ── COUNTDOWN ── */
.countdown-section {
    padding: 5rem 1.5rem;
    display: flex;
    justify-content: center;
    background: var(--bg);
}

.countdown-wrapper {
    width: 100%;
    max-width: 600px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.countdown-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    line-height: 1;
}

.countdown-lbl {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--border);
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.hide-mobile {
    display: none;
}

.countdown-sub {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.75;
}

/* ── MESSAGE ── */
.message-section {
    padding: 6rem 1.5rem;
    background: var(--surface);
    text-align: center;
}

.message-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 9vw, 5.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.message-headline .accent {
    color: var(--primary-dark);
}

.message-body {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto;
    opacity: 0.85;
}

/* ── TIMELINE ── */
.timeline-section {
    padding: 6rem 0;
    background: var(--bg);
    overflow: hidden;
}

.timeline-header {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--primary-dark);
    margin-left: 1.5rem;
}

.timeline-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 0;
    padding: 0 1.5rem;
}

.timeline-track::-webkit-scrollbar {
    display: none;
}

.timeline-card {
    min-width: 82vw;
    scroll-snap-align: center;
    border-left: 1px solid var(--border);
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.timeline-date {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-icon {
    display: block;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.timeline-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

/* ── GALLERY ── */
.gallery-section {
    padding: 6rem 1.5rem;
    background: var(--surface);
}

.gallery-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.4rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.photo-item {
    overflow: hidden;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.6s ease, transform 0.5s ease;
}

.photo-img:hover {
    transform: scale(1.03);
}

.photo-img.bw {
    filter: grayscale(100%);
}

.photo-img.bw:hover {
    filter: grayscale(0%);
}

.photo-text-card {
    background: rgba(128, 0, 32, 0.08);
    border: 1px solid rgba(128, 0, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 180px;
}

.photo-text-card p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--primary-dark);
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.photo-wide {
    grid-column: 1 / -1;
    height: 220px;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.75;
    transition: opacity 0.2s;
    color: var(--primary);
}

.footer-btn:hover {
    opacity: 1;
}

.footer-btn-label {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.footer-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--border);
}

.footer-est {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── TABLET (768px+) ── */
@media (min-width: 768px) {
    #site-header {
        padding: 1.25rem 4rem;
    }

    .desktop-nav {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-content {
        padding: 0 4rem 4rem;
    }

    .hero-card {
        padding: 3rem 5rem;
    }

    .countdown-section {
        padding: 8rem 4rem;
    }

    .hide-mobile {
        display: flex;
    }

    .message-section {
        padding: 8rem 4rem;
    }

    .timeline-section {
        padding: 8rem 0;
    }

    .timeline-header {
        margin-left: 4rem;
        padding: 0 4rem;
    }

    .timeline-track {
        padding: 0 4rem;
    }

    .timeline-card {
        min-width: 45vw;
    }

    .gallery-section {
        padding: 8rem 4rem;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .photo-wide {
        grid-column: 2 / -1;
        height: 300px;
    }

    .site-footer {
        padding: 6rem 4rem;
    }


}

/* ── DESKTOP (1024px+) ── */
@media (min-width: 1024px) {
    #site-header {
        padding: 1.5rem 5rem;
    }

    .hero-content {
        padding: 0 5rem 5rem;
    }

    .timeline-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 0 5rem;
        gap: 0;
    }

    .timeline-card {
        min-width: unset;
    }

    .gallery-section {
        padding: 8rem 5rem;
    }

    .photo-grid {
        gap: 1.25rem;
    }

    .photo-wide {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        height: 100%;
    }

    .site-footer {
        padding: 8rem 5rem;
    }
}

.header-actions .footer-btn {
    color: #ffffff;
}