
/*
Theme Name: Thomas Höhn
Description: Based on Divi by Elegant Themes
Template: Divi
Version: 1.0
Author: Eric Steur | stom!
Author URI: https://www.stom.nu
*/

@import url("https://thomashohn.stom.dev/wp-content/themes/Divi/style.css");


/* =====================================================
   THOMAS HÖHN - DIVI 5 CHILD THEME
   ===================================================== */


/* =====================================================
   1. GLOBALE HEADER
   ===================================================== */

/* Header op homepage over de video's plaatsen */
body #et-boc > header.et-l--header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    z-index: 99999;
    background: transparent !important;
}

/* Headersectie */
.thomas-header-section {
    position: relative;
    z-index: 9999;
    background: #111820;
}

/* Transparante homepage-header */
.thomas-header-section {
    background: transparent !important;
}

/* Divi headercontainers resetten */
.thomas-header-section,
.thomas-header-section .et_pb_row,
.thomas-header-section .et_pb_column,
.thomas-header-section .et_pb_code,
.thomas-header-section .et_pb_code_inner {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Logo en hamburger */
.thomas-header {
    position: relative;
    z-index: 10001;

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 90px;
    padding: 0 45px;
}

.thomas-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
}

.thomas-logo:hover {
    color: #fff;
}

/* Logo in de header */
.thomas-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.thomas-logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .thomas-logo img {
        height: 36px;
    }
}

/* =====================================================
   2. HAMBURGERMENU
   ===================================================== */

.thomas-menu-toggle {
    position: relative;
    z-index: 10002;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    width: 42px;
    height: 42px;
    padding: 5px;

    border: 0;
    background: transparent;
    cursor: pointer;
}

.thomas-menu-toggle span {
    display: block;
    width: 32px;
    height: 2px;
    background: #fff;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

/* Hamburger verandert in kruis */
.thomas-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.thomas-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.thomas-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =====================================================
   3. FULLSCREEN NAVIGATIE
   ===================================================== */

.thomas-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    background: rgba(10, 15, 18, .88);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .4s ease,
        visibility .4s ease;
}

.thomas-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Navigatielinks */
.thomas-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 100px 10%;
}

.thomas-menu-inner a {
    display: block;

    color: #fff;
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.thomas-menu-inner a:hover {
    color: #fff;
    opacity: .65;
    transform: translateX(12px);
}

/* Scroll blokkeren bij geopend menu */
body.thomas-menu-open {
    overflow: hidden;
}


/* =====================================================
   4. FULLSCREEN VIDEO HOMEPAGE
   ===================================================== */

/* Divi 5 bodysectie zonder standaardpadding */
body.home .et_pb_section_0_tb_body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Videosectie en Divi-wrappers resetten */
body.home .thomas-video-section,
body.home .thomas-video-section .et_pb_row,
body.home .thomas-video-section .et_pb_column,
body.home .thomas-video-section .et_pb_code,
body.home .thomas-video-section .et_pb_code_inner {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Twee fullscreen videovlakken */
.thomas-video-split {
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #111;
}

/* Individueel videovlak */
.thomas-video-panel {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: flex-grow .65s ease;
}

/* Hover: 55% / 45% */
@media (hover: hover) {
    .thomas-video-panel:hover {
        flex-grow: 1.2222;
    }
}

/* Video beeldvullend */
.thomas-video-panel video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    pointer-events: none;
}

/* Donkere overlay */
.thomas-video-panel::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .35);
    transition: background .5s ease;

    pointer-events: none;
}

/* Actieve video wordt lichter */
.thomas-video-panel:hover::after,
.thomas-video-panel:focus-visible::after {
    background: rgba(0, 0, 0, .12);
}

