/*
Theme Name: Berettyómenti Zrt.
Theme URI: https://bmzrt.hu
Description: A Berettyómenti Zrt. weboldalának alapértelmezett sablonja
Author: Digitalform
Author URI: https://digitalform.hu
Version: 1.0
*/

*{
margin: 0;
padding: 0;
border: 0;
flex-wrap: wrap;
text-decoration: none; 
}

@font-face { 
	font-family: 'Source Sans Pro'; 
	src: url("fonts/source-sans-pro-regular.woff2") format('woff2');
	font-weight: 400; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Source Sans Pro'; 
	src: url("fonts/source-sans-pro-italic.woff2") format('woff2');
	font-weight: 400; 
	font-style: italic;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Source Sans Pro'; 
	src: url("fonts/source-sans-pro-semibold.woff2") format('woff2');
	font-weight: 500; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Source Sans Pro'; 
	src: url("fonts/source-sans-pro-bold.woff2") format('woff2');
	font-weight: 700; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Evander'; 
	src: url("fonts/evander-extra-light.woff2") format('woff2');
	font-weight: 300; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

*, 
*:after, 
*::before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

:root {
	--color-dark: #000000;
	--color-green: #0b8e36;
	--color-dark-green: #056424;
	--color-yellow: #f4c815;
	--color-dark: #101820;
	--color-sand: #f5f2ef;
	--color-brown: #936037;
	--color-light-brown: #c99e67;
	--color-silver: #f5f5f5;
	--color-red: #f55534;
}

body { margin: auto; font-family: 'Source Sans Pro', sans-serif; font-size: 19px; font-weight: 400; line-height: 30px; overflow-x: hidden; }
body.rwd_menu__opened { overflow-y: hidden !important; }

textarea, input, select, button { font-family: 'Source Sans Pro', sans-serif; font-size: 16px; outline: none; }

h1, h2, h3, h4 { font-weight: normal; line-height: 100%; }

img.alignleft { margin: 0 20px 5px 0; float: left; }
img.alignright { margin: 0 0 5px 20px; float: right; }
img.aligncenter { margin: 0 auto 20px auto; display: block; }

hr { margin: 20px 0; border-top: 2px solid var(--color-sand); }

/* Classes */
.left { float: left; }
.right { float: right; }
.clear { clear: both; }
.inner { max-width: 1280px; margin-left: auto; margin-right: auto; position: relative; }
.inner_800 { max-width: 800px; }
.inner_960 { max-width: 960px; }
.vertical_middle { top: 50%; position: relative; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); }
.hide { display: none !important; }
.red { color: var(--color-red); }
.b_r_3 { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
.b_r_50p { -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; }

.sec_font { font-family: 'Evander', sans-serif; font-weight: 300; }
.center { text-align: center; }
.uppercase { text-transform: uppercase; }

/* Animation */
.anim, :before, :after { -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
.anim_cubic { -webkit-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); -moz-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); -o-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }

