/*
Theme Name: Twenty Seventeen Tetra
Theme URI: https://blog.tetra.nl/twentyseventeen-tetra
Description: Een child theme van Twenty Seventeen met aangepaste lettertypes (Inter Tight en Degular). Ontworpen voor een moderne, strakke blogstijl.
Author: Tetra B.V.
Author URI: https://blog.tetra.nl
Template: twentyseventeen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, responsive, minimal, custom-fonts
Text Domain: twentyseventeen-tetra
*/

@font-face {
	font-family: 'Inter Tight';
	src: url("fonts/InterTight/InterTight-VariableFont_wght.ttf") format('truetype');
	font-display: swap;
}

@font-face {
	font-family: 'Degular Light';
	src: url("fonts/Degular/Degular-Light.woff2") format('woff2'),
		 url("fonts/Degular/Degular-Light.woff") format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Degular Medium';
	src: url("fonts/Degular/Degular-Medium.woff2") format('woff2'),
		 url("fonts/Degular/Degular-Medium.woff") format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Degular Regular';
	src: url("fonts/Degular/Degular-Regular.woff2") format('woff2'),
		 url("fonts/Degular/Degular-Regular.woff") format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Degular Semibold';
	src: url("fonts/Degular/Degular-Semibold.woff2") format('woff2'),
		 url("fonts/Degular/Degular-Semibold.woff") format('woff');
	font-display: swap;
}

/* ===== Achtergrondkleur website: alles #f5f1ee ===== */
:root {
	--default-background: #f5f1ee; /* gebroken wit */
	--default-header: #1e1f48; /* donker blauw*/
	--default-underline: #a697f1; /* paars */
}
/* Buitenste achtergrond */
body {
  background-color: var(--default-background);  /* valt buiten de .site-container */
}

/* Binnenste contentcontainer — standaard wit in Twenty Seventeen */
.site,
.site-content-contain {
  background-color: var(--default-background);  /* overschrijft wit */
}

/* === Font-toepassing === */

/* Body tekst */
body,
button,
input,
select,
textarea {
	font-family: 'Degular Regular', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
}

/* Subkoppen en andere sectie-koppen */
h2, h3, h4, h5, h6,
.entry-content h2,
.entry-content h3 {
	font-family: 'Degular Semibold', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	font-weight: 600;
}

/* Blog titels (op homepage, archief, single) */
h1.entry-title,
.page .panel-content .entry-title,
.site-title,
.post-navigation .nav-next a,
.post-navigation .nav-previous a {
	/*font-family: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;*/
	font-family: 'Degular Semibold', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	font-weight: 600;
}

.site-title a {
    border-top: 2px solid #fff;
    padding-top: 16px;
    margin-top: 8px;
    display: block;
}

/* Kleine visuele afstemming */
h1.entry-title {
	letter-spacing: -0.02em;
}

.single-post .entry-title, .page .entry-title {
	font-size: 56px;
}

h3.entry-title a {
	font-size: 32px;
}

/* === Lijst-uitlijning === */
.entry-content ul,
.entry-content ol {
    margin-left: 0.1em;       /* schuif hele lijst iets naar rechts */
    padding-left: 1em;      /* ruimte tussen bullet en tekst */
    list-style-position: outside; /* bullets/nummers netjes buiten tekst */
}

.entry-content li {
    margin-bottom: 0.5em;   /* iets lucht tussen lijstitems */
    line-height: 1.6;       /* prettige leesafstand */
}

/* === site slogan === */
.site-branding-text {
	display: block !important;
}

.site-branding-text h1 a,
.site-branding-text h1 a span,
.site-branding-text .site-title {
	font-weight: normal;
	font-size: 1rem;
}

/* === header logo === */
/* style.css (child) */
.custom-logo-link img {
  max-height: 100px;   /* pas aan aan jouw design */
  height: auto;
  width: 300px;
	color: #fff;
}


