/*
Theme Name: Nacht van het Onderwijs
Author: Lucas Van Wichelen
Description: Custom block theme for Nacht van het Onderwijs, Mechelen.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nvho
*/

/* Kaarten met platte offset-schaduw, zoals in de huisstijl. */
.wp-block-column.nvho-kaart {
    background-color: var( --wp--preset--color--creme );
    color: var( --wp--preset--color--donkerblauw );
    padding: var( --wp--preset--spacing--50 );
}

.wp-block-column.nvho-kaart :where( h1, h2, h3, h4, h5, h6, p, a ) {
    color: var( --wp--preset--color--donkerblauw );
}

.nvho-kaart--roze      { box-shadow: 0.75rem 0.75rem 0 var( --wp--preset--color--roze ); }
.nvho-kaart--turquoise { box-shadow: 0.75rem 0.75rem 0 var( --wp--preset--color--turquoise ); }
.nvho-kaart--geel      { box-shadow: 0.75rem 0.75rem 0 var( --wp--preset--color--geel ); }

/* Praktisch: foto-kolom vult de volledige hoogte van de rij, geen witruimte
   boven/onder de foto. De foto wordt proportioneel bijgesneden (niet uitgerekt). */
.nvho-foto-kolom {
    align-self: stretch !important;
}

.nvho-foto-kolom .wp-block-image {
    height: 100%;
    margin: 0;
}

.nvho-foto-kolom .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FAQ-accordeon */
.nvho-vraag {
    margin-bottom: var( --wp--preset--spacing--30 );
}

.nvho-vraag > summary {
    background-color: var( --wp--preset--color--geel );
    color: var( --wp--preset--color--donkerblauw );
    font-family: var( --wp--preset--font-family--jost );
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
}

.nvho-vraag > summary:focus-visible {
    outline: 3px solid var( --wp--preset--color--roze );
    outline-offset: 2px;
}

.nvho-vraag > *:not( summary ) {
    padding: 0 1.25rem;
    max-width: 70ch;
}

/* Koptekst: donkerblauwe balk, roze rand als enige scheiding. */
.nvho-header {
    border-bottom: 0.5rem solid var( --wp--preset--color--roze );
}

/* Geen gat tussen koptekst en inhoud (WP core zet hier standaard margin-top op). */
.wp-block-post-content {
    margin-top: 0;
}

/* Voettekst: ruimte boven en onder. */
footer.wp-block-template-part > .wp-block-group {
    padding-top: var( --wp--preset--spacing--70 );
    padding-bottom: var( --wp--preset--spacing--60 );
}

footer .wp-block-columns > .wp-block-column > :first-child {
    margin-top: 0;
}

/* Voettekst-koppen niet laten afbreken. */
footer .wp-block-columns h3 {
    text-wrap: nowrap;
}

/* Navigatie in de koptekst. */
.nvho-header .wp-block-navigation {
    font-size: 1.69rem;
}

/* Navigatie: wat ademruimte links/rechts, zodat de hover-kleur niet krap oogt. */
.nvho-header .wp-block-navigation-item a {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

/* Navigatie: hover-kleur per item, zoals de kaartkleuren in "Wat je kan verwachten". */
.nvho-header .wp-block-navigation-item:nth-child(1) a:hover,
.nvho-header .wp-block-navigation-item:nth-child(1) a:focus {
    background-color: var( --wp--preset--color--roze );
    color: var( --wp--preset--color--donkerblauw );
}

.nvho-header .wp-block-navigation-item:nth-child(2) a:hover,
.nvho-header .wp-block-navigation-item:nth-child(2) a:focus {
    background-color: var( --wp--preset--color--turquoise );
    color: var( --wp--preset--color--donkerblauw );
}

.nvho-header .wp-block-navigation-item:nth-child(3) a:hover,
.nvho-header .wp-block-navigation-item:nth-child(3) a:focus {
    background-color: var( --wp--preset--color--geel );
    color: var( --wp--preset--color--donkerblauw );
}
