/* ===========================================
   NACHTGASTEN - Main Stylesheet
   Stijl: Mix (donker + verweerd + dramatisch)
   =========================================== */

:root {
    --col-bg: #0f0f0f;
    --col-surface: #1a1816;
    --col-text: #f0ebe3;
    --col-text-muted: #8a8279;
    --col-red: #991b1b;
    --col-red-glow: #dc2626;
    --col-sepia: #c4a882;
    --col-sepia-dark: #8b7355;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--col-bg);
    color: var(--col-text);
    min-height: 100vh;
    line-height: 1.7;
    /* Subtle grain texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, var(--col-bg) 0%, rgba(15,15,15,0.9) 50%, transparent 100%);
    padding: 1rem 0 2rem;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: var(--col-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--col-red-glow);
}

/* ===========================================
   HERO SECTION (Homepage)
   =========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Dramatic light effect from top */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(153, 27, 27, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Title wrapper */
.title-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Vertical strips effect */
.title-strips {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.strip {
    width: 3px;
    height: 40px;
    background: var(--col-red);
    opacity: 0.6;
}

.strip:nth-child(2) { height: 55px; opacity: 0.8; }
.strip:nth-child(3) { height: 70px; opacity: 1; }
.strip:nth-child(4) { height: 55px; opacity: 0.8; }
.strip:nth-child(5) { height: 40px; opacity: 0.6; }

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    letter-spacing: 8px;
    line-height: 0.85;
    color: var(--col-text);
    text-shadow:
        0 0 40px rgba(153, 27, 27, 0.3),
        4px 4px 0 var(--col-bg);
}

h1 span {
    display: block;
    color: var(--col-red);
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--col-sepia);
    letter-spacing: 4px;
    margin-top: 1rem;
}

/* Image with torn paper effect */
.image-container {
    max-width: 750px;
    width: 90%;
    position: relative;
    margin: 1rem 0;
}

.image-frame {
    position: relative;
    padding: 1rem;
    background: var(--col-surface);
    /* Rough edges */
    clip-path: polygon(
        0 3%, 3% 0, 7% 2%, 12% 0, 18% 1%, 25% 0, 32% 2%, 40% 0, 48% 1%, 55% 0, 63% 2%, 70% 0, 78% 1%, 85% 0, 92% 2%, 97% 0, 100% 3%,
        100% 97%, 97% 100%, 92% 98%, 85% 100%, 78% 99%, 70% 100%, 63% 98%, 55% 100%, 48% 99%, 40% 100%, 32% 98%, 25% 100%, 18% 99%, 12% 100%, 7% 98%, 3% 100%, 0 97%
    );
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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%' height='100%' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    display: block;
    filter: sepia(15%) contrast(1.05);
    border: 3px solid var(--col-red);
}

/* Tagline */
.tagline {
    text-align: center;
    margin-top: 1.5rem;
}

.tagline-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--col-red);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.tagline-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--col-sepia-dark);
    margin-top: 0.5rem;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--col-sepia-dark);
    opacity: 0.3;
}

.stat:last-child::after {
    display: none;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--col-text);
    line-height: 1;
}

.stat-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    color: var(--col-sepia-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Decorative line */
.divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--col-red), transparent);
    margin: 1.5rem auto 0;
}

/* ===========================================
   PAGE HEADER (Subpagina's)
   =========================================== */

.page-header {
    padding: 5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

/* Vertical strips for subpages */
.page-strips {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.page-strips .strip {
    width: 3px;
    height: 30px;
    background: var(--col-red);
    opacity: 0.6;
}

.page-strips .strip:nth-child(2) { height: 42px; opacity: 0.8; }
.page-strips .strip:nth-child(3) { height: 55px; opacity: 1; }
.page-strips .strip:nth-child(4) { height: 42px; opacity: 0.8; }
.page-strips .strip:nth-child(5) { height: 30px; opacity: 0.6; }

.page-header::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(153, 27, 27, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: 8px;
    color: var(--col-text);
    text-shadow: 0 0 40px rgba(153, 27, 27, 0.3);
}

.page-title span {
    color: var(--col-red);
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--col-text);
    font-size: 1.05rem;
}

.content-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--col-red);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--col-sepia-dark);
}

.content-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--col-sepia);
    margin: 2.5rem 0 1rem;
}

.content-section ul {
    list-style: none;
    margin: 1rem 0 2rem;
}

.content-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--col-text-muted);
}

.content-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--col-red);
}

.content-section ul li strong {
    color: var(--col-text);
}

/* Manifest / Quote box */
.manifest-box {
    background: var(--col-surface);
    border-left: 3px solid var(--col-red);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.manifest-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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%' height='100%' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.manifest-box h3 {
    margin-top: 0;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid var(--col-red);
    filter: sepia(20%) contrast(1.05);
    transition: filter 0.3s ease;
}

.team-member img:hover {
    filter: sepia(0%) contrast(1.1);
}

.team-member h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--col-sepia);
    margin-top: 1rem;
}

/* Quote / Slogan */
.slogan {
    text-align: center;
    margin: 3rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--col-red);
}

/* ===========================================
   ANBI / INFO SECTIONS
   =========================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--col-surface);
    padding: 1.5rem;
    border: 1px solid rgba(153, 27, 27, 0.3);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--col-red);
}

.info-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--col-text);
    margin-bottom: 0.75rem;
}

.info-card p,
.info-card a {
    color: var(--col-text-muted);
    font-size: 0.95rem;
}

.info-card a {
    color: var(--col-sepia);
    text-decoration: none;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--col-red-glow);
}

/* Download links */
.download-list {
    list-style: none;
    margin: 1rem 0;
}

.download-list li {
    padding: 0.5rem 0;
}

.download-list a {
    color: var(--col-sepia);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.download-list a:hover {
    color: var(--col-red-glow);
}

.download-list a::before {
    content: '↓';
    font-size: 1.2rem;
}

/* ===========================================
   FOOTER
   =========================================== */

footer {
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--col-surface);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--col-text-muted);
    opacity: 0.6;
}

.footer-content img {
    height: 24px;
    filter: none;
    transition: transform 0.3s;
}

.footer-content img:hover {
    transform: scale(1.5);
}

.footer-content a {
    color: var(--col-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--col-text);
}

.footer-content a.nightstory-link:hover {
    color: #3b82f6;
}

.footer-content span {
    color: var(--col-red);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    header {
        padding: 1rem 0 2rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    h1 {
        letter-spacing: 4px;
    }

    .stats {
        gap: 2rem;
    }

    .stat::after {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 5rem 1.5rem 1.5rem;
    }

    .content-section {
        padding: 0 1.5rem 3rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}
