@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
    --bg: #f2f6fb;
    --surface: #ffffff;
    --surface-soft: #f7f9fd;
    --ink: #171b27;
    --muted: #586274;
    --accent: #df1f34;
    --accent-dark: #a50f20;
    --edge: #d7dfeb;
    --hero-ink: #eaf2ff;
    --max: 1160px;
    --r-lg: 30px;
    --r-md: 18px;
    --header-h: 92px;
    --shadow-soft: 0 10px 30px rgba(9, 19, 38, 0.08);
    --shadow-strong: 0 24px 54px rgba(9, 19, 38, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 415px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

#over,
#tijden,
#lidmaatschap,
#historie,
#sponsors,
#contact {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

body {
    min-width: 415px;
    margin: 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background:
        radial-gradient(1200px 540px at -12% -18%, rgba(36, 103, 184, 0.11) 0%, rgba(36, 103, 184, 0) 70%),
        radial-gradient(980px 480px at 108% -12%, rgba(223, 31, 52, 0.1) 0%, rgba(223, 31, 52, 0) 72%),
        radial-gradient(900px 460px at 50% 118%, rgba(88, 98, 116, 0.07) 0%, rgba(88, 98, 116, 0) 74%),
        var(--bg);
}


a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    background: rgba(242, 246, 251, 0.76);
    border-bottom: 1px solid rgba(23, 27, 39, 0.08);
}

