/*
 Theme Name:   Crocal Child
 Description:  Child theme for capra.ooo
 Author:       alq
 Template:     crocal
 Version:      1.2
 
 */

/*

"!important" is used a lot to overwrite theme and plugin code. If an issue occurs, this might be the reason.

This doc contains custom code for
- minor fixes including featured section text alignment and posts title section fixes
- header contact button
- search modal and result page
- gallery and img text
- contact form 7
- premium addons for elementor fixes
- fix img alignment in company timeline
- footer content alignment
- cookie banner
- secondary menu custom color
- custom button
- arrow animation for parallax
- show more button for additional equipment sections

This theme also includes a custom 404 page and some JavaScript (for a fix for premium addons for elementor's team cards)

*/



/*h2 and h3 line height in responsive mode fix*/
h2{
	line-height: 1.2em !important;
}
h3{
    line-height: 1.2em !important;
}


/*title feature section vertical text alignment on pc - centering by accounting for header height*/
@media (min-width: 920px){
	.eut-page-title .eut-title-content-wrapper, #eut-feature-section .eut-title-content-wrapper {
		padding-top: 100px !important;
	}
}


/*category appearance in posts title section*/
#eut-post-title .eut-categories li a{
    border: none;
    background: none !important;
}
#eut-post-title .eut-categories li a:hover{
    transform: none;

}

/*contact btn in menu outline*/
#eut-theme-wrapper .eut-menu-type-button.eut-primary-2 > a .eut-item, #eut-theme-wrapper .eut-menu-type-button > .eut-item{
	background-color: transparent ;
	border: solid var(--e-global-color-accent); /*this root color is defined by elementor*/
	color: var(--e-global-color-accent);
}
#eut-theme-wrapper .eut-menu-type-button a span:hover{
	background-color: var(--e-global-color-accent) !important;
	color: #fafafa;
}

/*customising the search function modal box*/
#eut-modal-overlay{
    background-color: rgba(0, 0, 0, 0.8);
}
.eut-modal-item{
     background-color: #fafafa;
     padding: 15px;
}
#eut-search-modal-textfield{
    font-size: 24px !important;
}

/*custom search appearance - removing category filter on the search page*/
#eut-main-search-loop .eut-filter{
    display: none;
}

/*customising gallery appearance and img text*/
.gallery{
    display: flex;
    flex-wrap: wrap;
}
.gallery-item{
    align-self: flex-end;
    
}
.wp-caption-text{
    font-style: normal;
	text-align: center;
	font-size: 1em !important;
}
@media (max-width: 767px){
.wp-caption-text{
    font-size: 0.9em !important;
}
}

/* [new] changing size of carousel arrow btn*/
.carousel-arrow i{
	font-size: 2.5em !important;
}

/*contact form 7 - customising forms*/

.wpcf7-submit{
    color: #ffffff !important;
}

.wpcf7 input, .wpcf7 textarea, .wpcf7 select{ /*makes inputs appear the same*/
	background-color: #fff;
	border: 1px solid #112a57;
	width: 100%;
}
.wpcf7-form p, .wpcf7-form p label {
	width: 100%;
}
.wpcf7-form label{ /*font for the labels*/
	font-size: 16px !important;
	font-weight: 100;
}
.wpcf7-list-item{ /*font for check box text*/
	font-family: 'Avenir Book', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 100;
	position: relative;
	top: 10px;	
}

/*custom height and some fixes for img buttons*/
.premium-image-button {
    height: 200px;
	display: block; /*this makes the error less visible if premium addons breaks again, otherwise it does nothing*/
	display: flex;
	align-items: center;
	justify-content: center;
}
.premium-image-button-text-icon-wrapper{
    font-size: 30px;
	text-align: center;
}
/*modal*/
.premium-modal-box-modal-dialog{
    margin-top: 85px; /*position modal box to compensate for the header*/
}
.premium-modal-box-modal-header{
	padding: 15px;
}
.premium-modal-box-modal-header h3{
	text-align: center;
}
.premium-modal-box-modal-header button{
	border: 0px none;
}
/*posts element fix*/
.premium-blog-wrap{
	display: flex;
}
.premium-blog-content-wrapper{
	padding: 10px;
}
/*team member cards (plugin premium addons for elementor) fix height (js used to calculate height of first element, :root set to that height)*/
:root{
    --teamHeight: fit-content;
    --teamHeightWide: fit-content;
}
.premium-person-info{
    height: var(--teamHeight);
}
@media screen and (min-width: 1380px) {
.premium-person-info{
    height: var(--teamHeightWide);
}
}



/*timeline img alignment*/
.twae-wrapper .twae-media{
	justify-content: center !important;
}


/*footer col align to center content in columns without center-aligning the text*/
footer .eut-widget{
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}
footer .eut-widget p{
    margin-left: 10px;
}

/* cookie banner */

#cn-accept-cookie{
	border: 2px solid white !important;
	background-color: #e68030 !important;
	color: white;
}
#cn-more-info {
	color: #e68030;
}

/*secondary menu (benefits sub menu) marking of active page*/
#eut-content .widget.widget_nav_menu li.current-menu-item a{
	text-decoration: underline;
}

/*mega menu color coded industries underline*/
.scout-menu-link{
	border-bottom: 4px solid #4fa675 !important;
}
.carrier-menu-link{
	border-bottom: 4px solid #5197ed !important;
}
.urban-menu-link{
	border-bottom: 4px solid #e0a520 !important;
}


/*gallery image title custom color as seen on front page*/
.logistics .premium-gallery-img-name{
	color: #5197ED;
}
.maintenance .premium-gallery-img-name{
	color: #E0A520;
}
.inspection .premium-gallery-img-name{
	color: #4FA675;
}

/*parallax arrow attention animation*/

[title~="arrow"] {
	position: absolute; /*needs moving a bit to the left to center*/
	margin-left: -35px;
	animation-name: attention;
	animation-duration: 5s;
	animation-delay: 2s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
}

@keyframes attention {
	0%		{height: 70px; width: 70px; margin-top: 0px; margin-left: -35px;}
	12%		{height: 80px; width: 80px; margin-top: -5px; margin-left: -40px;}
	24%		{height: 70px; width: 70px; margin-top: 0px; margin-left: -35px;}
}


/*hide additional equipment function*/
#showMoreBtn{ /*give this id to the button*/
	cursor: pointer;
}

#HideAdditionalContent { /*give this id to the segment that needs toggling on and off*/
	display: none;
}