/**
 * Theme Name: bureau Peppr
 * Theme URI: https://bureaupeppr.nl
 * Description: Subthema voor Divi
 * Author: Bureau Peppr | Theo Huitema
 * Author URI: https://bureaupeppr.nl
 * Author Email: mail@bureaupeppr.nl
 * Template: Divi
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: Bureau Peppr, branding, ontwerp, web, Divi
 *
 * @format
 */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    interpolate-size: allow-keywords;
	
	--primary-color: #1b428a;
	--secondary-color: #0090d5;
	--section-color-regular: #e8e8ea;
	--section-color-dark: #d2d4d6;
	
	--section-color-regular-rgba: rgba(232, 232, 234, 0.7);
	--section-color-dark-rgba: rgb(210, 212, 214, 0.8);
	
	--menu-sticky-shrink-delta: 50px;
	--menu-open-width: 50%;
	--menu-animation-speed: 0.3s; /* seconden */
}

html,
body {
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
	
	scroll-snap-type: y mandatory;
}

/* Set core root defaults */
html:focus-within {
    /* scroll-behavior: smooth */;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-block-end: 0;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Make images easier to work with */
img,
picture {
    display: block;
    max-width: 100%;
}

/* Transitions */
.nav > li > a,
a,
a:hover,
.btn,
.btn:hover,
.button,
.button:hover {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Line height reset for ordered and unordered lists */
ol,
ul {
    line-height: revert !important;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target,
.pub-snap-section {
   scroll-margin-top: 200px;
}

/* DIVI /*
/* CONTENT & POSTS */
/* Breedte van de Post Content module aanpassen van 80% (standaard) naar 100% */
.et-l .et-l--post .et_builder_inner_content .et_pb_row {
    width: 100%;
}

/*****************************************/
/*********| FULLSCREEN MENU CSS |*********/
/*****************************************/

/* Hide the desktop menu */
.pub-burger-menu .et_pb_menu__wrap .et_pb_menu__menu {
    display: none !important;
}

/* Force the mobile version of the menu */
.pub-burger-menu .et_pb_menu__wrap .et_mobile_nav_menu {
    display: flex !important;
	flex-direction: column;
    align-items: center !important;
	justify-content: center;
}

.pub-burger-menu .et_pb_menu__wrap .et_mobile_nav_menu .mobile_nav {
	background-color: #fff;
	padding-inline: 1.5em;
	padding-block: 0.2em;
	border-radius: 3em;	
}

.pub-burger-menu.et_pb_sticky .et_pb_menu__wrap .et_mobile_nav_menu {
	transform: translatey(35px);
}

.pub-burger-menu .et_pb_menu__wrap .et_mobile_nav_menu .mobile_nav.opened {
	background-color: transparent;
}

.pub-burger-menu.et_pb_sticky .et_pb_menu__wrap .et_mobile_nav_menu .mobile_nav {
	box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

/* No transition for logo in menu */
.et_pb_image_0_tb_header .et_pb_image_wrap img,
.et_pb_image_0_tb_header,
.et_pb_image_1_tb_header .et_pb_image_wrap img,
.et_pb_image_1_tb_header {
    transition: none !important;
}

/* Move the hamburger to the right of the header */
.pub-burger-menu .et_pb_menu__wrap {
    justify-content: flex-end !important;
}

/*.pub-burger-menu .et_pb_menu__wrap .et_mobile_nav_menu */
/* No margin for hamburger button */
.pub-burger-menu .et_mobile_nav_menu {
    margin: 0;
}

/* Remove mobile menu border */
.pub-burger-menu .et_mobile_menu {
    border-top: none;
}

/* Set background color of hamburger */
/* .pub-burger-menu .mobile_nav.closed .mobile_menu_bar {
    background-color: transparent;
}

.pub-burger-menu .mobile_nav.opened .mobile_menu_bar {
    background-color: none;
}
*/

/* Make sure that the menu is above other elements */
.pub-burger-menu .et_pb_menu__wrap span.mobile_menu_bar {
    z-index: 10000 !important;
}

/* Prepareer het menu icoon voor rotatie wanneer er op geklikt wordt */
.pub-burger-menu .mobile_menu_bar::before {
    transition: transform 0.4s ease;
    transform: rotate(0deg);
    display: block;
	font-weight: 900;
    font-size: clamp(
        3rem,
        calc(3rem + ((1vw - 0.48rem) * 2.7778)),
        5rem
    ) !important;
    min-height: 0vw;
    color: var(--primary-color) !important;
}

/* Roteer het menu icoon wanneer er op geklikt wordt */
.pub-burger-menu .mobile_nav.opened .mobile_menu_bar::before {
    transition: transform 0.4s ease;
    transform: rotate(90deg);
    display: block;
}

/* Set the close icon for when the menu is open */
.pub-burger-menu .et_pb_menu__wrap .opened .mobile_menu_bar:before {
    color: var(--primary-color) !important; /* Icon color */
    content: '\4d' !important; /* Divi font icon to use for the close icon */
    background-color: transparent;
    transition: transform 0.4s ease;
}

/* Remove menu item bottom borders */
.pub-burger-menu .et_mobile_menu li a {
    border-bottom: none;
}

/* Make sure scrolling is disabled when the menu is open. */
body:has(.mobile_nav.opened) {
    height: -webkit-fill-available;
}

html:has(.mobile_nav.opened) {
    height: -webkit-fill-available;
}

/* Menu fly-out */
.pub-burger-menu #mobile_menu1 {
    width: 100vw !important; /* Make it span the full width of the viewport */
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important; /* Make it span the full height of the viewport */
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
    padding: 0 !important;
    background-color: var(--section-color-regular-rgba) !important; /* Fullscreen menu background color */
    background-image: linear-gradient(
        to right,
        var(--section-color-regular-rgba), var(--section-color-dark-rgba)
    ) !important;
}

/* Sticky menu hack */
.pub-burger-menu.et_pb_sticky #mobile_menu1 {
	 height: calc(100vh + 50px) !important; /* Make it span the full height of the viewport */
}

.pub-burger-menu .mobile_nav:not(.clicked).closed #mobile_menu1 {
    translate: 100%;
}

/* Menu fly-out animation when closing */
.pub-burger-menu .closed.clicked #mobile_menu1 {
    animation: pub-menu-close var(--menu-animation-speed) forwards;
}

