html {
  scroll-behavior: smooth;
}
body {
	background-color: #fff;
	color: #444;
	font-family: Tahoma, sans-serif;
	font-size:17px;
	padding: 0;
	margin: 0;
	line-height:1.3em;
	height: 100%; /* height and width needed for google map */
	width: 100%;
}
/*************************************************menu **************************/
.hamburger {
	height: 40px;
	width: 40px;
	transition: all 0.5s ease-out;
}
.hamburger:hover {
	/* filter: brightness(2); */
}
.topnav {
  overflow: hidden;
  background-color: #31516d;
  position: relative;
  width: 100%;
  min-height: 60px;
  display: none;
  z-index: 20;
}

#myLinks {
	position: absolute;
	top: -300px;
	left: 0px;
	transition: top 0.8s;
	transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
	/* border-top: 1px solid #d6e6fc; */
	z-index: 10;
	background-color: #31516d;
	color: #fff;
	width: 100%;
}


#myLinks a {
  padding: 20px;
  display: block;
  color: #fff;
  text-decoration: none;
  z-index: 5;
}

.topnav a.nav_icon {
  background-color: #31516d;
  display: block;
  position: absolute;
  right: 10px;
  top: 10px;
}

#myLinks a:hover {
	background-color: #eeb850;
	color: #000;
}

.active {
  background-color: #31516d;
  color: white;
}

/* old menu */
.menu {
	display: flex;
    justify-content: flex-start;
    flex-direction: row;
	background-color: #31516d;
	width: 100%;
}
.first_menu_item {
	margin-left: 5%;
}
.menu a {
	padding: 20px 2%;
    transition-duration: 0.4s;
    text-decoration: none;
    color: #fff;
	animation: 1s ease-out 0.2s 1 menu_slide_down;
	animation-fill-mode: forwards;
	transform: translateY(-50px); 
}
.menu_slide_down {
	transform: translateY(-300px);
    transition: all 0.7s ease-out;
    transition-delay: 0.4s;
}
@keyframes menu_slide_down {
  0% {
    transform: translateY(-60px);
	opacity: 0;
  }
  100% {
    transform: translateY(0);
	opacity: 1;
  }
}
.menu a:hover {
	background-color: #eeb850;
	color: #000;
}
.menu_logo {
	position: absolute; /*fixed*/
	top: 12px;
	right: 60px;
	height: 40px;
}
@media only screen and (max-width: 500px) {
	.topnav {
		display: block;
	}
	.menu {
		display: none;
	}
	.menu_logo {
		left: 2%;
	}
}

