/*
Theme Name: CARGOLIGHT
Theme URI: https://www.cargolight.com
Author: Anatolii Trakhanovskyi
Author URI: https://webfoe.com
Description: Custom theme for CARGOLIGHT airline business solutions
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cargolight
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body {
	margin: 0;
	padding: 0;
	font-family: 'Fira Sans Extra Condensed', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background: #f4f5ff;
	min-width: 320px;
}
a { color: #0590dd; text-decoration: none; }
a:hover { color: #162075; }
img { max-width: 100%; height: auto; }
.clear { clear: both; }
.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 15px; }
.full-width { width: 100%; }
.shadow { box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.inset_shadow { box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); border: 1px solid #c9ddf3; }
.theme_bg { background: #f4f5ff; }

/* Header */
#main_header { background: #fff; position: relative; z-index: 100; }
#main_header .container { position: relative; height: 80px; }
#logo { float: left; width: 280px; height: 52px; margin-top: 14px; }
#logo a {
	display: block;
	width: 100%;
	height: 100%;
	background: url('img/logo.png') no-repeat left center;
	background-size: contain;
	text-indent: -9999px;
}
header nav { float: right; }
#primary-menu, #secondary-menu { list-style: none; margin: 0; padding: 0; }
#primary-menu li, #secondary-menu li { display: inline-block; position: relative; }
#primary-menu > li > a, #secondary-menu > li > a {
	display: block;
	padding: 0 12px;
	line-height: 80px;
	color: #162075;
	font-weight: 500;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
#primary-menu > li:hover > a, #secondary-menu > li:hover > a,
#primary-menu > li.current-menu-item > a, #secondary-menu > li.current-menu-item > a {
	color: #0590dd;
}
.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #f4f5ff;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 200;
}
#primary-menu li:hover > .sub-menu, #secondary-menu li:hover > .sub-menu { display: block; }
.sub-menu li { display: block; }
.sub-menu a {
	display: block;
	padding: 10px 15px;
	color: #162075;
	font-size: 13px;
	line-height: 1.4;
	border-bottom: 1px solid #c9ddf3;
}
.sub-menu a:hover { background: #162075; color: #fff; }
#lang {
	float: right;
	width: 30px;
	height: 20px;
	margin: 30px 0 0 15px;
	cursor: pointer;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
#lang.english { background-image: url('img/svg/english.svg'); }
#lang.ukrainian { background-image: url('img/svg/ukrainian.svg'); }

/* Hero */
.background_wrap {
	width: 100%;
	display: block;
	max-height: 500px;
	object-fit: cover;
	object-position: center bottom;
}
#headline_wrap {
	position: relative;
	margin-top: -180px;
	padding-bottom: 40px;
	text-align: center;
}
#headline {
	display: inline-block;
	font-size: 4em;
	font-weight: 200;
	color: #162075;
	text-transform: uppercase;
	letter-spacing: 2px;
	position: relative;
	top: 0;
	transition: top 1s ease;
}

