/*
NicK of All Trades - Base Styles
*/

/* LOAD THE CUSTOM FONT */
@font-face {
  font-family: 'Courbe Sans';
  src: url('../fonts/CourbeSans.ttf.ttf') format('truetype'),
       url('../fonts/CourbeSans.otf.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Courbe Sans", "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: #D1B200;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Courbe Sans", sans-serif;
}

h1 {
  font-size: 2.0rem;
}

#tm-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/img-bg2.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  transition: all 0.3s ease;
}

#tm-bg:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#tm-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 100vh;
}

p {
  line-height: 1.9;
  letter-spacing: 1px;
  font-size: 1rem;
}

.tm-main-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;
  padding: 20px 15px; 
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
}

.tm-site-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;   
  margin-bottom: auto;
}

.tm-site-header-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-site-header {
  margin: 10px;
  text-align: center; 
  width: 100%;
}

.tm-nav ul {
  padding-left: 0;
  display: block;
}

.tm-nav li {
  list-style: none;
  display: inline-block;
  border: 1px solid white;
  float: left;
  margin: 10px;
}

.fa-3x {
  font-size: 2.5em;
}

.tm-page-title {
  font-weight: 300;
}

.content {
  width: 100%;
  max-width: 100%; 
  margin: 0 auto;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.grid__item {
  margin: 15px; 
}

/* Team */
.tm-reverse-sm {
  flex-direction: row;
}

/* Contact */
.form-control {
  font-family: "Courbe Sans", sans-serif;
  font-size: 1.1rem;
  border-radius: 0;
  border: none;
  background-color: #353541;
  color: white;
  padding: 0.75rem;
}

.form-control:focus {
  color: #cecece;
  background-color: #4d4c59;
  border-color: transparent;
}

.tm-col-email {
  padding-left: 0;
}

.tm-btn-submit {
  background-color: #006599;
  font-family: "Courbe Sans", sans-serif;
}

.tm-btn-gray {
  background-color: #494752;
  color: white;
  font-family: "Courbe Sans", sans-serif;
}

.tm-btn-gray:hover {
  background-color: #77757d;
  color: white;
}

.btn {
  padding: 0.5rem 2.4rem;
  font-size: 1.2rem;
  border-radius: 0;
}

.btn-primary {
  border-color: transparent;
}

.btn-primary:hover {
  background-color: #0e7fb9;
  border-color: transparent;
}

footer {
  width: 100%;
  text-align: center;
  margin-top: auto !important;
  margin-bottom: 60px !important; 
  padding-top: 20px;
  z-index: 10;
}

.tm-text-highlight { color: white; }
.tm-text-highlight:hover { color: red; }
.tm-main-content.tm-footer-relative { flex-direction: column; }
.tm-main-content.tm-footer-relative footer { position: relative; bottom: 0; margin-top: 50px; }
.tm-copyright-text { background-color: rgba(0, 0, 0, 0.6); display: inline-block; padding: 10px 30px; font-size: 12px; }
a, button { transition: all 0.3s ease; }
a:hover, a:focus { text-decoration: none; outline: none; }
p:last-child { margin-bottom: 0; }

@media (min-width: 992px) { 
  .container { max-width: 1140px; } 
}

@media (max-width: 991px) {
  .tm-main-content { justify-content: center; }
  .tm-site-header-container { margin-top: auto !important; margin-bottom: auto !important; }
  /* Forced 2x2 Grid on Tablet by restricting max-width */
  .grid { justify-content: center; max-width: 380px; margin: 0 auto; } 
  .grid__item { margin: 10px; }
  .tm-site-header h1 { font-size: 2.2rem; margin-bottom: 10px !important; }
  .tm-site-header img { margin-bottom: 15px !important; max-height: 25px; }
  .tm-site-header p { font-size: 0.95rem; line-height: 1.4; }
  footer { margin-bottom: 20px !important; padding-top: 10px; }
}

@media (max-width: 767px) {
  .container { max-width: 100%; padding: 0 10px; }
  .grid { justify-content: center; max-width: 320px; margin: 0 auto; } 
  .grid__item { margin: 6px; }
  .tm-col-email { padding-left: 15px; }
  .tm-reverse-sm { flex-direction: column-reverse; }
  .tm-site-header { margin: 0; }
  .tm-site-header h1 { font-size: 1.8rem; margin-bottom: 5px !important; }
  .tm-site-header img { margin-bottom: 10px !important; height: 15px; }
  .tm-site-header p { font-size: 0.85rem; line-height: 1.3; margin-bottom: 0; }
  footer { margin-bottom: 10px !important; }
}

@media (max-width: 544px) {
  .tm-main-content { flex-direction: column; justify-content: space-between; } 
  footer { position: relative; bottom: 0; margin-bottom: 10px !important; margin-top: 20px; }
}