/* ============================================================
   HOMEPAGE.CSS  —  Exclusief voor index.html
   Vereist: smra.css (variabelen, masthead, footer, hamburger)
   ============================================================ */


/* ============================================================
   1. SPLIT-SECTION LAYOUT
   ============================================================ */
.sticky-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.split-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    overflow: hidden;
}

.split-section.layout-reversed { flex-direction: row-reverse; }

.image-column {
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    filter: sepia(18%) contrast(1.05) brightness(0.95);
    transition: filter 0.6s ease;
}
.split-section:hover .image-column {
    filter: sepia(5%) contrast(1.08) brightness(1.0);
}

.split-section:nth-of-type(1) .image-column {
    background-image: linear-gradient(rgba(26,18,9,0.18), rgba(26,18,9,0.18)), url('../images/schaakbord-bg.jpg');
}
.split-section:nth-of-type(2) .image-column {
    background-image: linear-gradient(rgba(26,18,9,0.18), rgba(26,18,9,0.18)), url('../images/schaakbord-bg2.jpg');
}
.split-section:nth-of-type(3) .image-column {
    background-image: linear-gradient(rgba(26,18,9,0.18), rgba(26,18,9,0.18)), url('../images/schaakbord-bg3.jpg');
}
.split-section:nth-of-type(4) .image-column {
    background-image: linear-gradient(rgba(26,18,9,0.18), rgba(26,18,9,0.18)), url('../images/schaakbord-bg4.jpg');
}

.content-column {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    background-color: var(--paper-dark);
}


/* ============================================================
   2. SECTIE 1 — HERO
   ============================================================ */
.content-box {
    background-color: var(--paper);
    padding: 50px;
    flex-grow: 1;
    position: relative;
    border-left: 1px solid var(--rule);
    overflow: hidden;
}

.checker-pattern {
    position: absolute;
    top: 0; right: 0;
    width: 72px; height: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    opacity: 0.85;
}
.checker-pattern div { background-color: var(--paper); }
.checker-pattern div:nth-child(1),
.checker-pattern div:nth-child(3),
.checker-pattern div:nth-child(5),
.checker-pattern div:nth-child(9) { background-color: var(--ink); }

.content-box-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.content-box-rule::before,
.content-box-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule-heavy);
}
.content-box-rule span {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
}

.content-box h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 1.4rem;
}
.content-box h1 em {
    font-style: normal;
    color: var(--title-color);
}
.content-box p {
    font-family: var(--font-body);
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}
.content-box .quote {
    border-left: 3px solid var(--rule-heavy);
    padding-left: 1.2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 1rem 0;
    line-height: 1.65;
}

.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.cta-button {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    transition: all 0.25s ease;
}
.cta-button:hover {
    background: var(--title-color);
    border-color: var(--title-color);
    transform: translateY(-2px);
}
.cta-button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-heavy);
}
.cta-button.secondary:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}


/* ============================================================
   3. SECTIE 2 — ACTIVITEITEN (lijstweergave)
   ============================================================ */
.padded-content {
    padding: 32px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: hidden;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--ink);
    margin-bottom: 1.4rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rule-heavy);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.section-title::before { content: '◆'; color: var(--red-accent); font-size: 0.55em; flex-shrink: 0; }

/* ── Activiteitenlijst ── */
.act-list {
    list-style: none;
    border-top: 1px solid var(--rule);
    flex-shrink: 0;
}

.act-list li a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 0 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background 0.2s;
}
.act-list li a::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 0; bottom: 0;
    width: 4px;
    background: var(--title-color);
    transform: scaleY(0);
    transition: transform 0.2s;
    transform-origin: center;
}
.act-list li a:hover::before { transform: scaleY(1); }

.act-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.act-list li a:hover .act-icon { transform: scale(1.1); }
.act-icon img {
    width: 32px; height: 32px;
    object-fit: contain;
    filter: sepia(20%) contrast(1.1);
    transition: filter 0.2s;
}
.act-list li a:hover .act-icon img { filter: sepia(0%) contrast(1.2); }