/* Homepage blocks */
#blocks { padding: 40px 0 60px; }
.left_wrap, .right_wrap { float: left; width: 50%; padding: 0 15px; }
.home_block {
	background: #fff;
	padding: 30px;
	border-radius: 4px;
	position: relative;
	min-height: 200px;
}
.home_block h2 {
	color: #162075;
	font-size: 1.8em;
	font-weight: 400;
	margin: 0 0 20px;
	text-transform: uppercase;
}
.home_block .image_overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url('img/news_bg.jpg') center/cover;
	opacity: 0.15;
	border-radius: 4px;
}
#tracking_form { position: relative; }
#tracking_form input, #tracking_form button { float: left; height: 44px; font-family: inherit; font-size: 16px; }
#tracking_prefix { width: 18%; padding: 0 10px; border-radius: 4px; }
#tracking_number { width: 42%; margin: 0 3%; padding: 0 10px; border-radius: 4px; }
#track { width: 28%; background: #162075; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; text-transform: uppercase; }
#track:hover { background: #0590dd; }
#hyphen { display: none; }
.news_block h3 { color: #0590dd; margin: 0 0 10px; }
.recent_news p { color: #555; font-size: 14px; margin: 0; }

/* Tracking popup */
#frame_wrap {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6); z-index: 9999;
	visibility: hidden; opacity: 0; transition: 0.3s;
	display: flex; align-items: center; justify-content: center;
}
#frame_container { width: 90%; max-width: 1000px; height: 80vh; background: #fff; position: relative; border-radius: 4px; }
#frame_container iframe { width: 100%; height: 100%; border: none; }
#frame_loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
#closeFrame {
	position: absolute; top: -15px; right: -15px;
	width: 36px; height: 36px; border: none; border-radius: 50%;
	background: #162075; cursor: pointer; padding: 0;
}
#closeFrame span { display: block; width: 20px; height: 2px; background: #fff; margin: 9px auto; }
#closeFrame span:first-child { transform: rotate(45deg) translate(3px, 3px); }
#closeFrame span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* Default pages */
.default_page { padding: 40px 0; }
.default_page .minus_top, .minus_top { position: relative; top: -60px; }
.padding40 { padding: 40px; }
.default_page .shadow { background: #fff; border-radius: 4px; }
.default_page h1, .default_page h2 { color: #162075; }
.button, input[type="submit"].button {
	background: #162075; color: #fff; border: none; padding: 12px 30px;
	border-radius: 4px; cursor: pointer; font-family: inherit;
	font-size: 16px; text-transform: uppercase;
}
.button:hover, input[type="submit"].button:hover { background: #0590dd; }

/* Services */
.service { background: #fff; padding: 30px; margin-bottom: 30px; border-radius: 4px; position: relative; }
.service h3 { color: #162075; margin-top: 0; }
.service .image_overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.08; border-radius: 4px; }
.service:nth-child(1) .image_overlay { background: url('img/sales.jpg') center/cover; }
.service:nth-child(2) .image_overlay { background: url('img/market.jpg') center/cover; }

/* Company pages */
.the_company { padding: 40px 0 20px; text-align: center; }
#company_logo { margin: 0; position: relative; right: 0; transition: right 1s ease; }
#company_logo img { max-width: 400px; }
.company_text { padding: 20px 0; }
.company_text h2 { color: #162075; }
.cargo_products { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.product { background: #162075; color: #fff; padding: 20px; border-radius: 4px; text-align: center; width: 180px; }
.restrictions_wrap { margin: 30px 0; overflow: hidden; }
.restrictions_wrap table { float: left; width: 50%; border-collapse: collapse; }
.restrictions_wrap td { padding: 8px 12px; border-bottom: 1px solid #c9ddf3; }
.restrictions_wrap .t_subheader { font-weight: 600; color: #162075; }
.airplane { float: right; width: 45%; max-height: 200px; object-fit: contain; opacity: 0.7; }

/* Contact */
#contact { padding: 60px 0; }
#contact h1 { color: #162075; font-size: 2.5em; font-weight: 300; margin-bottom: 40px; }
#contact_wrap .left_wrap, #contact_wrap .right_wrap { width: 50%; }
#form_wrap input, #form_wrap textarea {
	width: 100%; padding: 12px 15px; margin-bottom: 15px;
	font-family: inherit; font-size: 16px; border-radius: 4px;
	border: 1px solid #c9ddf3;
}
#form_wrap textarea { height: 120px; resize: vertical; }
#contact_wrap table { width: 100%; }
#contact_wrap th { text-align: left; color: #162075; padding: 8px 15px 8px 0; vertical-align: top; white-space: nowrap; }
#contact_wrap td { padding: 8px 0; }
#paperplane {
	position: absolute; right: 0; bottom: 0;
	width: 200px; transform: translate(50px, 30px);
	filter: blur(3px); transition: 1s ease;
}
#contact_wrap .right_wrap { position: relative; }
#map_wrap iframe { width: 100%; height: 450px; display: block; border: 0; }

/* Footer */
footer { background: #fff; }
#partners { list-style: none; margin: 0; padding: 30px 0; text-align: center; overflow: hidden; }
#partners li {
	display: inline-block; width: 18%; height: 80px; margin: 0 1%;
	background-size: contain; background-repeat: no-repeat; background-position: center;
}
#partners li:nth-child(1) a { display: block; height: 100%; background: url('img/partners/1.svg') center/contain no-repeat; }
#partners li:nth-child(2) a { display: block; height: 100%; background: url('img/partners/lot_cargo.png') center/contain no-repeat; }
#partners li:nth-child(3) a { display: block; height: 100%; background: url('img/partners/adria.svg') center/contain no-repeat; }
#partners li:nth-child(4) a { display: block; height: 100%; background: url('img/partners/3.svg') center/contain no-repeat; }
#partners li:nth-child(5) a { display: block; height: 100%; background: url('img/partners/4.svg') center/contain no-repeat; }
#footer_last { background: #162075; color: #fff; padding: 20px 0; }
#footer_contacts { list-style: none; margin: 0; padding: 0; float: left; }
#footer_contacts li { display: inline-block; margin-right: 20px; }
#footer_contacts a { color: #fff; }
#footer_copyright { float: right; color: rgba(255,255,255,0.7); font-size: 14px; }

/* Content block wrapper */
.content_block { min-height: 200px; }

/* Screen reader */
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }


/*
#wpadminbar {
	display: none;
}
*/
html {
	margin-top: 0!important;
}
#hyphen {
	display: none;
}
.minus_top {
	margin-bottom: 0;
}
.default_page .button {
	top: 0;
}
.download {
	margin: -20px auto 50px;
}
#burger-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 28px;
	width: 32px;
	height: 20px;
	z-index: 2;
	cursor: pointer;
}
#burger-menu span {
	width: 100%;
	height: 4px;
	background: #162075;
	position: relative;
	display: block;
	margin-bottom: 4px;
	transition: 0.3s;
}
#burger-menu span:last-child {
	margin: 0;
}
#burger-menu:hover span {
		background: #0590dd;
}
#burger-menu.triggered span:first-child {
	top: 8px;
	transform: rotate(-225deg);
}

