/* ============================================
   25april2026.be — Huwelijkscountdown
   Warm, romantisch, organisch design
   ============================================ */

:root {
    --color-bg: #F5EDE3;
    --color-bg-alt: #FAF6F1;
    --color-text: #5C3D2E;
    --color-gold: #C8956C;
    --color-gold-light: #D4A574;
    --color-orange: #E8943A;
    --color-gold-soft: #D4A84B;
    --color-subtle: #8B7355;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-display: 'Playfair Display', serif;
}

/* Reset & base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(232, 148, 58, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(200, 149, 108, 0.07) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Particle canvas */
#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floral decorations */
.floral {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    opacity: 0.18;
    /* Black SVG → warm gold via CSS filter */
    filter: invert(62%) sepia(30%) saturate(600%) hue-rotate(345deg) brightness(95%);
}

.floral--top-right {
    top: -20px;
    right: -30px;
    width: 200px;
    height: auto;
}

.floral--bottom-left {
    bottom: -20px;
    left: -30px;
    width: 200px;
    height: auto;
    transform: scaleX(-1);
}

/* Main content */
main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero__line1 {
    font-family: var(--font-script);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.hero__title {
    font-family: var(--font-script);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-subtle);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Countdown Section
   ============================================ */
.countdown {
    width: 100%;
    margin-bottom: 3rem;
}

.countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.countdown__card {
    background: var(--color-bg-alt);
    border: 1px solid rgba(200, 149, 108, 0.3);
    border-radius: 12px;
    padding: 1.2rem 0.5rem;
    text-align: center;
    box-shadow:
        0 2px 8px rgba(92, 61, 46, 0.06),
        0 1px 3px rgba(92, 61, 46, 0.04);
    transition: transform 0.3s ease;
}

.countdown__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.4rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.countdown__number.tick {
    transform: scale(1.1);
    opacity: 0.7;
}

.countdown__label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--color-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Decorative divider above countdown */
.countdown::before {
    content: '~ ♥ ~';
    display: block;
    text-align: center;
    color: var(--color-gold-soft);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
}

/* ============================================
   Video Reveal Section
   ============================================ */
.video-reveal {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

.video-reveal__container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(92, 61, 46, 0.12),
        0 2px 8px rgba(92, 61, 46, 0.08);
    border: 2px solid rgba(200, 149, 108, 0.3);
    background: var(--color-bg-alt);
}

.video-reveal__container video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.video-reveal__fallback {
    padding: 2rem;
    text-align: center;
    color: var(--color-subtle);
    font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
    color: var(--color-subtle);
    font-size: 0.9rem;
}

/* ============================================
   Fade-in Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive: Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .hero__line1 {
        font-size: 2.2rem;
    }

    .hero__title {
        font-size: 4rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }

    .countdown__grid {
        gap: 1.2rem;
        max-width: 560px;
    }

    .countdown__card {
        padding: 1.8rem 1rem;
        border-radius: 16px;
    }

    .countdown__number {
        font-size: 3rem;
    }

    .countdown__label {
        font-size: 0.9rem;
    }

    .floral--top-right {
        width: 280px;
    }

    .floral--bottom-left {
        width: 280px;
    }
}

/* ============================================
   Responsive: Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    main {
        padding: 3rem 2rem;
    }

    .hero__line1 {
        font-size: 2.6rem;
    }

    .hero__title {
        font-size: 4.8rem;
    }

    .hero__subtitle {
        font-size: 1.4rem;
    }

    .countdown__grid {
        gap: 1.5rem;
        max-width: 620px;
    }

    .countdown__card {
        padding: 2rem 1.2rem;
    }

    .countdown__number {
        font-size: 3.5rem;
    }

    .countdown__label {
        font-size: 1rem;
    }

    .floral--top-right {
        width: 350px;
        top: -30px;
        right: -40px;
    }

    .floral--bottom-left {
        width: 350px;
        bottom: -30px;
        left: -40px;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .countdown__number {
        transition: none;
    }

    .video-reveal {
        transition: none;
    }

    #particles {
        display: none;
    }
}
