@media (min-width: 1141px) {
	#nav {
		display: block !important;
	}

	#top-bar p {
		line-height: 40px;
	}
}

@media (max-width: 1140px) {	
	.col-12 {
		min-width: calc(100% - 42px);
	}

	html {
		  font-size: calc( 8px + (10 - 8) * (100vw - 320px) / (1140 - 320) );
	}

	h1 {
		  font-size: calc( 32px + (65 - 32) * (100vw - 320px) / (1140 - 320) );
		  line-height: 0.9;
	}

	.krd-slide h1 br {
		display: none;
	}

	.krd-slide p {
		font-size: calc( 14px + (24 - 14) * (100vw - 320px) / (1140 - 320) ) !important;
		line-height: 1;
	}


	/*
	** HEADER
	*/
	body > header > .container > * {
		width: calc(100% - 42px);
	}

	#logo {
		display: flex;
		justify-content: space-between;
	}



	/* navigation */
	nav,
	#nav-2 {
		display: none;
		float: none;
		width: 100%;
	}
	
	#nav li,
	#nav-2 li {
		display: block;
		float: none;
		margin-right: 0 !important;
		text-align: right;
	}

	#nav li a,
	#nav-2 li a {
		display: inline-block !important;
	}

	#mobile-nav {
		cursor: pointer;
		display: block;
		float: right;
		height: 26px;
		margin-top: 18px;
		padding-top: 11px;
		width: 30px;
	}
	
	.hamburger-menu {
		float: left;
		position: relative;
	}
	
	.hamburger-menu,
	.hamburger-menu:before,
	.hamburger-menu:after {
		background: #0b4c45;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		-ms-border-radius: 5px;
		-o-border-radius: 5px;
		border-radius: 5px;
		display: block;
		height: 5px;
		width: 30px;
	}

	#mobile-nav:hover .hamburger-menu,
	#mobile-nav:hover .hamburger-menu:before,
	#mobile-nav:hover .hamburger-menu:after {
		background: #000;
	}
	
	.hamburger-menu:before,
	.hamburger-menu:after {
		content:"";
		position: absolute;
	}
	
	.hamburger-menu:before {
		top: 10px;
	}
	
	.hamburger-menu:after {
		bottom: 10px;
	}

	/* home */
	#counter-section p {
		font-size: 14px;
	}

  #counter-section .counter-field {
  	font-size: 60px;
  	margin-bottom: 20px;
  }


  /* gutenberg */
  .subnav, .is-style-subnav {
    margin-bottom: 30px;
    padding-left: 20px;
  }
  
  .subnav a,
  .is-style-subnav a {
		  font-size: calc( 10px + (12 - 10) * (100vw - 880px) / (1140 - 880) );
		  margin-right: 15px !important;
	}

	body > footer .container {
		flex-wrap: wrap !important;
	}

	body > footer .container > div {
		margin-bottom: 25px;
		text-align: center;
		width: calc(100% - 42px);
	}

	#copyright li {
		display: block;
		margin: 0 0 25px !important;
	}
}


@media (max-width: 880px) { 
   /* home */
   #counter-section {
   	text-align: center;
   }

   #counter-section .wp-block-columns {
   		flex-wrap: wrap;
   }

   #counter-section .wp-block-column {
    	flex-basis: 100% !important;
    	margin: 0;
   }

   #counter-section .wp-block-spacer {
   		height: 50px !important;
   }

   /* footer sections */
   #news-section {
    padding: 50px 0 0;
	}

   #news-section .container > * {
   		margin-bottom: 25px;
   		width: 100%;
   }

   #callback-section form div {
    margin-right: 0 !important	;	
    width: 100%;
	}

	#callback-section .col-8 {
    padding: 11px 25px 0;
		}

	/* gutenberg */
  .subnav, .is-style-subnav {
    padding: 20px 40px 10px;
  }

  .subnav .wp-block-button,
  .is-style-subnav .wp-block-button {
		 display: block;
		 margin-bottom: 10px !important;
	}

	.subnav a,
  .is-style-subnav a {
  	font-size: 12px;
  }

  .short-content {
  	flex-wrap: wrap;
  }

  .short-content .wp-block-column {
   		flex-basis: 100% !important;
   }
}


@media (max-width: 780px) { 
	.col-12, .col-9, .col-8, .col-6, .col-4, .col-3, .col-2,
	body > footer .container > div {
		width: calc(100% - 42px);
	}	

	body > footer .container {
		flex-wrap: wrap;
		text-align: center;	
	}

	body > footer .container > div {
		margin-bottom: 25px;	
	}	

	/* header */
	#tagline {
		width: calc(300% / 4 - 42px);
	}

	#top-bar-links {
		width: calc(100% / 4 - 42px);
	}

	#phone-number a {
			color: #000;
		height: 28px;
		overflow: hidden;
		padding-top: 5px;	
		width: 15px;
	}

	#phone-number a:before {
		margin: 0 7px 0 0;
	}

	body > header nav li {
		font-size: 16px;
		line-height: 1.8;
	}

		#nav-2 li {
		font-size: 14px;
		line-height: 1.8;
	}


	/* slider */
	.krd-slide .wp-block-button a {
		font-size: 11px;
    line-height: 39px;
	}

	/* subnav */
	.is-style-subnav .wp-block-column {
    flex-basis: 100% !important;
    margin: 0;
    text-align-last: left;
   }

   .is-style-subnav .is-style-button-arrow {
   		float: left;
   		margin: 0 !important;
   }

   #content {
   	padding-bottom: 100px;
   }

   /* footer sections */
   #news-section .col-md-4 {
   		margin-bottom: 25px;
   		text-align: center;
   		width: 100% ;
   }

   #news-section figure {
   	max-height: 1000px;
   }

   #news-section figure img {
    object-fit: fill;
   }


   /* gutenberg style */
   .is-style-group-3 {
   		margin-bottom: 50px;
   }

   .is-style-grayscale {
   	text-align: center;
   }

   .is-style-equal-height {
   	margin-bottom: 0;
   }

   .is-style-equal-height .wp-block-column {
   		flex-basis: 100% !important;
   		margin: 0 0 25px !important;
   }


   /* contact page */
   #contact-page {
   		display: block;
   }

   #contact-page input,
   #contact-page textarea {
   	margin-bottom: 10px;
   }
}


@media (max-width: 600px) { 
	/* header */

	#tagline,
	#top-bar-links {
		width: calc(100% - 42px);
	}
	#top-bar-links, #top-bar-links ul {
    justify-content: flex-start;
  }

	#top-bar #tagline {
		line-height: 1.2;	
		padding: 8px 0 0;	
	}

	.is-style-subnav {
		padding: 10px 0 5px;
	}

	.is-style-subnav p {
		font-size: 14px !important;
		line-height: 1.2;
	}

	/* footer sections */
	#contact-section > div > div:last-child {
		flex-wrap: wrap;
		padding: 0;	
		width: 100%;	
	}

	#contact-section > div > div:last-child > div {
		margin-right: 0 !important	;
		width: calc(100% - 42px);		
	}

	.awards .wp-block-column {
    display: flex;
     justify-content: space-evenly;
	}
}