/* ============ Tetra: halve hoogte hero op homepage ============ */

/* 1) Container van de header */
.tetra-half-hero.has-header-image .custom-header,
.tetra-half-hero.has-header-video .custom-header {
  height: 50vh !important;     /* halve viewport */
  min-height: 0 !important;     /* voorkom geforceerde min-hoogte door thema */
}

/* 2) Het mediaframe (img/video) moet de container vullen en coveren */
.tetra-half-hero .custom-header-media,
.tetra-half-hero .custom-header-media img,
.tetra-half-hero .custom-header-media video {
  width: 100%;
  height: 100% !important;
  object-fit: cover;            /* snij beeld netjes bij, geen stretching */
  object-position: center center;
  display: block;
}

/* 3) Zet de site-branding (titel/ondertitel) visueel goed in de halve hero */
.tetra-half-hero .site-branding {
  transform: translateY(0);     /* reset eventuele thema-shifts */
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* 4) Kleine schermen: iets hoger zodat navigatie en branding lucht hebben */
@media (max-width: 782px) {
  .tetra-half-hero.has-header-image .custom-header,
  .tetra-half-hero.has-header-video .custom-header {
    height: 60vh !important;    /* iets meer hoogte op mobiel */
  }
}

/* 5) Zorg dat de rest van de pagina niet rare overlap krijgt */
.tetra-half-hero .site-content {
  margin-top: 0;                /* Twenty Seventeen zet soms extra offset via JS/CSS */
}

/* == Header titels == */
.entry-title,
.wp-block-heading {
	color: var(--default-header);
}

h1.entry-title,
h3.entry-title {
	border-bottom: 5px solid var(--default-underline);
	display: inline-block;
}

.entry-header h3.entry-title a:hover,
.entry-header h3.entry-title a:focus {
	box-shadow: none;
	-webkit-box-shadow: none;
	color: var(--default-header);
}

.entry-header h3.entry-title a,
.entry-header h3.entry-title a {
	box-shadow: none;
	-webkit-box-shadow: none;
	text-decoration: none;
	-webkit-transition: none;
}

/* == More link op homepage == */
.entry-content .more-link {
position: relative;
    margin: 10px 0;
    display: inline-block;
    font-family: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #98F1AE;
    overflow: hidden;
    cursor: pointer;

	box-shadow: none;
	-webkit-box-shadow: none;
}

.entry-content .more-link:before {
	display: none;
}

.entry-content .more-link:hover {
	background-color: #85CDF7;
	box-shadow: none;
	-webkit-box-shadow: none;
}

/* == Links boven posts en sidebar == */
.entry-meta a,
.widget-area ul li a {
    box-shadow: none;
}

/* == Hoofd navigatie == */
.main-navigation a {
    padding-left: 0;
    padding-right: 0;
    margin-left: 1.25em;
    margin-right: 1.25em;
}

.navigation-top .menu > li > a {
    font-family: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    display: inline-block;
    color: #1E1E4B;
    text-decoration: none;
    padding-bottom: 4px; /* ruimte voor de streep */
    margin-bottom: 11px;
    transition: color 0.3s ease;
}

/* groene streep onder de tekst */
.navigation-top .menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #98F1AE; /* jouw groene kleur */
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* hover: lijn van links naar rechts */
.navigation-top .menu > li > a:hover::after {
    transform: scaleX(1);
}

/* actieve pagina: lijn blijft staan */
.navigation-top .current-menu-item > a::after,
.navigation-top .current_page_item > a::after {
    transform: scaleX(1);
}

/* zorg ook dat de tekstkleur klopt bij actieve/parent items */
.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a,
.navigation-top .current-menu-ancestor > a,
.navigation-top .current-menu-parent > a {
    color: #1E1E4B;
}

/* optioneel: tekstkleur bij hover en actief */
.navigation-top .menu > li > a:hover,
.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a {
    color: #1E1E4B;
}