/* Responsive Stijlen voor tablets */
@media all and (min-width: 980px) {
    /* Fullscreen Menu Style when Opened*/
    .pub-burger-menu:not(.et_pb_sticky) .opened #mobile_menu1 {
        --menu-open-width: 50%;
        animation: pub-menu-open var(--menu-animation-speed) forwards;
    }
	
	.pub-burger-menu.et_pb_sticky .opened #mobile_menu1 {
		--menu-sticky-open-width: -30vw;
        animation: pub-sticky-menu-open var(--menu-animation-speed) forwards;
	}	

}

/* Responsive Stijlen voor tablets */
@media all and (min-width: 768px) and (max-width: 980px) {
    /* Fullscreen Menu Style when Opened*/
    .pub-burger-menu:not(.et_pb_sticky) .opened #mobile_menu1 {
        --menu-open-width: 10%;
        animation: pub-menu-open var(--menu-animation-speed) forwards;
    }
	
	.pub-burger-menu.et_pb_sticky #mobile_menu1 {
		transform: translateY(-50px);
	}
	
	.pub-burger-menu.et_pb_sticky .opened #mobile_menu1 {
		--menu-sticky-open-width: -70vw;
        animation: pub-sticky-menu-open var(--menu-animation-speed) forwards;
	}	
}

/* Responsive Stijlen voor smartphones */
@media all and (max-width: 767px) {
    /* Fullscreen Menu Style when Opened*/
    .pub-burger-menu:not(.et_pb_sticky) .opened #mobile_menu1 {
        --menu-open-width: 0%;
        animation: pub-menu-open var(--menu-animation-speed) forwards;
    }
	
	.pub-burger-menu.et_pb_sticky #mobile_menu1 {
		transform: translateY(-50px);
	}
	
	.pub-burger-menu.et_pb_sticky .opened #mobile_menu1 {
		--menu-sticky-open-width: -70vw;
        animation: pub-sticky-menu-open var(--menu-animation-speed) forwards;
	}	

}

