.site-header {
  overflow: visible;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  overflow: visible;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  position: relative;
  overflow: visible;
}

.logo-wrapper {
  flex: 0 0 94px;
  width: 94px;
  height: 60px;
}

.logo-link {
  display: block;
  line-height: 0;
  width: 94px;
  height: 60px;
}

.logo-link picture {
  display: block;
  width: 94px;
  height: 60px;
}

.site-logo {
  height: 60px;
  width: 94px;
  display: block;
}

.site-nav {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.nav-menu {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  height: 100%;
}

.menu-item {
  position: relative;
  margin: 0 15px;
}

.menu-item a {
  display: block;
  padding: 10px 5px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu-item a:hover {
  color: var(--text-color);
}

.dropdown {
  position: relative;
}

.dropdown:hover > a {
  color: var(--text-color);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-background);
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px 0;
  display: none;
  z-index: 99999;
}

.dropdown:hover .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
  list-style-type: none;
}

.sub-menu a {
  padding: 10px 20px;
  color: var(--secondary-color);
  font-size: 14px;
  display: block;
  transition: all 0.2s ease;
}

.sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

.cta-button-wrapper {
  flex: 0 0 auto;
  margin-left: 20px;
}

.btn.primary {
  background-color: var(--accent-color);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  display: inline-block;
  font-weight: 500;
}

.btn.primary:hover {
  background-color: #0056b3;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 10001;
}

.hamburger-line {
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: block;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-cta {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-cta {
    display: block !important;
    margin-top: 15px;
    padding-top: 10px;
  }

.mobile-cta-link {
    background-color: var(--accent-color) !important;
    color: white !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 10px 20px !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block !important;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-background);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 12px 12px;
    z-index: 10000;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-height: 0;
    overflow: hidden;
  }

  .site-nav.mobile-menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 90vh;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px 0;
  }

  .menu-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .menu-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 16px 20px !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
  }

  .dropdown .nav-link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }

  .dropdown.mobile-dropdown-open .nav-link::after {
    transform: rotate(45deg);
  }

  .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.mobile-dropdown-open .sub-menu {
    display: block;
    max-height: 400px;
    padding: 10px 0;
  }

  .sub-menu a {
    padding: 12px 20px 12px 40px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  }

  .sub-menu li:last-child a {
    border-bottom: none !important;
  }
}