#burger-menu.triggered span:nth-child(2) {
	opacity: 0;
}

#burger-menu.triggered span:nth-child(3) {
	bottom: 8px;
	transform: rotate(45deg);
}
.sub-menu {
	box-shadow: 0 4px 3px 0 #00000030;
}

@media (max-width: 1300px) {
	#headline {
		transition: none;
	}
}

@media (max-width: 1279px) {
	.container {
		width: 95%;
	}
	#lang {
		margin-left: 10px;
	}
}

@media (max-width: 1050px) {
	#main_header {
		position: relative;
	}
	#burger-menu {
		display: block;
	} 
	#lang {
		margin-right: 55px;
	}
	header {
		border-bottom: 1px solid #c9ddf3;
	}
	header nav {
		float: none;
    position: absolute;
		width: 100vw;
    left: -2.5vw;
    top: 80px;
	}
	#primary-menu,
	#secondary-menu {
		display: none;
    box-shadow: 0 4px 3px 0 #00000030;
    background-color: #f4f5ff;
		transition: 0.3s;
		opacity: 0;
	}
	#primary-menu li,
	#secondary-menu li {
		display: block;
    float: none;
    padding: 0;
    margin: 0;
    height: 40px;
    line-height: 40px;
    text-align: left;
		padding-left: 2.5vw;
	}
	#primary-menu>li,
	#secondary-menu>li {
		border-top: 1px solid #ffffff;
    border-bottom: 1px solid #c9ddf3;
	}
	#primary-menu>li:hover,
	#secondary-menu>li:hover {
		border-top: 1px solid #2736af;
		border-bottom: 1px solid #212c86;
	}
	.sub-menu {
		padding: 0;
		z-index: 1;
		margin-top: 1px;
	}
	.sub-menu li {
		border-top: 1px solid #2736af;
		border-bottom: 1px solid #212c86;
		padding-left: 10px;
	}
	
	.sub-menu a {
		padding: 0;
		padding-left: 20px;
	}
	#contact,
	.the_company {
		margin-top: 0;
	}
	#company_logo {
		transition: none;
	}
}