/* Responsive Stijlen voor smartphones */
@media all and (max-width: 479px) {
	.pub-burger-menu.et_pb_sticky .opened #mobile_menu1 {
		--menu-sticky-open-width: -67vw;
        animation: pub-sticky-menu-open var(--menu-animation-speed) forwards;
	}	
}

@keyframes pub-menu-open {
    from {
        translate: 100%;
    }
    to {
        translate: var(--menu-open-width);
    }
}

@keyframes pub-menu-close {
    from {
        translate: var(--menu-open-width);
    }
    to {
        translate: 100%;
    }
}

@keyframes pub-sticky-menu-open {
    from {
        translate: 100% -50px;
    }
    to {
        translate: var(--menu-sticky-open-width) -50px;
    }
}

@keyframes pub-sticky-menu-close {
    from {
        translate: var(--menu-sticky-open-width) -50px;
    }
    to {
        translate: 100% -50px;
    }
}

/* Remove Bullets next to LI elements */
.pub-burger-menu #mobile_menu1 li {
    list-style: none !important;
    text-align: right !important;
    width: 80%;
    margin: 0 auto;
}

/* Make sure the menu items have no background */
.pub-burger-menu .et_mobile_menu .menu-item-has-children > a {
    background-color: transparent;
}

/*  Menu item font */
.et_mobile_menu li a {
    font-size: clamp(
        1.25rem,
        calc(1.25rem + ((1vw - 0.48rem) * 0.6944)),
        1.75rem
    ) !important;
    font-weight: 400;
    min-height: 0vw;
    color: var(--primary-color) !important;
    width: fit-content;
}

.et_mobile_menu li.pub-menu-tekst a {
	font-weight: 900;
	text-transform: uppercase;
}

/* Remove the hover background from the menu items and add hover animation */
.et_mobile_menu li a:hover {
    background-color: transparent;
    opacity: 1;
}

.et_mobile_menu li:not(.pub-menu-tekst) a:hover {
    transition: transform 0.3s ease-in-out !important; /* Animated the menu item when hovered */
    transform: scale(
        1.15
    ); /* Enlarge the hovered menu item by 15% when hovered */
}

/* END MENU */

/* ACTIONS */
.pub-snap-section {}

/* LAY-OUT */
i.fas {
	color: var(--primary-color);
}

/* FOOTER */
/* Footer menu */
@media all and (max-width: 660px) {
	footer .footer-section .et_pb_column.pub-footer-menu {
		width:50% !important;
	}
	
	footer .footer-section .et_pb_column.pub-footer-socials {
		margin-top: 1em;
		width: 100% !important;
	}
}

footer .footer-section .pub-hide-mobile-menu.et_pb_menu .et_pb_menu__menu,
footer .footer-section .pub-hide-mobile-menu.et_pb_fullwidth_menu .et_pb_menu__menu {
    display: flex !important;
}
 
footer .footer-section .pub-hide-mobile-menu .et_mobile_nav_menu {
    display: none;
}

footer .footer-section .pub-hide-mobile-menu .et_pb_menu__menu > nav > ul {
	margin-top: -1rem;
}

footer .footer-section .pub-hide-mobile-menu .et_pb_menu__menu > nav > ul > li {
    width:100%;
	margin-top: 0;
	font-size: inherit;
	line-height: 1.1;
}

footer .footer-section .pub-hide-mobile-menu li.pub-menu-tekst {
	display: none;
}


/* STANDAARD BREAKPOINTS */
/* Responsive Stijlen voor desktop en groter */
@media all and (min-width: 1405px) {
}
/* Responsive Stijlen voor standaard desktop alleen */
@media all and (min-width: 1100px) and (max-width: 1405px) {
}
/* Responsive Stijlen voor Tablet en kleiner */
@media all and (max-width: 980px) {
}
/* Responsive Stijlen voor Tablets */
@media all and (min-width: 768px) and (max-width: 980px) {
}
/* Responsive Stijlen voor Smartphones */
@media all and (max-width: 767px) {
}
/* Responsive Stijlen voor Smartphones in portrait modus */
@media all and (max-width: 479px) {
}