/************************** title ***************************************************/	
.title {
	display: flex;
    align-items: center;
    justify-content: center;
	background-color: #333;
	width: 100%;
	height: 700px;
	position: relative;
	background-image: url('images/hero.webp');
	background-repeat: no-repeat;
	background-position: center;
    background-size: cover;
}
video {
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

.title_content_wrapper {
	max-width: 40%;
	align-items: center;
	color: #fff;
	text-shadow: 2px 2px #2f5480, -2px -2px 16px #486a91;
	animation: 1s ease-out 0.2s 1 title_fade_in;
	animation-fill-mode: forwards;
	opacity: 0;
	margin: 0 0 0 -20%;
	position: absolute;
	z-index: 1; 
}

@keyframes title_fade_in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.section_heading {
	margin: 0;
	padding: 50px 0 30px 0;
}

/* javascript at bottom of index */
.section_heading_1, .section_heading_2, .section_heading_3, .section_heading_4 {
	opacity: 0;
    transition: all 1s ease-out;
    transition-delay: 0.4s;
}
.section_heading_animation {
    opacity: 1;
    transform: translateX(0);
}


/***************************************** buttons ********************************/
.button {
	border-radius: 12px;
	color: white;
	padding: 20px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition-duration: 0.2s;
	border: none;
}

.button1 {
	background-color: #eeb850; 
	margin: 10px 0 0 0;
	text-shadow: none;
	border: none;
	color: #000;
}
.button1:hover {
	transform: scale(1.1);
	box-shadow: 0 0 15px #ffee10;
}
.button3 {
	background-color: #2d4971; 
	margin: 18px 0 0 0;
}
.button3:hover {
	transform: scale(1.1);
}
/********************************************* end buttons **********************/
/********************************************* containers *************************/
.content_container {
	padding: 0 10% 4% 10%;
}
.flex_container {
	display: flex;
	justify-content: center; /*space-around;*/
	min-width: 28%;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	align-content: center;
	padding: 0 4%;
	/*position: relative; /* to center child vertically */
}
.flex_container_column {
	display: flex;
	justify-content: center;
	flex-direction: column;
	flex-wrap: nowrap;
	/* min-width: 28%; */
}

.flex_item {
	flex-grow: 1;
	flex-basis: 0;
	flex-shrink: 1;
	text-align: left;
	padding: 0 3% 3% 3%;
	margin: 0 1%;
}

.flex_item:last-child {
  border-right: none;
}
.flex_item_two_thirds {
	min-width: 66%;
	text-align: center;
	padding: 3%;
}
.container_with_background_image {
	background-color: #2d4971;
	color: #fff;
	height: 460px;
	width: 100%;
	background-image: url('images/body_background_06.jpg');
	background-position: right; 
	background-repeat: no-repeat; 
	position: relative; /* for child elements */
}
.container_with_fixed_background_image {
	background-attachment: fixed;
	background-color: #2d4971;
	color: #fff;
	margin: 60px 0 0 0;
	background-image: url('images/body_background_07.jpg');
	background-position: center center; 
	background-repeat: no-repeat; 
	background-size: cover;
	position: relative; /* for child elements */
}
.grid_container {
	display: grid;
	grid-template-columns: 30fr 30fr 30fr;
	grid-gap: 20px; /* % causes overlapping */
	margin: 0 20px 3% 20px;
}
.step_container {
	background-color: #f6f6f6;
	border-top-left-radius: 25px;
	border-bottom-right-radius: 25px;
}
.step_header {
	background-color: #d6e6fc;
	padding: 0px 0 40px 20px;
	border-top-left-radius: 25px;
}
.step_header_text {
	color: #666;
	font-size: 2em;
}
.step_header_number {
	color: #fff;
	font-size: 5em;
	font-weight: bold;
	text-shadow: 2px 2px #2f5480
}
.step_number_icon {
	opacity: 0.5;
	height: 90px;
	width: 90px;
	position: relative;
	top: 26px;
}
.step1, .step2, .step3 {
	opacity: 0;
}
.step_text {
	border-bottom-right-radius: 25px;
	padding: 30px 20px 10px 20px;
}
.step1 {
	/* background-image: url('images/step1.png'); */
	transform: translateX(-10px);
	transition: all 1s ease-out;
	transition-delay: 1ms;
}
.step2{
	/* background-image: url('images/step2.png'); */
	transform: translateX(-10px);
	transition: all 1s ease-out;
	transition-delay: 300ms;
}
.step3 {
	/* background-image: url('images/step3.png'); */
	transform: translateX(-10px);
	transition: all 1s ease-out;
	transition-delay: 600ms;
}
.step1_animation, .step2_animation, .step3_animation {
	opacity: 1;
    transform: translateX(0);
}

.quotes {
	padding: 70px 2%;
	margin: 0 auto; 
	max-width: 780px;
    opacity: 0.8;
	font-style: italic;
	background: url('images/quote.png') 30px 30px no-repeat;
}
li.call, li.form, li.visit {
	position: relative;
	padding-left: 45px;
	margin-bottom: 10px;
	list-style: none;
}

li.call::before, li.form::before, li.visit::before {
	content: '' !important;
	display: inline-block;
	height: 30px;
	width: 30px;
	background-size: cover;
	left: 0;
	position: absolute;
	opacity: 0.6;
}

li.call::before {
	background-image: url('images/icons/mobile-phone.png'); 
}
li.form::before {
	background-image: url('images/icons/form.png'); 
}
li.visit::before {
	background-image: url('images/icons/map-marker.png'); 
}
.container_flex_vertical_center {
	display: flex;
	padding: 2% 1% 1% 1%;
	opacity: 0;
	background-color: #4774b3;
	position: absolute;
	top: 0%;
	transform: translateY(50%);
	transition: all 1s ease-out;
    transition-delay: 5ms;
}
.container_flex_vertical_center_animation {
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.85;
}

.article {
	max-width: 650px;
	margin: 3% auto;
	padding: 0 4%;
}

.article_img {
	width: 100%;
	margin: 10px 0 0 0;
}
.caption {
	font-size: 0.8em;
	padding: 0;
	margin: 0 0 40px 0;
	color: #666;
	line-height: 1.2em;
}

table {
	margin: 0 0 20px 0;
}
td {
	vertical-align: top;
}
.resume {
	padding: 0 0 0 20px;
    margin: 30px 0 40px 0;
    border-left: 2px solid #d6e6fc;
    position: relative;
}
.resume::before {
	content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50px;
    left: -11px;
    top: 0;
    background: #fff;
    border: 2px solid #d6e6fc;
}
.resume ul {
	/*padding-left: 20px;*/
}
.resume li {
	border: none;
	padding: 0 0 10px 10px;
}
.profile_img {
	width: 98%;
	max-width: 350px;
	margin: 0 auto 30px auto;
	border-radius: 25px;
}
.seal_image {
	display: inline;
	margin: 20px 20px 1% 1%;
}

/******************************************** content *****************************/

.blue {
	background-color: #f3f5fa;
}
.blue_box {
	background-color: #d6e6fc;
	border-radius: 200px;
	transition: all 1s ease-out;
    transition-delay: 10ms;
	opacity: 0;
	padding: 3% 0 3% 0;
	margin: 1%;
}
.blue_box_animation {
	opacity: 1;
	border-radius: 25px;
}

/******************************** alignments ************************************/
.center {
	text-align: center;
}

.right {
	float: right;
}

.left {
	float: left;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

li {
	padding: 1em 0 15px 30px; 
}
.why li {
	border-left: 3px solid #d6e6fc;
	padding: 5px 0 5px 10px;
	margin: 20px 0 20px 0;
	/* font-weight: 700; */
}

.icon {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}
.icon_contact {
	display:block;
	width: 30px;
    height: 30px;
	opacity: 0.6;
	padding: 0;
	margin: 0 20px 0 0;
	vertical-align: top;
}
.flex_container_contact{
	display: flex;
	width: 90%;
	margin: 60px auto 0 auto;
}
.flex_container_contact_column {
	display: flex;
	flex-direction: column ;
}
.flex_container_map {
	min-width: 60%;
	flex-grow: 4;
}
.contact_item_container {
	padding: 0 30px 0 50px;
	margin: 0 1% 8% 0;
}
.contact_item_location {
	position: relative;
}
.contact_item_location:after {
    content : "";
    display: block;
    position: absolute;
    top: 6px;
    left: 0;
    background-image: url(images/icons/map-marker.png);
	background-size: 30px 30px;
	background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    opacity : 0.5;
    z-index: -1;
}

.contact_item_email {
	position: relative;
}
.contact_item_email:after {
    content : "";
    display: block;
    position: absolute;
    top: 6px;
    left: 0;
    background-image: url(images/icons/envelope.png);
	background-size: 30px 30px;
	background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    opacity : 0.5;
    z-index: -1;
}

.contact_item_phone {
	position: relative;
}
.contact_item_phone:after {
    content : "";
    display: block;
    position: absolute;
    top: 6px;
    left: 0;
    background-image: url(images/icons/telephone.png);
	background-size: 30px 30px;
	background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    opacity : 0.5;
    z-index: -1;
}

.contact_item_fax {
	position: relative;
}
.contact_item_fax:after {
    content : "";
    display: block;
    position: absolute;
    top: 6px;
    left: 0;
    background-image: url(images/icons/fax.png);
	background-size: 30px 30px;
	background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    opacity : 0.5;
    z-index: -1;
}

/*********************************** fonts *****************************************/
p {
	letter-spacing: 1px;
	margin: 0 0 1em 0;}
	
.contact_p, .credentials {
	font-size: 0.8em;
	margin: 0 0 10px 0;
	padding: 0;
	text-align: left;
	line-height: 1.2em;
}
h1 {
	margin: 0;
	font-size: 3.6em;
	letter-spacing: 1px;
	line-height: 1em;
}
.title_text  h1 {
	padding-top: 20px;
	max-width: 40%;
}	

.title_text  p {
	padding-top: 20px;
	max-width: 40%;
}	
h2 {
	position: relative;
	padding-bottom: 30px;
	color: #37517e;
	line-height: 1.2em;
}

h2::before {
	content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ccc;
    bottom: 1px;
    left: calc(50% - 60px);
	box-sizing: border-box; /*maybe?*/
}
	
h2:after{
	content: "";
    position: absolute;
	display: block;
    left: calc(50% - 20px);
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #eeb850;
}

.title h3 {
    font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

h3 {
	color: #fff;
    font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

h4 {
    font-size: 26px;
	font-weight: 400;
	padding: 0;
	margin: 0 0 10px 0;
	text-align: left;
	line-height: 1.3em;
}
h5 {
	font-size: 26px;
	font-weight: 400;
	padding: 0;
	margin: 30px 0 20px 0;
	text-align: left;
}
h6 {
	font-size: 1em;
}
span.display_no b {
	display: none;
}
/**************************** map *************************************/
#map {
	height: 50vh;
	margin: 0 auto 5% auto;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	-o-border-radius: 15px;
	-ms-border-radius: 15px;
	-khtml-border-radius: 15px;
	border-radius: 15px;
}
/************************************** footer **************************************/
.footer_menu {
	display: flex;
	justify-content: center;
	flex-direction: row;
}
.footer_menu a {
	padding: 20px 5%;
	transition-duration: 0.4s;
	text-decoration: none;
	color: #333;
}
.footer_menu a:hover {
	background-color: #31516d;
	color: #fff;
}

.footer_1 {
	background-color: #555;
	padding: 1% 0;
	width: 100%;
	/*border-top: 3px solid #eeb850;*/
}
.footer_2 {
	background-color: #222;
	padding: 2em 0 1em 0;
	margin: 0;
	width: 100%;
	color: #999;
	text-align: center;
	font-size: 0.8em;
}

.footer_flex_item {
	margin: 10px 5%;
	text-align: center;
}
.footer_text {
	color: #ccc;
	font-size: 0.8em;
	text-align: center;
	padding: 1% 0;
	margin: 0 auto;
	width: 100%;
}
.footer_underline {
	position: relative;
    padding-bottom: 10px;
}
.footer_underline::before {
	content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #aaa;
    bottom: 1px;
    left: calc(50% - 60px);
    box-sizing: border-box;
}
.footer_underline::after {
    content: "";
    position: absolute;
    display: block;
    left: calc(50% - 20px);
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #aaa;
}

.social_icon {
	padding: 15px 7px 7px 7px;
	width: 20px;
    height: 20px;
    opacity: 0.5;
	filter: invert(100%);
}
/************** Accordion ***************************************************/
.accordion {
	margin: 1rem 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #e5e5e5;
}

.accordion-item {
	border-bottom: 1px solid #e5e5e5;
}

/* Thumb */
.accordion-thumb {
	margin: 0;
	padding: .8rem 0;
	cursor: pointer;
	font-weight: normal;

	&::before {
		content: '';
		display: inline-block;
		height: 10px;
		width: 10px;
		margin-right: 1rem;
		margin-left: .5rem;
		vertical-align: middle;
		border-right: 1px solid;
		border-bottom: 1px solid;
		transform: rotate(-45deg);
		transition: transform .2s ease-out;
	}
}

/* Panel */
.accordion-panel {
	margin: 0;
	padding-bottom: .8rem;
	display: none;
}

/* Active */
.accordion-item.is-active {
	.accordion-thumb::before {
		transform: rotate(45deg);
	}
	h6 {
		font-weight: 700;
	}
}

/**********************************************************************************/
@media screen and (max-width: 900px) {
	.menu {
		justify-content: space-between;
		width: 94%;
		padding: 0 3%;
	}
	.menu a {
		padding: 20px 3%;
	}
	.first_menu_item {
		margin-left: 0;
	}
    .flex_container {
		flex-direction: column;
		align-items: center;
    }
	.flex_item {
		width: 100%;
		border-right: none;
	}
	.flex_item:last-child {
		border-bottom: none; /*unnecessary */
	}
	.flex_item_two_thirds {
		width: 92%;
	}
	.flex_container_column {
		justify-content: center;
		min-width: 92%;
	}
	.step_container {
		/* width: 90%; */
	}
	.fat {
		display: none;
	}
	h1 {
		font-size: 2.5em;
	}
	.title_content_wrapper {
		margin: 0 auto;
		text-align: center;
		max-width: 98%;
	}
	.flex_container_contact {
		flex-direction: column;
	}
	#map {
		width: 100%;
	}
	.grid_container {
		grid-template-columns: 100fr;
		grid-gap: 40px;
	}
}
/* smaller than 600px*/
@media only screen and (max-width: 600px) {
    .footer_flex_item {
		width:98%;
	}
	.gristle {
		display: none;
	}
	.container_flex_vertical_center {
		width: 100%;
	}
}
/* smaller than 500px*/
@media only screen and (max-width: 500px) {
    .box-title {
		font-size: 0.9em;
	}
	.blue_box {
		padding: 5% 0;
	}
	.menu a {
		font-size: 0.8em;
	}
	h1 {
		font-size: 1.9em;
	}
	.title h3 {
		font-size: 1.3em;
	}
}