.act-text { min-width: 0; }
.act-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 3px;
    transition: color 0.2s;
}
.act-list li a:hover .act-title { color: var(--title-color); }
.act-desc {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

.act-arrow {
    font-size: 1.1rem;
    color: var(--rule-heavy);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.act-list li a:hover .act-arrow { transform: translateX(4px); color: var(--title-color); }

.act-badge {
    display: inline-block;
    background: var(--title-color);
    color: var(--paper);
    font-family: var(--font-ui);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 7px;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}






/* ============================================================
   4. SECTIE 3 — AANKONDIGING
   ============================================================ */
.announcement-box {
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
    background-color: var(--paper-dark);
}
.announcement-label {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--red-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.announcement-label::before { content: '◆'; font-size: 0.4rem; }
.announcement-label::after  { content: ''; flex: 1; height: 1px; background: var(--rule); }

.announcement-divider { height: 1px; background: var(--rule); margin: 1.4rem 0; }

.announcement-featured {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--title-color);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.2rem;
}
.announcement-featured .featured-tag {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--title-color);
    margin-bottom: 8px;
    display: block;
}
.announcement-featured h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.announcement-featured p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 0;
    line-height: 1.7;
    font-family: var(--font-body);
}
.announcement-featured.announcement--boek { border-left-color: var(--gold); }
.announcement-featured.announcement--boek .featured-tag { color: var(--gold); }
.announcement-featured.announcement--boek h3 { font-style: italic; }
.announcement-featured.announcement--cursus { border-left-color: var(--title-color); }


/* ============================================================
   5. SECTIE 4 — CONTACT
   ============================================================ */
.contact-form {
    display: grid;
    gap: 0.8rem;
    background: var(--paper);
    padding: 2rem;
    border: 1px solid var(--rule);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rule);
    background: var(--paper-dark);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 0;
    transition: border-color 0.2s;
    appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--rule-heavy);
    background: var(--paper);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .form-group { display: grid; gap: 0.4rem; }
.contact-form .form-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    text-transform: uppercase;
}
.contact-form .cta-button {
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
}


/* ============================================================
   6. ANIMATIE
   ============================================================ */
.content-box { animation: fadeUp 0.5s 0.1s ease both; }


/* ============================================================
   7. RESPONSIVE
   ============================================================ */
/* ── GROOT SCHERM (>1400px): lijstweergave opschalen ── */
@media (min-width: 1401px) {
    .section-title { font-size: 2rem; margin-bottom: 1.4rem; }
    .act-list li a { padding: 13px 0; gap: 0 18px; }
    .act-title { font-size: 1.08rem; }
    .act-desc  { font-size: 0.74rem; }
    .padded-content { padding: 36px 50px; }
}

@media (max-width: 1400px) {
    .split-section,
    .split-section.layout-reversed {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .image-column { flex: none; width: 100%; min-height: 55vh; }
    .content-column { flex: none; width: 100%; }
    .padded-content,
    .announcement-box { padding: 40px; }

}

@media (max-width: 860px) {

}

@media (max-width: 720px) {
    .content-box  { padding: 28px; }
    .padded-content,
    .announcement-box { padding: 28px; }

}

@media (max-width: 480px) {

}

/* ── LAGE SCHERMEN (<800px hoogte): split-layout loslaten ── */
@media (max-height: 800px) {
    .split-section,
    .split-section.layout-reversed {
        flex-direction: column;
        height: auto;
        min-height: unset;
    }
    .image-column {
        flex: none;
        width: 100%;
        min-height: 45vh;
        position: relative;
        top: unset;
    }
    .content-column {
        flex: none;
        width: 100%;
        overflow-y: visible;
    }
    .padded-content,
    .announcement-box {
        padding: 32px 40px;
        overflow-y: visible;
    }
    .content-box {
        padding: 36px 40px;
    }
}
