/*
 * Emmense Nieuwjaarsbijeenkomst: placeholder (hero only).
 * Same tokens and components as the WordPress theme.
 */

/* Fonts (self-hosted, SIL OFL 1.1, from @fontsource 5.3.0) */
@font-face {
    font-family: "Changa One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/changa-one-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/lato-latin-900-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/lato-latin-ext-900-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens (Styleguide.dc.html) */
:root {
    --enb-navy: #112250;
    --enb-night: #0B1838;
    --enb-gold: #D9B35F;
    --enb-gold-hover: #E6C67D;
    --enb-gold-light: #F3DE9C; /* bokeh, from Main.dc.html */
    --enb-cream: #F5F0EA;
    --enb-heading: "Changa One", "Arial Black", Impact, sans-serif;
    --enb-body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
    margin: 0;
}

body {
    background: var(--enb-navy);
    color: var(--enb-cream);
    font-family: var(--enb-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--enb-gold);
    outline-offset: 2px;
}

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Hero: full screen */
.hero {
    align-items: center;
    background: var(--enb-navy);
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero__container {
    align-items: center;
    display: grid;
    gap: clamp(40px, 6vw, 96px);
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1280px;
    padding: clamp(40px, 6vh, 88px) clamp(20px, 4vw, 40px);
    position: relative;
    width: 100%;
}

/* Left: logo and date card */
.hero__aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero__logo {
    height: auto;
    width: clamp(160px, 16vw, 220px);
}

/* Right: text */
.hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--enb-gold);
    clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
    color: var(--enb-navy);
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.3;
    padding: 7px 16px 6px;
    text-transform: uppercase;
}

.tag--light {
    background: rgba(245, 240, 234, 0.12);
    color: var(--enb-cream);
}

.hero__title {
    font-family: var(--enb-heading);
    font-size: clamp(2.75rem, 6.4vw, 5.75rem);
    font-weight: 400;
    line-height: 0.94;
    margin: 0;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero__highlight {
    color: var(--enb-gold);
}

.hero__intro {
    color: rgba(245, 240, 234, 0.86);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    margin: 0;
    max-width: 560px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    align-items: center;
    background: var(--enb-gold);
    border: 2px solid var(--enb-gold);
    border-radius: 999px;
    color: var(--enb-navy);
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    gap: 10px;
    justify-content: center;
    letter-spacing: 0.01em;
    min-height: 52px;
    padding: 0 26px;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    background: var(--enb-gold-hover);
    border-color: var(--enb-gold-hover);
    transform: translateY(-2px);
}

/* Date card */
.event-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(11, 24, 56, 0.72);
    border: 1px solid rgba(217, 179, 95, 0.6);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.event-card__date {
    display: flex;
    flex-direction: column;
}

.event-card__weekday {
    background: var(--enb-gold);
    color: var(--enb-navy);
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: 0.34em;
    padding: 12px;
    text-transform: uppercase;
}

.event-card__body {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 28px 0;
}

.event-card__day {
    color: var(--enb-gold);
    font-family: var(--enb-heading);
    font-size: 10.5rem;
    line-height: 0.86;
}

.event-card__month {
    font-family: var(--enb-heading);
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-card__month--short {
    display: none;
}

.event-card__divider {
    align-items: center;
    display: flex;
    gap: 12px;
    margin: 18px 28px 16px;
}

.event-card__divider::before,
.event-card__divider::after {
    background: rgba(217, 179, 95, 0.5);
    content: "";
    flex: 1;
    height: 1px;
}

.event-card__divider img {
    height: 34px;
    width: 24px;
}

.event-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 28px 26px;
}

.event-card__detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-card__detail + .event-card__detail {
    border-left: 1px solid rgba(217, 179, 95, 0.35);
}

.event-card__detail dt {
    color: var(--enb-gold);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.event-card__detail dd {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}

.event-card__calendar {
    align-items: center;
    border-top: 1px solid rgba(217, 179, 95, 0.35);
    color: var(--enb-cream);
    display: flex;
    font-size: 0.9375rem;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    text-decoration: none;
}

.event-card__calendar .icon {
    color: var(--enb-gold);
}

.event-card__calendar:hover {
    color: var(--enb-gold);
}

/* Decoration: flutes motif, bokeh and dots */
.hero__motif {
    height: auto;
    opacity: 0.14;
    pointer-events: none;
    position: absolute;
    right: -170px;
    top: -40px;
    width: 760px;
}

.hero__bokeh span {
    animation: hero-drift 14s ease-in-out infinite alternate, hero-twinkle 4s ease-in-out infinite;
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
    position: absolute;
}

.hero__bokeh span:nth-child(1) { background: rgba(243, 222, 156, 0.55); height: 90px; right: 18%; top: 16%; width: 90px; }
.hero__bokeh span:nth-child(2) { animation-duration: 12s, 3s; background: rgba(245, 240, 234, 0.6); height: 46px; right: 30%; top: 30%; width: 46px; }
.hero__bokeh span:nth-child(3) { animation-duration: 18s, 5s; background: rgba(217, 179, 95, 0.45); height: 130px; right: 8%; top: 38%; width: 130px; }
.hero__bokeh span:nth-child(4) { animation-duration: 10s, 2.5s; background: rgba(243, 222, 156, 0.7); height: 34px; right: 40%; top: 12%; width: 34px; }
.hero__bokeh span:nth-child(5) { animation-duration: 16s, 4.5s; background: rgba(245, 240, 234, 0.45); bottom: 18%; height: 70px; right: 24%; width: 70px; }
.hero__bokeh span:nth-child(6) { animation-duration: 13s, 3.5s; background: rgba(243, 222, 156, 0.6); bottom: 10%; height: 54px; right: 4%; width: 54px; }
.hero__bokeh span:nth-child(7) { animation-duration: 11s, 2s; background: rgba(243, 222, 156, 0.75); bottom: 30%; height: 28px; right: 36%; width: 28px; }

.hero.is-paused .hero__bokeh span {
    animation-play-state: paused;
}

.hero__dots span {
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
}

.hero__dots span:nth-child(1) { border: 1.5px solid var(--enb-gold); height: 10px; left: 6%; opacity: 0.6; top: 18%; width: 10px; }
.hero__dots span:nth-child(2) { background: var(--enb-gold); height: 6px; left: 44%; opacity: 0.7; top: 12%; width: 6px; }
.hero__dots span:nth-child(3) { border: 1.5px solid var(--enb-gold); bottom: 16%; height: 14px; left: 52%; opacity: 0.45; width: 14px; }
.hero__dots span:nth-child(4) { background: var(--enb-cream); height: 5px; opacity: 0.5; right: 30%; top: 30%; width: 5px; }

@keyframes hero-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-60px, 30px); }
}