/* Video's standaard zwart-wit */
.thomas-video-panel video {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

/* Bij mouse-over terug naar kleur */
.thomas-video-panel:hover video {
    filter: grayscale(0%);
}




/* =====================================================
   5. TEKST EN KNOPPEN OP VIDEO
   ===================================================== */

.thomas-video-content {
    position: relative;
    z-index: 2;

    padding: 30px;
    text-align: center;

    pointer-events: none;
}

.thomas-video-content h2 {
    color: #fff;
    font-size: clamp(28px, 3vw, 54px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Knoppen in de videovlakken */
.thomas-video-button {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
}

/* Hover */
.thomas-video-panel:hover .thomas-video-button {
    background: #fff;
    color: #111820;
}

/* Tekstkleuren in videovlakken */
body.home .thomas-video-panel .thomas-video-description {
    color: #fff !important;
}

body.home .thomas-home-heading h1,
body.home .thomas-intro-words {
    color: #fff !important;
}

/* INTRO-ANIMATIE HOMEPAGE */

/* De titel ligt over de volledige breedte van beide videovlakken. */
body.home .thomas-video-split {
    position: relative;
}

body.home .thomas-home-heading {
    position: absolute !important;
    top: 20% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    transform: none !important;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

/* Grote centrale naam, op één regel en in hoofdletters. */
body.home .thomas-home-heading h1 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(48px, 6vw, 110px);
    font-weight: 300;
    line-height: 1.1;
    text-transform: uppercase !important;
    white-space: nowrap;
    text-align: center;
    transition: opacity 2s ease;
}

/* De JavaScript voegt is-fading toe zodra Voice/Vision op hun plek staan. */
body.home .thomas-home-heading.is-fading h1 {
    opacity: 0;
}

/* Voice & Vision in het midden */
.thomas-intro-words {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
	color: #2ea3f2!important;
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(28px, 3vw, 54px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.thomas-intro-voice,
.thomas-intro-vision {
    display: inline-block;
    position: relative;
}

.thomas-intro-amp {
    display: inline-block;
    transition: opacity .45s ease;
}

.thomas-intro-amp.is-hidden {
    opacity: 0;
}

/* Voice & Vision tijdens de animatie */
body.home .thomas-intro-words,
body.home .thomas-intro-words span {
    color: #2ea3f2 !important;
}

/* Voice en Vision op de videovlakken */
body.home .thomas-video-content h2 {
    color: #2ea3f2 !important;
}

/* Videotitels wachten op de animatie */
.thomas-video-content h2 {
    color: #2ea3f2;
	opacity: 0;
    transition: opacity .3s ease;
}

/* Beschrijving en knop */
/* Videotitels: geen automatische hoofdletters */
body.home .thomas-video-content h2,
body.home .thomas-intro-words {
    color: #2ea3f2;
	text-transform: none !important;
}

/* Titel op de videovlakken */
body.home .thomas-video-content h2 {
	color: #2ea3f2;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 4vw, 64px);
}

/* Voice en Vision: gelijke lettergrootte */
body.home .thomas-intro-words,
body.home .thomas-video-content h2 {
    color: #2ea3f2;
	font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 400;
    line-height: 1.2;
    text-transform: none !important;
}

.thomas-video-description,
.thomas-video-content .thomas-video-button {
    opacity: 0;
    transition: opacity .7s ease;
}

.thomas-video-description {
    max-width: 420px;
    margin: 0 auto 24px;
    padding: 0;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.thomas-video-description strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.3;
}

.thomas-video-description span {
    display: block;
    color: #fff;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 300;
    line-height: 1.5;
}

/* Na afloop verschijnt de definitieve content */
.thomas-intro-complete .thomas-video-content h2,
.thomas-intro-complete .thomas-video-description,
.thomas-intro-complete .thomas-video-button {
    opacity: 1;
}

/* Afstand tussen titel en beschrijving */
.thomas-video-content h2 {
    margin-bottom: 15px;
}

/* Mobiel */
@media (max-width: 767px) {
    body.home .thomas-home-heading {
        top: 90px !important;
    }

    body.home .thomas-home-heading h1 {
        font-size: clamp(26px, 7.5vw, 54px);
    }

    .thomas-intro-words {
        gap: 10px;
        font-size: 25px;
    }

    .thomas-video-description {
        max-width: 280px;
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* Toegankelijkheid */
@media (prefers-reduced-motion: reduce) {
    .thomas-intro-words {
        display: none;
    }

    .thomas-video-content h2,
    .thomas-video-description,
    .thomas-video-button {
        opacity: 1;
        transition: none;
    }
}


/* =====================================================
   6. MOBIELE WEERGAVE
   ===================================================== */

@media (max-width: 767px) {

    /* Header */
    .thomas-header {
        height: 75px;
        padding: 0 20px;
    }

    .thomas-logo {
        font-size: 18px;
    }

    /* Fullscreen menu */
    .thomas-menu-inner {
        padding: 90px 8%;
        gap: 25px;
    }

    .thomas-menu-inner a {
        font-size: 32px;
    }

    /* Video's onder elkaar */
    .thomas-video-split {
        flex-direction: column;
    }

    .thomas-video-panel {
        flex: 1 1 50%;
    }

    .thomas-video-content h2 {
        font-size: 28px;
    }
}


/* =====================================================
   7. TOEGANKELIJKHEID
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .thomas-video-panel,
    .thomas-video-panel::after,
    .thomas-menu-overlay,
    .thomas-menu-inner a {
        transition: none;
    }
}


/* WordPress hoofdmenu */
.thomas-menu-list {
    display: flex;
    flex-direction: column;
    gap: 22px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.thomas-menu-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.thomas-menu-list a {
    display: block;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity .3s ease, transform .3s ease;
}

.thomas-menu-list a:hover {
    color: #fff;
    opacity: .65;
    transform: translateX(12px);
}

@media (max-width: 767px) {
    .thomas-menu-list {
        gap: 25px;
    }

    .thomas-menu-list a {
        font-size: 32px;
    }
}

/* WordPress-menubron buiten beeld houden */
.thomas-wordpress-menu {
    display: none;
}


/* =====================================================
   8. HERO OP VERVOLGPAGINA'S
   ===================================================== */

body:not(.home) .thomas-page-hero {
    min-height: 65vh;
    min-height: 65svh;

    display: flex;
    align-items: center;
    justify-content: center;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Subtiele donkere laag voor leesbaarheid */
body:not(.home) .thomas-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    pointer-events: none;
    z-index: 0;
}

/* Inhoud boven de donkere laag */
.thomas-page-hero > .et_pb_row {
    position: relative;
    z-index: 1;
}

/* Mobiel */
@media (max-width: 767px) {
    body:not(.home) .thomas-page-hero {
        min-height: 45svh;
    }
}

/* Tijdens de intro blijven beide videovlakken even breed */
body.home .thomas-video-split:not(.thomas-intro-complete)
.thomas-video-panel:hover {
    flex-grow: 1;
}