.header-inner {
    width: min(var(--max), calc(100% - 1.6rem));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.brand-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.brand-copy h1 {
    margin: 0;
    font-family: "Sora", "Outfit", sans-serif;
    letter-spacing: 0.015em;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy h2 {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.menu-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.menu-scrim {
    display: none;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(23, 27, 39, 0.14);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(11, 20, 35, 0.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #24344f;
    transition: transform 220ms ease, opacity 220ms ease;
}

.menu-button span {
    transform: translateY(0);
}

.menu-button::before {
    transform: translateY(-6px);
}

.menu-button::after {
    transform: translateY(6px);
}

.menu-toggle:checked + .menu-button span {
    opacity: 0;
}

.menu-toggle:checked + .menu-button::before {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle:checked + .menu-button::after {
    transform: translateY(0) rotate(-45deg);
}

.menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(23, 27, 39, 0.08);
    background: rgba(255, 255, 255, 0.7);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.menu a:hover {
    color: var(--accent-dark);
    background: #fff;
    transform: translateY(-1px);
}

main {
    width: min(var(--max), calc(100% - 1.6rem));
    margin: 1.3rem auto 2.2rem;
    display: grid;
    gap: 1rem;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--r-lg) + 4px);
    padding: clamp(1.35rem, 3.2vw, 2.6rem);
    color: var(--hero-ink);
    background:
        linear-gradient(108deg, rgba(7, 12, 25, 0.8) 0%, rgba(14, 32, 62, 0.84) 40%, rgba(80, 10, 22, 0.84) 100%),
        url("/img/overview.jpg") center/cover;
    box-shadow: var(--shadow-strong);
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -7% -60% auto;
    width: min(500px, 75vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 31, 52, 0.4) 0%, rgba(223, 31, 52, 0) 70%);
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero-topline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(234, 242, 255, 0.3);
    background: rgba(12, 30, 59, 0.55);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0.7rem 0 0.55rem;
    max-width: 13ch;
    font-family: "Sora", "Outfit", sans-serif;
    font-size: clamp(1.9rem, 5vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.hero p {
    margin: 0;
    max-width: 64ch;
    color: #dbe6f8;
    font-size: clamp(1rem, 2.2vw, 1.14rem);
}

.hero-tags {
    margin-top: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span {
    font-size: 0.86rem;
    padding: 0.35rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.panel {
    position: relative;
    border-radius: var(--r-lg);
    padding: clamp(1rem, 2vw, 1.4rem);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--edge);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    animation: reveal 600ms ease both;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #2467b8 0%, #df1f34 45%, #f39c17 100%);
    opacity: 0.84;
}

.panel h2 {
    margin: 0;
    font-family: "Sora", "Outfit", sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.panel h3 {
    margin: 1rem 0 0.34rem;
    font-size: 1rem;
    color: #2b3952;
}

.panel p,
.panel li {
    color: #2a3447;
}

.panel ul {
    margin-top: 0.42rem;
    margin-bottom: 0.32rem;
    padding-left: 1.12rem;
}

.panel a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 600;
}

.over {
    grid-column: span 8;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
        linear-gradient(180deg, rgba(223, 31, 52, 0.2), rgba(15, 103, 196, 0.2));
}

.times {
    grid-column: span 4;
    background: linear-gradient(155deg, rgba(248, 251, 255, 0.2) 0%, rgba(238, 244, 255, 0.2) 52%, rgba(253, 246, 247, 0.2) 100%);
}

.membership,
.social,
.history {
    grid-column: span 6;
}

.contact {
    grid-column: span 12;
}

.sponsors {
    grid-column: span 6;
    background: linear-gradient(160deg, rgba(248, 251, 255, 0.2) 0%, rgba(243, 248, 255, 0.2) 55%, rgba(238, 245, 255, 0.2) 100%);
}

.history-carousel {
    position: relative;
    margin-top: 0.9rem;
    display: grid;
    gap: 0.72rem;
}

.history-switch {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.history-viewport {
    max-height: 600px;
    overflow: hidden;
    border-radius: var(--r-md);
    border: 1px solid var(--edge);
    background: var(--surface-soft);
}

.history-track {
    display: flex;
    max-height: 600px;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.history-slide,
.sponsor-card {
    margin: 0;
    position: relative;
    overflow: clip;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.history-slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    height: min(56vw, 600px);
    min-height: clamp(250px, 42vw, 460px);
    max-height: 600px;
    background: linear-gradient(180deg, #edf2f9 0%, #f7f9fd 100%);
}

.history-slide:hover,
.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(12, 25, 49, 0.12);
}

.history-media {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.history-media.cert {
    background-image: url("/img/history/cert.jpg");
}

.history-media.y1989 {
    background-image: url("/img/history/40jaarTTC.jpg");
}

.history-media.board1989 {
    background-image: url("/img/history/bestuur-1989.jpg");
}

.history-media.cheer {
    background-image: url("/img/history/cheer.webp");
}

.history-media.dinner {
    background-image: url("/img/history/dinner.webp");
}

.history-media.match {
    background-image: url("/img/history/match.webp");
}

.history-media.hans {
    background-image: url("/img/history/hans.webp");
}

.sponsor-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.history-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.66rem 0.82rem;
    font-size: 0.9rem;
    color: #f4f8ff;
    background: linear-gradient(180deg, rgba(9, 19, 38, 0) 0%, rgba(9, 19, 38, 0.82) 90%);
}

#history-slide-1:checked ~ .history-viewport .history-track {
    transform: translateX(0%);
}

#history-slide-2:checked ~ .history-viewport .history-track {
    transform: translateX(-100%);
}

#history-slide-3:checked ~ .history-viewport .history-track {
    transform: translateX(-200%);
}

#history-slide-4:checked ~ .history-viewport .history-track {
    transform: translateX(-300%);
}

#history-slide-5:checked ~ .history-viewport .history-track {
    transform: translateX(-400%);
}

#history-slide-6:checked ~ .history-viewport .history-track {
    transform: translateX(-500%);
}

#history-slide-7:checked ~ .history-viewport .history-track {
    transform: translateX(-600%);
}

.history-arrow {
    position: absolute;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
    color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(74, 86, 106, 0.88) 0%, rgba(56, 68, 87, 0.9) 100%);
    backdrop-filter: blur(6px);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(5, 12, 24, 0.25);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.history-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 2px solid #f4f8ff;
    border-right: 2px solid #f4f8ff;
    transform-origin: center;
}

.history-arrow:hover {
    transform: scale(1.06);
    background: linear-gradient(180deg, rgba(93, 106, 129, 0.95) 0%, rgba(69, 82, 104, 0.95) 100%);
    box-shadow: 0 10px 24px rgba(5, 12, 24, 0.3);
}

.history-arrow.prev {
    left: 0.72rem;
}

.history-arrow.prev::before {
    transform: translate(-42%, -50%) rotate(-135deg);
}

.history-arrow.next {
    right: 0.72rem;
}

