@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/poppins-v24-latin-300.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/poppins-v24-latin-italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins-v24-latin-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/poppins-v24-latin-900.woff2') format('woff2');
}

:root {
    --color-dark-blue: #001B50;
    --color-white: #FFFFFF;
    --color-overlay: rgba(0, 27, 80, 0.35);
    --gradient-bottom: linear-gradient(180deg, #003C83 0%, #ED1C2C 100%);
    --gradient-quotes: linear-gradient(180deg, #F7BF2A 0%, #F6A827 100%);
    --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Fluid type scale (mobile → desktop) */
    --fs-hero-date: clamp(2.25rem, 5vw + 1rem, 4rem);
    --fs-hero-label: clamp(1.125rem, 1vw + 0.875rem, 1.5rem);
    --fs-countdown-num: clamp(1.8125rem, 2vw + 1.25rem, 2.75rem);
    --fs-countdown-label: clamp(0.875rem, 0.25vw + 0.75rem, 1rem);
    --fs-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    --fs-quote: clamp(1rem, 0.5vw + 0.875rem, 1.25rem);
    --fs-cta: clamp(1.25rem, 1vw + 1rem, 1.75rem);

    --container-max: 720px;
    --section-pad-y: clamp(2rem, 4vw + 1rem, 2.5rem);
    --section-pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--color-white);
    background: var(--color-dark-blue);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

p,
h1,
h2,
h3,
blockquote,
figure {
    margin: 0;
}

blockquote {
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hero {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 480px;
    background: var(--color-dark-blue);
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 1120px) {
    .hero__video {
        transform: scale(1.22);
        transform-origin: center center;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1.25rem 6rem;
    text-align: center;
}

.hero__logo {
    width: clamp(118px, 32%, 160px);
    height: auto;
    max-width: 100%;
    object-fit: contain;


    @media (max-width: 768px) {
        max-height: 320px;
    }
}

.hero__location {
    position: absolute;
    left: 50%;
    bottom: clamp(2.75rem, 3vw + 1.5rem, 3.5rem);
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    font-weight: 900;
    font-size: var(--fs-hero-label);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
    white-space: nowrap;
}

.hero__date-banner {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 3;
    width: min(80%, 360px);
    background: var(--color-white);
    padding: 0.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero__date {
    font-weight: 900;
    font-size: var(--fs-hero-date);
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-dark-blue);
    white-space: nowrap;
}

.countdown {
    position: relative;
    z-index: 1;
    padding: calc(var(--section-pad-y) + 2rem) var(--section-pad-x) var(--section-pad-y);
    background: var(--color-dark-blue);
    text-align: center;
}

.countdown__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.5rem;
    position: relative;
}

.countdown__item + .countdown__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 42px;
    background: var(--color-white);
    opacity: 0.7;
}

.countdown__num {
    font-weight: 600;
    font-size: var(--fs-countdown-num);
    line-height: 1;
    color: var(--color-white);
    font-variant-numeric: tabular-nums;
}

.countdown__label {
    font-weight: 300;
    font-size: var(--fs-countdown-label);
    color: var(--color-white);
    line-height: 1;
}

.countdown__done {
    display: none;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: var(--fs-cta);
    color: var(--color-white);
}

.countdown.is-done .countdown__done {
    display: block;
}

.countdown.is-done .countdown__grid {
    opacity: 0.4;
}

.intro {
    padding: var(--section-pad-y) var(--section-pad-x);

    background: var(--color-dark-blue);
    text-align: center;

    @media (max-width: 768px) {
        padding-top: 0;
    }
}

.intro h2 {
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.intro__lead,
.intro__sub {
    max-width: var(--container-max);
    margin: 0 auto;
    color: var(--color-white);
}

.intro__lead {
    font-weight: 600;
    font-size: var(--fs-body);
    line-height: 1.5;
}

.intro__sub {
    font-weight: 300;
    font-size: var(--fs-body);
    line-height: 1.5;
    margin-top: 1.25rem;
}

.quote {
    padding: var(--section-pad-y) var(--section-pad-x);
    background: var(--color-dark-blue);
}

.quote__card {
    position: relative;
    isolation: isolate;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 80px 0 80px 0;
    text-align: right;
}

.quote__text {
    font-style: italic;
    font-weight: 300;
    font-size: var(--fs-quote);
    line-height: 1.5;
    color: var(--color-white);
    padding-right: 0.25em;
}

.quote__nowrap {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    vertical-align: baseline;
    isolation: isolate;
}

.quote__mark {
    position: absolute;
    z-index: -1;
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 300;
    font-size: 7.5rem;
    line-height: 1;
    color: #F7BF2A;
    background: var(--gradient-quotes);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    pointer-events: none;
    padding-right: 0.2em;
}

.quote__mark--open {
    bottom: 100%;
    left: -0.3em;
    transform: translateY(0.75em);
}

.quote__mark--close {
    top: 0;
    right: -0.32em;
    transform: translateY(-0.1em);
}

.quote__author {
    margin-top: 1rem;
    font-size: clamp(0.75rem, 0.4vw + 0.625rem, 1rem);
    font-weight: 500;
    color: var(--color-white);
}

.contact {
    position: relative;
    padding: var(--section-pad-y) var(--section-pad-x);
    overflow: hidden;
    isolation: isolate;
    padding-top: 1rem;
}

.contact::before {
    content: "";
    position: absolute;
    inset: auto -10% -10% -10%;
    height: 90%;
    background-image: url('../assets/judoka-silhouet.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.contact__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.contact__title {
    font-weight: 600;
    font-size: var(--fs-cta);
    line-height: 1.3;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.contact__email {
    display: inline-block;
    font-weight: 400;
    font-size: var(--fs-cta);
    color: var(--color-white);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.contact__email:hover,
.contact__email:focus-visible {
    border-bottom-color: var(--color-white);
    opacity: 0.9;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    background: var(--color-dark-blue);
}

.footer__banner {
    display: block;
    width: 100%;
    margin: 0;
}

.footer__banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;

    @media (max-width: 1200px) {
        height: 300px;
        object-fit: cover;
        object-position: center;
    }

    @media (max-width: 500px) {
        height: auto;
        object-fit: contain;
    }
}

.footer__logos {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 0 var(--section-pad-x);
}

.footer__link {
    display: inline-flex;
    align-items: flex-end;
    max-width: 30%;
    transition: opacity 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
    opacity: 0.8;
}

.footer__logo {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer__logo--omnisport {
    max-height: clamp(36px, 10vw, 60px);
}

.footer__logo--gelderland {
    max-height: clamp(32px, 8.5vw, 52px);
}

.footer__logo--jbn {
    max-height: clamp(32px, 8.5vw, 52px);
}

@media (min-width: 768px) {
    .hero__content {
        justify-content: flex-start;
        padding-bottom: 7rem;
    }

    .countdown__grid {
        max-width: 540px;
        gap: 1rem;
    }

    .countdown__item + .countdown__item::before {
        height: 56px;
    }

    .quote__card {
        padding: 3.5rem 3rem;
    }

    .footer {
        gap: 2.5rem;
        padding-top: 0;
    }

    .footer__logos {
        justify-content: center;
        gap: 3.5rem;
        width: auto;
        padding: 0 2rem;
    }

    .footer__link {
        max-width: none;
    }

    .footer__logo--omnisport {
        height: 50px;
        max-height: none;
    }

    .footer__logo--gelderland,
    .footer__logo--jbn {
        height: 40px;
        max-height: none;
    }
}

@media (min-width: 1024px) {
    .hero__content {
        padding-bottom: 8rem;
    }

    .hero__date-banner {
        width: min(420px, 60%);
        padding: 1rem 2rem;
    }

    .quote__card {
        max-width: 640px;
        padding: 4rem;
    }

    .tickets::before {
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__video {
        display: none;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(0, 27, 80, 0.2), rgba(0, 27, 80, 0.6)),
            var(--color-dark-blue);
    }
}
