html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

a {
  color: #01329b;
}

a:hover {
  color: #011f60;
}

#mainNav {
  background-color: #fff !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

#mainNav .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.logo-wordmark {
  display: flex;
  width: 150px;
  height: 54px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #303b82;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 13px;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: center;
  text-decoration: none !important;
}

.logo-wordmark span:first-child {
  font-size: 15px;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #222;
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 1rem;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: #01329b !important;
}

header {
  margin-top: 86px;
}

.carousel,
.carousel-inner,
.carousel-item {
  min-height: 620px;
}

.carousel-item {
  height: calc(100vh - 86px);
  min-height: 620px;
  background-color: #5f5f5f;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.carousel-item::before {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: rgba(0, 0, 0, 0.12);
}

.carousel-item > .d-flex {
  position: relative;
  z-index: 1;
}

.slidetitle {
  margin-bottom: 1.5rem;
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 4.5rem;
  font-weight: 300;
}

.slidecaption {
  max-width: 980px;
}

.bg-greets,
.btn-send {
  background-color: #ffc107;
  border-color: #ffc107;
}

.bg-greets:hover,
.btn-send:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

.page-section {
  padding: 6.5rem 0;
}

.page-section2 {
  padding: 5rem 0;
}

.page-section3 {
  padding-right: 0;
  padding-left: 0;
}

.page-section4 {
  min-height: 245px;
  background-color: #222;
}

.service-panel {
  background-color: #f8f9fa;
}

.contact-strip {
  background-color: #01329b;
}

.footer-strip {
  background-color: #222;
}

.u-head.container.row,
.page-section2 > .container.row {
  margin-right: auto;
  margin-left: auto;
}

.overlay,
.overlay2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 2rem;
}

.overlay-img,
.overlay-img2 {
  display: block;
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  background-color: #e9ecef;
}

.card {
  border: 0;
  border-radius: 0.25rem;
}

.card-body {
  padding: 2rem;
}

.card-img-top {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  background-color: #e9ecef;
}

#portfolio .container-fluid {
  max-width: none;
}

#portfolio .border {
  border-color: #fff !important;
}

#portfolio .portfolio-box {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #e9ecef;
}

#portfolio .img-fluid {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

#contact .lead a {
  color: #222;
}

.contact-form {
  max-width: 1110px;
  margin: 0 auto;
}

.form-control {
  border-radius: 0.25rem;
}

footer a {
  color: #fff;
}

@media (max-width: 991.98px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 0.75rem 0;
  }

  header {
    margin-top: 82px;
  }

  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: 560px;
  }

  .carousel-item {
    height: 560px;
  }

  .slidetitle {
    font-size: 3.5rem;
  }

  .overlay,
  .overlay2,
  .overlay-img,
  .overlay-img2,
  .card-img-top {
    min-height: 320px;
  }

  #portfolio .img-fluid {
    height: 150px;
  }
}

@media (max-width: 575.98px) {
  .logo-wordmark {
    width: 130px;
    height: 47px;
    font-size: 11px;
  }

  .logo-wordmark span:first-child {
    font-size: 13px;
  }

  header {
    margin-top: 75px;
  }

  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: 500px;
  }

  .carousel-item {
    height: 500px;
  }

  .slidetitle {
    font-size: 2.5rem;
  }

  .slidecaption {
    font-size: 18px !important;
  }

  .page-section,
  .page-section2 {
    padding: 4rem 0;
  }

  #portfolio .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
