/* Header */

header {
  position: relative;
  height: auto;
  z-index: 1030;
}

.header-text {
  text-align: right !important;
}

/* Top bar */

#top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1031;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  background-color: var(--bs-dark-blue);
}

.top-bar-hidden {
  transform: translateY(-100%);
}

/* Contact info */

.contact {
  position: sticky;
  top: 0;
  height: 40px;
  z-index: 1030;
  transition: transform 0.3s ease-in-out;
  padding: .5rem 4rem;
  justify-content: end;
}

.contact a {
  background: none;
  color: #ffff;
  transition: color 300ms;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact a:hover {
  color: #236eb6;
}

.contact a:hover i {
  background: #73c3b4;
}

.contact i {
  color: var(--bs-primary);
  background: #ffff;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: background 300ms;
}

.contact a i {
  margin-right: 0;
}

@media (max-width: 768px) {
  .contact i:hover {
    transform: scale(1.1);
  }
}

/* Mobile responsive */

@media (max-width: 768px) {
  .contact {
    padding: .5rem 1rem;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact a span {
    display: none;
  }
}

/* Navbar */

#navbar-main {
  position: fixed !important;
  top: 40px;
  width: 100%;
  z-index: 1030;
  transition: top 0.3s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar-nav {
  display: flex;
  justify-content: center;
}

.navbar.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-content: flex-start;
    gap: 0;
  }
}

.navbar {
  padding: 5px 20px;
  background-color: #ffffff;
}

.navbar-scrolled {
  top: 0 !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  width: auto;
  object-fit: contain;
  max-height: 60px;
  transition: max-height 0.3s ease;
}

/* Tablets and up (sm) */

@media (min-width: 576px) {
  .navbar-brand img {
    max-height: 70px;
  }
}

/* Medium devices and up (md) */

@media (min-width: 768px) {
  .navbar-brand img {
    /*max-height: 80px;*/
  }
}

.nav-link {
  color: #273051;
  font-size: 16px;
  font-weight: 700;
  margin: 0 15px;
}

.nav-link:hover, .nav-link:focus {
  opacity: 0.5;
}

.dropdown-menu .dropdown-item {
  background-color: #ffffff;
  color: #273051;
  font-size: 16px;
  font-weight: 700;
}

.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus {
  opacity: 0.5;
}

.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 35px;
  height: 30px;
  position: relative;
  background: transparent;
  transition: background-color 0.3s ease;
}

.navbar-toggler-icon span {
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #000000;
  transition: all 0.3s ease;
}

.navbar-toggler-icon span:nth-child(1) {
  top: 0;
}

.navbar-toggler-icon span:nth-child(2) {
  top: 10px;
}

.navbar-toggler-icon span:nth-child(3) {
  top: 20px;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

.navbar-toggler-icon:hover span {
  background-color: rgba(0,0,0,.7) !important;
}

/* Button */

.btn-contact {
  padding: 0.6rem 1rem;
}

