/* 

COLORS 

Primary Dark:       #996666
Primary Light:      #cc9999
Secondary:          #6a93b7
Dark Background:    #333333
Dark Gray Text:     #666666
Light Gray Text:    #999999
Footer Gray Text:   #cccccc

*/

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: #666666;
  -webkit-font-smoothing: antialiased;
  padding: 20px 80px;
  overflow-x: hidden;
  background-color: #0e5c76;
}

textarea {
  font-family: "Open Sans", sans-serif;
}

a {
	color: #FF0;
  text-decoration: none;
}

button {
  border: none;
}

a,
button {
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
}

h2 {
  margin-top: 0;
}

p {
  line-height: 2;
  margin: 0;
}

.tm-container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* http://w3bits.com/css-masonry/ */
.masonry {
  /* Masonry container */
  -webkit-column-count: 2;
  column-count: 2;
  -webkit-column-gap: 0;
  column-gap: 0;
}

.item {
  /* Masonry bricks or child elements */
  display: inline-block;
  margin: 0;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

.tm-main-container {
  position: relative;
  z-index: 0;
}
.tm-navigation {
  position: relative;
  z-index: 1;
}

.tm-relative {
  position: relative;
}

.tm-block {
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 600px;
}

.tm-block-wider {
  max-width: 640px;
  width: calc(100% + 40px);
}

.tm-block-left {
  right: 20px;
  bottom: 20px;
}

.tm-block-left-2 {
  right: 60px;
  top: 15px;
}

.tm-block-right {
  padding: 15px 0 20px 20px;
}

.tm-img-left {
  display: block;
  margin-right: 0;
  margin-left: auto;
}

.tm-hero-text {
  padding: 60px 80px;
}

.tm-hero-text, .tm-hero-text-titled {
  color: white;
  font-size: 20px;
  line-height: 28px;
  text-transform: uppercase;
}

.tm-hero-text-titled .tm-hero-block {
  font-size: 20px;
  line-height: 28px;
}

.tm-block-pad {
  padding: 67px 63px;
}

.tm-block-icon {
  text-align: center;
  display: block;
  margin: 0 30px 30px;
}

.tm-block-brand {
  position: relative;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.tm-block-brand-inner {
  margin: 0 auto;
  position: relative;
  max-width: 400px;
  padding: 60px 40px 0 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
}

.tm-logo-brand {
  width:500px;
  margin: 0 auto;
  /* -webkit-filter: drop-shadow(2px 2px 1px rgba(255, 255, 255, 0.8));
  filter: drop-shadow(2px 2px 1px rgba(255, 255, 255, 0.8)); */
}

.tm-brand-name {
  margin: 0 40px 0;
  font-size: 2.5rem;
  font-weight: 400;
}

.tm-bg-dark {
  background-color: #0e5c76;
  background: url('../images/pattern.jpg');
}

.tm-bg-white {
  background-color: #ffffff;
}

.tm-bg-white-transparence {
  background-color: rgba(255, 255, 255, .7)
}

.tm-btn {
  padding: 15px 25px;
  display: inline-block;
  font-size: 1em;
}

.tm-btn-small {
  font-size: 17px;
  font-weight: 600;
  padding: 15px 35px;
}

.tm-btn-pad-big {
  padding: 17px 45px;
}

.tm-btn-primary {
  color: #6a93b7;
  background-color: #ffffff;
}

.tm-btn-primary:hover {
  background-color: #c5c5e6;
}

.tm-btn-secondary {
  color: white;
  background-color: #9999cc;
}

.tm-btn-secondary:hover {
  color: #ffffff;
  background-color: #5b5bb2;
}

.tm-text-white {
  color: #ffffff;
}

.tm-text-gray-light {
  color: #999999;
}

.tm-bg-primary-light {
  background-color: #cc9999;
}

.tm-bg-primary-dark {
  background-color: #af7e7e;
}

.tm-bg-secondary {
  background-color: #6a93b7;
}

.tm-mt {
  margin-top: 30px;
}

.tm-mt-big {
  margin-top: 50px;
}

.tm-mb {
  margin-bottom: 45px;
}

.tm-mb-small {
  margin-bottom: 20px;
}

.tm-text-right {
  text-align: right;
}

.tm-text-uppercase {
  text-transform: uppercase;
}

.tm-form-group {
  margin-bottom: 25px;
}

input,
textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #958ec0;
  padding: 18px 20px;
  font-size: 1em;
}

.tm-contact-form {
  width: calc(100% - 40px);
}

.tm-form-section {
  margin-top: -5px;
}

.tm-form-section-tag {
  position: relative;
}

.tm-form-section-tag h2 {
  font-size: 1.6rem;
}

.tm-form-section-tag-inner {
  position: relative;
  left: 40px;
  right: -40px;
  bottom: -40px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 55px 47px;
}

.tm-pb-0 {
  padding-bottom: 0 !important;
}

.tm-img-qr {
  width: 150px;
  height: 150px;
  margin: 30px 20px 30px 0;
}

.tm-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  max-width: 600px;
  margin-right: 0;
  margin-left: auto;
}

