/*
Theme Name: Boezen Techniek
Theme URI: https://donderz.nl
Author: Donderz
Author URI: https://donderz.nl
Description: Een WordPress thema voor Boezen Techniek.
Version: 1.2.4
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.4
*/

@font-face {
    font-family: 'Saira';
    src: url('assets/fonts/Saira-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira';
    src: url('assets/fonts/Saira-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saira SemiCondensed';
    src: url('assets/fonts/SairaSemiCondensed-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root{

    /* Kleuren - basispalet */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red: #ce2422;
    --color-charcoal: #282828;
    --color-overlay: #1a1a1a;

    /* Kleuren - semantisch */
    --background-color: var(--color-charcoal);
    --section-background-color: var(--color-white);
    --primary-color: #2C6B4D;
    --secondary-color: #2C6B4D;
    --accent-color: var(--color-red);
    --heading-color: var(--color-white);
    --text-color: var(--color-white);
    --link-color: #2C6B4D;
    --border-color: #cdcdcd;
    --overlay-color: rgba(0, 0, 0, 0.3);
    --submenu-item-background-color: rgba(0, 0, 0, 0.7);

    /* Fonts */
    --font-family: 'Saira', sans-serif;
    --heading-font: 'Saira SemiCondensed', sans-serif;
    --tagline-font-family: 'Saira SemiCondensed', sans-serif;

    --h1-font: 4.875rem;  /* 78px @1440 */
    --h2-font: 3.875rem;   /* 62px @1440 */
    --h3-font: 2rem;      /* 32px @1440 */
    --h4-font: 1.625rem;   /* 26px @1440 */
    --h5-font: 1.375rem;   /* 22px @1440 */

    --text-large: 1.125rem;  /* 18px @1440 */
    --text-normal: 1rem;     /* 16px @1440 */
    --text-small: 0.875rem;  /* 14px @1440 */
    --tagline-font-size: 0.875rem; /* 14px @1440 */

    /* Border radius */
    --border-radius-full: 999px;
    --border-radius-large: 32px;
    --border-radius-normal: 8px;
    --border-radius-small: 4px;

    /* Spacing */
    --space-0: 0;
    --space-4: 0.25rem;  /* 4px @1440 */
    --space-8: 0.5rem;  /* 8px @1440 */
    --space-10: 0.625rem;  /* 10px @1440 */
    --space-16: 1rem;  /* 16px @1440 */
    --space-24: 1.5rem;  /* 24px @1440 */
    --space-32: 2rem;  /* 32px @1440 */
    --space-40: 2.5rem;  /* 40px @1440 */
    --space-64: 4rem;  /* 64px @1440 */
    --space-80: 5rem;  /* 80px @1440 */
    --space-92: 5.75rem;  /* 92px @1440 */
    --space-96: 6rem;  /* 96px @1440 */
    --space-112: 7rem;  /* 112px @1440 */
    --space-130: 8.125rem;  /* 130px @1440 */
    --space-152: 9.5rem;  /* 152px @1440 */

    /* Grid */
    --container-max-width: 82.5rem; /* 1320px @1440  */
    --body-max-width: 39rem;      /* 624px @1440 */
}

@media only screen and (max-width: 1024px) {
    :root {
        --h1-font: 3.5rem;      /* 56px @1024 */
        --h2-font: 2.875rem;    /* 46px @1024 */
        --h3-font: 1.75rem;     /* 28px @1024 */
        --h4-font: 1.375rem;    /* 22px @1024 */
        --h5-font: 1.25rem;     /* 20px @1024 */

        --text-large: 1.0625rem; /* 17px @1024 */
        --text-normal: 1rem;     /* 16px @1024 */
        --text-small: 0.875rem;  /* 14px @1024 */
        --tagline-font-size: 0.875rem; /* 14px @1024 */

        --space-4: 0.25rem;   /* 4px @1024 */
        --space-8: 0.375rem;   /* 6px @1024 */
        --space-10: 0.5rem;    /* 8px @1024 */
        --space-16: 0.875rem;  /* 14px @1024 */
        --space-24: 1.25rem;   /* 20px @1024 */
        --space-32: 1.5rem;    /* 24px @1024 */
        --space-40: 2rem;      /* 32px @1024 */
        --space-64: 3rem;      /* 48px @1024 */
        --space-80: 4rem;      /* 64px @1024 */
        --space-92: 4.3125rem; /* 69px @1024 */
        --space-96: 4.5rem;    /* 72px @1024 */
        --space-112: 5rem;     /* 80px @1024 */
        --space-130: 5.8125rem;  /* 93px @1024 */
        --space-152: 6.75rem;  /* 108px @1024 */
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --h1-font: 2rem;      /* 32px @767 */
        --h2-font: 1.75rem;   /* 28px @767 */
        --h3-font: 1.5rem;    /* 24px @767 */
        --h4-font: 1.25rem;   /* 20px @767 */
        --h5-font: 1.125rem;  /* 18px @767 */

        --text-large: 1rem;      /* 16px @767 */
        --text-normal: 0.9375rem; /* 15px @767 */
        --text-small: 0.8125rem;  /* 13px @767 */
        --tagline-font-size: 0.8125rem; /* 13px @767 */

        --space-4: 0.125rem;    /* 2px @767 */
        --space-8: 0.25rem;    /* 4px @767 */
        --space-10: 0.375rem;  /* 6px @767 */
        --space-16: 0.75rem;   /* 12px @767 */
        --space-24: 1rem;      /* 16px @767 */
        --space-32: 1.25rem;   /* 20px @767 */
        --space-40: 1.5rem;    /* 24px @767 */
        --space-64: 2rem;      /* 32px @767 */
        --space-80: 2.5rem;    /* 40px @767 */
        --space-92: 2.875rem;  /* 46px @767 */
        --space-96: 3rem;      /* 48px @767 */
        --space-112: 3.5rem;   /* 56px @767 */
        --space-130: 4.0625rem;  /* 65px @767 */
        --space-152: 4.75rem;  /* 76px @767 */
    }
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body:not(.editor-styles-wrapper){
    margin: 0!important;
    font-family: var(--font-family);
    background-color: var(--color-charcoal);
}

/* Editor-canvas: zelfde donkere basis als de frontend-body, anders staat witte tekst op wit. */
.editor-styles-wrapper {
    background-color: var(--color-charcoal);
    color: var(--text-color);
    font-family: var(--font-family);
}

.container{
    max-width: var(--container-max-width);
    padding: 0 20px;
    margin: 0 auto;

    box-sizing: border-box;
}

.core-button{
    font-family: var(--heading-font);
    padding: var(--space-10) var(--space-16);
    font-size: var(--text-small);
    letter-spacing: 0.20em;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: all 0.2s ease-in-out;
}

.primary-button{
    color: var(--color-white);
    background-color: var(--overlay-color);
    border-top: 3px solid var(--color-red);
}

.primary-button:hover {
    background-color: var(--color-red);
}

.secondary-button{
    color: var(--color-white);
    background-color: var(--overlay-color);
    border-top: 3px solid var(--color-black);
}

.secondary-button:hover {
    background-color: var(--color-black);
}

h1, h2, h3, h4, h5, h6{
    font-family: var(--heading-font);
    margin: 0;
}

h1{
    font-size: var(--h1-font);
    font-weight: 500;
    line-height: 1em;
    letter-spacing: -0.01em;
}

.light {
    font-weight: 250;
}

h2{
    font-size: var(--h2-font);
    font-weight: 500;
    line-height: 0.97em;
    letter-spacing: -0.01em;
}

h3{
    font-size: var(--h3-font);
    font-weight: 500;
    line-height: 1.1em;
    letter-spacing: -0.01em;
}

h4{
    font-size: var(--h4-font);
    font-weight: 500;
    line-height: 1em;
    letter-spacing: -0.01em;
}

h5{
    font-size: var(--h5-font);
    font-weight: 500;
    line-height: 1em;
    letter-spacing: -0.01em;
}

p {
    font-size: var(--text-normal);
    font-weight: 400;
    line-height: 1.5em;
    margin: 0;
}
p.large {
    font-size: var(--text-large);
    font-weight: 300;
}
p.small {
    font-size: var(--text-small);
}

.skip-to-content {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #eee;
	color: #0e0e0e;
	text-decoration: none;
	font-weight: 400;
	transform: translateY(-120%);
	/* transition: transform 0.2s ease; */
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
	transform: translateY(0);
}

/* admin bar */
#wpadminbar a img{
    width: 100%;
    height: 100%;
}