.history-arrow.next::before {
    transform: translate(-58%, -50%) rotate(45deg);
}

.history-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
}

.history-dots label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background: #ced8e7;
    border: 1px solid #afbdd2;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.history-dots label:hover {
    transform: scale(1.08);
    background: #9db2d3;
}

#history-slide-1:checked ~ .history-dots label[for="history-slide-1"],
#history-slide-2:checked ~ .history-dots label[for="history-slide-2"],
#history-slide-3:checked ~ .history-dots label[for="history-slide-3"],
#history-slide-4:checked ~ .history-dots label[for="history-slide-4"],
#history-slide-5:checked ~ .history-dots label[for="history-slide-5"],
#history-slide-6:checked ~ .history-dots label[for="history-slide-6"],
#history-slide-7:checked ~ .history-dots label[for="history-slide-7"] {
    background: #2467b8;
    border-color: #2467b8;
    transform: scale(1.12);
}

.sponsor-link {
    margin-top: 0.6rem;
    display: block;
    max-width: 420px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.34rem;
}

.stack {
    display: grid;
    gap: 0.55rem;
}

.person {
    border: 1px solid var(--edge);
    border-radius: var(--r-md);
    background: #f9fbff;
    padding: 0.74rem;
}

.person h3 {
    margin: 0;
    font-size: 1rem;
    color: #273346;
}

.person p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
}

footer {
    width: min(var(--max), calc(100% - 1.6rem));
    margin: 0 auto 1.4rem;
    border-radius: var(--r-md);
    border: 1px solid var(--edge);
    background: #f9fbff;
    padding: 0.9rem 1rem;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.panel-grid .panel:nth-child(1) { animation-delay: 70ms; }
.panel-grid .panel:nth-child(2) { animation-delay: 130ms; }
.panel-grid .panel:nth-child(3) { animation-delay: 190ms; }
.panel-grid .panel:nth-child(4) { animation-delay: 250ms; }
.panel-grid .panel:nth-child(5) { animation-delay: 310ms; }
.panel-grid .panel:nth-child(6) { animation-delay: 370ms; }
.panel-grid .panel:nth-child(7) { animation-delay: 430ms; }

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.42;
    }
}

@media (max-width: 940px) {
    .over,
    .times,
    .membership,
    .history,
    .social,
    .sponsors {
        grid-column: span 12;
    }
}

@media (max-width: 1040px) {
    .header-inner {
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        padding: 0;
        position: relative;
    }

    .menu {
        position: absolute;
        right: 0;
        top: calc(100% + 0.45rem);
        width: max-content;
        max-width: calc(100vw - 2rem);
        padding: 0.4rem;
        border-radius: 16px;
        border: 1px solid rgba(23, 27, 39, 0.12);
        background: rgba(249, 252, 255, 0.95);
        box-shadow: 0 18px 34px rgba(11, 20, 35, 0.24);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.32rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px) scale(0.97);
        transform-origin: top right;
        transition: opacity 220ms ease, transform 220ms ease;
        backdrop-filter: blur(10px);
        z-index: 55;
    }

    .menu a {
        display: block;
        width: auto;
        min-width: 132px;
        text-align: left;
        border-radius: 10px;
        background: #ffffff;
        border-color: rgba(23, 27, 39, 0.1);
        padding: 0.52rem 0.78rem;
        white-space: nowrap;
    }

    .menu-toggle,
    .menu-button {
        display: inline-flex;
    }

    .menu-button {
        z-index: 56;
    }

    .menu-scrim {
        display: block;
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: rgba(9, 19, 38, 0.18);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 45;
    }

    .menu-toggle:checked ~ .menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .menu-toggle:checked ~ .menu-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .brand-copy h2 {
        font-size: 0.8rem;
    }
}

@media (max-width: 780px) {
    :root {
        --header-h: 92px;
    }

    .hero h1 {
        max-width: 16ch;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .history-arrow {
        width: 36px;
        height: 36px;
        top: calc(50% - 18px);
    }

    .history-arrow.prev {
        left: 0.55rem;
    }

    .history-arrow.next {
        right: 0.55rem;
    }

    .history-slide {
        height: min(72vw, 420px);
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