.tm-footer,
.tm-footer a {
  color: #cbcbcb;
}

.tm-footer a:hover {
  color: #996666;
}

.tm-footer p {
  font-size: 16px;
}

/* MENU */
/* Menu Dropdown */
nav {
  margin-bottom: 50px;
}
.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    *zoom: 1;
}

.menu,
.submenu {
 margin: 0;
 padding: 0;
 list-style: none;
}

.menu {   
 margin: 50px auto;
 width: 800px;   
 width: -moz-fit-content;
 width: -webkit-fit-content;
 width: fit-content;
}

.menu > li {
 background: #022f3e;
 position: relative;
  display: inline-block;
}

@media screen and (min-width: 992px) {
  .menu > li:nth-child(1) {
    transform: translateY(-5px);
    }
    .menu > li:nth-child(3) {
    transform: translateY(-3px);
    }
    .menu > li:nth-child(4) {
    transform: translateY(3px);
    }
    .menu > li:nth-child(6) {
      transform: translateY(-4px);
    } 
}

.menu > li > a, .menu > li > p {
 padding: 1em 2em;
 line-height: unset;
}
.menu > li > form {
  padding-left: 1em;
  padding-right: 1em;
  padding-top: .84rem;
  padding-bottom: .74rem;
 }
.menu a, .menu form, .menu p {
 display: block;
 color: #fff;
 text-transform: uppercase;
 text-decoration: none;
 font-family: Arial, Helvetica;
 font-size: 14px;
}  

.menu li:hover {
 background: #256991;
}  

/* Dropdown */
.submenu {
 position: absolute;
 width: 200px;
 left: 50%; margin-left: -100px;
 transform-origin: left top;
 z-index: 1;
}

.submenu li {
 background-color: #34495e;
 position: relative;
 overflow: hidden;  
}      

.submenu > li > a {
 padding: 1em 2em;   
}

.submenu > li::after {
 content: '';
 position: absolute;
 top: -125%;
 height: 100%;
 width: 100%;   
 box-shadow: 0 0 50px rgba(0, 0, 0, .9);   
}  



/* Show dropdown */
.submenu,
.submenu li {
 opacity: 0;
 visibility: hidden;   
}

.submenu li {
 transition: .2s ease transform;
}

.menu > li:hover .submenu,
.menu > li:hover .submenu li {
 opacity: 1;
 visibility: visible;
}  

.menu > li:hover .submenu li:nth-child(even){
 transform: translateX(5px);   
}

.menu > li:hover .submenu li:nth-child(odd){
 transform: translateX(-5px);   
}
/* END MENU */

@media (max-width: 1232px) {
  body {
    padding: 60px;
  }
}

@media (max-width: 1199px) {
  .masonry {
    /* Masonry container */
    -webkit-column-count: 1;
    column-count: 1;
  }

  .tm-container {
    max-width: 600px;
  }
}

@media (max-width: 992px) {
  .menu.cf {
    display: flex;
    flex-wrap: wrap;
  }
  .menu.cf > li {
    flex: 1 1 0;
  }
}

@media (max-width: 665px) {
  .menu.cf > li:last-of-type {
    margin-top: .5rem;
  }
}

@media (max-width: 540px) {
  .tm-block-brand-inner {
    flex-direction: column;
    padding: 35px;
    right: 0;
  }

  .tm-brand-name {
    margin-top: 20px;
  }

  .tm-contact-form {
    width: calc(100% - 20px);
  }
  .tm-hero-text, .tm-hero-text-titled, .tm-hero-text-titled .tm-hero-block {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 20px;
  }

  .tm-block-pad {
    padding: 30px;
  }

  .tm-hero-text {
    padding: 30px;
  }

  .tm-block-brand {
    margin-top: 70px;
  }
  .tm-hero-text-titled {
    padding-top: 30px !important;
  }
  .tm-hero-header {
    padding: 0 30px 0 !important;
    line-height: 24px;
  }
  .tm-hero-block {
    padding: 0 30px 30px !important;
  }
}

@media (max-width: 417px) {
  .tm-block-left,
  .tm-block-left-2 {
    right: 0;
  }

  .tm-block-wider {
    width: 100%;
  }

  .tm-footer {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  body {
    padding: 40px 20px 10px;
  }

  .tm-form-section-tag-inner {
    left: 25px;
    right: -25px;
    bottom: -25px;
  }
}