/* Button */
.button { height: 50px; padding: 0 30px; font-size: 16px !important; font-weight: 700; text-decoration: none !important; text-transform: uppercase; color: white !important; line-height: 20px; background: var(--color-green); display: inline-flex; align-content: center; justify-content: center; cursor: pointer; border-radius: 25px; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
.button:hover { background-color: var(--color-brown); }
.button:after { display: none !important; }

.button.button_brown { background-color: var(--color-brown); }
.button.button_brown:hover { background-color: var(--color-dark); }

.button:disabled, 
.button:disabled:hover { color: white !important; background-color: #ccc !important; }

.button.button_h40 { height: 40px; padding: 0 15px; font-size: 17px !important; line-height: 40px; }
.button.button_h30 { height: 30px; padding: 0 10px; font-size: 15px !important; line-height: 30px; }

.button_fullwidth { height: auto; padding: 15px 10px; text-align: center; line-height: 20px; display: block; }

/* Checkbox and radio */
input[type="checkbox"], 
input[type="radio"] { width: 24px; height: 24px; margin: -4px 4px 0 0 !important; padding: 0 !important; text-align: center !important; background-color: white; border: 1px solid #ddd; clear: none; cursor: pointer; display: inline-block; line-height: 0; outline: 0; vertical-align: middle !important; -webkit-appearance: none; -webkit-box-shadow: none; box-shadow: none; -webkit-transition: .05s border-color ease-in-out; transition: .05s border-color ease-in-out; }
input[type="radio"] { -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; }

input[type="radio"]:hover, 
input[type="checkbox"]:hover, 
input[type="radio"]:checked, 
input[type="checkbox"]:checked { border-color: #aaa99f; }

input[type="radio"]:checked:before { width: 14px; height: 14px; left: 4px; top: 4px; text-align: center; background: var(--color-red); position: relative; border-radius: 8px; display: block; content: ''; }
input[type="checkbox"]:checked:before { width: 14px; height: 14px; left: 4px; top: 4px; text-align: center; color: var(--color-green); line-height: 14px; position: relative; display: block; content: '✓'; }


/*
------------------
	NAVIGATION
------------------
*/
#rwd_menu { width: 100%; left: 0; top: 0; bottom: 0; background: rgba(0 0 0 / 20%); position: fixed; z-index: 1000; visibility: hidden; opacity: 0; } 
#rwd_menu .rwd_menu_wrap { width: 480px; height: 100%; right: -100%; top: 0; background: var(--color-sand); position: absolute; overflow-x: hidden; overflow-y: auto; } 

#rwd_menu .rwd_menu_section h5 { margin-bottom: 10px; font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--color-brown); }

/* RWD menu header */
#rwd_menu .rwd_header { height: 100px; position: relative; }
#rwd_menu .rwd_header img { width: 77px; height: 70px; left: 50px; display: block; position: absolute; }
#rwd_menu .rwd_header .rwd_button { width: 50px; height: 50px; right: 50px; background: var(--color-green); position: absolute; z-index: 2; cursor: pointer; border-radius: 50%; }
#rwd_menu .rwd_header .rwd_button .burg { width: 20px; height: 2px; left: 15px; top: calc(50% - 1px); background: transparent; display: block; position: absolute; -moz-transition: 0.2s; -o-transition: 0.2s; -webkit-transition: 0.2s; transition: 0.2s; }

#rwd_menu .rwd_header .rwd_button .burg:before, 
#rwd_menu .rwd_header .rwd_button .burg:after { width: 20px; height: 2px; background: white; position: absolute; content: ''; -moz-transition: 0.2s; -o-transition: 0.2s; -webkit-transition: 0.2s; transition: 0.2s; }
#rwd_menu .rwd_header .rwd_button .burg:before { top: 0; left: 0; -webkit-transform: rotate(45deg); }
#rwd_menu .rwd_header .rwd_button .burg:after { top: 0; right: 0; -webkit-transform: rotate(-45deg); }

/* Contacts */
#rwd_menu .rwd_menu_section.contacts { padding: 0 50px; }
#rwd_menu .rwd_menu_section.contacts .contacts_wrap { padding-bottom: 30px; border-bottom: 1px solid rgba(0 0 0 / 20%); }
#rwd_menu .rwd_menu_section.contacts .contacts_wrap .button { width: 100%; padding: 0 10px; }

/* Menu */
#rwd_menu .rwd_menu_section.menu { padding: 30px 50px; }

#rwd_menu ul { margin-bottom: 0; list-style: none; }
#rwd_menu ul li a { color: var(--color-dark); display: block; }

/* Primary menu */
#rwd_menu ul.primary_menu li { border-bottom: 1px solid rgba(0 0 0 / 20%); }
#rwd_menu ul.primary_menu li a { padding: 15px 0; font-size: 20px; font-weight: 700; line-height: 100%; display: block; position: relative; }
#rwd_menu ul.primary_menu li a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

#rwd_menu ul.primary_menu li.menu-item-has-children > a:after { width: 16px; height: 16px; right: 0; top: calc(50% - 8px); background: url(images/icon_arrow_down.svg) no-repeat center; background-size: auto 100%; position: absolute; content: ''; }
#rwd_menu ul.primary_menu li.menu-item-has-children.open > a:after { ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg); }

#rwd_menu ul.primary_menu li ul { margin-left: -50px; margin-right: -50px; background: white; display: none; }
#rwd_menu ul.primary_menu li ul li { border-bottom-color: rgba(0 0 0 / 7%); }
#rwd_menu ul.primary_menu li ul li:last-child { border-bottom: none; }
#rwd_menu ul.primary_menu li ul li a { left: auto !important; padding: 15px 50px 15px; font-size: 17px; color: var(--color-dark) !important; line-height: 20px; opacity: 100% !important; }
#rwd_menu ul.primary_menu li ul li.menu-item-has-children > a:after { width: 20px; height: 20px; right: 20px; top: calc(50% - 10px); background: url(images/icon_arrow_down_small.svg) no-repeat center; background-size: 12px; position: absolute; content: ''; }
#rwd_menu ul.primary_menu li ul li.open > a:before { display: none; }

#rwd_menu ul.primary_menu li ul li ul { background: #eef0f4; }
#rwd_menu ul.primary_menu li ul li ul li { border-bottom: none; }
#rwd_menu ul.primary_menu li ul li ul li a { padding: 10px 20px; }

/* Secondary menu */
#rwd_menu .rwd_menu_section.useful_info { padding: 30px 50px; }

#rwd_menu ul.secondary_menu li { margin-bottom: 5px; }
#rwd_menu ul.secondary_menu li a { font-size: 18px; font-weight: 400; }
#rwd_menu ul.secondary_menu li a:hover { text-decoration: underline; }

body.rwd_menu__opened #rwd_menu { visibility: visible; opacity: 100%; }
body.rwd_menu__opened #rwd_menu .rwd_menu_wrap { right: 0; }


/*
--------------
	HEADER
--------------
*/
/* Header top */
#header .header_top { height: 40px; font-size: 15px; font-weight: 500; background: var(--color-yellow); }
#header .header_top a { color: var(--color-dark); }
#header .header_top a:hover { text-decoration: underline; }
#header .header_top a.has_icon { height: 100%; margin-right: 20px; padding-left: 25px; padding-right: 20px; background-repeat: no-repeat; background-position: left center; background-size: auto 20px; display: inline-flex; align-content: center; position: relative; }
#header .header_top a.has_icon.phone { background-image: url(images/icon_phone.svg); }
#header .header_top a.has_icon.email { background-image: url(images/icon_email.svg); }
#header .header_top a.has_icon:after { width: 1px; height: 100%; right: 0; top: 0; background: rgba(0 0 0 / 10%); position: absolute; content: ''; }
#header .header_top a.has_icon:last-child { margin-right: 0; padding-right: 0; }
#header .header_top a.has_icon:last-child:after { display: none; }
#header .header_top .header_top_wrap { height: 100%; display: flex; align-items: center; align-content: center; justify-content: end; }

/* Header bottom */
#header .header_bottom { height: 100px; background: white; } 
#header .header_bottom .header_bottom_wrap  { height: 100%; } 

#header .header_bottom a.logo { width: 220px; height: 220px; left: -40px; top: -70px; background: white; border-radius: 50%; display: flex; align-content: center; justify-content: center; position: absolute; z-index: 10; }

/* Menu */
#header ul.menu { height: 100%; top: 0; right: 0; display: flex; position: absolute; list-style: none; }
#header ul.menu li { height: 100%; margin-left: 30px; display: flex; align-content: center; position: relative; }
#header ul.menu li:first-child { margin-left: 0; }
#header ul.menu li a { font-size: 19px; font-weight: 500; color: var(--color-dark); line-height: 20px; }

#header ul.menu li.current-menu-item:after { width: 100%; height: 4px; left: 0; bottom: 0; background: var(--color-green); position: absolute; content: ''; }
#header ul.menu li.current-menu-item a { color: var(--color-green); }

#header ul.menu li.menu-item-has-children ul { width: max-content; max-width: 300px; left: 0; top: 100%; background: var(--color-sand); position: absolute; visibility: hidden; opacity: 0; z-index: 10; box-shadow: 0 20px 20px rgba(0 0 0 / 20%); }
#header ul.menu li.menu-item-has-children ul li { height: auto; margin-left: 0; border-bottom: 1px solid rgba(0 0 0 / 10%); }
#header ul.menu li.menu-item-has-children ul li:after { display: none !important; }
#header ul.menu li.menu-item-has-children ul li:last-child { border-bottom: none; }
#header ul.menu li.menu-item-has-children ul li a { padding: 10px 20px 10px 40px; color: var(--color-dark); position: relative; }
#header ul.menu li.menu-item-has-children ul li a:hover { text-decoration: underline; }
#header ul.menu li.menu-item-has-children ul li a:before { width: 6px; height: 6px; left: 20px; top: 18px; background: var(--color-dark); position: absolute; content: ''; border-radius: 50%; }
#header ul.menu li.menu-item-has-children ul li.current-menu-item a { color: var(--color-green); }

#header ul.menu li.menu-item-has-children > a { padding-right: 20px; position: relative; }
#header ul.menu li.menu-item-has-children > a:after { width: 13px; height: 13px; right: 0; top: calc(50% - 5px); background: url(images/icon_arrow_down.svg) no-repeat center; background-size: auto 100%; position: absolute; content: ''; }
#header ul.menu li.menu-item-has-children:hover:after { width: 100%; height: 4px; left: 0; bottom: 0; background: var(--color-green); position: absolute; content: ''; }
#header ul.menu li.menu-item-has-children:hover ul { visibility: visible; opacity: 100%; }

#header ul.menu li.contact a { height: 50px; padding: 0 30px; font-size: 16px; font-weight: 700; text-transform: uppercase; color: white; background: var(--color-green); display: flex; align-content: center; border-radius: 25px; }
#header ul.menu li.contact a:hover { background: var(--color-brown); }

/* RWD button */
#header .rwd_button { height: 50px; right: 20px; padding-left: 50px; padding-right: 15px; font-size: 16px; font-weight: 700; color: white; line-height: 50px; background: var(--color-green); display: inline-block; position: absolute; cursor: pointer; border-radius: 25px; }
#header .rwd_button .burg { width: 40px; height: 40px; top: 5px; left: 5px; position: absolute; }

#header .rwd_button .burg:before, 
#header .rwd_button .burg:after { width: 20px; height: 1px; background: white; position: absolute; content: ''; -moz-transition: 0.2s; -o-transition: 0.2s; -webkit-transition: 0.2s; transition: 0.2s; }

#header .rwd_button .burg:before { top: calc(50% - 2px); left: 10px; }
#header .rwd_button .burg:after { top: calc(50% + 2px); right: 10px; }

body.rwd_menu__opened #header .rwd_button .burg:before { top: 50%; -webkit-transform: rotate(45deg); }
body.rwd_menu__opened #header .rwd_button .burg:after { top: 50%; -webkit-transform: rotate(-45deg); }

/* Is Home */
body.home #header, 
body.post_has_thumbnail #header { background: transparent; }

/* Fixed menu */
body.fixed_menu #header { width: 100%; left: 0; top: 0; position: fixed; z-index: 1000; box-shadow: 0 0 30px rgba(0 0 0 / 30%); }
body.fixed_menu #header .header_top { display: none; }
body.fixed_menu #header .header_bottom a.logo { width: 100px; height: 100px; left: 0; top: 0; }
body.fixed_menu #header .header_bottom a.logo img { width: auto !important; height: 70px !important; }

/* RWD menu is opened */
body.rwd_menu__opened #header { background: var(--color-dark); }


/*
--------------
	SLIDER
--------------
*/
#slider .slick-slide { max-height: 600px; background-color: var(--color-dark); background-repeat: no-repeat; background-position: center; background-size: cover; position: relative; }
#slider .slick-slide:before { padding-top: 40%; display: block; content: ''; }
#slider .slick-slide .cover { width: 100%; height: 100%; left: 0; top: 0; background-image: url(images/bgr_dots.png); position: absolute; }
#slider .slick-slide .inner { height: 100%; display: flex; align-items: center; align-content: center; justify-content: center; }
#slider .slick-slide .title { max-width: 960px; margin: auto; font-size: 3.5vw; text-align: center; color: white; line-height: 100%; } 

/* Dots */
#slider ul.slick-dots { width: 100%; left: 0; bottom: 50px; display: flex; justify-content: center; position: absolute; list-style: none; }
#slider ul.slick-dots li { margin: 0 5px; }
#slider ul.slick-dots li button { width: 20px; height: 20px; font-size: 0; background: rgba(255 255 255 / 50%); border-radius: 50%; cursor: pointer; }
#slider ul.slick-dots li.slick-active button { background: var(--color-yellow); }


/*
----------------
	ABOUT US
----------------
*/
#aboutus { padding: 100px 0; }
#aboutus h2 { font-size: 50px; font-family: 'Evander', sans-serif; font-weight: 300; line-height: 120%; }
#aboutus u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: var(--color-light-brown); }
#aboutus .button { margin-top: 50px; }


/*
------------------
	COUNTER UP
------------------
*/
#counterup { color: white; background-color: var(--color-green); background-repeat: no-repeat; background-position: center; background-size: cover; position: relative; }
#counterup .cover { padding: 100px 0; background: rgba(5 100 36 / 50%) url(images/bgr_dots.png) left top; }

#counterup .counterup_title { margin-bottom: 50px; font-size: 50px; line-height: 100%; }
#counterup .counterup_wrap { display: flex; }
#counterup .counterup_wrap .item { width: 50%; margin-top: 50px; padding: 50px 50px 0; border-top: 1px solid rgba(255 255 255 / 20%); position: relative; }
#counterup .counterup_wrap .item:nth-child(-n+2) { margin-top: 0; padding-top: 0; border-top: none; }
#counterup .counterup_wrap .item:after { width: 16px; height: 16px; right: -8px; top: calc(50% - 8px); background: var(--color-yellow); position: absolute; content: ''; border-radius: 50%; }
#counterup .counterup_wrap .item:nth-child(2n):after { display: none; }
#counterup .counterup_wrap .item .number { margin-bottom: 20px; font-size: 50px; font-weight: 700; line-height: 100%; }
#counterup .counterup_wrap .item .text { font-size: 17px; font-weight: 700; line-height: 25px; }


/*
----------------
	SERVICES
----------------
*/
#services { padding: 100px 0; position: relative; }
#services:before { width: 100%; height: 200px; left: 0; bottom: 0; background: var(--color-sand); position: absolute; content: ''; }

#services .services_title { margin-bottom: 20px; font-size: 50px; line-height: 100%; }
#services .services_subtitle { margin-bottom: 20px; font-size: 20px; line-height: 100%; color: var(--color-green); }

.services_wrap { margin-left: -10px; margin-right: -10px; display: flex; }
.services_wrap .item { width: calc(50% - 20px); margin: 20px 10px 0; color: white !important; background-color: var(--color-dark); background-repeat: no-repeat; background-position: center; background-size: cover; border-radius: 10px; position: relative; overflow: hidden; }
.services_wrap .item:nth-child(-n+2) { margin-top: 0; }
.services_wrap .item:before { padding-top: 70%; display: block; content: ''; }
.services_wrap .item .title_wrap { width: 100%; height: 50%; left: 0; bottom: 0; padding: 20px 30px 50px; background: linear-gradient(to bottom, rgba(0 0 0 / 0%) 0%, rgba(0 0 0 / 100%) 100%); display: flex; align-items: end; position: absolute; }
.services_wrap .item .title_wrap h3 { margin-bottom: 0 !important; font-size: 30px !important; font-weight: 700; color: white !important; line-height: 100%; }
.services_wrap .item:hover .title_wrap { padding-bottom: 60px; }


/*
---------------
	GALLERY
---------------
*/
#gallery { padding-bottom: 100px; background: var(--color-sand); position: relative; }
#gallery .gallery_title { margin-bottom: 50px; font-size: 50px; line-height: 100%; }

#gallery .photos .item { padding: 0 10px; }
#gallery .photos .item img { width: 100%; max-width: 630px; height: auto; display: block; border-radius: 10px; }

/* Controls */
#gallery .gallery_controls { width: 100%; left: 0; padding: 0 50px; display: flex; justify-content: space-between; position: absolute; z-index: 10; }
#gallery .gallery_controls button { width: 60px; height: 60px; background: transparent url(images/icon_arrow_left_white.svg) no-repeat center; background-size: auto 20px; border: 1px solid rgba(255 255 255 / 50%); cursor: pointer; border-radius: 50%; }
#gallery .gallery_controls button.next { background-image: url(images/icon_arrow_right_white.svg); }
#gallery .gallery_controls button:hover { background-color: var(--color-yellow); border-color: var(--color-yellow); }

/* Dots */
#gallery ul.slick-dots { width: 100%; left: 0; bottom: -50px; display: flex; justify-content: center; position: absolute; list-style: none; }
#gallery ul.slick-dots li { margin: 0 5px; }
#gallery ul.slick-dots li button { width: 20px; height: 20px; font-size: 0; background: rgba(0 0 0 / 20%); border-radius: 50%; cursor: pointer; }
#gallery ul.slick-dots li.slick-active button { background: var(--color-yellow); }


/*
----------------------
	BEFORE CONTENT
----------------------
*/
#before_content { height: 300px; background-color: var(--color-sand); background-repeat: no-repeat; background-position: center; background-size: cover; position: relative; }
#before_content h1 { width: 100%; font-size: 50px; font-weight: 400; color: white; line-height: 100%; }
#before_content .cover { width: 100%; height: 100%; left: 0; top: 0; background: rgba(0 0 0 / 30%) url(images/bgr_dots.png); position: absolute; }
#before_content .inner { height: 100%; display: flex; align-items: center; align-content: center; }

#before_content.no_thumbnail { height: auto; padding: 15px 0; }
#before_content.no_thumbnail .inner { display: flex; justify-content: end; }
#before_content.no_thumbnail .rank-math-breadcrumb { width: auto; color: var(--color-dark) !important; }
#before_content.no_thumbnail .rank-math-breadcrumb a { color: var(--color-dark) !important; }

.rank-math-breadcrumb { width: 100%; font-size: 16px; color: white; }
.rank-math-breadcrumb a { text-decoration: underline; color: white; }


/*
---------------
	CONTENT
---------------
*/
body.fixed_menu #container { padding-top: 140px; }

#content { padding: 30px 0; }
body.page-template-contact #content { padding-bottom: 0; }
body.page-template-flexible-content #content { padding: 0; }

#content a { text-decoration: underline; color: var(--color-green); }
#content a:hover { text-decoration: none; }

#content h1 { margin-bottom: 30px; font-size: 60px; color: var(--color-dark); }
#content h3 { margin-bottom: 20px; font-size: 40px; color: var(--color-green); }

#content p { margin-bottom: 20px; }

#content ul { margin-left: 20px; margin-bottom: 20px; }
#content ol { margin-left: 20px; margin-bottom: 20px; list-style: decimal; }

/* Contact */
#content .contact_wrap { margin-bottom: 20px; display: flex; }
#content .contact_wrap > div { margin: 10px 0; flex-grow: 1; flex-basis: 0; }
#content .contact_wrap > div.address { width: 100%; flex-grow: inherit; flex-basis: auto; }

#content .contact_form { padding: 50px 0; background: var(--color-sand); }

#content .mapboxgl-popup-content { padding: 20px !important; font-size: 14px; line-height: 20px; }
#content .mapboxgl-popup-content h3 { margin: 4px 0 !important; font-size: 20px !important; }
#content .mapboxgl-popup-content div { margin: 4px 0 !important;  }

#content .mapboxgl-popup-close-button { width: 30px; height: 30px; right: -15px !important; top: -15px !important; color: white !important; background: var(--color-green) !important; border-radius: 50% !important; }
#content .mapboxgl-popup-close-button:hover { background: var(--color-dark-green) !important; }

#map, 
#mapdiv { height: 500px; }

/* Gallery */
#content ul.gallery { margin-left: -10px !important; margin-right: -10px; display: flex; list-style: none !important; }
#content ul.gallery li { width: calc(33.3333333333% - 20px); margin: 20px 10px 0; }
#content ul.gallery li:nth-child(-n+3) { margin-top: 0; }
#content ul.gallery li a { display: block; outline: 5px solid transparent; border-radius: 10px; }
#content ul.gallery li a:hover { outline-color: var(--color-sand); }
#content ul.gallery li img { width: 100%; height: auto; display: block; border-radius: 10px; }

#content .gallery_wrap { margin-bottom: 50px; padding-bottom: 30px; border-bottom: 3px solid var(--color-sand); }
#content .gallery_wrap:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* Flexible content */
#content .flexible_content .paragraph { margin: 70px 0; font-weight: 400; }
#content .flexible_content .paragraph .title { margin: 20px 0; }

#content .flexible_content .fullwidth_image { height: 600px; color: white; background-color: #3A2616; background-repeat: no-repeat; background-position: center; background-size: cover; position: relative; }
#content .flexible_content .fullwidth_image .cover { height: 100%; background: linear-gradient(to right, rgba(58 38 22 / 0%) 0%, rgba(58 38 22 / 80%) 50%, rgba(58 38 22 / 80%) 100%); }
#content .flexible_content .fullwidth_image .cover .inner { height: 100%; display: flex; justify-content: end; }
#content .flexible_content .fullwidth_image .cover .text { width: 50%; height: 100%; display: flex; flex-wrap: wrap; align-items: center; align-content: center; }
#content .flexible_content .fullwidth_image .cover .text p { width: 100%; }
#content .flexible_content .fullwidth_image .cover .text p:last-child { margin-bottom: 0 !important; }
#content .flexible_content .fullwidth_image .cover .text .title { margin: 20px 0; color: white; }

#content .flexible_content .usp { margin: 70px 0; }
#content .flexible_content .usp .usp_wrap { display: flex; flex-wrap: wrap; }
#content .flexible_content .usp .usp_wrap .item { padding: 0 30px; font-size: 16px; font-weight: 700; line-height: 20px; flex-grow: 1; flex-basis: 0; }
#content .flexible_content .usp .usp_wrap .item img { width: auto; height: 80px !important; margin: 0 auto 20px; display: block; }

#content .flexible_content .image_text { margin: 70px 0; }
#content .flexible_content .image_text p:last-child { margin-bottom: 0 !important; }
#content .flexible_content .image_text .image_text_wrap { display: flex; flex-wrap: wrap; }
#content .flexible_content .image_text .image_text_wrap .wrap_left { width: 50%; position: relative; }
#content .flexible_content .image_text .image_text_wrap .wrap_left img { max-width: 100%; height: auto; display: block; }
#content .flexible_content .image_text .image_text_wrap .wrap_left .image { height: 100%; background-repeat: no-repeat; background-position: center; background-size: cover; }
#content .flexible_content .image_text .image_text_wrap .wrap_right { width: 50%; padding: 70px 0 70px 50px; display: flex; align-items: center; align-content: center; }

#content .flexible_content .image_text.has_background { padding: 70px 0; }
#content .flexible_content .image_text.inverse .image_text_wrap .wrap_left { order: 2; }
#content .flexible_content .image_text.inverse .image_text_wrap .wrap_right { order: 1; padding: 70px 50px 70px 0; }
#content .flexible_content .image_text.inverse:last-child { margin-bottom: 0 !important; }

/*#content .flexible_content *:last-child { margin-bottom: 0 !important; }*/

/* Colleagues */
#content .colleagues .colleague { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--color-sand); display: flex; align-content: center; align-items: center; }
#content .colleagues .colleague .name { font-weight: 700; flex: 1; }
#content .colleagues .colleague .name small { width: 100%; font-size: 14px; font-weight: 400; line-height: 16px; display: block; }
#content .colleagues .colleague .phone { width: 180px; }
#content .colleagues .colleague .email { width: 250px; text-align: right; }

#content .colleagues .colleague.head { border-bottom-width: 3px; }
#content .colleagues .colleague.head div { font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 100%; }


/*
--------------
	FOOTER
--------------
*/
#footer { font-size: 18px; color: white; background: var(--color-brown); }
#footer a { color: white; }
#footer a:hover { text-decoration: underline; }
#footer .email a { text-decoration: underline; color: var(--color-yellow); }
#footer .email a:hover { color: white; }

/* Footer top */
#footer .footer_top { padding-top: 70px; padding-bottom: 70px; position: relative; }

#footer .footer_top a.email { width: 50px; height: 50px; right: 0; background: url(images/icon_email_yellow.svg) no-repeat center; background-size: auto 20px; border: 1px solid rgba(255 255 255 / 20%); position: absolute; border-radius: 50%; }
#footer .footer_top a.email:hover { background-color: white; border-color: white; }

#footer .footer_top h4 { margin-bottom: 20px; font-size: 25px; font-weight: 700; color: var(--color-yellow); line-height: 100%; }

#footer .footer_top ul { list-style: none; }
#footer .footer_top ul li a { color: white; }
#footer .footer_top ul li a:hover { text-decoration: underline; }

#footer .footer_top .footer_top_wrap { display: flex; }
#footer .footer_top .footer_top_wrap .wrap_left { width: 25%; }

/* Footer bottom */
#footer .footer_bottom .footer_bottom_wrap { margin-left: 25%; padding-top: 20px; padding-bottom: 50px; font-size: 15px; line-height: 20px; border-top: 1px solid rgba(255 255 255 / 20%); }
#footer .footer_bottom .footer_bottom_wrap .image_text_copyrights { opacity: 50%; }


/* 
-----------------
	SCROLL UP
-----------------
*/
#scrollUp { width: 50px; height: 50px; right: 20px; bottom: 20px; text-indent: -9999px; background: var(--color-yellow) url(images/icon_arrow_up_white.svg) no-repeat center; background-size: 20px auto; position: fixed; z-index: 99 !important; border-radius: 50%; }
#scrollUp:hover { background-color: var(--color-dark); }


/*
------------
	FORM
------------
*/
.form_row { width: 100%; margin-bottom: 10px; position: relative; }
.form_row.form_row_first { width: calc(50% - 10px); }
.form_row.form_row_last { width: calc(50% - 10px); }
.form_row.form_row_wide { width: 100%; }

.form_row p { margin-bottom: 0 !important; }
.form_row br { display: none !important; }
.form_row label { font-size: 16px; font-weight: 700; text-transform: uppercase; display: block; }

.form_row .wpcf7-list-item { margin: 0; position: relative; }
.form_row .wpcf7-list-item label { top: auto; padding-left: 35px; line-height: 20px; display: block; position: relative; }
.form_row .wpcf7-list-item input[type=checkbox] { left: 0; top: 1px; position: absolute; }

.form_row select, 
.form_row textarea, 
.form_row input[type=tel], 
.form_row input[type=text], 
.form_row input[type=email] { width: 100%; height: 50px; padding-left: 10px; font-size: 17px; background: white; border: 1px solid rgba(0 0 0 / 10%); outline: 3px solid transparent; }

.form_row select:focus, 
.form_row textarea:focus, 
.form_row input[type=tel]:focus, 
.form_row input[type=text]:focus, 
.form_row input[type=email]:focus { border-color: rgba(0 0 0 / 20%); outline-color: rgba(0 0 0 / 5%); }

.form_row input[type=text]:read-only { opacity: 50%; cursor: not-allowed; }

.form_row textarea { min-height: 150px; padding: 10px; resize: vertical; }

.wpcf7 .wpcf7-form { display: flex; flex-wrap: wrap; justify-content: space-between; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; text-transform: none; }


/*
-------------------
	RWD DESIGN
-------------------
*/
@media only screen and (max-width: 1280px) { 

	/* DISPLAY: None */
	.hide_in_1280 { display: none !important; }

	/* DEFAULT */
	.p_l_20 { padding-left: 20px; }
	.p_r_20 { padding-right: 20px; }

	/* HEADER: Header top */
	#header .header_top a.has_icon { margin-right: 0; padding-right: 0; }
	#header .header_top a.has_icon:after { display: none; }
	#header .header_top .header_top_wrap { justify-content: space-between; }

	/* HEADER: Header bottom */
	#header .header_bottom a.logo { width: auto; height: 100%; left: 20px; top: 0; background: transparent; border-radius: 0; }
	#header .header_bottom a.logo img { width: auto !important; height: 70px !important; }
	
	/* HEADER: Menu */
	#header ul.menu { right: 20px; }
	#header ul.menu li { margin-left: 20px; }
	
	/* HEADER: Fixed menu */
	body.fixed_menu #header .header_bottom a.logo { width: auto; height: 100%; left: 20px; top: 0; }
	
	/* SLIDER */
	#slider .slick-slide:before { padding-top: 45%; }
	#slider .slick-slide .title { font-size: 60px; } 
	
	/* BEFORE CONTENT */
	#before_content.no_thumbnail .inner { justify-content: start; }
	
	/* CONTENT: Contact */
	#content .contact_wrap > div { width: 100%; margin: 5px 0; flex-grow: inherit; flex-basis: auto; }
	#map, 
	#mapdiv { height: 400px; }
	
	/* FOOTER: Footer top */
	#footer .footer_top a.email { right: 20px; }
}

@media only screen and (max-width: 960px) { 

	/* DISPLAY: None */
	.hide_in_960 { display: none !important; }
	
	/* DISPLAY: Block */
	.show_in_960 { display: block !important; }
	
	/* HEADER */
	#header { width: 100%; left: 0; top: 0; border-bottom: 1px solid var(--color-sand); position: fixed; z-index: 100; }
	
	/* SLIDER */
	#slider .slick-slide:before { padding-top: 50%; }
	#slider .slick-slide .title { font-size: 50px; } 
	
	/* ABOUT US */
	#aboutus { padding: 50px 0; }
	#aboutus h2 { font-size: 40px; }
	
	/* COUNTER UP */
	#counterup .cover { padding: 50px 0; }	
	#counterup .counterup_title { font-size: 40px; }
	
	/* SERVICES */
	#services { padding: 50px 0; }
	#services .services_title { font-size: 40px; }

	/* GALLERY */
	#gallery .photos { padding: 0 10px; }
	
	/* BEFORE CONTENT */
	#before_content { height: 250px; }
	#before_content h1 { font-size: 40px; }
	
	/* CONTENT */
	#container { padding-top: 140px; }
	#content h1 { font-size: 50px; }
	
	/* CONTENT: Contact */
	#map, 
	#mapdiv { height: 300px; }

	/* CONTENT: Flexible content */
	#content .flexible_content  .paragraph { margin: 50px 0; }
	#content .flexible_content  .paragraph .title { font-size: 45px; }

	#content .flexible_content  .fullwidth_image { height: 550px; }

	#content .flexible_content  .usp { margin: 50px 0; }

	#content .flexible_content  .image_text { margin: 50px 0; }
	#content .flexible_content  .image_text .image_text_wrap .wrap_right { width: 50%; padding: 50px 0 50px 50px; }
	#content .flexible_content  .image_text.has_background { padding: 50px 0; }
	#content .flexible_content  .image_text.inverse .image_text_wrap .wrap_right { padding: 50px 50px 50px 0; }
	
	/* FOOTER: Footer top */
	#footer .footer_top { padding-top: 50px; padding-bottom: 50px; }
	#footer .footer_top .footer_top_wrap .wrap_left { width: 50%; }

	/* FOOTER: Footer bottom */
	#footer .footer_bottom .footer_bottom_wrap { margin-left: 0; }
}

@media only screen and (max-width: 768px) { 

	/* DISPLAY: None */
	.hide_in_768 { display: none !important; }
	
	/* DISPLAY: Block */
	.show_in_768 { display: block !important; }
	.show_in_768_inline { display: inline_block !important; }

	/* SLIDER */
	#slider .slick-slide:before { padding-top: 55%; }
	#slider .slick-slide .title { font-size: 40px; } 
	
	/* SLIDER: Dots */
	#slider ul.slick-dots { bottom: 20px; }
	
	/* ABOUT US */
	#aboutus h2 { font-size: 30px; }
	
	/* COUNTER UP */
	#counterup .counterup_title { font-size: 30px; }
	
	#counterup .counterup_wrap .item { width: 100%; margin-top: 20px; padding: 30px; border-top: none; }
	#counterup .counterup_wrap .item:nth-child(2) { margin-top: 20px; padding-top: 30px; }
	#counterup .counterup_wrap .item:after { left: calc(50% - 8px); right: auto; bottom: -8px; top: auto; }
	#counterup .counterup_wrap .item:nth-child(2n):after { display: block; }
	#counterup .counterup_wrap .item:last-child:after { display: none; }
	
	/* SERVICES */
	#services .services_title { font-size: 30px; }
	
	.services_wrap { margin-left: 0; margin-right: 0; }
	.services_wrap .item { width: 100%; margin: 20px 0 0; }
	.services_wrap .item:nth-child(2) { margin-top: 20px; }
	.services_wrap .item:before { padding-top: 50%; }
	.services_wrap .item .title_wrap h3 { font-size: 25px !important; }
	
	/* BEFORE CONTENT */
	#before_content { height: 200px; }
	#before_content h1 { font-size: 30px; }

	/* CONTENT */
	#content h1 { font-size: 40px; }
	#content h3 { font-size: 30px; }
	
	/* CONTENT: Gallery */
	#content ul.gallery li { width: calc(50% - 20px); }
	#content ul.gallery li:nth-child(3) { margin-top: 20px; }
	
	/* CONTENT: Flexible content */
	#content .flexible_content  .paragraph .title { font-size: 40px; }

	#content .flexible_content  .fullwidth_image { height: auto; }
	#content .flexible_content  .fullwidth_image .cover { background: rgba(41 45 53 / 80%); }
	#content .flexible_content  .fullwidth_image .cover .text { width: 100%; min-height: 300px; padding: 50px 0; }

	#content .flexible_content  .usp .usp_wrap .item { width: 33.3333333333%; padding: 20px; font-size: 15px; flex-grow: inherit; flex-basis: auto; }
	#content .flexible_content  .usp .usp_wrap .item img { height: 60px !important; }

	#content .flexible_content  .image_text .image_text_wrap .wrap_left { width: 100%; }
	#content .flexible_content  .image_text .image_text_wrap .wrap_left .image { height: auto; }
	#content .flexible_content  .image_text .image_text_wrap .wrap_left .image:before { padding-top: 50%; display: block; content: ''; }
	#content .flexible_content  .image_text .image_text_wrap .wrap_right { width: 100%; padding: 20px 0; }

	#content .flexible_content  .image_text.has_background { padding: 30px 0; }
	#content .flexible_content  .image_text.inverse .image_text_wrap .wrap_left { order: 1; }
	#content .flexible_content  .image_text.inverse .image_text_wrap .wrap_right { order: 2; padding: 20px 0; }
	
	/* CONTENT: Colleagues */
	#content .colleagues .colleague { margin-bottom: 0; padding: 20px; border-bottom: none; }
	#content .colleagues .colleague .name { width: 100%; margin-bottom: 10px; flex: auto; }
	#content .colleagues .colleague .phone { width: 100%; display: flex; }
	#content .colleagues .colleague .phone strong { margin-right: 5px; }
	#content .colleagues .colleague .email { width: 100%; text-align: left; display: flex; }
	#content .colleagues .colleague .email strong { margin-right: 5px; }
	#content .colleagues .colleague:nth-child(2n) { background: var(--color-sand); border-radius: 10px; }
	
	/* FORM */
	.form_row.form_row_first, 
	.form_row.form_row_last { width: 100%; }
}

@media only screen and (max-width: 640px) { 

	/* CONTENT: Flexible content */
	#content .flexible_content .paragraph .title { font-size: 35px; }
}

@media only screen and (max-width: 480px) { 

	/* DISPLAY: None */
	.hide_in_480 { display: none !important; }
	
	/* NAVIGATION */
	#rwd_menu .rwd_menu_wrap { width: calc(100% - 20px); } 
	
	/* NAVIGATION: RWD menu header */
	#rwd_menu .rwd_header img { left: 20px; }
	#rwd_menu .rwd_header .rwd_button { right: 20px; }

	/* NAVIGATION: Contacts */
	#rwd_menu .rwd_menu_section.contacts { padding: 0 20px; }

	/* NAVIGATION: Menu */
	#rwd_menu .rwd_menu_section.menu { padding: 30px 20px; }

	/* NAVIGATION: Secondary menu */
	#rwd_menu .rwd_menu_section.useful_info { padding: 0 20px 30px; }
	
	/* HEADER */
	#header { border-top: 5px solid var(--color-yellow); }
	
	/* SLIDER */
	#slider .slick-slide:before { padding-top: 60%; }
	#slider .slick-slide .title { font-size: 30px; } 

	/* CONTENT */
	#container { padding-top: 105px; }
	
	/* CONTENT: Flexible content */
	#content .flexible_content .usp .usp_wrap .item { width: 50%; font-size: 14px; }
	#content .flexible_content .usp .usp_wrap .item img { height: 50px !important; }
	
	/* FOOTER: Footer top */
	#footer .footer_top .footer_top_wrap .wrap_left { width: 100%; margin-top: 50px; }
	#footer .footer_top .footer_top_wrap .wrap_left.contact { margin-top: 0; }
	
	/* FORM */
	.wpcf7 .button { width: 100%; }
}