@media (max-width: 950px) {
	#headline_wrap {
		bottom: auto;
		top: 25%;
		width: 100%;
	}
	#headline br {
		display: block;
	}
	#headline {
		font-size: 9vw;
		font-weight: 300;
	}
	#blocks {
		padding-bottom: 50px;
	}
	.left_wrap, .right_wrap {
		float: none;
		margin: 0 auto;
		width: 70%;
	}
	.left_wrap {
		margin-bottom: 80px;
	}
	.left_wrap .home_block {
		margin-top: -40px;
	}
	.minus_top {
		top: -40px;
	}
	.download {
		margin-top: 10px;
	}
	#tracking_form {
		position: relative;
		display: block;
	}
	.home_block {
		height: auto;
		min-height: 180px;
	}
	#tracking_prefix {
		width: 20%;
	}
	#tracking_number {
		width: 40%;
		margin: 0 5%;
	}
	#track {
		width: 30%;
	}
	.minus_top .left_wrap {
		margin-bottom: 40px;
	}
	.left_wrap .service:first-child,
	.right_wrap .service:first-child {
		margin-bottom: 40px;
	}
	#partners li {
		margin: 10px 0;
		height: 100px;
	}
	#contact_wrap .left_wrap {
		margin-bottom: 60px;
	}
	#contact h1 {
		text-align: center;
	}
	#contact_wrap table {
		margin-left: 0;
	}
	#contact_wrap th {
		padding-left: 0;
	}
	#paperplane {
		display: none;
	}
	.company_text .left_wrap {
		margin-bottom: 0;
	}
}

@media (max-width: 850px) {
	.company_text {
		margin-bottom: 10px;
	}
}
@media (max-width: 770px) {
	#footer_contacts,
	#footer_copyright  {
		float: none;
		text-align: center;
	}
	#company_logo>img {
		max-width: 320px;
	}
}

	@media (max-width: 680px) {
		#blocks {
			padding-bottom: 20px;
		}
	.left_wrap, .right_wrap {
		width: 100%;
	}
	.left_wrap .home_block {
		margin-top: 20px;
	}
	.left_wrap {
		margin-bottom: 90px;
	}
	.minus_top {
			top: 20px;
	}
	.download {
		margin-top: 70px;		
	}
		.left_wrap .service:nth-child(1),
	.minus_top .left_wrap,
	.right_wrap .service:nth-child(1) {
		margin-bottom: 20px;
	}
	.right_wrap .service:nth-child(2) {
		margin-bottom: 40px;
	}
	.service {
		height: auto;
		padding: 20px;
	}
		.news_wrap {
			margin-bottom: 20px;
		}
		.news_wrap:last-child {
			margin-bottom: 50px;
		}
		.padding40 {
			padding: 20px;
		}
}

@media (max-width: 600px) {
	#logo {
		width: 200px;
		height: 37px;
		margin-top: 21px;
	}
	#partners li {
		border-width: 7px;
	}
	#advantages .wrap_33 {
		float: none;
		margin: 30px auto;
	}
	#advantages .wrap_33:last-child {
		margin-bottom: -20px;
	}
}
@media (max-width: 450px) {
		#tracking_prefix {
		width: 30%;
	}
	#tracking_number {
		width: 65%;
		margin: 0 0 0 5%;
	}
	#track {
		float: none;
		margin-top: 10px;
		width: 100%;
	}
	#partners li {
		height: 60px;
	}
	#company_logo>img {
    max-width: 280px;
	}
}

@media (max-width: 1279px) and (min-width: 600px) {
	.cargo_products {
		flex-wrap: wrap;
		width: 570px;
		margin: 0 auto;
		height: 200px;
	}
	.product {
		width: 170px;
		margin: 5px!important;
		height: 90px;
	}
}

@media (max-width: 599px) and (min-width: 320px) {
	.cargo_products {
		flex-wrap: wrap;
    width: 300px;
    margin: 0 auto;
    height: 300px;
	}
	.product {
		width: 140px;
    margin: 5px!important;
    height: 90px;
	}
}

@media (max-width: 1170px) and (min-width: 901px) {
	.airplane {
		max-width: 400px;
    max-height: 130px;
    margin: 0 auto;
    display: block;
	}
}
@media (max-width: 900px) and (min-width: 320px) {
	.restrictions_wrap h3 {
		text-align: center;
    margin: 20px 0;
	}
	.restrictions_wrap table {
		width: 600px;
    float: none;
    margin: 0 auto;
	}
	.airplane {
		max-width: 600px;
    max-height: 180px;
    display: block;
    margin: 0 auto;
    opacity: 1;
    filter: none;
	}
}
@media (max-width: 680px) and (min-width: 320px){
	.restrictions_wrap {
		padding: 10px 0;
	}
	.restrictions_wrap table {
		width: 300px;
		padding: 0;
	} 
	.restrictions_wrap td:first-child {
		width: 40%;
	}
	.restrictions_wrap td:nth-child(2) {
		width: 60%;
	}
	.airplane {
		max-width: 300px;
    max-height: 92px;
	}
}