/* Custom navbar utilities to match live site exactly using Tailwind */

/* Navbar base styling */
.navbar-live-style {
  /* background intentionally omitted so Tailwind utility (bg-gray-900) controls navbar color */
  min-height: 77px;
}

/* Override container max-width for full-width navbar */
.navbar-live-style .max-w-7xl {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Logo positioning and styling */
.logo-container {
  margin-left: 0 !important;
  padding-left: 5rem !important;
  margin-right: auto;
  min-height: 3.8rem;
}

.logo-text {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
    sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  padding-right: 1rem;
  font-weight: 700 !important;
  white-space: normal;
  word-break: break-word;
  min-width: 7rem;
  margin: 0.3rem 0;
}

/* Navigation menu positioning */
.nav-container {
  justify-content: flex-end;
  padding-right: 5rem !important;
  margin-right: 0 !important;
  width: auto;
}

/* Navigation links styling */
.nav-link-live {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
    sans-serif !important;
  padding: 0.7rem 0;
  margin: 0rem 0.4rem;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* Language button styling to match live site */
.lang-button-live {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
    sans-serif !important;
  /* Using the exact blue from live site */
    background-color: #149dcc !important;
    border: 2px solid #149dcc !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    font-size: 0.875rem !important;
    /* 14px */
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  margin: 0.4rem 0.4rem;
  border-radius: 6px !important;
    /* Less rounded than before */
  word-break: break-word;
  text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s ease;
}

.lang-button-live:hover {
  background-color: #0f7ba0 !important;
    border-color: #0f7ba0 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
/* Mobile hamburger button */
.hamburger-button {
  width: 31px;
  height: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

/* Hamburger spans */
.hamburger-span-1 {
  top: 0;
  transition: all 0.2s;
}

.hamburger-span-2 {
  top: 8px;
  transition: all 0.15s;
}

.hamburger-span-3 {
  top: 8px;
  transition: all 0.15s;
}

.hamburger-span-4 {
  top: 16px;
  transition: all 0.2s;
}

/* Mobile navigation */
.mobile-nav-item {
  clear: both;
}

.mobile-nav-container {
  margin-bottom: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
  .navbar-mobile {
    flex-direction: column;
  }

  .navbar-brand {
    margin-left: 1rem !important;
  }

  .navbar-collapse {
    display: none !important;
    padding-right: 0 !important;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-collapse.show .navbar-nav {
    display: block;
    text-align: center;
  }

  .navbar-collapse.show .navbar-nav .nav-item {
    clear: both;
  }

  .navbar-collapse.show .navbar-buttons {
    text-align: center;
  }

  .navbar-collapse.show .navbar-buttons:last-child {
    margin-bottom: 1rem;
  }
}

/* Hamburger animation styles */
.hamburger-custom span {
  position: absolute;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: #fff;
  border-right: 5px;
}

/* Opened state animations */
.nav-opened .hamburger-custom span:nth-child(1) {
  top: 8px;
  width: 0;
  opacity: 0;
  right: 50%;
  transition: all 0.2s;
}

.nav-opened .hamburger-custom span:nth-child(2) {
  transform: rotate(45deg);
  transition: all 0.25s;
}

.nav-opened .hamburger-custom span:nth-child(3) {
  transform: rotate(-45deg);
  transition: all 0.25s;
}

.nav-opened .hamburger-custom span:nth-child(4) {
  top: 8px;
  width: 0;
  opacity: 0;
  right: 50%;
  transition: all 0.2s;
}