@keyframes hero-twinkle {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* Pause toggle for the animation (WCAG 2.2.2) */
.hero__motion-toggle {
    align-items: center;
    background: rgba(11, 24, 56, 0.5);
    border: 1.5px solid rgba(245, 240, 234, 0.45);
    border-radius: 50%;
    bottom: 24px;
    color: var(--enb-cream);
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 24px;
    width: 44px;
    z-index: 3;
}

.hero__motion-toggle[hidden] {
    display: none;
}

.hero__motion-toggle .hero__icon-pause {
    display: none;
}

.hero__motion-toggle.is-playing .hero__icon-pause {
    display: block;
}

.hero__motion-toggle.is-playing .hero__icon-play {
    display: none;
}

/* Low desktop screens (laptops): smaller card and title, so the hero fits */
@media (min-width: 992px) and (max-height: 820px) {
    .hero__container {
        padding-bottom: 32px;
        padding-top: 32px;
    }

    .hero__aside {
        gap: 20px;
    }

    .hero__logo {
        width: 150px;
    }

    .hero__title {
        font-size: clamp(2.75rem, 10vh, 5.75rem);
    }

    .event-card__weekday {
        padding: 8px;
    }

    .event-card__body {
        padding-top: 14px;
    }

    .event-card__day {
        font-size: clamp(5rem, 16vh, 10.5rem);
    }

    .event-card__month {
        font-size: 1.5rem;
    }

    .event-card__divider {
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .event-card__details {
        margin-bottom: 16px;
    }

    .event-card__calendar {
        min-height: 44px;
    }
}

/* Tablet and phone: one column, logo, text, card */
@media (max-width: 991px) {
    .hero {
        align-items: flex-start;
    }

    .hero__container {
        gap: 32px;
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 88px; /* room for the pause toggle */
    }

    .hero__aside {
        display: contents;
    }

    .hero__logo {
        order: 1;
        width: 150px;
    }

    .hero__content {
        order: 2;
    }

    .event-card {
        max-width: 480px;
        order: 3;
    }

    .hero__motif {
        width: 520px;
    }

    .hero__bokeh span:nth-child(n+5) {
        display: none;
    }
}

/* Phone: horizontal date card (Mobile.dc.html) */
@media (max-width: 767px) {
    .hero__container {
        gap: 24px;
        padding-bottom: 80px;
        padding-top: 32px;
    }

    .hero__content {
        gap: 22px;
    }

    .event-card {
        border-radius: 16px;
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        text-align: left;
    }

    .event-card__date {
        align-items: center;
        background: var(--enb-gold);
        color: var(--enb-navy);
        grid-row: 1 / span 2;
        justify-content: center;
        padding: 12px 6px;
        text-align: center;
    }

    .event-card__weekday {
        background: none;
        font-size: 0.6875rem;
        letter-spacing: 0.24em;
        padding: 0;
    }

    .event-card__body {
        gap: 0;
        padding: 0;
    }

    .event-card__day {
        color: var(--enb-navy);
        font-size: 4rem;
        line-height: 0.9;
    }

    .event-card__month--long,
    .event-card__divider {
        display: none;
    }

    .event-card__month--short {
        display: inline;
        font-size: 1rem;
    }

    .event-card__details {
        display: flex;
        flex-direction: column;
        gap: 10px;
        grid-column: 2;
        margin: 0;
        padding: 14px 16px 0;
    }

    .event-card__detail + .event-card__detail {
        border-left: 0;
    }

    .event-card__detail dd {
        font-size: 1rem;
    }

    .event-card__calendar {
        border-top: 0;
        font-size: 0.875rem;
        grid-column: 2;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 16px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
