/*
 * Schlagerwood 2027 – publieke stijl (mobile-first).
 * Basisstijl voor alle publieke pagina's + de schermvullende landingspagina.
 * Geen externe lettertypes of bibliotheken: enkel systeemlettertypes.
 */

/* ==========================================================================
   1. Variabelen
   ========================================================================== */

:root {
    --sw-blue: #003f56;
    --sw-blue-light: #0a5a78;
    --sw-deep: #00202d;
    --sw-night: #00141c;
    --sw-orange: #f7941d;
    --sw-gold: #ffc15e;
    --sw-white: #ffffff;
    --sw-ink: #0f2530;
    --sw-muted: #4b5f69;
    --sw-surface: #f4f7f8;
    --sw-border: #dbe4e8;

    --radius: 0.875rem;
    --gutter: 1rem;
    --container: 72rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Landingspagina */
    --landing-text: #fdf8f0;
    --landing-muted: rgba(253, 248, 240, 0.78);
    --landing-line: rgba(247, 148, 29, 0.55);
    --landing-edge: clamp(1.25rem, 4vw, 3rem);
    color-scheme: light;
}

/* ==========================================================================
   2. Basis
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sw-surface);
    color: var(--sw-ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--sw-blue-light);
}

:focus-visible {
    outline: 3px solid var(--sw-orange);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100%;
    z-index: 20;
    padding: 0.5rem 1rem;
    background: var(--sw-white);
    color: var(--sw-blue);
    border-radius: var(--radius);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: currentColor;
}

.icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.icon--stroke .icon__dot {
    fill: currentColor;
    stroke: none;
}

/* ==========================================================================
   3. Header (logo + sociale media)
   ========================================================================== */

.site-header {
    background: var(--sw-blue);
    color: var(--sw-white);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding: 0.75rem var(--gutter);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--sw-white);
    text-decoration: none;
}

/* Rond badge-logo: lichte schijf zodat het donkerblauwe logo leesbaar blijft op petrol. */
.brand__logo {
    width: 3rem;
    height: 3rem;
    padding: 0.125rem;
    border-radius: 50%;
    background: #fffaf0;
    object-fit: contain;
}

/* Placeholder zolang het officiële logo ontbreekt. */
.brand__placeholder {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand__name {
    font-size: 1.125rem;
    font-weight: 700;
}

.social__list {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social__link {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 20, 28, 0.25);
    color: var(--sw-white);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social__link:hover {
    border-color: var(--sw-orange);
    background: var(--sw-orange);
    color: var(--sw-night);
}

.social__link .icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* ==========================================================================
   4. Algemene inhoud (404, 500)
   ========================================================================== */

.site-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 2rem var(--gutter);
}

.panel {
    width: 100%;
    max-width: 40rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: var(--sw-white);
    border: 1px solid var(--sw-border);
    border-top: 4px solid var(--sw-orange);
    border-radius: var(--radius);
    text-align: center;
}

.panel h1 {
    margin: 0 0 0.5rem;
    color: var(--sw-blue);
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    line-height: 1.15;
}

.panel p {
    margin: 0.75rem 0 0;
    color: var(--sw-muted);
}

/* ==========================================================================
   5. Landingspagina – schermvullende foto
   ========================================================================== */

.page-home {
    background: var(--sw-night);
    color: var(--landing-text);
}

/* Geen breedtebeperking of witruimte rond de hero: rand tot rand. */
.page-home .site-main {
    display: block;
    width: 100%;
    padding: 0;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--landing-edge) + 1rem) var(--landing-edge);
    overflow: hidden;
    /* Terugval zolang de foto ontbreekt. */
    background: radial-gradient(ellipse 90% 60% at 50% 110%, rgba(0, 63, 86, 0.6), transparent 70%), var(--sw-night);
    text-align: center;
}

.hero__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    /* Smartphone: uitsnede op de artiesten en het publiek. */
    object-position: 58% 60%;
    transform: scale(1.06);
    animation: sw-drift 24s ease-out forwards;
}

/* Subtiele donkerblauwe overlay voor leesbaarheid; laat de kleuren van de foto intact. */
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(0, 20, 28, 0.45) 0%, rgba(0, 20, 28, 0.12) 30%, rgba(0, 20, 28, 0.25) 60%, rgba(0, 14, 20, 0.82) 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 14, 20, 0.45) 100%);
}

/* Logo, tagline, datum, locatie en countdown onder elkaar. */
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    width: 100%;
    max-width: 56rem;
}

.hero__brand {
    margin: 0;
    line-height: 1;
}

/* Officieel logo: vierkant beeld, beperkt door breedte én hoogte van het scherm. */
.hero__logo {
    width: min(72vw, 38vh, 28rem);
    width: min(72vw, 38svh, 28rem);
    height: auto;
    margin-inline: auto;
    /* Versterkt enkel de bestaande witte contour van het logo. */
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85)) drop-shadow(0 0.5rem 1.75rem rgba(0, 0, 0, 0.45));
}

.hero__wordmark {
    display: block;
    font-size: clamp(2.25rem, 9vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero__tagline {
    margin: 0;
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero__when {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero__date,
.hero__location {
    margin: 0;
    font-size: clamp(0.8125rem, 1.8vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero__date {
    color: var(--sw-gold);
}

.hero__location {
    color: var(--landing-muted);
}

/* ==========================================================================
   6. Countdown
   ========================================================================== */

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 34rem);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding-inline: 0.25rem;
}

.countdown__item + .countdown__item {
    border-left: 1px solid var(--landing-line);
}

.countdown__value {
    font-size: clamp(1.75rem, 6vw, 3.25rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.countdown__label {
    color: var(--sw-orange);
    font-size: clamp(0.625rem, 1.3vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.countdown__done {
    margin: 0;
    color: var(--sw-gold);
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer {
    background: var(--sw-night);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 1.5rem;
}

.site-footer p {
    margin: 0;
}

.site-footer__event {
    display: flex;
    flex-direction: column;
}

.site-footer__event strong {
    color: var(--sw-white);
}

.site-footer__copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ==========================================================================
   8. Animaties
   ========================================================================== */

@keyframes sw-drift {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

/* ==========================================================================
   9. Tablet
   ========================================================================== */

@media (min-width: 40em) {
    :root {
        --gutter: 1.5rem;
    }

    .hero__photo {
        object-position: 50% 55%;
    }

    .countdown__item {
        padding-inline: 0.5rem;
    }

    .site-footer__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ==========================================================================
   10. Desktop
   ========================================================================== */

@media (min-width: 64em) {
    :root {
        --gutter: 2.5rem;
    }

    .site-header__inner {
        min-height: 5rem;
        padding-block: 1.25rem;
    }

    .social__link {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Lage liggende schermen: logo kleiner zodat alles bereikbaar blijft. */
@media (max-height: 30rem) and (orientation: landscape) {
    .hero__logo {
        width: min(40vw, 14rem);
    }
}

/* ==========================================================================
   11. Toegankelijkheid
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
