/*
 Theme Name:   Textmetrics
 Theme URI:    https://backup.textmetrics.com
 Description:  TM Divi child theme
 Author:       Textmetrics
 Author URI:   https://backup.textmetrics.com
 Template:     Divi
 Version:      2.0.0
*/

@font-face { 
	font-display: swap;
	font-family: 'Garnett';
	font-style: normal;
	font-weight: 500;
	src: url('/wp-content/themes/textmetrics/fonts/Garnett-Medium.woff') format('woff'),
		url('/wp-content/themes/textmetrics/fonts/Garnett-Medium.woff2') format('woff2'); 
}

/* inter-tight-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300;
  src: url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
       url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-300.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-tight-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 300;
  src: url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-300italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
       url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-300italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-tight-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
       url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-500.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-tight-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 500;
  src: url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-500italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
       url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-500italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-tight-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
       url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-600.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-tight-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 600;
  src: url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-600italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
       url('/wp-content/themes/textmetrics/fonts/inter-tight-v2-latin-600italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

.wpcf7 .et_pb_contact_field {
    padding-left: 0;
    margin-bottom: 10px;
    color:#fff;
}

.wpcf7 .et_contact_bottom_container-no-float {
    float: none;
    text-align: left;
}

.wpcf7  .et_contact_bottom_container-no-float input[type="submit"] {
    background-color: #1f7dc4;
    color: #ffffff;
    margin-left: 0;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

.wpcf7 div.wpcf7-validation-errors,
.wpcf7 div.wpcf7-acceptance-missing,
.wpcf7 div.wpcf7-mail-sent-ok,
.wpcf7 div.div.wpcf7-spam-blocked,
.wpcf7 div.wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
    border: none;
    font-size: 16px;
    padding: 10px 20px;
    text-align: center;
}

.wpcf7 div.wpcf7-validation-errors,
.wpcf7 div.wpcf7-acceptance-missing {
    background-color: #D22628;
}

.wpcf7 div.wpcf7-mail-sent-ok {
    background-color: #42ba6d;
}

.wpcf7 div.wpcf7-spam-blocked {
    background-color: #D99615;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    background-color: rgba(210, 38, 40, 0.3) !important;
}

.wpcf7 input.wpcf7-not-valid + .wpcf7-not-valid-tip,
.wpcf7 textarea.wpcf7-not-valid + .wpcf7-not-valid-tip {
    color: #D22628;
}

.wpcf7 .et_pb_contact_field {
color:#fff;
}

input.wpcf7-form-control.wpcf7-submit.et_pb_contact_submit.et_pb_button.et_pb_button_1 {
    background-color: #ff7809 !important;
}

.et_pb_contact p .wpcf7-form-control input[type="checkbox"] {
    display: inline-block !important;
}

.et_pb_contact p span {
    color: white;
}

.et_pb_contact p select {
    -webkit-appearance: none;
    background-color: #eee;
    width: 100%;
    border-width: 0;
    border-radius: 0;
    color: #999;
    font-size: 14px;
    padding: 16px;
}

.cf::after {
    content: "";
    clear: both;
    display: table;
}


/* Campaigns */
.campaigns-hero {
    margin-top: 78px;
}


/* Collapse Divi Mobile Menu Submenus */

.et_header_style_left #et-top-navigation .mobile_menu_bar {
	padding-bottom: 50px;
}

/*change hamburger icon when mobile menu is closed*/
#et_mobile_nav_menu .mobile_nav.closed .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.closed .mobile_menu_bar::before {
	content: ""!important;
    width: 32px;
    height: 32px;
    top: 7px;
    position: absolute;
    background: url(/wp-content/uploads/2023/05/menu.svg) no-repeat 0 0;
	left: -32px;
}

/*change hamburger icon to x when mobile menu is open*/
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: ""!important;
    width: 32px;
    height: 32px;
    top: 7px;
    position: absolute;
    background: url(/wp-content/uploads/2023/05/close.svg) no-repeat 0 0;
    left: -32px;
}


/*adjust the new toggle element which is added via jQuery*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 44px;
	height: 100%;
	padding: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}


/*some code to keep everyting positioned properly*/

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}


/*remove default background color from menu items that have children*/

.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}


/*hide the submenu by default, but keep wpml language switcher visible*/

ul.et_mobile_menu .menu-item-has-children:not(.wpml-ls-current-language) .sub-menu, #main-header ul.et_mobile_menu .menu-item-has-children:not(.wpml-ls-current-language) .sub-menu, .et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu, .et-db #main-header ul.et_mobile_menu .menu-item-has-children:not(.wpml-ls-current-language) .sub-menu {
/* 	display: none !important; */
/* 	visibility: hidden !important; */
}

/*extra mobile fix*/
#et_mobile_nav_menu .et_mobile_menu li.mega-menu2:not(.current-menu-item)>a {
    font-weight: 400 !important;
}
#et_mobile_nav_menu .et_mobile_menu li.mega-menu2>a {
    padding: 10px 0%;
}

/*show the submenu when toggled open*/

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}


/*adjust the toggle icon position and transparency*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}


/*submenu toggle icon when closed*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
	content: ""!important;
    width: 32px;
    height: 32px;
    top: 0px;
    position: absolute;
    background-image: url(/wp-content/uploads/2023/05/arrow.svg);
}


/*submenu toggle icon when open*/

ul.et_mobile_menu li.mega-menu.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.mega-menu.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: ""!important;
    width: 32px;
    height: 32px;
    top: 0px;
    position: absolute;
	background-image: url(/wp-content/uploads/2023/05/arrow.svg);
	transform: rotate(90deg);
}


/*add point on top of the menu submenu dropdown*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}


/*adjust the position of the hamburger menu*/

.mobile_menu_bar {
	position: relative;
	display: block;
	bottom: 10px;
	line-height: 0;
}


/*force the background color and add a rounded border*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
	background-color: #ffffff!important;
	border-radius: 10px;
}
/* -end Collapse Divi Mobile Menu Submenus */